|
@@ -7,7 +7,7 @@
|
|
<navigator class="iconfont icon-wode-xuanzhong" url="#" @click.stop="openPopup" />
|
|
<navigator class="iconfont icon-wode-xuanzhong" url="#" @click.stop="openPopup" />
|
|
</view>
|
|
</view>
|
|
<navigator class="user" url="#" @click.stop="openPopup">
|
|
<navigator class="user" url="#" @click.stop="openPopup">
|
|
- <image class="profile-photo" v-if="userMsg.attinfos[0].url" :src="userMsg.attinfos[0].url"
|
|
|
|
|
|
+ <image class="profile-photo" v-if="userMsg.attinfos.length" :src="userMsg.attinfos[0].url"
|
|
mode="aspectFill" />
|
|
mode="aspectFill" />
|
|
<view v-else class="profile-photo">
|
|
<view v-else class="profile-photo">
|
|
<view class="substitution">
|
|
<view class="substitution">
|
|
@@ -32,7 +32,6 @@
|
|
</navigator>
|
|
</navigator>
|
|
</view>
|
|
</view>
|
|
</cu-custom>
|
|
</cu-custom>
|
|
-
|
|
|
|
<view class="nav-box">
|
|
<view class="nav-box">
|
|
<navigator class="nav-item" url="#">
|
|
<navigator class="nav-item" url="#">
|
|
<text class="iconfont icon-wode-xuanzhong" />
|
|
<text class="iconfont icon-wode-xuanzhong" />
|
|
@@ -56,7 +55,6 @@
|
|
<text class="iconfont icon-wode-xuanzhong" />
|
|
<text class="iconfont icon-wode-xuanzhong" />
|
|
</navigator>
|
|
</navigator>
|
|
</view>
|
|
</view>
|
|
-
|
|
|
|
<u-button :customStyle="butStyle" @click="logOut()">退出登录</u-button>
|
|
<u-button :customStyle="butStyle" @click="logOut()">退出登录</u-button>
|
|
|
|
|
|
<u-popup :show="showPopup" :customStyle="popupStyle" bgColor="#F7F7F7" :overlay="false" zIndex="9998" mode="left"
|
|
<u-popup :show="showPopup" :customStyle="popupStyle" bgColor="#F7F7F7" :overlay="false" zIndex="9998" mode="left"
|
|
@@ -73,7 +71,7 @@
|
|
头像
|
|
头像
|
|
</view>
|
|
</view>
|
|
<view class="content">
|
|
<view class="content">
|
|
- <image class="profile-photo" v-if="userMsg.attinfos[0].url" :src="userMsg.attinfos[0].url"
|
|
|
|
|
|
+ <image class="profile-photo" v-if="userMsg.attinfos.length" :src="userMsg.attinfos[0].url"
|
|
mode="aspectFill" />
|
|
mode="aspectFill" />
|
|
<view v-else class="profile-photo">
|
|
<view v-else class="profile-photo">
|
|
<view class="substitution">
|
|
<view class="substitution">
|
|
@@ -139,7 +137,8 @@
|
|
<view class="title">
|
|
<view class="title">
|
|
修改{{ changeUser.title }}
|
|
修改{{ changeUser.title }}
|
|
</view>
|
|
</view>
|
|
- <input class="input" v-model="changeUser.changeValue" type="text" :placeholder="changeUser.placeholder" />
|
|
|
|
|
|
+ <input :focus="changeUser.showModal" class="input" v-model="changeUser.changeValue" type="text"
|
|
|
|
+ :placeholder="changeUser.placeholder" />
|
|
</view>
|
|
</view>
|
|
</u-modal>
|
|
</u-modal>
|
|
</view>
|
|
</view>
|
|
@@ -156,6 +155,7 @@ export default {
|
|
components: { upload },
|
|
components: { upload },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ uninitialized: true,
|
|
posTop: this.tovw(this.StatusBar),
|
|
posTop: this.tovw(this.StatusBar),
|
|
headHeight: this.tovw(this.CustomBar - this.StatusBar),
|
|
headHeight: this.tovw(this.CustomBar - this.StatusBar),
|
|
customBar: this.tovw(this.CustomBar - this.StatusBar),
|
|
customBar: this.tovw(this.CustomBar - this.StatusBar),
|
|
@@ -189,10 +189,12 @@ export default {
|
|
}
|
|
}
|
|
};
|
|
};
|
|
},
|
|
},
|
|
- created() {
|
|
|
|
- this.getUserMsg()
|
|
|
|
- },
|
|
|
|
methods: {
|
|
methods: {
|
|
|
|
+ init(forcedUpdating = true) {
|
|
|
|
+ this.uninitialized = false;
|
|
|
|
+ this.getUserMsg()
|
|
|
|
+ console.log("加载我的")
|
|
|
|
+ },
|
|
/* 打开modal */
|
|
/* 打开modal */
|
|
openModal(name, title, value, placeholder) {
|
|
openModal(name, title, value, placeholder) {
|
|
this.changeUser = {
|
|
this.changeUser = {
|
|
@@ -239,7 +241,7 @@ export default {
|
|
}
|
|
}
|
|
}).then(res => {
|
|
}).then(res => {
|
|
console.log("用户信息", res)
|
|
console.log("用户信息", res)
|
|
- if (this.cutoff(res.msg, '修改成功')) return;
|
|
|
|
|
|
+ if (this.cutoff(res.msg)) return;
|
|
this.userMsg = res.data;
|
|
this.userMsg = res.data;
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -289,7 +291,7 @@ export default {
|
|
},
|
|
},
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- },
|
|
|
|
|
|
+ }
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
|
|
|