|
|
|
@ -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 |
|
|
|
|