分销中心报错修改、标题修改、加入分销跳转变更

version/0412
zhangtianning 9 months ago
parent 337458993b
commit 3008a44b8e
  1. 2
      pages.json
  2. 12
      pages/news3/JoinDistribution.vue
  3. 11
      pages/user/index.vue

@ -1115,7 +1115,7 @@
// "enablePullDownRefresh": true, // "enablePullDownRefresh": true,
"navigationStyle": "custom", "navigationStyle": "custom",
"navigationBarTextStyle": "black", "navigationBarTextStyle": "black",
"navigationBarTitleText": "加入分销" "navigationBarTitleText": "分销中心"
} }
}, },
{ {

@ -12,10 +12,12 @@
<view class="userInfo"> <view class="userInfo">
<image :src="$picUrl+'/static/news3/join.png'" mode="widthFix"></image> <image :src="$picUrl+'/static/news3/join.png'" mode="widthFix"></image>
<view class="userContent"> <view class="userContent">
<image :src="user.avatar_url" mode="aspectFill" class="avatar"></image> <view v-if="user">
<image src="{{user.avatar_url?'/static/news3/walletBg.png':'/static/news3/walletBg.png'}}" mode="aspectFill" class="avatar"></image>
</view>
<view class="user"> <view class="user">
<view class="userTop"> <view class="userTop">
<text class="name">{{ user.nick_name }}</text> <text class="name">{{ user.nick_name||'' }}</text>
<view class="flag"> <view class="flag">
分销商 分销商
</view> </view>
@ -81,11 +83,11 @@
// //
isLoading: true, isLoading: true,
// //
user: undefined, user: {},
// //
isDealer: false, isDealer: false,
// //
dealer: undefined, dealer: {},
// //
refereeName: undefined, refereeName: undefined,
// //
@ -119,7 +121,7 @@
// api // api
const data = result.data const data = result.data
app.isDealer = data.isDealer app.isDealer = data.isDealer
app.user = data.user app.user = data.user||{};
app.dealer = data.dealer app.dealer = data.dealer
app.refereeName = data.refereeName app.refereeName = data.refereeName
app.setting = data.setting app.setting = data.setting

@ -537,11 +537,12 @@
if(type==30){ if(type==30){
this.goJump('/pages/news3/JoinDistribution?dataType=all'); this.goJump('/pages/news3/JoinDistribution?dataType=all');
}else if(type==10 || type==20){ }else if(type==10 || type==20){
uni.showToast({ // uni.showToast({
title: '请先购买分销会员', // title: '',
icon: 'none', // icon: 'none',
duration: 2000 // duration: 2000
}) // })
this.goJump('/pages/member/index');
} }
}, },
openScrollTo(){ openScrollTo(){

Loading…
Cancel
Save