From e64f822f27a351f716d9c9c825043f5fec3a1bc3 Mon Sep 17 00:00:00 2001 From: fengchengzhi Date: Fri, 21 Sep 2018 06:25:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/view/poster.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/view/poster.vue b/src/view/poster.vue index aa99ede..11bb4ae 100644 --- a/src/view/poster.vue +++ b/src/view/poster.vue @@ -261,17 +261,15 @@ var imgUrl = encodeURIComponent(this.imgUrl) if ( sourceType == 2 ){ //指定优惠券 this.wxShare({"couponNo":no,"source":10,"url":urls,"imgUrl":imgUrl}) - } else if( sourceType == 1) { //通过商户默认推荐 - this.wxShare({"merchantNo":no,"source":10,"url":urls,"imgUrl":imgUrl}) } else if (sourceType == 3){ //通过别人分享 this.wxShare({"source":40,"url":urls,"imgUrl":imgUrl}) - } else { + } else { //通过商户默认推荐 this.wxShare({"merchantNo":this.merchantNo,"source":10,"url":urls,"imgUrl":imgUrl}) } } }, - mounted() { + mounted() { this.getNo() } };