Commit e3bbb306 authored by 王炽's avatar 王炽

输入框处理

parent 2821ed8b
...@@ -112,6 +112,7 @@ ...@@ -112,6 +112,7 @@
@blur="onHeightBlur" @blur="onHeightBlur"
@focus="onHeightFocus" @focus="onHeightFocus"
:disabled="isHeightTipActive" :disabled="isHeightTipActive"
:style="`background-image: url(${$baseUrl}shengzhangTool/1001/numBg.png); background-size: 100% 100%; background-repeat: no-repeat;`"
/> />
<text class="unit">cm</text> <text class="unit">cm</text>
</view> </view>
...@@ -142,6 +143,7 @@ ...@@ -142,6 +143,7 @@
@blur="onWeightBlur" @blur="onWeightBlur"
@focus="onWeightFocus" @focus="onWeightFocus"
:disabled="isWeightTipActive" :disabled="isWeightTipActive"
:style="`background-image: url(${$baseUrl}shengzhangTool/1001/numBg.png); background-size: 100% 100%; background-repeat: no-repeat;`"
/> />
<text class="unit">kg</text> <text class="unit">kg</text>
</view> </view>
...@@ -172,6 +174,7 @@ ...@@ -172,6 +174,7 @@
@blur="onHeadBlur" @blur="onHeadBlur"
@focus="onHeadFocus" @focus="onHeadFocus"
:disabled="isHeadTipActive" :disabled="isHeadTipActive"
:style="`background-image: url(${$baseUrl}shengzhangTool/1001/numBg.png); background-size: 100% 100%; background-repeat: no-repeat;`"
/> />
<text class="unit">cm</text> <text class="unit">cm</text>
</view> </view>
...@@ -638,8 +641,10 @@ const toggleHeadTip = () => { ...@@ -638,8 +641,10 @@ const toggleHeadTip = () => {
tempHeadCircumference.value = headCircumference.value; tempHeadCircumference.value = headCircumference.value;
isHeadTipActive.value = !isHeadTipActive.value isHeadTipActive.value = !isHeadTipActive.value
if(isHeadTipActive.value){ if(isHeadTipActive.value){
headCircumference.value = 0; // 不改变输入框的值,只标记为暂无数据状态
// headCircumference.value = 0; // 注释掉这行,保持原值
}else{ }else{
// 恢复原来的值
headCircumference.value = tempHeadCircumference.value; headCircumference.value = tempHeadCircumference.value;
} }
console.log('头围提示状态:', isHeadTipActive.value) console.log('头围提示状态:', isHeadTipActive.value)
...@@ -730,7 +735,6 @@ const refreshBabyInfo = async () => { ...@@ -730,7 +735,6 @@ const refreshBabyInfo = async () => {
babyGender.value = data.gender; babyGender.value = data.gender;
babyAvatar.value = data.avatar babyAvatar.value = data.avatar
console.log('babyBirthday.value=',babyBirthday.value);
assessmentDate.value = selectedDate.value; assessmentDate.value = selectedDate.value;
feedingType.value = selectedFeedText.value; feedingType.value = selectedFeedText.value;
...@@ -1020,9 +1024,11 @@ const refreshBabyInfo = async () => { ...@@ -1020,9 +1024,11 @@ const refreshBabyInfo = async () => {
.measurement-input { .measurement-input {
position: absolute; position: absolute;
z-index: 3; z-index: 3;
width: 60rpx; width: 105rpx;
height: 30rpx; height: 44rpx;
background: #ffffff;
margin-top: 2rpx;
// background: #ffffff;
border: none; border: none;
font-size: 28rpx; font-size: 28rpx;
color: #333; color: #333;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment