12.6 sickdetail
This commit is contained in:
+29
@@ -244,6 +244,20 @@ Component({
|
||||
}];
|
||||
return renderDom;
|
||||
}
|
||||
if (customMessage.message_type === 12) {
|
||||
let data = customMessage.data;
|
||||
console.log(data)
|
||||
const renderDom = [{
|
||||
type: 'wenzhen_form',
|
||||
order_inquiry_id:data.order_inquiry_id,
|
||||
message_path:data.message_path,
|
||||
case_patient_message_path:data.case_patient_message_path,
|
||||
case_filled_fields:data.case_filled_fields,
|
||||
case_not_fill_fields:data.case_not_fill_fields
|
||||
}];
|
||||
return renderDom;
|
||||
}
|
||||
|
||||
|
||||
} catch (error) {}
|
||||
// 客服咨询
|
||||
@@ -324,6 +338,21 @@ Component({
|
||||
app.method.navigateTo({
|
||||
url: url + "&fromType=" + encodeURIComponent(redirectUrl + "?" + params)
|
||||
})
|
||||
},
|
||||
goList(event){
|
||||
console.log(event);
|
||||
const {ismine,params,id}=event.currentTarget.dataset;
|
||||
console.log(params);
|
||||
if(!ismine){//未填写
|
||||
app.method.navigateTo({
|
||||
url:'/pages/inquiryForm/inquiryForm?params='+params+"&order_inquiry_id="+id
|
||||
})
|
||||
}else{//已填写
|
||||
app.method.navigateTo({
|
||||
url:'/pages/inquiryForm/inquiryForm?case_filled_fields='+params+"&order_inquiry_id="+id
|
||||
})
|
||||
}
|
||||
// app.go(url);
|
||||
}
|
||||
},
|
||||
});
|
||||
+16
-1
@@ -94,5 +94,20 @@
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
<view wx:if="{{renderDom[0].type==='wenzhen_form'}}" class="wenzhen_form {{isMine?'my-custom':'your-custom'}}" bindtap="goList" data-ismine="{{isMine}}" data-params="{{!isMine?renderDom[0].case_not_fill_fields:renderDom[0].case_filled_fields}}" data-id="{{ renderDom[0].order_inquiry_id}}">
|
||||
<view class="title" wx:if="{{renderDom[0].case_not_fill_fields}}">
|
||||
<image src="../../../../../static/assets/wenzhenform.png" mode="" class="wzicon" />
|
||||
<view class="name">问诊表</view>
|
||||
</view>
|
||||
<view class="title" wx:else>
|
||||
<image src="../../../../../static/assets/wenzhenform.png" mode="" class="wzicon"/>
|
||||
<view class="name">问诊表-已填写</view>
|
||||
</view>
|
||||
<view class="descform" wx:if="{{renderDom[0].case_not_fill_fields}}">
|
||||
等待填写
|
||||
</view>
|
||||
<view class="descform" wx:else>
|
||||
点击查看
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
+57
@@ -321,4 +321,61 @@ font-weight: 400;
|
||||
color: rgba(0,0,0,0.85);
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.wenzhen_form{
|
||||
width: 60vw;
|
||||
position: relative;
|
||||
z-index:2;
|
||||
border-radius: 10px 10px 10px 10px;
|
||||
border: 1rpx solid #1ACAD3;
|
||||
}
|
||||
.wenzhen_form .title{
|
||||
border-radius: 16rpx 16rpx 0 0;
|
||||
padding:20rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 30rpx;
|
||||
color: #FFFFFF;
|
||||
background-color: #3CC7C0;
|
||||
}
|
||||
.wzicon{
|
||||
margin-right: 10rpx;
|
||||
width:42rpx;
|
||||
height:46rpx;
|
||||
}
|
||||
.my-custom .wenzhen_form{
|
||||
background: rgb(212, 239, 241);
|
||||
}
|
||||
.wenzhen_form .descform{
|
||||
padding:15rpx 20rpx;
|
||||
background-color: #ffff;
|
||||
font-size: 28rpx;
|
||||
color: #666666;
|
||||
border-radius: 0 0 16rpx 16rpx;
|
||||
}
|
||||
.wenzhen_form.my-custom::after{
|
||||
content:'';
|
||||
position: absolute;
|
||||
top: 35rpx;
|
||||
right: -19rpx;
|
||||
transform: translate(-50%,-50%) rotate(-135deg);
|
||||
width: 16rpx;
|
||||
height: 16rpx;
|
||||
background: #3CC7C0;
|
||||
border: 1rpx solid #1ACAD3;
|
||||
/* background: rgb(255, 255, 255);
|
||||
border: 1rpx solid #E7E7E7; */
|
||||
border-style: none none solid solid;
|
||||
}
|
||||
.wenzhen_form.your-custom::after{
|
||||
content:'';
|
||||
position: absolute;
|
||||
top: 35rpx;
|
||||
left: 0;
|
||||
transform: translate(-50%,-50%) rotate(45deg);
|
||||
width: 16rpx;
|
||||
height: 16rpx;
|
||||
background: #3CC7C0;
|
||||
border: 1rpx solid #1ACAD3;
|
||||
border-style: none none solid solid
|
||||
}
|
||||
@@ -35,7 +35,7 @@
|
||||
</view>
|
||||
<TipMessage wx:if="{{item.type === 'TIMGroupTipElem'}}" message="{{item}}"/>
|
||||
<view wx:if="{{item.type !== 'TIMGroupTipElem'}}" class="{{item.flow === 'out' ? 't-self-message':'t-recieve-message'}} {{item.type=='TIMCustomElem'?'custom_center':''}}" >
|
||||
<image class="t-message-avatar" wx:if="{{(item.flow === 'in' && item.type!='TIMCustomElem') || filter.formateText(item.payload.data).message_type==7}}" src="{{item.avatar || img_host+'/doctor_avatar.png'}}" data-value="{{item}}" bindtap="getMemberProfile" />
|
||||
<image class="t-message-avatar" wx:if="{{(item.flow === 'in' && item.type!='TIMCustomElem') || filter.formateText(item.payload.data).message_type==7 || filter.formateText(item.payload.data).message_type==12}}" src="{{item.avatar || img_host+'/doctor_avatar.png'}}" data-value="{{item}}" bindtap="getMemberProfile" />
|
||||
<view class="read-receipts" wx:if="{{conversation.type === 'C2C' && item.flow==='out' }}">
|
||||
<view wx:if="{{item.isPeerRead}}" >已读</view>
|
||||
<view wx:else>未读</view>
|
||||
@@ -53,7 +53,7 @@
|
||||
<FileMessage wx:if="{{item.type === 'TIMFileElem'}}" message="{{item}}" isMine="{{item.flow === 'out'}}"/>
|
||||
<MergerMessage wx:if="{{item.type === 'TIMRelayElem'}}" message="{{item}}" isMine="{{item.flow === 'out'}}"/>
|
||||
</view>
|
||||
<image class="t-message-avatar" wx:if="{{(item.flow === 'out' && item.type!='TIMCustomElem') || (item.flow=== 'out' && item.type=='TIMCustomElem' && filter.formateText(item.payload.data).message_type==10)}}" src="{{item.avatar || 'https://img.applets.igandanyiyuan.com/applet/patient/static/patient_avatar.png'}}" data-value="{{item}}" bindtap="getMemberProfile"/>
|
||||
<image class="t-message-avatar" wx:if="{{(item.flow === 'out' && item.type!='TIMCustomElem') || (item.flow=== 'out' && item.type=='TIMCustomElem' && filter.formateText(item.payload.data).message_type==10) || (item.flow=== 'out' && item.type=='TIMCustomElem' && filter.formateText(item.payload.data).message_type==12)}}" src="{{item.avatar || 'https://img.applets.igandanyiyuan.com/applet/patient/static/patient_avatar.png'}}" data-value="{{item}}" bindtap="getMemberProfile"/>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user