|
|
@ -34,21 +34,30 @@ |
|
|
|
<view class="user"> |
|
|
|
|
|
|
|
<!-- 实名认证 --> |
|
|
|
<view class="auth"> |
|
|
|
<uv-cell |
|
|
|
<view class="auth" v-if="numInfo.status != '1'" @click="$utils.navigateTo('/pages_order/auth/certification')"> |
|
|
|
<uv-cell |
|
|
|
icon="setting-fill" |
|
|
|
title="完成实名认证,信息优先推荐!" |
|
|
|
value="去认证" |
|
|
|
isLink></uv-cell> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="auth" v-else @click="$utils.navigateTo('/pages_order/auth/certification')"> |
|
|
|
<uv-cell |
|
|
|
icon="setting-fill" |
|
|
|
title="您已完成认证!" |
|
|
|
value="去查看" |
|
|
|
isLink></uv-cell> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 轮播图 --> |
|
|
|
<view class="swipe"> |
|
|
|
<uv-swiper |
|
|
|
:list="bannerList" |
|
|
|
indicator |
|
|
|
height="220rpx" |
|
|
|
keyName="url"></uv-swiper> |
|
|
|
keyName="image"></uv-swiper> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
@ -199,7 +208,7 @@ |
|
|
|
tabber, |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
...mapState(['userInfo', 'role']), |
|
|
|
...mapState(['userInfo', 'role','banner',]), |
|
|
|
headImage(){ |
|
|
|
return this.userInfo.headImage |
|
|
|
}, |
|
|
@ -208,27 +217,31 @@ |
|
|
|
}, |
|
|
|
phone(){ |
|
|
|
return this.userInfo.phone |
|
|
|
} |
|
|
|
}, |
|
|
|
bannerList(){ |
|
|
|
return this.banner.filter(n => n.type == 1) |
|
|
|
}, |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
show: false, |
|
|
|
bannerList: [ |
|
|
|
{ |
|
|
|
url: 'https://cdn.uviewui.com/uview/swiper/swiper3.png', |
|
|
|
}, |
|
|
|
{ |
|
|
|
url: 'https://cdn.uviewui.com/uview/swiper/swiper2.png', |
|
|
|
}, |
|
|
|
{ |
|
|
|
url: 'https://cdn.uviewui.com/uview/swiper/swiper3.png', |
|
|
|
}, |
|
|
|
], |
|
|
|
// bannerList: [ |
|
|
|
// { |
|
|
|
// url: 'https://cdn.uviewui.com/uview/swiper/swiper3.png', |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// url: 'https://cdn.uviewui.com/uview/swiper/swiper2.png', |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// url: 'https://cdn.uviewui.com/uview/swiper/swiper3.png', |
|
|
|
// }, |
|
|
|
// ], |
|
|
|
numInfo : {}, |
|
|
|
} |
|
|
|
}, |
|
|
|
onShow() { |
|
|
|
this.$store.commit('getUserInfo') |
|
|
|
this.$store.commit('getBanner') |
|
|
|
//判断如果是登录状态则获取信息 |
|
|
|
this.getUserCenterData(); |
|
|
|
}, |
|
|
|