52 lines
1.7 KiB
Plaintext
52 lines
1.7 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.username}}" />
|
|
</t-cell>
|
|
<t-cell class="info-edit__cell" required title="性别">
|
|
<t-radio-group
|
|
bind:change="onGenderChange"
|
|
borderless
|
|
defaultValue="{{personInfo.sex}}"
|
|
options="{{genderOptions}}"
|
|
slot="note"
|
|
t-class="info-edit__gender"
|
|
value="{{personInfo.sex}}"
|
|
/>
|
|
</t-cell>
|
|
<t-cell class="info-edit__cell" title="身份证号">
|
|
<t-input bind:change="onNameChange" borderless placeholder="请输入身份证号" slot="note" value="{{personInfo.id_number}}" />
|
|
</t-cell>
|
|
<t-cell required arrow bind:click="showPicker" data-mode="birth" note="{{personInfo.birthday || ''}}" title="出生日期" />
|
|
|
|
<!-- <t-cell class="info-edit__cell" required title="年龄" note="{{personInfo.age}}">
|
|
|
|
</t-cell> -->
|
|
<t-cell required arrow bind:click="showPicker" data-mode="operative" note="{{personInfo.operative_date || ''}}" 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="{{defaultTime}}"
|
|
end="{{birthEnd}}"
|
|
filter="{{birthFilter}}"
|
|
format="YYYY-MM-DD"
|
|
mode="date"
|
|
popup-props="{{ { usingCustomNavbar: true } }}"
|
|
start="{{birthStart}}"
|
|
title="选择生日"
|
|
value="{{newTime}}"
|
|
visible="{{birthVisible}}"
|
|
/>
|
|
|