zx 3 years ago
parent 685a585cf3
commit 01382e9fbe

@ -21,6 +21,7 @@
"pages/insight/pages/modalInsight/modalDataList/index",
"pages/brandSearch/index",
"pages/varComm/index",
"pages/insight/pages/themeList/index",
"pages/mine/index",
"pages/mine/pages/bindUser/index",
"pages/mine/pages/myReport/index",

@ -1,4 +1,5 @@
import moment from "moment"
const app = getApp();
Page({
data: {
steps: [
@ -20,14 +21,15 @@ Page({
],
//表单
Name: '',
StartTime: moment().valueOf(),
EndTime: moment().valueOf(),
StartTime: '',
EndTime: '',
DetailsData: [],
AnalyzeWord: '', // 和 或 的主体词
HuoWord:'', // 和 或 的可选词
HuoWord2:'', // 或 的可选词
PaiChu: '', // 排除词
highAnalizeWord: '', // 高级模式分析词
Source: '', // 定向监测媒体
UserAuthor: '', // 定向监测作者
//
active: 0,
activeNames: [],
@ -36,7 +38,7 @@ Page({
dt: '',
dt2: '',
// 总体模式
totalMode: 0,
totalMode: 0, // 0便捷 1高级
/* 分析词设置 */
currWordType: '必选词和的关系',
wtShow: false,
@ -61,14 +63,16 @@ Page({
var time = moment(event.detail).format("YYYY-MM-DD HH:mm:ss")
this.setData({
show1: false,
StartTime: time
StartTime: time,
start: time
});
},
onConfirm2(event) {
var time = moment(event.detail).format("YYYY-MM-DD HH:mm:ss")
this.setData({
show1: false,
EndTime: time
show2: false,
EndTime: time,
end: time
});
},
onDisplay() {
@ -78,14 +82,10 @@ Page({
this.setData({ show2: true });
},
onCancel() {
this.setData({
show1: false,
});
this.setData({ show1: false, });
},
onCancel2() {
this.setData({
show2: false,
});
this.setData({ show2: false, });
},
changeTotalMode(event) {
this.setData({ totalMode: event.detail.index });
@ -103,16 +103,64 @@ Page({
this.setData({ infoPushChecked: event.detail });
},
goBeforeStep() {
this.setData({
active: this.data.active - 1
})
this.setData({ active: this.data.active - 1 })
},
goNextStep() {
this.setData({
active: this.data.active + 1
})
this.setData({ active: this.data.active + 1 })
},
// 分析词设置
bindAnalyzeWord(event) {
this.setData({ AnalyzeWord: event.detail.value})
},
bindHuoWord(event) {
this.setData({ HuoWord: event.detail.value})
},
bindPaiChu(event) {
this.setData({ PaiChu: event.detail.value})
},
bindHighAnalizeWord(event) {
this.setData({ highAnalizeWord: event.detail.value})
},
// 定向监测
bindSource(event) {
this.setData({ Source: event.detail.value})
},
bindUserAuthor(event) {
this.setData({ UserAuthor: event.detail.value})
},
themeSave() {
console.log('save')
let dtData = {
"AnalyzeWord": this.data.AnalyzeWord,
"HuoWord": this.data.HuoWord,
"PaiChu": this.data.PaiChu,
"IsAdvancedQuery": this.data.totalMode == 0&&this.data.currWordType == '必选词和的关系'?0:this.data.totalMode == 1 ? 1:2,
"Source": this.data.Source,
"UserAuthor": this.data.UserAuthor
};
let jsonObj = {
"Guids": null,
"Name": this.data.Name,
"Classify": 0,
"StartTime": this.data.StartTime,
"EndTime": this.data.EndTime,
"Types": "theme",
"DetailsData": [dtData]
}
var dtJson = JSON.stringify(jsonObj)
app.globalData.request({
action: 'setSchemeData', //数据列表
token: 't%2BrswgjvzGM=',
DataJson: dtJson,
}).then(res => {
wx.showModal({
title: '添加成功!',
showCancel: false,
success: function() {
wx.navigateBack({
delta: 1,
})
}
});
});
}
})

@ -21,10 +21,10 @@
<van-cell title="请选择时间" custom-class="date-picker-cell" is-link value="{{ end }}" bind:click="onDisplay2" />
</van-cell-group>
<van-popup show="{{ show1 }}" position="bottom">
<van-datetime-picker type="datetime" value="{{StartTime}}" bind:confirm="onConfirm" bind:cancel="onCancel" />
<van-datetime-picker type="datetime" bind:confirm="onConfirm" bind:cancel="onCancel" />
</van-popup>
<van-popup show="{{ show2 }}" position="bottom">
<van-datetime-picker type="datetime" value="{{EndTime}}" bind:confirm="onConfirm2" bind:cancel="onCancel2" />
<van-datetime-picker type="datetime" bind:confirm="onConfirm2" bind:cancel="onCancel2" />
</van-popup>
</view>
<view class="form-content" wx:if="{{active == 0}}">
@ -76,34 +76,32 @@
</van-cell-group>
<view wx:if="{{currWordType == '必选词和的关系'}}">
<view style="font-size:28rpx;font-weight:bolder;margin-left: 32rpx;margin-top: 16rpx">必选词(必选词逗号间是和的关系)</view>
<textarea value="{{AnalyzeWord}}" placeholder="请输入主题词多个词用隔开最多支持5个主题词" placeholder-class="placeholder-style" ></textarea>
<textarea value="{{AnalyzeWord}}" placeholder="请输入主题词多个词用隔开最多支持5个主题词" placeholder-class="placeholder-style" bindinput="bindAnalyzeWord"></textarea>
<view style="font-size:28rpx;font-weight:bolder;margin-left: 32rpx;margin-top: 16rpx">可选词(可选词与必选词是或的关系)</view>
<textarea value="{{HuoWord}}" placeholder="请输入关键词多个词用隔开最多支持5个关键词" placeholder-class="placeholder-style" ></textarea>
<textarea value="{{HuoWord}}" placeholder="请输入关键词多个词用隔开最多支持5个关键词" placeholder-class="placeholder-style" bindinput="bindHuoWord"></textarea>
</view>
<view wx:if="{{currWordType == '主题词或的关系'}}">
<view style="font-size:28rpx;font-weight:bolder;margin-left: 32rpx;margin-top: 16rpx">主体词(主体词逗号之间是或的关系)</view>
<textarea value="{{AnalyzeWord}}" placeholder="请输入主题词多个词用隔开最多支持5个主题词" placeholder-class="placeholder-style" ></textarea>
<view style="font-size:28rpx;font-weight:bolder;margin-left: 32rpx;margin-top: 16rpx">关键词组一(主题词逗号之间是或的关系)</view>
<textarea value="{{HuoWord}}" placeholder="请输入关键词多个词用隔开最多支持5个关键词" placeholder-class="placeholder-style" ></textarea>
<view style="font-size:28rpx;font-weight:bolder;margin-left: 32rpx;margin-top: 16rpx">关键词组二(主题词逗号之间是或的关系)</view>
<textarea value="{{HuoWord2}}" placeholder="请输入关键词多个词用隔开最多支持5个关键词" placeholder-class="placeholder-style" ></textarea>
<textarea value="{{AnalyzeWord}}" placeholder="请输入主题词多个词用隔开最多支持5个主题词" placeholder-class="placeholder-style" bindinput="bindAnalyzeWord"></textarea>
<view style="font-size:28rpx;font-weight:bolder;margin-left: 32rpx;margin-top: 16rpx">关键词组(主体词逗号之间是或的关系)</view>
<textarea value="{{HuoWord}}" placeholder="请输入关键词多个词用隔开最多支持5个关键词" placeholder-class="placeholder-style" bindinput="bindHuoWord"></textarea>
</view>
<view style="font-size:28rpx;font-weight:bolder;margin-left: 32rpx;margin-top: 16rpx">排除词(搜索结果将不会含有排除词的数据)</view>
<textarea value="{{PaiChu}}" placeholder="请输入排除词多个词用隔开最多支持5个排除词" placeholder-class="placeholder-style" ></textarea>
<textarea value="{{PaiChu}}" placeholder="请输入排除词多个词用隔开最多支持5个排除词" placeholder-class="placeholder-style" bindinput="bindPaiChu"></textarea>
<van-popup show="{{ wtShow }}" position="bottom">
<van-picker columns="{{ wtColumns }}" bind:cancel="wtCancel" bind:confirm="wtConfirm" show-toolbar />
</van-popup>
</view>
<view wx:if="{{totalMode == 1}}">
<view style="font-size:28rpx;font-weight:bolder;margin-left: 32rpx;margin-top: 16rpx">分析词设置</view>
<textarea value="{{highAnalizeWord}}" placeholder="请输入分析词" placeholder-class="placeholder-style" ></textarea>
<textarea value="{{highAnalizeWord}}" placeholder="请输入分析词" placeholder-class="placeholder-style" bindinput="bindHighAnalizeWord"></textarea>
</view>
</view>
<view class="form-content" wx:if="{{active == 2}}">
<view style="font-size:28rpx;font-weight:bolder;margin-left: 32rpx;margin-top: 16rpx">媒体</view>
<textarea placeholder="请输入媒体名称多个用隔开最多支持5个" placeholder-class="placeholder-style" ></textarea>
<textarea placeholder="请输入媒体名称多个用隔开最多支持5个" placeholder-class="placeholder-style" bindinput="bindSource"></textarea>
<view style="font-size:28rpx;font-weight:bolder;margin-left: 32rpx;margin-top: 16rpx">作者</view>
<textarea placeholder="请输入作者名称多个用隔开最多支持5个" placeholder-class="placeholder-style" ></textarea>
<textarea placeholder="请输入作者名称多个用隔开最多支持5个" placeholder-class="placeholder-style" bindinput="bindUserAuthor"></textarea>
<view style="font-size:28rpx;font-weight:bolder;margin-left: 32rpx;margin-top: 16rpx">域名</view>
<textarea placeholder="请输入域名多个用隔开最多支持5个" placeholder-class="placeholder-style" ></textarea>
<view style="display: flex;justify-content: space-between;margin-top: 16rpx">

@ -95,6 +95,10 @@ Component({
},
toEventDetail(value) {
let id = value.currentTarget.dataset.id;
wx.setStorageSync('sRele', id);
wx.navigateTo({
url: "/pages/insight/pages/eventInsight/index?id=" + id
})
}
},
lifetimes: {

@ -0,0 +1,71 @@
const app = getApp();
Component({
properties: {
id: String
},
data: {
//form
sQuDao: [],
sQingGan: [],
sCrisis: [],
//API
affList: [],
qgList: [],
wjList: [{key: 1,value: '低级危机'},{key: 2,value: '中级危机'},{key: 3,value: '高级危机'}],
//列表
dataList: []
},
methods: {
getApi() {
app.globalData.request({
action: 'getQuDao', //获取所有渠道
token: 't%2BrswgjvzGM=',
}).then(res => {
this.setData({affList: res})
});
app.globalData.request({
action: 'getQingGan', //获取所有情感
token: 't%2BrswgjvzGM=',
}).then(res => {
this.setData({qgList: res})
});
},
getData() {
app.globalData.request({
action: 'getList', //数据列表
token: 't%2BrswgjvzGM=',
sTimeType: wx.getStorageSync('sTimeType') || 34,
sQuDao: (this.data.sQuDao).join(',') || '-1',
sQingGan: (this.data.sQingGan).join(',') || '-1',
iPageIndex: 1,
iPageSize: 10,
sType: 'BrandDataHot',
isSourcetype: 0, //1返回渠道 0不返回
iTimeType: 0, //0发布时间 1入库时间
sCrisis: (this.data.sCrisis).join(','),
sRele: wx.getStorageSync('sRele') || '',
}).then(res => {
this.setData({dataList: res})
});
},
changeTime(event) {
wx.setStorageSync('sTimeType', event.detail.sTimeType);
if(event.detail.sStartTime) {
wx.setStorageSync('sStartTime', event.detail.sStartTime);
};
if(event.detail.sEndTime) {
wx.setStorageSync('sEndTime', event.detail.sEndTime);
};
this.getData();
},
changeSource(event) {this.setData({ sQuDao: event.detail });this.getData()},
changeQingGan(event) {this.setData({ sQingGan: event.detail });this.getData()},
changeWeiJi(event) {this.setData({ sCrisis: event.detail });this.getData()}
},
lifetimes: {
attached() {
this.getApi();
this.getData();
}
}
})

@ -0,0 +1,6 @@
{
"usingComponents": {
"time-component":"/components/timecomponent/index"
},
"component": true
}

@ -0,0 +1,49 @@
<view class="edl-content">
<view class="top-tab">
<van-dropdown-menu>
<van-dropdown-item id="allSource" title="全部渠道">
<van-checkbox-group value="{{ sQuDao }}" bind:change="changeSource">
<van-checkbox wx:for="{{affList}}" wx:key="key" name="{{item.key}}" shape="square">{{item.value}}</van-checkbox>
</van-checkbox-group>
</van-dropdown-item>
<van-dropdown-item id="allAff" title="全部调性">
<van-checkbox-group value="{{ sQingGan }}" bind:change="changeQingGan">
<van-checkbox wx:for="{{qgList}}" wx:key="key" name="{{item.key}}" shape="square">{{item.value}}</van-checkbox>
</van-checkbox-group>
<van-checkbox-group value="{{ sCrisis }}" bind:change="changeWeiJi">
<van-checkbox wx:for="{{wjList}}" wx:key="key" name="{{item.key}}" shape="square">{{item.value}}</van-checkbox>
</van-checkbox-group>
</van-dropdown-item>
<van-dropdown-item id="sort" title="时间范围">
<view style="margin-top: -32rpx;">
<time-component bind:change="changeTime"></time-component>
</view>
</van-dropdown-item>
<van-dropdown-item id="back" title="更多筛选">
</van-dropdown-item>
</van-dropdown-menu>
</view>
<view class="tdl-content">
<view class="tdl-item" wx:for="{{dataList}}" wx:key="index">
<view class="top-time">
<view class="top-time-item">{{item._source.sourcetime}}</view>
<view style="line-height: 12rpx;">
<van-tag wx:if="{{item._source.crisis == 1}}" color="#FFE9A8" text-color="#FFBF00">低级危机</van-tag>
<van-tag wx:if="{{item._source.crisis == 2}}" color="#FFDFCF" text-color="#FF6E25">中级危机</van-tag>
<van-tag wx:if="{{item._source.crisis == 3}}" color="#FFF0F1" text-color="#FF4852">高级危机</van-tag>
<van-tag wx:if="{{item._source.affections == 1}}" color="#F0F8FF" text-color="#0084FF">正面</van-tag>
<van-tag wx:if="{{item._source.affections == 3}}" color="#FFFBF0" text-color="#FDCD42">中性</van-tag>
<van-tag wx:if="{{item._source.affections == 2}}" color="#FFF0F1" text-color="#FF4852">负面</van-tag>
</view>
</view>
<view class="middle-title" style="margin-top: 16rpx;">
{{item._source.title}}
</view>
<view class="bottom-source">
<view>来源:{{item._source.source}}</view>
<view style="margin-left: 64rpx;">作者:{{item._source.user_author}}</view>
</view>
</view>
</view>
</view>

@ -0,0 +1,36 @@
.top-tab {
background: #FFF;
}
.tdl-content {
width: 100%;
background: #F9F9F9;
padding: 32rpx;
}
.tdl-item {
width: 84%;
background: #FFF;
padding: 36rpx 32rpx 32rpx 32rpx;
margin-bottom: 32rpx;
}
.top-time-item {
font-size: 12px;
font-weight: 400;
color: #999999;
}
.top-time {
display: flex;
justify-content: space-between;
}
.middle-title {
font-size: 14px;
font-weight: 600;
color: #333333
}
.bottom-source {
display: flex;
justify-content: flex-start;
font-size: 12px;
font-weight: 400;
color: #999999;
margin-top: 18rpx;
}

@ -0,0 +1,86 @@
const app = getApp();
Page({
data: {
Guid: '',
//form
sQuDao: [],
sQingGan: [],
sCrisis: [],
iGroupBy: 0,
iTimeType: 0,
listType: 0,
//API
affList: [],
qgList: [],
wjList: [{key: 1,value: '低级危机'},{key: 2,value: '中级危机'},{key: 3,value: '高级危机'}],
//列表
dataList: [],
//全选
isSelectAll: [],
},
onLoad: function(options) {
this.setData({Guid: options.Guid})
},
onShow() {
this.getApi();
this.getData();
},
getApi() {
app.globalData.request({
action: 'getQuDao', //获取所有渠道
token: 't%2BrswgjvzGM=',
}).then(res => {
this.setData({affList: res})
});
app.globalData.request({
action: 'getQingGan', //获取所有情感
token: 't%2BrswgjvzGM=',
}).then(res => {
this.setData({qgList: res})
});
},
getData() {
app.globalData.request({
action: 'getList', //数据列表
token: 't%2BrswgjvzGM=',
sTimeType: wx.getStorageSync('sTimeType') || 34,
sStartTime: wx.getStorageSync('sStartTime') || '',
sEndTime: wx.getStorageSync('sEndTime') || '',
sQuDao: (this.data.sQuDao).join(',') || '-1',
sQingGan: (this.data.sQingGan).join(',') || '-1',
sTitle: '',
iPageIndex: 1,
iPageSize: 20,
sType: 'ZhuTiFenXiBl',
sGuid: this.data.Guid,
isSourcetype: 0, //1返回渠道 0不返回
iTimeType: this.data.iTimeType, //0发布时间 1入库时间
iGroupBy: this.data.iGroupBy, //0不去重 1相似度去重
listType: this.data.listType, //0默认 1影响力倒序
}).then(res => {
this.setData({dataList: res})
});
},
changeTime(event) {
wx.setStorageSync('sTimeType', event.detail.sTimeType);
if(event.detail.sStartTime) {
wx.setStorageSync('sStartTime', event.detail.sStartTime);
};
if(event.detail.sEndTime) {
wx.setStorageSync('sEndTime', event.detail.sEndTime);
};
this.getData();
},
changeSource(event) {this.setData({ sQuDao: event.detail });this.getData()},
changeQingGan(event) {this.setData({ sQingGan: event.detail });this.getData()},
changeWeiJi(event) {this.setData({ sCrisis: event.detail });this.getData()},
iGroupByChange(event) {this.setData({ iGroupBy: event.detail });this.getData()},
iTimeTypeChange(event) {this.setData({ iTimeType: event.detail });this.getData()},
listTypeChange(event) {this.setData({ listType: event.detail });this.getData()},
changeSelectAll(event) {
this.setData({ isSelectAll: event.detail});
},
toThemeBoard() {
}
})

@ -0,0 +1,8 @@
{
"navigationBarTitleText": "主题详情",
"navigationBarBackgroundColor":"#ffffff",
"navigationBarTextStyle":"black",
"usingComponents": {
"time-component":"/components/timecomponent/index"
}
}

@ -0,0 +1,77 @@
<view class="edl-content">
<view class="top-tab">
<van-dropdown-menu>
<van-dropdown-item id="allSource" title="全部渠道">
<van-checkbox-group value="{{ sQuDao }}" bind:change="changeSource">
<van-checkbox wx:for="{{affList}}" wx:key="key" name="{{item.key}}" shape="square">{{item.value}}</van-checkbox>
</van-checkbox-group>
</van-dropdown-item>
<van-dropdown-item id="allAff" title="全部调性">
<van-checkbox-group value="{{ sQingGan }}" bind:change="changeQingGan">
<van-checkbox wx:for="{{qgList}}" wx:key="key" name="{{item.key}}" shape="square">{{item.value}}</van-checkbox>
</van-checkbox-group>
<van-checkbox-group value="{{ sCrisis }}" bind:change="changeWeiJi">
<van-checkbox wx:for="{{wjList}}" wx:key="key" name="{{item.key}}" shape="square">{{item.value}}</van-checkbox>
</van-checkbox-group>
</van-dropdown-item>
<van-dropdown-item id="sort" title="时间范围">
<view style="margin-top: -32rpx;">
<time-component bind:change="changeTime"></time-component>
</view>
</van-dropdown-item>
<van-dropdown-item id="back" title="更多筛选">
<view style="padding: 32rpx;">
<view>去重方式</view>
<van-radio-group value="{{ iGroupBy }}" bind:change="iGroupByChange">
<van-radio name="0">不去重</van-radio>
<van-radio name="1">相似度去重</van-radio>
</van-radio-group>
</view>
<view style="padding: 0rpx 32rpx 32rpx 32rpx;">
<view>排序方式</view>
<van-radio-group value="{{ listType }}" bind:change="listTypeChange">
<van-radio name="0">默认</van-radio>
<van-radio name="1">影响力倒序</van-radio>
</van-radio-group>
<van-radio-group value="{{ iTimeType }}" bind:change="iTimeTypeByChange">
<van-radio name="0">发布时间</van-radio>
<van-radio name="1">入库时间</van-radio>
</van-radio-group>
</view>
</van-dropdown-item>
</van-dropdown-menu>
</view>
<view class="tdl-content">
<view class="tdl-item" wx:for="{{dataList}}" wx:key="index">
<view class="top-time">
<view class="top-time-item">{{item._source.sourcetime}}</view>
<view style="line-height: 12rpx;">
<van-tag wx:if="{{item._source.crisis == 1}}" color="#FFE9A8" text-color="#FFBF00">低级危机</van-tag>
<van-tag wx:if="{{item._source.crisis == 2}}" color="#FFDFCF" text-color="#FF6E25">中级危机</van-tag>
<van-tag wx:if="{{item._source.crisis == 3}}" color="#FFF0F1" text-color="#FF4852">高级危机</van-tag>
<van-tag wx:if="{{item._source.affections == 1}}" color="#F0F8FF" text-color="#0084FF">正面</van-tag>
<van-tag wx:if="{{item._source.affections == 3}}" color="#FFFBF0" text-color="#FDCD42">中性</van-tag>
<van-tag wx:if="{{item._source.affections == 2}}" color="#FFF0F1" text-color="#FF4852">负面</van-tag>
</view>
</view>
<view class="middle-title" style="margin-top: 16rpx;">
{{item._source.title}}
</view>
<view class="bottom-source">
<view>来源:{{item._source.source}}</view>
<view style="margin-left: 64rpx;">作者:{{item._source.user_author}}</view>
</view>
</view>
</view>
<view class="tdl-footer" style="display: flex;justify-content: space-between;">
<view style="width: 20%;margin-top: 3%;">
<van-checkbox-group value="{{ isSelectAll }}" bind:change="changeSelectAll">
<van-checkbox name="0" shape="square">全选</van-checkbox>
</van-checkbox-group>
</view>
<view style="width: 80%;">
<van-button bind:click="toThemeBoard" custom-style="width: 45%" color="#0084FF" class="theme-add-btn" plain>生成数据</van-button>
<van-button bind:click="toThemeBoard" custom-style="width: 45%" color="#0084FF" class="theme-add-btn">数据看板</van-button>
</view>
</view>
</view>

@ -0,0 +1,53 @@
.top-tab {
background: #FFF;
}
.tdl-content {
width: 100%;
background: #F9F9F9;
padding: 32rpx;
}
.tdl-item {
width: 84%;
background: #FFF;
padding: 36rpx 32rpx 32rpx 32rpx;
margin-bottom: 32rpx;
}
.top-time-item {
font-size: 12px;
font-weight: 400;
color: #999999;
}
.top-time {
display: flex;
justify-content: space-between;
}
.middle-title {
font-size: 14px;
font-weight: 600;
color: #333333
}
.bottom-source {
display: flex;
justify-content: flex-start;
font-size: 12px;
font-weight: 400;
color: #999999;
margin-top: 18rpx;
}
.tdl-footer {
position: fixed;
bottom: 0;
background: #FFF;
width: 100%;
padding: 16rpx 16rpx 24rpx 16rpx;
}
/* 按钮 */
.theme-add-btn {
font-weight: bold;
line-height: 88rpx;
font-size: 28rpx;
}
.theme-add {
padding: 12px;
background-color: #006BFF;
}

@ -1,3 +1,4 @@
const app = getApp();
Component({
data: {
content:[
@ -25,16 +26,47 @@ Component({
author: '明哥飞扬',
media:'新浪微博'
},
]
],
tabActive: 0,
themeData: [],
},
methods: {
toAddTheme() {
wx.navigateTo({
url: "/pages/insight/pages/addTheme/index"
})
},
changeTab(event) {
this.setData({ tabActive: event.detail.index});
this.getData()
},
getData() {
app.globalData.request({
action: 'getSchemeDataToTheme',
token: 't%2BrswgjvzGM=',
pageIndex: 1,
pageSize: 100,
sType: this.data.tabActive == 0 ? 'now' : 'former'
}).then(res => {
this.setData({themeData: res})
});
},
toThemeDataList(event) {
let id = event.currentTarget.dataset.id
wx.navigateTo({
url: '/pages/insight/pages/themeList/index' + '?Guid=' + id,
})
},
editTheme(event) {
console.log(event.currentTarget.dataset.id)
},
deleteTheme(event) {
console.log(event.currentTarget.dataset.id)
}
},
lifetimes: {
attached() {
this.getData()
}
}
})

@ -6,33 +6,35 @@
</view>
</view>
<view class="bottom-view">
<van-tabs class="view-tabs" swipe-threshold="4">
<van-tabs class="view-tabs" active="{{ tabActive }}" bind:change="changeTab" swipe-threshold="4">
<van-tab title="我的主题"></van-tab>
<van-tab title="往期主题"></van-tab>
</van-tabs>
<view class="card-content" wx:for="{{content}}" wx:key="index" data-quest='{{item}}' >
<view class="card-content" wx:for="{{themeData}}" wx:key="Guid">
<view class="content_event">
<view class="content_text">
<view class="content_time">2022-02-21 16:42:30</view>
<view class="content_status">进行中</view>
</view>
<view class="content_title">{{item.title}}
</view>
<view class="content_text">
<view class="content_number_title">相关报道(条)</view>
<view class="content_number">199189</view>
</view>
<view class="content_text">
<view class="content_number_title">开始时间</view>
<view class="content_number">2022-03-06 12:00:00</view>
</view>
<view class="content_text">
<view class="content_number_title">结束时间</view>
<view class="content_number">2022-03-06 12:00:00</view>
<view data-id='{{item.Guids}}' bindtap="toThemeDataList">
<view class="content_text">
<view class="content_time">{{item.AddTime}}</view>
<view class="content_status">{{item.Classify == 0? '进行中':'已完成'}}</view>
</view>
<view class="content_title">{{item.Name}}
</view>
<view class="content_text">
<view class="content_number_title">相关报道(条)</view>
<view class="content_number">{{item.ReportSum}}</view>
</view>
<view class="content_text">
<view class="content_number_title">开始时间</view>
<view class="content_number">{{item.StartTime}}</view>
</view>
<view class="content_text">
<view class="content_number_title">结束时间</view>
<view class="content_number">{{item.EndTime}}</view>
</view>
</view>
<view class="content_button">
<van-button custom-style="height: 68rpx;color: #0084FF">编辑主题</van-button>
<van-button custom-style="height: 68rpx;color: #FF4852">删除主题</van-button>
<van-button data-id='{{item.Guids}}' bind:click="editTheme" custom-style="height: 68rpx;color: #0084FF">编辑主题</van-button>
<van-button data-id='{{item.Guids}}' bind:click="deleteTheme" custom-style="height: 68rpx;color: #FF4852">删除主题</van-button>
</view>
</view>
</view>

@ -0,0 +1,66 @@
// pages/themeList/index.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})

@ -0,0 +1,3 @@
{
"usingComponents": {}
}

@ -0,0 +1,2 @@
<!--pages/themeList/index.wxml-->
<text>pages/themeList/index.wxml</text>

@ -0,0 +1 @@
/* pages/themeList/index.wxss */
Loading…
Cancel
Save