Commit 5c78f6f2 by 张卓

首页隔断

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