Commit e6bc71cd by 程智春

云送礼海报

parents d14f6453 c55539ab
...@@ -214,25 +214,6 @@ export default { ...@@ -214,25 +214,6 @@ export default {
}, },
methods: { methods: {
init() { 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 => { shop.getWxMiniSubscribeMessageConfig().then(res => {
if (res.data.code == 200) { if (res.data.code == 200) {
...@@ -345,9 +326,7 @@ export default { ...@@ -345,9 +326,7 @@ export default {
console.log("卸载----------------", this.options); console.log("卸载----------------", this.options);
}, },
onShareAppMessage(res) { onShareAppMessage(res) {
console.log('=======')
console.log(res) console.log(res)
console.log('=======')
console.log( console.log(
this.shareShopName, this.shareShopName,
"share", "share",
...@@ -357,26 +336,16 @@ export default { ...@@ -357,26 +336,16 @@ export default {
); );
let url = '' let url = ''
console.log(this.newWindowHref + 'this.newWindowHref') console.log(this.newWindowHref + 'this.newWindowHref')
//分享路径
if(this.newWindowHref){ if(this.newWindowHref){
url = this.newWindowHref; url = this.newWindowHref;
}else{ }else{
url = res.webViewUrl; url = res.webViewUrl;
} }
//分享页面去掉登录态 //分享页面去掉登录态
if (url.indexOf("sessionid") > -1) { if (url.indexOf("sessionid") > -1) {
url = url.split("?")[0] + "?mixid=" + this.shopId; 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) { if (url.indexOf("/personalCenter/spokesmanCenter/mine/popularize") > -1) {
url = `${this.baseUrl}/personalCenter/spokesmanCenter?mixid=${ url = `${this.baseUrl}/personalCenter/spokesmanCenter?mixid=${
...@@ -384,7 +353,7 @@ export default { ...@@ -384,7 +353,7 @@ export default {
}`; }`;
} }
console.log('url---------------' + url) console.log('shareUrl---------------' + url)
//增加分销员信息 //增加分销员信息
if(this.hasInvitationStatus == 1 && url.indexOf('spokesmanGroupId')==-1){ if(this.hasInvitationStatus == 1 && url.indexOf('spokesmanGroupId')==-1){
this.shareUrl = url+ this.newHref 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