|
|
|
|
@ -11,7 +11,7 @@
|
|
|
|
|
</view>
|
|
|
|
|
<view class="mine-box">
|
|
|
|
|
<view class="mine-box-user">
|
|
|
|
|
<view class="user_avator">
|
|
|
|
|
<view class="user_avator" @click="showEditForm">
|
|
|
|
|
<u-avatar :src="info.headimgurl" size="61"></u-avatar>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="user_info">
|
|
|
|
|
@ -60,7 +60,7 @@
|
|
|
|
|
<view class="list-item" @click="toPage(4)">
|
|
|
|
|
<view class="list-item-left">
|
|
|
|
|
<text class="iconfont icon-fenxiang"></text>
|
|
|
|
|
<text class="list-item-lefttxt">推荐预约管理系统</text>
|
|
|
|
|
<text class="list-item-lefttxt">系统</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="list-item-right">
|
|
|
|
|
<u-icon name="arrow-right" color="#ccc"></u-icon>
|
|
|
|
|
@ -162,6 +162,25 @@
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
// 显示编辑表单
|
|
|
|
|
showEditForm() {
|
|
|
|
|
// 检测运行环境
|
|
|
|
|
const isH5 = typeof window !== 'undefined' && window.location
|
|
|
|
|
|
|
|
|
|
if (isH5) {
|
|
|
|
|
// H5环境:直接显示编辑弹窗
|
|
|
|
|
this.showAuthorization = true;
|
|
|
|
|
// 预填充当前信息
|
|
|
|
|
this.form.name = this.info.nickname || '';
|
|
|
|
|
this.form.avatar = this.info.headimgurl || '';
|
|
|
|
|
} else {
|
|
|
|
|
// 小程序环境:显示确认编辑弹窗
|
|
|
|
|
this.showform = true;
|
|
|
|
|
// 预填充当前信息
|
|
|
|
|
this.form.name = this.info.nickname || '';
|
|
|
|
|
this.form.avatar = this.info.headimgurl || '';
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
closeInfo() {
|
|
|
|
|
this.showAuthorization = false;
|
|
|
|
|
},
|
|
|
|
|
@ -337,6 +356,16 @@
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.user_avator {
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
position: relative;
|
|
|
|
|
transition: transform 0.2s;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.user_avator:active {
|
|
|
|
|
transform: scale(0.95);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.user_info {
|
|
|
|
|
margin-left: 33rpx;
|
|
|
|
|
}
|
|
|
|
|
|