From d268ba8b9591e02cd3cc85e91075a211c075688f Mon Sep 17 00:00:00 2001 From: lfs3 Date: Fri, 26 Jul 2019 00:10:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E4=B8=80=E4=B8=8B=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/view/month-card.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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,