|
|
@@ -56,12 +56,11 @@ export default {
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
this.options = options;
|
|
|
- this.share();
|
|
|
uni.setStorageSync("BillHerf", window.location.href);
|
|
|
},
|
|
|
onShow() {
|
|
|
backOpenId(this.login);
|
|
|
- authorize();
|
|
|
+ // authorize();
|
|
|
this.getSharePoster();
|
|
|
},
|
|
|
components: {
|
|
|
@@ -72,7 +71,9 @@ export default {
|
|
|
getSharePoster() {
|
|
|
getSharePoster(this.options).then((res) => {
|
|
|
this.billDetail = res;
|
|
|
- this.posterConfig = this.changeData(JSON.parse(res.posterConfig));
|
|
|
+ let posterConfig = JSON.parse(res.posterConfig);
|
|
|
+ this.posterConfig = this.changeData(posterConfig);
|
|
|
+ this.share(posterConfig);
|
|
|
});
|
|
|
},
|
|
|
changeData(data) {
|
|
|
@@ -115,12 +116,12 @@ export default {
|
|
|
distributionId: this.options.distributionId,
|
|
|
});
|
|
|
},
|
|
|
- share() {
|
|
|
+ share(data) {
|
|
|
wechat
|
|
|
.share({
|
|
|
- title: "杨大毛非常帅",
|
|
|
- desc: "JAVA超级专家",
|
|
|
- imgUrl: "",
|
|
|
+ title: this.billDetail.activityName,
|
|
|
+ desc: data.advertise.name,
|
|
|
+ imgUrl: this.$method.splitImgHost(data.goods.name),
|
|
|
link: window.location.href,
|
|
|
})
|
|
|
.then((res) => {
|