Commit 24a5c243 authored by 刘用法's avatar 刘用法

输入好各个字段信息,切换到其他APP再切换回来,会把已填的信息自动清空

parent f815932f
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
</u-navbar> </u-navbar>
<view class="mine-content"> <view class="mine-content">
<view class="header-view"> <view class="header-view">
<view :class="['head-image', {'has-image': avatar}]"> <view class="head-image">
<u-avatar :src="headImageUrl" :size="headSize" mode="circle"></u-avatar> <image :style="headImageStyle" :src="headImageUrl"></image>
</view> </view>
<view class="header-content"> <view class="header-content">
<view class="name-view" @click="handleClickName">{{name || "点击登录"}}</view> <view class="name-view" @click="handleClickName">{{name || "点击登录"}}</view>
...@@ -121,6 +121,9 @@ ...@@ -121,6 +121,9 @@
placeholderImage() { placeholderImage() {
return this.qnPath + 'touxiang.png' return this.qnPath + 'touxiang.png'
}, },
headImageStyle() {
return this.avatar ? 'width:136rpx; height:136rpx;border-radius:68rpx' : 'width:144rpx; height:144rpx;border-radius:72rpx'
},
headSize() { headSize() {
return this.avatar ? 136 : 144 return this.avatar ? 136 : 144
} }
...@@ -192,11 +195,9 @@ ...@@ -192,11 +195,9 @@
height: 144rpx; height: 144rpx;
background-color: #FFFFFF; background-color: #FFFFFF;
border-radius: 72rpx; border-radius: 72rpx;
display: flex;
&.has-image { align-items: center;
// border: 4rpx solid #FFFFFF; justify-content: center;
padding: 4rpx;
}
} }
.header-content { .header-content {
......
...@@ -104,12 +104,15 @@ ...@@ -104,12 +104,15 @@
}, },
onLoad(e) {}, onLoad(e) {},
onShow() { onShow() {
/** 测试提了bug:ID1001079【首页-入驻-在线签约】:输入好各个字段信息,切换到其他APP再切换回来,会把已填的信息自动清空
不知道这一段当初为什么加,就屏蔽了
const refs = this.$refs const refs = this.$refs
this.$nextTick(() => { this.$nextTick(() => {
if (refs['radio'] && refs['radio'].length > 0) { if (refs['radio'] && refs['radio'].length > 0) {
refs['radio'][0].setRadioCheckedStatus() refs['radio'][0].setRadioCheckedStatus()
} }
}) })
*/
this.startCounting() this.startCounting()
this.getBaseInfo() this.getBaseInfo()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment