MenuBox.js
984 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
Component({
data: {},
properties: {
menuList: {
type: Array,
value: []
}
},
methods: {
toNewPage(e) {
const { item } = e.currentTarget.dataset
let url = '', para = {}
if (item.supplier == 'GL_ROAD_RESCUE') {
url = '/packageEquity/pages/road/index/index'
} else if (item.appearance == 1) {
para = {
supplier: item.supplier,
brandName: item.brandName,
location: true
}
const temp = JSON.stringify(para)
url = '/packageSaveMoney/pages/detail/detail'
} else if (item.appearance == 2) {
para = {
supplier: item.supplier,
brandName: item.brandName,
icon: item.equityIcon
}
const temp = JSON.stringify(para)
url = '/packageSaveMoney/pages/chargeDetail/chargeDetail'
}
wx.p.router.go(url, {param:para,notIntercept:true})
// wx.navigateTo({
// url
// })
}
}
})