12.19 bug
This commit is contained in:
@@ -14,11 +14,11 @@ Page({
|
||||
title: '问诊表', //导航栏 中间的标题
|
||||
},
|
||||
obj:{
|
||||
height:'身高',
|
||||
weight:'体重',
|
||||
height:'身高(CM)',
|
||||
weight:'体重(KG)',
|
||||
marital_status:'婚姻状态',
|
||||
nation_id:'民族',
|
||||
job_id:'职业',
|
||||
marital_status:'婚姻状态',
|
||||
allergy_history:'是否有过敏史?',
|
||||
family_history:'是否有家族病史?',
|
||||
is_pregnant:'是否处于备孕、妊娠、哺乳期?',
|
||||
@@ -39,6 +39,7 @@ Page({
|
||||
this.setData({
|
||||
result: event.detail,
|
||||
});
|
||||
console.log(event.detail);
|
||||
},
|
||||
|
||||
toggle(event) {
|
||||
@@ -74,7 +75,7 @@ Page({
|
||||
})
|
||||
},
|
||||
handleSend(){
|
||||
let {order_inquiry_id,result}=this.data;
|
||||
let {order_inquiry_id,result,obj}=this.data;
|
||||
if(result.length==0){
|
||||
wx.showToast({
|
||||
title: '请至少选择一项',
|
||||
@@ -82,10 +83,15 @@ Page({
|
||||
})
|
||||
return false;
|
||||
}
|
||||
console.log(this.data.result);
|
||||
let fields=[];
|
||||
for (const key in obj) {
|
||||
if(result.indexOf(key)!=-1){
|
||||
fields.push(key)
|
||||
}
|
||||
}
|
||||
api.doctorSendUnfilled({
|
||||
order_inquiry_id,
|
||||
fields:this.data.result
|
||||
fields:fields
|
||||
}).then(data=>{
|
||||
if(data.code==200){
|
||||
wx.navigateBack();
|
||||
|
||||
@@ -16,7 +16,8 @@ page{
|
||||
}
|
||||
.container{
|
||||
width: 100vw;
|
||||
height:100vh;
|
||||
|
||||
height:calc(100vh - 136rpx);
|
||||
display:flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
@@ -37,14 +38,13 @@ background:#fff;
|
||||
}
|
||||
.bottom{
|
||||
background-color: #FFFFFF;
|
||||
height:300rpx;
|
||||
height:160rpx;
|
||||
width:100%;
|
||||
}
|
||||
.bottom .btn{
|
||||
|
||||
margin:40rpx 30rpx;
|
||||
height: 80rpx;
|
||||
font-size: 30rpx;
|
||||
margin:20rpx 30rpx 0rpx;
|
||||
height: 80rpx;
|
||||
font-size: 30rpx;
|
||||
color: #FFFFFF;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -69,4 +69,8 @@ border-radius: 8rpx;
|
||||
}
|
||||
.van-cell{
|
||||
align-items: center;
|
||||
}
|
||||
.van-cell__title{
|
||||
font-size: 34rpx!important;
|
||||
color:#000;
|
||||
}
|
||||
Reference in New Issue
Block a user