Commit e6bc71cd by 程智春

云送礼海报

parents d14f6453 c55539ab
......@@ -214,25 +214,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) {
......@@ -345,9 +326,7 @@ export default {
console.log("卸载----------------", this.options);
},
onShareAppMessage(res) {
console.log('=======')
console.log(res)
console.log('=======')
console.log(
this.shareShopName,
"share",
......@@ -357,26 +336,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=${
......@@ -384,7 +353,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