|
|
|
@ -166,14 +166,30 @@ Page({
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
handlerCopy() {
|
|
|
|
|
if (this.data.affections == 1) {
|
|
|
|
|
this.setData({
|
|
|
|
|
affections: '正面',
|
|
|
|
|
})
|
|
|
|
|
} else if (this.data.affections == 2) {
|
|
|
|
|
this.setData({
|
|
|
|
|
affections: '负面',
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
this.setData({
|
|
|
|
|
affections: '中性',
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
console.log('fref',this.data.affections)
|
|
|
|
|
wx.setClipboardData({
|
|
|
|
|
data: this.data.uri,
|
|
|
|
|
data: `发布时间:${this.data.sourcetime}\n来源: ${this.data.source}\n标题: ${doStr(this.data.title, 70)}\n链接:${this.data.uri}\n调性:${this.data.affections}\n作者:${this.data.user_author}` || '',
|
|
|
|
|
success: () => {
|
|
|
|
|
this.setData({
|
|
|
|
|
showDialog: true
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
handlerSource(e) {
|
|
|
|
|
const row = e.currentTarget.dataset.row;
|
|
|
|
|