Commit 5c78f6f2 by 张卓

首页隔断

parent 9599a5bf
......@@ -283,11 +283,6 @@ export default {
},
onShow() {
// let linkVal = '/personalCenter/spokesmanCenter/mine/spokesmanHomePage?from=_goodsInfo'
// app.$themeToLink({
// type: 1,
// link:linkVal,
// });
this.getCartNum();
setTabBarActive.bind(this)(checkTabbarPage('/'));
this.$mp.page.onPageScroll= (el)=>{
......@@ -317,8 +312,23 @@ export default {
},
getSpokesmanInfo(extConfig) {
let linkVal = '/personalCenter/spokesmanCenter/mine/spokesmanHomePage?from=_goodsInfo';
console.log(1111112222233333,linkVal)
getMiniProgram().then(res=>{
app.globalData.spokesmanInfo = res;
if(
res&&
res!='-1'&&
res.distributorHomepage&&
res.distributorHomepage != 'null'&&
res.parentPartitionHomepageFlag == '1'
) {
// let linkVal = '/personalCenter/spokesmanCenter/mine/spokesmanHomePage?from=_goodsInfo'
app.$themeToLink({
type: 1,
link:linkVal,
});
}
getDistributorHomepage(app.globalData.spokesmanInfo).then(ele=>{
if(ele.id) {
this.getDistributorHomepageName = '我的小店';
......@@ -334,6 +344,7 @@ export default {
}else {
this.showSpokesManHome = false;
}
console.log(app.globalData.spokesmanInfo,555666)
if(app.globalData.spokesmanInfo&&app.globalData.spokesmanInfo.distributionModel == '1') {
this.showHomepage = true;
}else{
......
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