Browse Source

处理 url

feature/feature-compatible
fengchengzhi 7 years ago
parent
commit
3c09170a04
1 changed files with 5 additions and 2 deletions
  1. 7
      src/view/poster.vue

7
src/view/poster.vue

@ -257,7 +257,9 @@
var coupon = this.getParam("no")
var sourceType = this.sourceType
var merchantNo = this.getParam("merchantNo")
var urls = encodeURIComponent(location.href)
var urls = location.href.toString();
var arrUrl = urls.split("?");
var urls = encodeURIComponent(arrUrl[0])
var imgUrl = encodeURIComponent(this.imgUrl)
if ( sourceType == 2 ){ //
this.wxShare({"couponNo":coupon,"source":10,"url":urls,"imgUrl":imgUrl})
@ -272,7 +274,8 @@
}
},
mounted() {
this.getNo()
this.getNo()
}
};

Loading…
Cancel
Save