|
|
@@ -59,8 +59,11 @@ export default {
|
|
|
uni.setStorageSync("BillHerf", window.location.href);
|
|
|
},
|
|
|
onShow() {
|
|
|
+ this.backUrl();
|
|
|
backOpenId(this.login);
|
|
|
- // authorize();
|
|
|
+ if (uni.getSystemInfoSync().platform != "ios") {
|
|
|
+ authorize();
|
|
|
+ }
|
|
|
this.getSharePoster();
|
|
|
},
|
|
|
components: {
|
|
|
@@ -122,7 +125,7 @@ export default {
|
|
|
title: this.billDetail.activityName,
|
|
|
desc: data.advertise.name,
|
|
|
imgUrl: this.$method.splitImgHost(data.goods.name),
|
|
|
- link: window.location.href,
|
|
|
+ link: this.backUrl(),
|
|
|
})
|
|
|
.then((res) => {
|
|
|
this.$method.isLogin() && this.bindLink();
|
|
|
@@ -134,6 +137,13 @@ export default {
|
|
|
this.$store.dispatch("getUserInfo");
|
|
|
});
|
|
|
},
|
|
|
+ backUrl() {
|
|
|
+ let url = window.location.href;
|
|
|
+ if (url.includes("&code")) {
|
|
|
+ url = url.split("&code")[0];
|
|
|
+ }
|
|
|
+ return url;
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|