You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.2 KiB

const app = getApp();
Page({
data: {
tailDataList: [],
copyShow: false,
copyData: {},
},
onShow() {
this.getData();
},
getData() {
app.globalData.request({
action: 'getList0528', //尾翼信息列表
token: 't%2BrswgjvzGM=',
sType: 'BrandWeiYi',
sTimeType: wx.getStorageSync('sTimeType') || 34,
sStartTime: wx.getStorageSync('sStartTime') || '',
sEndTime: wx.getStorageSync('sEndTime') || '',
sBrand: wx.getStorageSync('sBrand') || '',
sSeriesName: wx.getStorageSync('sSeriesName') || '',
iPageIndex: 1,
iPageSize: 25
}).then(res => {
this.setData({tailDataList: res})
});
},
toEventDetail(event) {
let cpdt = event.currentTarget.dataset.id._source
this.setData({copyShow: true, copyData: cpdt});
let str = '发布时间:'+cpdt.sourcetime+'来源:'+cpdt.source+'标题:'+cpdt.srctitle+'链接:'+cpdt.url+'调性:'+(cpdt.affections == 1?'正面':cpdt.affections == 2?'中性':'负面')+'作者:'+cpdt.user_author
wx.setClipboardData({
data: str,
})
},
})