diff --git a/src/view/poster.vue b/src/view/poster.vue index 0ac32fd..f57936c 100644 --- a/src/view/poster.vue +++ b/src/view/poster.vue @@ -257,9 +257,7 @@ var coupon = this.getParam("no") var sourceType = this.sourceType var merchantNo = this.getParam("merchantNo") - var urls = location.href.toString(); - var arrUrl = urls.split("?"); - var urls = encodeURIComponent(arrUrl[0]) + var urls = encodeURIComponent(location.href) var imgUrl = encodeURIComponent(this.imgUrl) if ( sourceType == 2 ){ //指定优惠券 this.wxShare({"couponNo":coupon,"source":10,"url":urls,"imgUrl":imgUrl}) @@ -274,9 +272,7 @@ } }, mounted() { - - this.getNo() - + this.getNo() } };