|
@@ -3,7 +3,10 @@
|
|
|
<view class="user-box">
|
|
|
<view class="icon-name-box">
|
|
|
<view class="icon-box">
|
|
|
- <cover-image class="icon" :src="user.userIcon" @click="onIconOpen"></cover-image>
|
|
|
+ <cover-image class="icon"
|
|
|
+ :src="user.userIcon ?? '/static/images/avatar-img/1.png'"
|
|
|
+ @click="onIconOpen"
|
|
|
+ ></cover-image>
|
|
|
</view>
|
|
|
<view class="name-box">
|
|
|
<view class="name" v-if="isLogin">
|
|
@@ -208,7 +211,7 @@
|
|
|
|
|
|
// 用户信息
|
|
|
const user = ref({
|
|
|
- userIcon: '1',
|
|
|
+ userIcon: null,
|
|
|
name: '某某某',
|
|
|
corpName: '广州市xx地产有限公司',
|
|
|
corpRegNo: '123xxxx'
|
|
@@ -226,7 +229,7 @@
|
|
|
src: ''
|
|
|
})
|
|
|
function onIconOpen() {
|
|
|
- if (!isLogin) {
|
|
|
+ if (!isLogin.value) {
|
|
|
return
|
|
|
}
|
|
|
currentIcon.value = iconList.value[0]
|