修复pages/history/index
This commit is contained in:
@@ -214,6 +214,19 @@ Page({
|
||||
this.fetchList()
|
||||
},
|
||||
|
||||
showTokenWeight(e) {
|
||||
const token = e.currentTarget.dataset.token
|
||||
const weight = e.currentTarget.dataset.weight
|
||||
const weightNum = Number(weight || 0)
|
||||
const direction = weightNum >= 0 ? '倾向垃圾判定' : '倾向正常判定'
|
||||
wx.showModal({
|
||||
title: '关键词权重',
|
||||
content: `关键词"${token}"\n权重贡献:${weightNum >= 0 ? '+' : ''}${weightNum.toFixed(4)}\n(${direction})`,
|
||||
showCancel: false,
|
||||
confirmText: '关闭'
|
||||
})
|
||||
},
|
||||
|
||||
removeItem(e) {
|
||||
const id = Number(e.currentTarget.dataset.id)
|
||||
wx.showModal({
|
||||
|
||||
Reference in New Issue
Block a user