anchor.js
1.01 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
Component({
properties: {
url: {
type: String,
value: ''
},
// use for floors' click report
floorId: { // 楼层id
type: String,
value: ''
},
floorName: { // 楼层名称
type: String,
value: ''
},
floorIndex: { // 楼层序号(从1开始)
type: String,
value: ''
},
floorUrl: { // 楼层传参)
type: String,
value: ''
},
floorItemIndex: { // 楼层内部item的index(从1开始,所有楼层more按钮index传0)
type: String,
value: ''
}
},
methods: {
jumpTo: function(e) {
const {
floor_id,
floor_name,
floor_url,
floor_index,
floor_item_index
} = e.currentTarget.dataset;
this.triggerEvent('clickreport', {
F_ID: floor_id,
F_NAME: floor_name,
F_URL: floor_url,
F_INDEX: floor_index,
I_INDEX: floor_item_index
});
return global.router.goUrl(this.data.url);
}
}
});