Merge branch 'release/6.5.1' into 'master'
commit See merge request !74
Showing
4 changed files
with
4 additions
and
4 deletions
@@ -32,7 +32,7 @@ export default { | @@ -32,7 +32,7 @@ export default { | ||
32 | let {product_skn} = product; | 32 | let {product_skn} = product; |
33 | let href = `/product/pro_${product_skn}.html`; | 33 | let href = `/product/pro_${product_skn}.html`; |
34 | 34 | ||
35 | - if (this.yoho.env.isYohoBuy) { | 35 | + if ((this.$yoho && this.$yoho.isYohoBuy) || this.yoho.env.isYohoBuy) { |
36 | let goParams = { | 36 | let goParams = { |
37 | action: 'go.productDetail', | 37 | action: 'go.productDetail', |
38 | params: { | 38 | params: { |
@@ -27,7 +27,7 @@ export default { | @@ -27,7 +27,7 @@ export default { | ||
27 | } | 27 | } |
28 | }, | 28 | }, |
29 | ['yoho.visible'](visible) { | 29 | ['yoho.visible'](visible) { |
30 | - if (visible && this.yoho.env.isiOS) { | 30 | + if (visible && this.$yoho && this.$yoho.isiOS) { |
31 | this.checkReport(void 0, true); | 31 | this.checkReport(void 0, true); |
32 | } | 32 | } |
33 | } | 33 | } |
@@ -122,7 +122,7 @@ export default { | @@ -122,7 +122,7 @@ export default { | ||
122 | ResourceBox | 122 | ResourceBox |
123 | }, | 123 | }, |
124 | mounted() { | 124 | mounted() { |
125 | - if (this.yoho.env.isAndroid) { | 125 | + if (this.$yoho.isAndroid) { |
126 | let appVersion = this.$cookie.get('app_version'); | 126 | let appVersion = this.$cookie.get('app_version'); |
127 | 127 | ||
128 | if (appVersion && typeof appVersion === 'string') { | 128 | if (appVersion && typeof appVersion === 'string') { |
-
Please register or login to post a comment