diff --git a/src/view/goods-classify.vue b/src/view/goods-classify.vue index cdcca49..e442a27 100644 --- a/src/view/goods-classify.vue +++ b/src/view/goods-classify.vue @@ -20,9 +20,9 @@

{{item.combinationName}}

- +
- +
@@ -56,9 +56,11 @@ import goodsApi from "../models/goods-model.js"; //import configs from '../configs'; import { Alert, Toast, Popup, Loading } from "vux"; import BScroll from "better-scroll"; +import Qs from 'qs'; export default { data() { return { + uniqueId:'', no: 0, id: 0, c_no: 0, @@ -257,6 +259,10 @@ export default { } }, mounted() { + let uuniqueId = Qs.parse(location.search.substring(1)).uniqueId + if(uuniqueId !== undefined && uuniqueId !== null && uuniqueId !== ""){ + this.uniqueId =uuniqueId + } this.getParams(); this.ShareWenXin(); } diff --git a/src/view/month-card.vue b/src/view/month-card.vue index e11c6e7..93171b0 100644 --- a/src/view/month-card.vue +++ b/src/view/month-card.vue @@ -85,6 +85,7 @@ var locationUrl = configs.locationUrl; export default { data() { return { + uniqueId:'', loading: false, getData: {}, couponType: { @@ -126,7 +127,7 @@ export default { // 立即使用优惠券 handleUseCoupon() { window.location.href = - locationUrl + "/mall/web/vgoods/detail/" + this.getData.goodsNo; + locationUrl + "/mall/web/vgoods/detail/" + this.getData.goodsNo+ '?uniqueId='+ uniqueId; }, // 领取优惠券 @@ -182,6 +183,10 @@ export default { } }, mounted() { + let uuniqueId = Qs.parse(location.search.substring(1)).uniqueId + if(uuniqueId !== undefined && uuniqueId !== null && uuniqueId !== ""){ + this.uniqueId =uuniqueId + } // 初始化 this.handleInit(); this.wxShare({ diff --git a/src/view/order-check.vue b/src/view/order-check.vue index c73fe38..2c42224 100644 --- a/src/view/order-check.vue +++ b/src/view/order-check.vue @@ -1,6 +1,6 @@