feat:客服
This commit is contained in:
@@ -84,26 +84,24 @@
|
||||
|
||||
<view class="edit-profile-page__divider" />
|
||||
|
||||
<picker mode="region" :value="regionValue" @change="onRegionChange">
|
||||
<view class="edit-profile-page__item">
|
||||
<text class="edit-profile-page__label">所在地</text>
|
||||
<view class="edit-profile-page__right">
|
||||
<text
|
||||
class="edit-profile-page__value"
|
||||
:class="{
|
||||
'edit-profile-page__value--placeholder': locationText === '未设置',
|
||||
}"
|
||||
>
|
||||
{{ locationText }}
|
||||
</text>
|
||||
<image
|
||||
class="edit-profile-page__arrow"
|
||||
:src="staticAssets.iconChevronLeft"
|
||||
mode="aspectFit"
|
||||
/>
|
||||
</view>
|
||||
<view class="edit-profile-page__item" @tap="onOpenRegionPicker">
|
||||
<text class="edit-profile-page__label">所在地</text>
|
||||
<view class="edit-profile-page__right">
|
||||
<text
|
||||
class="edit-profile-page__value"
|
||||
:class="{
|
||||
'edit-profile-page__value--placeholder': locationText === '未设置',
|
||||
}"
|
||||
>
|
||||
{{ locationText }}
|
||||
</text>
|
||||
<image
|
||||
class="edit-profile-page__arrow"
|
||||
:src="staticAssets.iconChevronLeft"
|
||||
mode="aspectFit"
|
||||
/>
|
||||
</view>
|
||||
</picker>
|
||||
</view>
|
||||
|
||||
<view class="edit-profile-page__divider" />
|
||||
|
||||
@@ -144,6 +142,14 @@
|
||||
:value="form.nickName"
|
||||
@confirm="onConfirmNickname"
|
||||
/>
|
||||
|
||||
<region-picker
|
||||
v-model:visible="regionPickerVisible"
|
||||
:province="form.province"
|
||||
:city="form.city"
|
||||
:district="form.district"
|
||||
@confirm="onConfirmRegion"
|
||||
/>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -151,6 +157,7 @@
|
||||
import { staticAssets } from '@/utils/static-assets'
|
||||
import AvatarActionSheet from './components/avatar-action-sheet/index.vue'
|
||||
import NicknameDialog from './components/nickname-dialog/index.vue'
|
||||
import RegionPicker from './components/region-picker/index.vue'
|
||||
import { useEditProfile } from './use-edit-profile'
|
||||
|
||||
const today = new Date().toISOString().slice(0, 10)
|
||||
@@ -162,7 +169,7 @@ const {
|
||||
maskedPhone,
|
||||
genderText,
|
||||
locationText,
|
||||
regionValue,
|
||||
regionPickerVisible,
|
||||
avatarSheetVisible,
|
||||
nicknameDialogVisible,
|
||||
onOpenAvatarSheet,
|
||||
@@ -173,7 +180,8 @@ const {
|
||||
onConfirmNickname,
|
||||
onPickGender,
|
||||
onBirthdayChange,
|
||||
onRegionChange,
|
||||
onOpenRegionPicker,
|
||||
onConfirmRegion,
|
||||
onChangePhone,
|
||||
onSave,
|
||||
} = useEditProfile()
|
||||
|
||||
Reference in New Issue
Block a user