Commit 166393ed by 李嘉林

不调用分销接口

parent 40e86b4f
...@@ -173,7 +173,8 @@ wx.onAppRoute(res => { ...@@ -173,7 +173,8 @@ wx.onAppRoute(res => {
let currentPage = getCurrentPages() let currentPage = getCurrentPages()
// let fromPath = currentPage[currentPage.length - 1].__displayReporter.showReferpagepath // let fromPath = currentPage[currentPage.length - 1].__displayReporter.showReferpagepath
new Promise((resolve) => { new Promise((resolve) => {
if (!spokesmanId) { // 冬奥会不调用分销接口
if (!spokesmanId && Store.state.mixid != 'CL') {
// 获取当前分销员 id // 获取当前分销员 id
spokesman.getSpokesmanidByShare().then(res => { spokesman.getSpokesmanidByShare().then(res => {
if (res.data.data.spokesmanId) { spokesmanId = res.data.data.spokesmanId } if (res.data.data.spokesmanId) { spokesmanId = res.data.data.spokesmanId }
......
...@@ -382,8 +382,11 @@ export default { ...@@ -382,8 +382,11 @@ export default {
this.themeColor = res this.themeColor = res
} }
} }
// 不是冬奥会项目不调用此接口
if(this.$store.state.mixid !='CL'){
// 新人有礼弹窗 // 新人有礼弹窗
this.newUserFun(); this.newUserFun();
}
}, },
onShow() { onShow() {
// 设置显示条件 // 设置显示条件
...@@ -396,7 +399,10 @@ export default { ...@@ -396,7 +399,10 @@ export default {
link:linkVal, link:linkVal,
}); });
} }
// 不是冬奥会项目不调用此接口
if(this.$store.state.mixid !='CL'){
this.getCartNum(); this.getCartNum();
}
if(checkTabbarPage('/')!=-1){ if(checkTabbarPage('/')!=-1){
this.active=checkTabbarPage('/') this.active=checkTabbarPage('/')
...@@ -521,7 +527,10 @@ export default { ...@@ -521,7 +527,10 @@ export default {
return JSON.stringify(pageData); return JSON.stringify(pageData);
}, },
init(pageList) { init(pageList) {
// 不是冬奥会项目不调用此接口
if(this.$store.state.mixid !='CL'){
this.getCartNum(); this.getCartNum();
}
this.active=checkTabbarPage('/'); this.active=checkTabbarPage('/');
this.setVisible(this.mpApp.globalData.pageList,(res)=>{ this.setVisible(this.mpApp.globalData.pageList,(res)=>{
this.pageInfo = res; this.pageInfo = res;
...@@ -859,7 +868,8 @@ export default { ...@@ -859,7 +868,8 @@ export default {
let newHref = '/pages/home/main'; let newHref = '/pages/home/main';
let title = app.globalData.shopInfo.shopName; let title = app.globalData.shopInfo.shopName;
let hasInvitationStatus = 0; let hasInvitationStatus = 0;
if(wx.getStorageSync("sessionid")) { // 不是冬奥会项目不调用此接口
if(wx.getStorageSync("sessionid") && this.$store.state.mixid !='CL') {
await app.fenxiaoModel.getSpokesmanidByShare().then(data=>{ await app.fenxiaoModel.getSpokesmanidByShare().then(data=>{
hasInvitationStatus = data.hasInvitationStatus; hasInvitationStatus = data.hasInvitationStatus;
}) })
......
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