2025-05-25 22:23:04 +08:00

61 lines
2.0 KiB
Plaintext

<t-navbar left-arrow title="个人信息" />
<view class="info-edit">
<t-cell class="info-edit__cell" required title="姓名">
<t-input bind:change="onNameChange" borderless placeholder="请输入姓名" slot="note" value="{{personInfo.name}}" />
</t-cell>
<t-cell class="info-edit__cell" required title="性别">
<t-radio-group
bind:change="onGenderChange"
borderless
defaultValue="{{personInfo.gender}}"
options="{{genderOptions}}"
slot="note"
t-class="info-edit__gender"
value="{{personInfo.gender}}"
/>
</t-cell>
<t-cell class="info-edit__cell" title="身份证号">
<t-input bind:change="onNameChange" borderless placeholder="请输入身份证号" slot="note" value="{{personInfo.name}}" />
</t-cell>
<t-cell required arrow bind:click="showPicker" data-mode="birth" note="{{personInfo.birth || ''}}" title="出生日期" />
<t-cell class="info-edit__cell" required title="年龄">
<t-input bind:change="onNameChange" borderless placeholder="请输入年龄" slot="note" value="{{personInfo.name}}" />
<t-radio-group
bind:change="onYearChange"
borderless
defaultValue="{{personInfo.yearType}}"
options="{{yearOptions}}"
slot="note"
t-class="info-edit__gender"
value="{{personInfo.yearType}}"
/>
</t-cell>
<t-cell required arrow bind:click="showPicker" data-mode="birth" note="{{personInfo.birth || ''}}" title="胆道闭锁手术时间" />
</view>
<view class="info-edit__save">
<t-button bind:tap="onSaveInfo" block size="medium" theme="primary">保存</t-button>
</view>
<t-date-time-picker
auto-close
bind:cancel="hidePicker"
bind:change="onPickerChange"
cancelBtn="取消"
confirmBtn="确认"
data-mode="birth"
defaultValue="{{personInfo.birth}}"
end="{{birthEnd}}"
filter="{{birthFilter}}"
format="YYYY-MM-DD"
mode="date"
popup-props="{{ { usingCustomNavbar: true } }}"
start="{{birthStart}}"
title="选择生日"
value="{{personInfo.birth}}"
visible="{{birthVisible}}"
/>