Authored by htoooth

fix js

... ... @@ -561,6 +561,20 @@ const yoho = {
// tip(tipInfo);
}
},
goPage: function(action, params) {
var url = window.location.protocol + '//m.yohobuy.com/';
if (this.isYohoBuy && window.yohoInterface) {
url = url + '?openby:yohobuy=' + JSON.stringify({
action,
params
});
}
$appLink.href = url;
$appLink.click();
}
};
... ...
... ... @@ -63,7 +63,7 @@ export default {
this.show = !this.show;
},
onUseClick() {
this.$yoho.goCouponProductList({
this.$yoho.goPage('go.couponProductList', {
coupon_code: this.item.coupon_code,
coupon_id: this.item.coupon_id,
title: '优惠活动商品',
... ...
... ... @@ -19,7 +19,6 @@
</template>
<script>
export default {
name: 'Headers',
props: {
... ... @@ -81,7 +80,7 @@ export default {
];
},
onBackClick() {
this.$yoho.goNewBack({});
this.$yoho.goBack({});
},
onHelpClick() {
this.$yoho.goNewPage({
... ...