|
|
@ -1277,7 +1277,7 @@ |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<!-- <v-link :to="detail.status!=2?'/pages/auth/index':''" tag="div"--> |
|
|
<!-- <v-link :to="detail.status!=2?'/pages/auth/index':''" tag="div"--> |
|
|
<v-link v-if="isLogin" :to="detail.status != 2 ? '/pages/auth/index' : '/pages/auth/index'" tag="div" |
|
|
<v-link v-if="false" :to="detail.status != 2 ? '/pages/auth/index' : '/pages/auth/index'" tag="div" |
|
|
class="bg-form-panel-3 p-xs m-xs color-theme-1 d-flex justify-between align-center"> |
|
|
class="bg-form-panel-3 p-xs m-xs color-theme-1 d-flex justify-between align-center"> |
|
|
<view class=" d-flex align-center"> |
|
|
<view class=" d-flex align-center"> |
|
|
<van-icon name="manager" class="fn-18" /> |
|
|
<van-icon name="manager" class="fn-18" /> |
|
|
@ -1286,6 +1286,16 @@ |
|
|
<!-- <text class="bg-theme-1 color-white p-x-xs p-y-xxs rounded" v-if="detail.status!=2">{{$t('first.a0')}}</text> --> |
|
|
<!-- <text class="bg-theme-1 color-white p-x-xs p-y-xxs rounded" v-if="detail.status!=2">{{$t('first.a0')}}</text> --> |
|
|
<!-- <text class="bg-theme-1 color-white p-x-xs p-y-xxs rounded" v-else>{{$t('auth.a3')}}</text> --> |
|
|
<!-- <text class="bg-theme-1 color-white p-x-xs p-y-xxs rounded" v-else>{{$t('auth.a3')}}</text> --> |
|
|
</v-link> |
|
|
</v-link> |
|
|
|
|
|
<v-link :to="detail.status != 2 ? '/pages/auth/index' : '/pages/auth/index'" class=" p-xs m-xs d-flex justify-between align-center" v-if="isLogin"> |
|
|
|
|
|
<view style="display: flex;"> |
|
|
|
|
|
<image src="@/assets/img/home/login.png" mode="aspectFit" class="logine"></image> |
|
|
|
|
|
<image src="@/assets/img/home/Havelogged.png" mode="aspectFit" class="havelogg" v-if="detail.status == 2"></image> |
|
|
|
|
|
<view style="margin-left: 26rpx;display: flex;align-items: center;"> |
|
|
|
|
|
<view class="color-light username">{{username}}</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
<!-- <van-icon name="arrow" class="fn-18" /> --> |
|
|
|
|
|
</v-link> |
|
|
<!-- <view class="personalCenter-center border-b border-gray-5"> |
|
|
<!-- <view class="personalCenter-center border-b border-gray-5"> |
|
|
<view class="d-flex justify-around"> |
|
|
<view class="d-flex justify-around"> |
|
|
<v-link to="/pages/assets/recharge" tag="div" class="d-flex flex-col align-center"> |
|
|
<v-link to="/pages/assets/recharge" tag="div" class="d-flex flex-col align-center"> |
|
|
@ -1506,6 +1516,12 @@ export default { |
|
|
isLogin() { |
|
|
isLogin() { |
|
|
return Boolean(uni.getStorageSync("token")) |
|
|
return Boolean(uni.getStorageSync("token")) |
|
|
}, |
|
|
}, |
|
|
|
|
|
// 获取用户登录后的名字 |
|
|
|
|
|
username(){ |
|
|
|
|
|
const name = uni.getStorageSync("_user_login") |
|
|
|
|
|
const username = name.data.user.username |
|
|
|
|
|
return username |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
watch: { |
|
|
watch: { |
|
|
isShow(n) { |
|
|
isShow(n) { |
|
|
@ -1978,6 +1994,26 @@ export default { |
|
|
box-sizing: border-box; |
|
|
box-sizing: border-box; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.username{ |
|
|
|
|
|
font-size: 18px; |
|
|
|
|
|
font-weight: bold; |
|
|
|
|
|
margin-bottom: 3px; |
|
|
|
|
|
} |
|
|
|
|
|
.logine{ |
|
|
|
|
|
// background: url('@/assets/img/home/Havelogged.png'); |
|
|
|
|
|
width: 96rpx;height: 96rpx; |
|
|
|
|
|
} |
|
|
|
|
|
.havelogg{ |
|
|
|
|
|
position: relative; |
|
|
|
|
|
left: -35rpx; |
|
|
|
|
|
top: 60rpx; |
|
|
|
|
|
height: 28rpx; |
|
|
|
|
|
border:1px solid #000000; |
|
|
|
|
|
background-color: #000000; |
|
|
|
|
|
border-radius: 50%; |
|
|
|
|
|
width: 28rpx; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
.nav_bar { |
|
|
.nav_bar { |
|
|
width: 100%; |
|
|
width: 100%; |
|
|
height: 50px; |
|
|
height: 50px; |
|
|
|