|
@@ -226,10 +226,24 @@ onMounted(async () => {
|
|
|
</button>
|
|
|
<template v-if="isDesigner">
|
|
|
<div @click="handleSetSex">
|
|
|
- <SectionHeading title="性别" size="sm" end-text="设置" end-arrow></SectionHeading>
|
|
|
+ <SectionHeading
|
|
|
+ title="性别"
|
|
|
+ size="sm"
|
|
|
+ :end-text="{ '0': '男', '1': '女' }[String(userInfo.sex)] ?? '设置'"
|
|
|
+ end-arrow
|
|
|
+ ></SectionHeading>
|
|
|
</div>
|
|
|
<div class="relative" @click="birthdayShow = true">
|
|
|
- <SectionHeading title="生日" size="sm" end-text="设置" end-arrow></SectionHeading>
|
|
|
+ <SectionHeading
|
|
|
+ title="生日"
|
|
|
+ size="sm"
|
|
|
+ :end-text="
|
|
|
+ (userInfo.birthday ?? '') === ''
|
|
|
+ ? '设置'
|
|
|
+ : dayjs(userInfo.birthday).format('YYYY-MM-DD')
|
|
|
+ "
|
|
|
+ end-arrow
|
|
|
+ ></SectionHeading>
|
|
|
</div>
|
|
|
<!-- <div class="absolute left-0 top-0 w-full h-full opacity-" style="visibility: hidden">
|
|
|
<wd-datetime-picker type="date" v-model="birthday" custom-class=""></wd-datetime-picker>
|