From 5a7d49b0470998d9494c67111de977ff72f42d83 Mon Sep 17 00:00:00 2001 From: lfs3 Date: Mon, 22 Jul 2019 19:18:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E5=B9=BF=E4=BA=BA=E5=91=98=E6=A0=87?= =?UTF-8?q?=E8=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/view/goods-classify.vue | 10 ++++++++-- src/view/month-card.vue | 7 ++++++- src/view/order-check.vue | 7 ++++++- src/view/order-detail.vue | 7 ++++++- 4 files changed, 26 insertions(+), 5 deletions(-) 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 @@