dataBox.js
1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// packageEquity/pages/aiInspection/components/dataBox/dataBox.js
Component({
/**
* 组件的属性列表
*/
properties: {
data: Object
},
/**
* 组件的初始数据
*/
data: {
dataObject: [{
title: '预计接待批次',
tips: 'AI根据当日提交的营销录音做出的预估接待批次数',
key: 'batchNum'
},
{
title: '当日到店量',
tips: '驻店员工在当日驻店日报中填写的到店流量(会员权益/延保),即本人在当天接待的权益延保业务客户数',
key: 'enterReceptionBatch'
},
{
title: '异常占比',
tips: '异常占比 =(当日到店量 - 预计接待批次)/ 当日到店量',
key: 'abnormalProportion',
unit: '%'
}
]
},
/**
* 组件的方法列表
*/
methods: {
showTips(e) {
console.log(e)
const {
title,
tips
} = e.currentTarget.dataset.item
wx.showModal({
title,
content: tips,
showCancel: false,
confirmColor: '#347BFF'
})
}
}
})