Showing
1 changed file
with
6 additions
and
2 deletions
@@ -28,15 +28,19 @@ | @@ -28,15 +28,19 @@ | ||
28 | return { | 28 | return { |
29 | visible: false, | 29 | visible: false, |
30 | waitingReport: [], | 30 | waitingReport: [], |
31 | - isVisible: false | 31 | + isVisible: false, |
32 | + pagePrefix: yoho.isiOS ? 'i' : (yoho.isAndroid ? 'a' : 'h5') | ||
32 | }; | 33 | }; |
33 | }, | 34 | }, |
34 | methods: { | 35 | methods: { |
35 | record(visible) { | 36 | record(visible) { |
37 | + | ||
38 | + | ||
39 | + | ||
36 | // 元素由不可见变为可见则记录,否则不记录 | 40 | // 元素由不可见变为可见则记录,否则不记录 |
37 | if (!this.isVisiable && visible) { | 41 | if (!this.isVisiable && visible) { |
38 | const param = { | 42 | const param = { |
39 | - P_NAME: this.pageName || '', // 页面名称 | 43 | + P_NAME: `${this.pagePrefix}${this.pageName}` || '', // 页面名称 |
40 | P_PARAM: this.pageParam || '', // 页面参数 | 44 | P_PARAM: this.pageParam || '', // 页面参数 |
41 | I_INDEX: this.index, // 内部item的序号 | 45 | I_INDEX: this.index, // 内部item的序号 |
42 | PRD_SKN: this.productSkn // 商品SKN (可选) | 46 | PRD_SKN: this.productSkn // 商品SKN (可选) |
-
Please register or login to post a comment