diff --git a/src/pages-core/user/profile/index.vue b/src/pages-core/user/profile/index.vue index 44a664e..7464647 100644 --- a/src/pages-core/user/profile/index.vue +++ b/src/pages-core/user/profile/index.vue @@ -16,8 +16,8 @@ - - + + @@ -116,8 +116,13 @@ async function handleCropperConfirm(event: { tempFilePath: string }) { toast.success('头像修改成功') } +/** 手机号不可修改提示 */ +function handleMobileTip() { + toast.info('小程序暂不支持修改手机号') +} + /** 编辑字段 */ -function handleEdit(field: 'nickname' | 'sex' | 'mobile' | 'email') { +function handleEdit(field: 'nickname' | 'sex' | 'email') { formType.value = field formValue.value = userProfile.value?.[field] ?? (field === 'sex' ? 1 : '') formVisible.value = true @@ -136,4 +141,11 @@ onMounted(() => { overflow: hidden; box-shadow: 0 3rpx 8rpx rgba(24, 144, 255, 0.06); } + +:deep(.email-value) { + max-width: 50vw; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +}