diff --git a/pages.json b/pages.json index 4de9488..610c063 100644 --- a/pages.json +++ b/pages.json @@ -1115,7 +1115,7 @@ // "enablePullDownRefresh": true, "navigationStyle": "custom", "navigationBarTextStyle": "black", - "navigationBarTitleText": "加入分销" + "navigationBarTitleText": "分销中心" } }, { diff --git a/pages/news3/JoinDistribution.vue b/pages/news3/JoinDistribution.vue index 0d549aa..38b3d00 100644 --- a/pages/news3/JoinDistribution.vue +++ b/pages/news3/JoinDistribution.vue @@ -12,10 +12,12 @@ - + + + - {{ user.nick_name }} + {{ user.nick_name||'' }} 分销商 @@ -81,11 +83,11 @@ // 正在加载 isLoading: true, // 当前用户信息 - user: undefined, + user: {}, // 当前是否为分销商 isDealer: false, // 当前分销商信息 - dealer: undefined, + dealer: {}, // 推荐人昵称 refereeName: undefined, // 分销设置 @@ -119,7 +121,7 @@ // api数据赋值 const data = result.data app.isDealer = data.isDealer - app.user = data.user + app.user = data.user||{}; app.dealer = data.dealer app.refereeName = data.refereeName app.setting = data.setting diff --git a/pages/user/index.vue b/pages/user/index.vue index 85544c1..bd86fd7 100644 --- a/pages/user/index.vue +++ b/pages/user/index.vue @@ -537,11 +537,12 @@ if(type==30){ this.goJump('/pages/news3/JoinDistribution?dataType=all'); }else if(type==10 || type==20){ - uni.showToast({ - title: '请先购买分销会员', - icon: 'none', - duration: 2000 - }) + // uni.showToast({ + // title: '请先购买分销会员', + // icon: 'none', + // duration: 2000 + // }) + this.goJump('/pages/member/index'); } }, openScrollTo(){