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

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,
"navigationStyle": "custom",
"navigationBarTextStyle": "black",
"navigationBarTitleText": "加入分销"
"navigationBarTitleText": "分销中心"
}
},
{

@ -12,10 +12,12 @@
<view class="userInfo">
<image :src="$picUrl+'/static/news3/join.png'" mode="widthFix"></image>
<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="userTop">
<text class="name">{{ user.nick_name }}</text>
<text class="name">{{ user.nick_name||'' }}</text>
<view class="flag">
分销商
</view>
@ -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

@ -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(){

Loading…
Cancel
Save