|
|
|
@ -21,11 +21,25 @@ |
|
|
|
<image v-else class="image" src="/static/imgs/mine/non-certified-icon.png"></image> |
|
|
|
</view> |
|
|
|
<view style="margin-top: 10rpx"> |
|
|
|
<text style="font-size: 26rpx; color: #fff; font-weight: 400">{{ userInfo.supplierName }}</text> |
|
|
|
<text style="font-size: 26rpx; color: #fff; font-weight: 400; word-break: break-all">{{ userInfo.supplierName }}</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="operation"></view> |
|
|
|
<view class="operation"> |
|
|
|
<view class="box"> |
|
|
|
<view class="container" @click="go2('message')"> |
|
|
|
<image class="icon" src="/static/imgs/mine/msg-icon.png"></image> |
|
|
|
<view v-if="messageNum > 0" class="number"> |
|
|
|
<text class="text">{{ messageNum }}</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<image class="icon" @click="go2('setting')" src="/static/imgs/mine/setting-icon.png"></image> |
|
|
|
</view> |
|
|
|
<view class="box"> |
|
|
|
<text style="font-size: 24rpx; color: #fff; flex-shrink: 0">切换账号</text> |
|
|
|
<image class="icon" style="width: 24rpx; height: 24rpx; margin-left: 8rpx" src="/static/imgs/mine/toggle-icon.png"></image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="vip-area"> |
|
|
|
<view class="vip-content"> |
|
|
|
@ -49,6 +63,7 @@ |
|
|
|
<script> |
|
|
|
import { exit, go2 } from '@/utils/hook.js' |
|
|
|
import { fddEnterpriseStatus } from '@/enums/index.js' |
|
|
|
import { getBaseInfo } from '@/apis/commonApi.js' |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
@ -58,7 +73,9 @@ export default { |
|
|
|
supplierName: this.$store.state.supplierInfo.name, |
|
|
|
fddEnterpriseStatus: this.$store.state.supplierInfo.fddEnterpriseStatus |
|
|
|
}, |
|
|
|
fddStatus: Object.freeze(fddEnterpriseStatus) |
|
|
|
fddStatus: Object.freeze(fddEnterpriseStatus), |
|
|
|
messageNum: 0, |
|
|
|
companyNum: 0 |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
@ -71,6 +88,13 @@ export default { |
|
|
|
hasLogin() { |
|
|
|
return this.$store.state.qnToken != '' |
|
|
|
} |
|
|
|
}, |
|
|
|
onShow() { |
|
|
|
getBaseInfo().then((res) => { |
|
|
|
if (res) { |
|
|
|
this.companyNum = res.enterpriseList.length |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
@ -141,6 +165,7 @@ export default { |
|
|
|
color: #fff; |
|
|
|
font-weight: 600; |
|
|
|
margin-right: 16rpx; |
|
|
|
word-break: break-all; |
|
|
|
} |
|
|
|
.image { |
|
|
|
width: 100rpx; |
|
|
|
@ -151,6 +176,50 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
.operation { |
|
|
|
z-index: 5; |
|
|
|
margin-top: 18rpx; |
|
|
|
margin-left: 20rpx; |
|
|
|
flex-grow: 0; |
|
|
|
flex-shrink: 0; |
|
|
|
.box { |
|
|
|
display: flex; |
|
|
|
flex-direction: row; |
|
|
|
align-items: center; |
|
|
|
justify-content: flex-end; |
|
|
|
margin-bottom: 36rpx; |
|
|
|
.container { |
|
|
|
width: 40rpx; |
|
|
|
height: 40rpx; |
|
|
|
flex-grow: 0; |
|
|
|
flex-shrink: 0; |
|
|
|
margin-right: 26rpx; |
|
|
|
position: relative; |
|
|
|
.number { |
|
|
|
position: absolute; |
|
|
|
top: -12rpx; |
|
|
|
right: -12rpx; |
|
|
|
// width:32rpx; |
|
|
|
// height: 32rpx; |
|
|
|
padding: 6rpx 10rpx; |
|
|
|
background-color: #f5222d; |
|
|
|
border-radius: 16rpx; |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
justify-content: center; |
|
|
|
.text { |
|
|
|
font-size: 20rpx; |
|
|
|
color: #fff; |
|
|
|
font-weight: 500; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
.icon { |
|
|
|
width: 40rpx; |
|
|
|
height: 40rpx; |
|
|
|
flex-grow: 0; |
|
|
|
flex-shrink: 0; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
.vip-area { |
|
|
|
|