Commit 55977c02 by 程默

1

parent be538a91
......@@ -143,8 +143,6 @@ export default {
}else if(querys.length == 3){
this.params += `&userId=${querys[2]}`
}
} else if (querys[0] == "activty") {
//活动页面activty_turntable_123
this.params += `&pageInfo=${scene}`;
......@@ -193,25 +191,6 @@ export default {
},
methods: {
init() {
// 弃用小程序地位
// let that = this;
// 可以通过 wx.getSetting 先查询一下用户是否授权了 "scope.record" 这个 scope
// wx.getSetting({
// success(res) {
// console.log(res, "sdf1233");
// if (!res.authSetting["scope.userLocation"]) {
// wx.authorize({
// scope: "scope.userLocation",
// success() {
// that.getLocationHandle();
// }
// });
// } else {
// that.getLocationHandle();
// }
// }
// });
// 获取小程序开启的订阅消息配置
shop.getWxMiniSubscribeMessageConfig().then(res => {
if (res.data.code == 200) {
......@@ -307,9 +286,7 @@ export default {
console.log("卸载----------------", this.options);
},
onShareAppMessage(res) {
console.log('=======')
console.log(res)
console.log('=======')
console.log(
this.shareShopName,
"share",
......@@ -319,26 +296,16 @@ export default {
);
let url = ''
console.log(this.newWindowHref + 'this.newWindowHref')
//分享路径
if(this.newWindowHref){
url = this.newWindowHref;
}else{
url = res.webViewUrl;
}
//分享页面去掉登录态
if (url.indexOf("sessionid") > -1) {
url = url.split("?")[0] + "?mixid=" + this.shopId;
}
//分享页面白名单 白名单以外的分享页面为首页
// if (!this.checkPageUrl(url)) {
// url = this.baseUrl + "?mixid=" + this.shopId;
// }
//有订单为送礼订单分享--分销员信息由h5添加
// if (this.shareOrderSn != "") {
// url = `${this.baseUrl}/activty/receivingGift?mixid=${
// this.shopId
// }&orderSn=${this.shareOrderSn}&shareTid=${this.shareTid}`;
// }
//分销员推广页面 默认分享分销员中心页面
if (url.indexOf("/personalCenter/spokesmanCenter/mine/popularize") > -1) {
url = `${this.baseUrl}/personalCenter/spokesmanCenter?mixid=${
......@@ -346,7 +313,7 @@ export default {
}`;
}
console.log('url---------------' + url)
console.log('shareUrl---------------' + url)
//增加分销员信息
if(this.hasInvitationStatus == 1 && url.indexOf('spokesmanGroupId')==-1){
this.shareUrl = url+ this.newHref
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment