|
|
@@ -83,14 +83,11 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <!-- 手机号码 -->
|
|
|
+ <!-- 手机号码(仅展示,不提供更换入口) -->
|
|
|
<view class="user-item">
|
|
|
<view class="user-item-label">手机号码</view>
|
|
|
<view class="user-item-value">
|
|
|
- <view class="phone-wrapper">
|
|
|
- <text class="phone-number">{{ formData.phone || '1510987760' }}</text>
|
|
|
- <text class="change-btn" @click="handleChangePhone">更换</text>
|
|
|
- </view>
|
|
|
+ <text class="phone-number">{{ formData.phone || '—' }}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -104,7 +101,6 @@
|
|
|
import { ref, onMounted } from 'vue';
|
|
|
import { useUserStore } from '@/store/user.js';
|
|
|
import { getFileUrl } from '@/utils/file.js';
|
|
|
-import { go } from '@/utils/utils.js';
|
|
|
import { GetUserInfo, PostUpdateProfile, uploadFileToServer } from '@/api/dining.js';
|
|
|
import { UPLOAD } from '@/settings/siteSetting.js';
|
|
|
|
|
|
@@ -140,7 +136,7 @@ const formData = ref({
|
|
|
nickname: '',
|
|
|
gender: 'male',
|
|
|
birthday: '',
|
|
|
- phone: '1510987760'
|
|
|
+ phone: ''
|
|
|
});
|
|
|
|
|
|
// 从接口或本地缓存填充表单
|
|
|
@@ -154,7 +150,7 @@ function fillFormFromUserInfo(userInfo) {
|
|
|
nickname: userInfo.nickName ?? userInfo.nickname ?? formData.value.nickname ?? '',
|
|
|
gender: genderVal,
|
|
|
birthday: userInfo.birthday ?? formData.value.birthday ?? '',
|
|
|
- phone: userInfo.phone ?? userInfo.mobile ?? userInfo.contactPhone ?? formData.value.phone ?? '1510987760'
|
|
|
+ phone: userInfo.phone ?? userInfo.mobile ?? userInfo.contactPhone ?? formData.value.phone ?? ''
|
|
|
};
|
|
|
}
|
|
|
|
|
|
@@ -311,11 +307,6 @@ const handleConfirm = async () => {
|
|
|
const handleBirthdayChange = (e) => {
|
|
|
formData.value.birthday = e.detail.value;
|
|
|
};
|
|
|
-
|
|
|
-// 处理更换手机号
|
|
|
-const handleChangePhone = () => {
|
|
|
- go('/pages/personal/setPhone');
|
|
|
-};
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
@@ -473,22 +464,11 @@ const handleChangePhone = () => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-// 手机号样式
|
|
|
-.phone-wrapper {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- gap: 20rpx;
|
|
|
-
|
|
|
- .phone-number {
|
|
|
- font-size: 28rpx;
|
|
|
- color: #333;
|
|
|
- }
|
|
|
-
|
|
|
- .change-btn {
|
|
|
- font-size: 28rpx;
|
|
|
- color: #F47D1F;
|
|
|
- cursor: pointer;
|
|
|
- }
|
|
|
+// 手机号样式(只读展示)
|
|
|
+.phone-number {
|
|
|
+ font-size: 28rpx;
|
|
|
+ color: #333;
|
|
|
+ text-align: right;
|
|
|
}
|
|
|
|
|
|
.gender-img {
|