|
|
|
@ -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}) |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|