Commit a73a5b73 by 张卓

分销隔断

parent 68673523
...@@ -145,6 +145,7 @@ export default { ...@@ -145,6 +145,7 @@ export default {
showHomepage: false,//分销商首页入口 showHomepage: false,//分销商首页入口
applySucessEntry: false,//成为分销弹框 applySucessEntry: false,//成为分销弹框
getDistributorHomepageName: '',//小店入口名称 getDistributorHomepageName: '',//小店入口名称
toHomePage: false,//是否分销隔断
}; };
}, },
components:{ components:{
...@@ -285,6 +286,13 @@ export default { ...@@ -285,6 +286,13 @@ export default {
}, },
onShow() { onShow() {
if(this.toHomePage) {
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)=>{
...@@ -315,7 +323,6 @@ export default { ...@@ -315,7 +323,6 @@ export default {
}, },
getSpokesmanInfo(extConfig) { getSpokesmanInfo(extConfig) {
let linkVal = '/personalCenter/spokesmanCenter/mine/spokesmanHomePage?from=_goodsInfo'; 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( if(
...@@ -325,6 +332,7 @@ export default { ...@@ -325,6 +332,7 @@ export default {
res.distributorHomepage != 'null'&& res.distributorHomepage != 'null'&&
res.parentPartitionHomepageFlag == '1' res.parentPartitionHomepageFlag == '1'
) { ) {
this.toHomePage = true;
// let linkVal = '/personalCenter/spokesmanCenter/mine/spokesmanHomePage?from=_goodsInfo' // let linkVal = '/personalCenter/spokesmanCenter/mine/spokesmanHomePage?from=_goodsInfo'
app.$themeToLink({ app.$themeToLink({
type: 1, type: 1,
......
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