diff --git a/src/view/month-card.vue b/src/view/month-card.vue index a641dbf..c0d3c16 100644 --- a/src/view/month-card.vue +++ b/src/view/month-card.vue @@ -86,7 +86,7 @@ var locationUrl = configs.locationUrl; export default { data() { return { - uniqueId:'', + uniqueId:this.$route.query.uniqueId, loading: false, getData: {}, couponType: { @@ -185,11 +185,13 @@ export default { }, mounted() { let uuniqueId = Qs.parse(location.search.substring(1)).uniqueId - if(uuniqueId !== undefined && uuniqueId !== null && uuniqueId !== ""){ - this.uniqueId =uuniqueId + var url = location.href + if(this.uniqueId !== undefined && this.uniqueId !== null && this.uniqueId !== ""){ + } // 初始化 this.handleInit(); + console.log('uniqueId:'+ this.uniqueId) this.wxShare({ couponNo: this.batchNo, source: 20,