This commit is contained in:
@zuopngfei 2025-07-25 14:56:25 +08:00
parent 385f075f70
commit bd38cb6cfb
2 changed files with 4 additions and 3 deletions

View File

@ -121,6 +121,7 @@ Page({
prenatal_check_type: false,
delivery_type: false,
},
timePickerTitle: '选择日期',
},
onLoad() {
@ -139,11 +140,11 @@ Page({
operative_date: info.operative_date,
delivery_type: info.delivery_type,
prenatal_check_type: info.prenatal_check_type,
gestational_week: info.gestational_week,
gestational_week: info.gestational_week ? info.gestational_week : '',
conception_type: info.conception_type,
birth_number: info.birth_number,
parity_number: info.parity_number,
birth_weight: info.birth_weight,
birth_weight: info.birth_weight ? info.birth_weight : '',
prenatal_check_remark: info.prenatal_check_remark,
avatar: info.avatar ? info.avatar : 'https://image-fudan.oss-cn-beijing.aliyuncs.com/mini_images/my/baby.png',
}

View File

@ -90,7 +90,7 @@
<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="{{timePicker}}" end="{{birthEnd}}" filter="{{birthFilter}}" format="YYYY-MM-DD" mode="date" popup-props="{{ { usingCustomNavbar: true } }}" start="{{birthStart}}" title="选择生日" value="{{timeValue}}" visible="{{birthVisible}}" />
<t-date-time-picker auto-close bind:cancel="hidePicker" bind:change="onPickerChange" cancelBtn="取消" confirmBtn="确认" data-mode="birth" defaultValue="{{timePicker}}" end="{{birthEnd}}" filter="{{birthFilter}}" format="YYYY-MM-DD" mode="date" popup-props="{{ { usingCustomNavbar: true } }}" start="{{birthStart}}" title="{{timePickerTitle}}" value="{{timeValue}}" visible="{{birthVisible}}" />
<!-- 下拉选择 -->
<t-picker visible="{{selectVisible}}" value="{{selectValue}}" data-key="value" cancelBtn="取消" confirmBtn="确认" usingCustomNavbar bindchange="onSelectChange" bindcancel="onPickerCancel">
<t-picker-item options="{{selectList}}"></t-picker-item>