From 4b1f4a4f2171a5d7cd876952c5196dd049ee579e Mon Sep 17 00:00:00 2001 From: fengchengzhi Date: Fri, 21 Sep 2018 05:37:17 +0800 Subject: [PATCH] url --- src/view/poster.vue | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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() } };