@@ -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 @@
-
+
订单确认
@@ -97,6 +97,7 @@ var qs = require("qs");
export default {
data() {
return {
+ uniqueId:'',
info: {
text: ""
},
@@ -303,6 +304,10 @@ export default {
}
},
mounted() {
+ let uuniqueId = Qs.parse(location.search.substring(1)).uniqueId
+ if(uuniqueId !== undefined && uuniqueId !== null && uuniqueId !== ""){
+ this.uniqueId =uuniqueId
+ }
this.getData();
this.goodsNo = this.getParam("goodsNo");
}
diff --git a/src/view/order-detail.vue b/src/view/order-detail.vue
index 6f0221a..5abd937 100644
--- a/src/view/order-detail.vue
+++ b/src/view/order-detail.vue
@@ -101,6 +101,7 @@ var qs = require("qs");
export default {
data() {
return {
+ uniqueId:'',
state: "",
stateText: "",
orderNo: "",
@@ -216,7 +217,7 @@ export default {
},
go(num) {
if (num == 1) {
- location.href = "/mall/web/vgoods/detail/" + this.info.goodsNo;
+ location.href = "/mall/web/vgoods/detail/" + this.info.goodsNo+ '?uniqueId='+ uniqueId;
} else if (num == 2) {
location.href = "/mall/web/appoint_index";
} else if (num == 3) {
@@ -347,6 +348,10 @@ export default {
}
},
mounted() {
+ let uuniqueId = Qs.parse(location.search.substring(1)).uniqueId
+ if(uuniqueId !== undefined && uuniqueId !== null && uuniqueId !== ""){
+ this.uniqueId =uuniqueId
+ }
this.orderNo = this.$route.params.id;
this.getData();
}