Showing
3 changed files
with
16 additions
and
3 deletions
@@ -561,6 +561,20 @@ const yoho = { | @@ -561,6 +561,20 @@ const yoho = { | ||
561 | // tip(tipInfo); | 561 | // tip(tipInfo); |
562 | } | 562 | } |
563 | }, | 563 | }, |
564 | + | ||
565 | + goPage: function(action, params) { | ||
566 | + var url = window.location.protocol + '//m.yohobuy.com/'; | ||
567 | + | ||
568 | + if (this.isYohoBuy && window.yohoInterface) { | ||
569 | + url = url + '?openby:yohobuy=' + JSON.stringify({ | ||
570 | + action, | ||
571 | + params | ||
572 | + }); | ||
573 | + } | ||
574 | + | ||
575 | + $appLink.href = url; | ||
576 | + $appLink.click(); | ||
577 | + } | ||
564 | }; | 578 | }; |
565 | 579 | ||
566 | 580 |
@@ -63,7 +63,7 @@ export default { | @@ -63,7 +63,7 @@ export default { | ||
63 | this.show = !this.show; | 63 | this.show = !this.show; |
64 | }, | 64 | }, |
65 | onUseClick() { | 65 | onUseClick() { |
66 | - this.$yoho.goCouponProductList({ | 66 | + this.$yoho.goPage('go.couponProductList', { |
67 | coupon_code: this.item.coupon_code, | 67 | coupon_code: this.item.coupon_code, |
68 | coupon_id: this.item.coupon_id, | 68 | coupon_id: this.item.coupon_id, |
69 | title: '优惠活动商品', | 69 | title: '优惠活动商品', |
@@ -19,7 +19,6 @@ | @@ -19,7 +19,6 @@ | ||
19 | </template> | 19 | </template> |
20 | 20 | ||
21 | <script> | 21 | <script> |
22 | - | ||
23 | export default { | 22 | export default { |
24 | name: 'Headers', | 23 | name: 'Headers', |
25 | props: { | 24 | props: { |
@@ -81,7 +80,7 @@ export default { | @@ -81,7 +80,7 @@ export default { | ||
81 | ]; | 80 | ]; |
82 | }, | 81 | }, |
83 | onBackClick() { | 82 | onBackClick() { |
84 | - this.$yoho.goNewBack({}); | 83 | + this.$yoho.goBack({}); |
85 | }, | 84 | }, |
86 | onHelpClick() { | 85 | onHelpClick() { |
87 | this.$yoho.goNewPage({ | 86 | this.$yoho.goNewPage({ |
-
Please register or login to post a comment