Commit 166393ed by 李嘉林

不调用分销接口

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