问诊表
This commit is contained in:
@@ -86,6 +86,20 @@ Page({
|
||||
|
||||
|
||||
},
|
||||
handleIpt(e){
|
||||
let key = e.target.dataset.id;
|
||||
let obj="personInfo."+key;
|
||||
if(key=='height' || key=="weight"){
|
||||
this.setData({
|
||||
[obj]:e.detail.value
|
||||
})
|
||||
}else{
|
||||
this.setData({
|
||||
[obj]: e.detail.value
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
handleSendFields(){
|
||||
const {order_inquiry_id,personInfo,list1,list2,marital_name,jobname,nationname}=this.data;
|
||||
console.log(personInfo)
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
{{filter.formatwenzhenList(list1,'height').NUMBER}}、身高(CM)
|
||||
</view>
|
||||
<view class="iptbox">
|
||||
<input type="text" value="{{personInfo.height}}" bindinput="handleIpt" data-id="name" placeholder="请输入身高" placeholder-class="placeholder" class="ipt" disabled="{{!showBtn}}" />
|
||||
<input type="text" value="{{personInfo.height}}" bindinput="handleIpt" data-id="height" placeholder="请输入身高" placeholder-class="placeholder" class="ipt" disabled="{{!showBtn}}" />
|
||||
|
||||
</view>
|
||||
</view>
|
||||
@@ -22,7 +22,7 @@
|
||||
{{filter.formatwenzhenList(list1,'weight').NUMBER}}、体重(KG)
|
||||
</view>
|
||||
<view class="iptbox">
|
||||
<input type="text" value="{{personInfo.weight}}" bindinput="handleIpt" data-id="name" placeholder="请请输入体重" placeholder-class="placeholder" class="ipt" disabled="{{!showBtn}}" />
|
||||
<input type="text" value="{{personInfo.weight}}" bindinput="handleIpt" data-id="weight" placeholder="请请输入体重" placeholder-class="placeholder" class="ipt" disabled="{{!showBtn}}" />
|
||||
|
||||
</view>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user