devMixin.js
906 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
module.exports = Behavior({
data: {
devList: [{
order: 0,
appId: 'wx0c181d09a93d5982',
path: 'pages/tab/ctrl',
text: '智能香氛等离子健康舒适系统'
}, {
order:1,
appId: 'wx9e9c52dfbcc5c8a0',
path: 'pages/lamplight/lamplight',
text: '豪车智控氛围灯'
},{
order:2,
appId:'wx51feceda9f533228',
path:'pages/home/index',
text:'小云记录仪'
},{
order: 3,
appId:'wx0c17d7f15dad5e6d',
path:'pages/index/index',
text:'智能车钥匙'
},{
order: 4,
text:'行车记录仪'
}]
},
methods:{
jumpDev(e) {
let {item} = e.currentTarget.dataset
if(item.appId)
wx.navigateToMiniProgram(item)
else {
wx.p.router.go('/packageMine/pages/device/tachograph/tachograph', {
notIntercept: true
})
}
}
}
})