recordItem.js
876 Bytes
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
Component({
/**
* 组件的属性列表
*/
properties: {
record: {
type: Object,
},
detailInfo: {
type: Object
},
hideBtn: Boolean
},
/**
* 组件的初始数据
*/
data: {
statusMap: {
'成交': { color: '#35C376', background: '#35c37614' },
'战败': { color: '#F24724', background: '#f2472414' }
},
itemOptions: [{
label: '服务门店',
key: 'merchantName'
}, {
label: '质检评分',
key: 'score'
}, {
label: '攻防评分',
key: 'gfScroe'
}]
},
/**
* 组件的方法列表
*/
methods: {
onViewItem(e) {
let { record, detailInfo } = this.data
record.storeManagerName = detailInfo.storeManagerName || record.salesName
wx.navigateTo({
url: `/packageCrew/pages/recordingDetail/recordingDetail?record=${JSON.stringify(record)}`,
})
}
},
attached() {
}
})