Browse Source

分享

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

12
src/view/poster.vue

@ -232,6 +232,8 @@
this.getPoster2()
} else if (this.sourceType == 1){ //
this.getPoster()
} else if (this.sourceType == 3){
this.imgSrc = "http://1hjz.3ncto.com.cn" + no + "?" + Date.now();
}
},
@ -250,15 +252,15 @@
var sourceType = this.sourceType
var merchantNo = this.getParam("merchantNo")
var urls = encodeURIComponent(location.href)
var imgUrl = encodeURIComponent(this.imgUrl)
if ( sourceType == 2 ){ //
this.wxShare({"couponNo":coupon,"source":10,"url":urls,imgUrl:this.imgUrl})
this.wxShare({"couponNo":coupon,"source":10,"url":urls,imgUrl:imgUrl})
} else if( sourceType == 1) { //
this.wxShare({"merchantNo":merchantNo,"source":10,"url":urls,imgUrl:this.imgUrl})
this.wxShare({"merchantNo":merchantNo,"source":10,"url":urls,imgUrl:imgUrl})
} else if (sourceType == 3){ //
this.wxShare({"source":40,"url":urls,imgUrl:this.imgUrl})
this.imgSrc = "http://1hjz.3ncto.com.cn" + coupon
this.wxShare({"source":40,"url":urls,imgUrl:this.imgUrl})
} else {
this.wxShare({"merchantNo":this.merchantNo,"source":10,"url":urls,imgUrl:this.imgUrl})
this.wxShare({"merchantNo":this.merchantNo,"source":10,"url":urls,imgUrl:imgUrl})
}
}

Loading…
Cancel
Save