优化细节
This commit is contained in:
@@ -35,7 +35,14 @@ Page({
|
||||
doctors_advice_focus: false,
|
||||
case_detail: {},
|
||||
sub_disabled: false,
|
||||
from: ""
|
||||
from: "",
|
||||
now_filed_focus: 'save_durg_single_use'
|
||||
},
|
||||
changeFocus(e){
|
||||
let next_filed_focus = e.currentTarget.dataset.next_filed_focus;
|
||||
this.setData({
|
||||
now_filed_focus: next_filed_focus
|
||||
})
|
||||
},
|
||||
onDoctorsAdviceFocus(){
|
||||
this.setData({
|
||||
|
||||
@@ -33,7 +33,8 @@
|
||||
<view class="addzhenduan" wx:if="{{from != 'chat'}}">+添加诊断</view>
|
||||
<view slot="label">
|
||||
<view style="margin-top: 20rpx;" class="label_item" wx:for="{{zhenduan_list}}">
|
||||
<van-icon name="delete" catchtap="delZhenDuan" color="red" data-disease_class_id="{{item.icd_id}}" /><text style="margin-left: 10rpx;">{{item.icd_name}}</text>
|
||||
<van-icon name="delete" catchtap="delZhenDuan" color="red" data-disease_class_id="{{item.icd_id}}" wx:if="{{from != 'chat'}}"/>
|
||||
<text style="margin-left: 10rpx;">{{item.icd_name}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</van-cell>
|
||||
@@ -124,6 +125,11 @@
|
||||
input-align="left"
|
||||
placeholder="请输入用法(口服)"
|
||||
custom-style="font-size: 30rpx;"
|
||||
clearable
|
||||
confirm-type="next"
|
||||
bind:confirm="changeFocus"
|
||||
data-next_filed_focus="save_durg_frequency_use"
|
||||
focus="{{now_filed_focus == 'save_durg_single_use'}}"
|
||||
border="{{ true }}"
|
||||
/>
|
||||
<van-field
|
||||
@@ -133,6 +139,11 @@
|
||||
input-align="left"
|
||||
placeholder="请输入服用次(一日1次)"
|
||||
custom-style="font-size: 30rpx;"
|
||||
clearable
|
||||
confirm-type="next"
|
||||
bind:confirm="changeFocus"
|
||||
data-next_filed_focus="save_durg_single_unit"
|
||||
focus="{{now_filed_focus == 'save_durg_frequency_use'}}"
|
||||
border="{{ true }}"
|
||||
/>
|
||||
<van-field
|
||||
@@ -142,6 +153,11 @@
|
||||
input-align="left"
|
||||
placeholder="请输入用量(一次3粒)"
|
||||
custom-style="font-size: 30rpx;"
|
||||
clearable
|
||||
confirm-type="next"
|
||||
bind:confirm="changeFocus"
|
||||
data-next_filed_focus="save_durg_available_days"
|
||||
focus="{{now_filed_focus == 'save_durg_single_unit'}}"
|
||||
border="{{ true }}"
|
||||
/>
|
||||
<van-field
|
||||
@@ -151,15 +167,25 @@
|
||||
input-align="left"
|
||||
placeholder="请输入时长"
|
||||
custom-style="font-size: 30rpx;"
|
||||
clearable
|
||||
confirm-type="next"
|
||||
bind:confirm="changeFocus"
|
||||
data-next_filed_focus="save_durg_prescription_product_num"
|
||||
focus="{{now_filed_focus == 'save_durg_available_days'}}"
|
||||
border="{{ true }}"
|
||||
/>
|
||||
<van-field
|
||||
label="药品数量"
|
||||
type="text"
|
||||
type="number"
|
||||
model:value="{{save_durg_prescription_product_num}}"
|
||||
input-align="left"
|
||||
placeholder="请输入数量"
|
||||
custom-style="font-size: 30rpx;"
|
||||
clearable
|
||||
confirm-type="next"
|
||||
bind:confirm="changeFocus"
|
||||
data-next_filed_focus="save_durg_packaging_unit"
|
||||
focus="{{now_filed_focus == 'save_durg_prescription_product_num'}}"
|
||||
border="{{ true }}"
|
||||
/>
|
||||
<van-field
|
||||
@@ -169,6 +195,8 @@
|
||||
input-align="left"
|
||||
placeholder="盒/袋"
|
||||
custom-style="font-size: 30rpx;"
|
||||
clearable
|
||||
confirm-type="done"
|
||||
border="{{ true }}"
|
||||
/>
|
||||
|
||||
|
||||
@@ -79,9 +79,11 @@ page{
|
||||
border-radius: 20rpx;
|
||||
}
|
||||
.drugs_box_item{
|
||||
border-bottom: 1px solid red;
|
||||
padding: 20rpx 20rpx 20rpx 20rpx;
|
||||
}
|
||||
.drugs_box_item:not(:first-child){
|
||||
border-top: 1px solid #E7E7E7;
|
||||
}
|
||||
.drugs_name{
|
||||
color: #333333;
|
||||
font-size: 32rpx;
|
||||
|
||||
Reference in New Issue
Block a user