医生1.2
This commit is contained in:
@@ -366,7 +366,7 @@ Page({
|
||||
conversationList: new_conversationList
|
||||
})
|
||||
}).then(() => {
|
||||
// console.log("开始格式化formatConversationList")
|
||||
console.log("开始格式化formatConversationList")
|
||||
this.formatConversationList();
|
||||
}).catch(errors => {console.error(errors);})
|
||||
},
|
||||
@@ -404,6 +404,7 @@ Page({
|
||||
let order_inquiry_id = cloudCustomDataJson.order_inquiry_id;
|
||||
if(!order_inquiry_id) return;
|
||||
let inquiry_type = cloudCustomDataJson.inquiry_type;
|
||||
let inquiry_mode=cloudCustomDataJson.inquiry_mode;
|
||||
if(!inquiry_type) return;
|
||||
if(inquiry_type > 5) return;
|
||||
if(inquiry_type < message_inquiry_type){
|
||||
@@ -441,6 +442,7 @@ Page({
|
||||
session_item.message_type = type;
|
||||
session_item.order_inquiry_id = order_inquiry_id;
|
||||
session_item.inquiry_type = inquiry_type;
|
||||
session_item.inquiry_mode = inquiry_mode;
|
||||
session_item.patient_age = patient_family_data.patient_age;
|
||||
session_item.patient_name = patient_family_data.patient_name;
|
||||
session_item.patient_sex = patient_family_data.patient_sex;
|
||||
@@ -465,6 +467,7 @@ Page({
|
||||
session_item.message_dot = false;
|
||||
}
|
||||
}
|
||||
|
||||
session_list[inquiry_type - 1].push(session_item);
|
||||
console.log("--------------------")
|
||||
console.log(session_list)
|
||||
|
||||
@@ -177,6 +177,7 @@
|
||||
<view class="content" wx:for="{{ data_list_1 }}" wx:key="order_inquiry_id">
|
||||
<view class="content_1">
|
||||
<view class="name">
|
||||
<view class="parallelogram {{item.inquiry_mode==1?'':item.inquiry_mode==2?'video':item.inquiry_mode==6?'yinan':'other'}}">{{item.inquiry_mode==1?'图文':item.inquiry_mode==2?'视频':item.inquiry_mode==6?'疑难问诊':'其他'}}</view>
|
||||
<text style="font-size: 34rpx;color: #333;">就诊人:</text>
|
||||
{{item.patient_name}} {{item.patient_sex==1?'男':'女'}}|{{item.patient_age}}<t-badge dot="{{item.message_dot || item.inquiry_status==3}}" offset="{{ [-4, 4] }}" content="岁" />
|
||||
</view>
|
||||
@@ -272,6 +273,7 @@
|
||||
|
||||
<view class="content" wx:for="{{ data_list_3 }}" wx:key="order_inquiry_id">
|
||||
<view class="content_1">
|
||||
|
||||
<view class="name">
|
||||
<text style="font-size: 34rpx;color: #333;">就诊人:</text>
|
||||
{{item.patient_name}} {{item.patient_sex==1?'男':'女'}}|{{item.patient_age}}<t-badge dot="{{item.message_dot || item.inquiry_status==3}}" offset="{{ [-4, 4] }}" content="岁" />
|
||||
|
||||
@@ -77,7 +77,7 @@ page{
|
||||
font-size: 30rpx;
|
||||
color: #666666;
|
||||
height: 50rpx;
|
||||
line-height: 50rpx;
|
||||
align-items: center;
|
||||
display: flex;
|
||||
}
|
||||
.date{
|
||||
@@ -142,3 +142,37 @@ page{
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
}
|
||||
.parallelogram {
|
||||
margin-top: 4rpx;
|
||||
margin-left: 10rpx;
|
||||
margin-right:15rpx;
|
||||
padding:0 20rpx;
|
||||
height: 44rpx;
|
||||
z-index: 1;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
color: #fff;
|
||||
font-size: 28rpx;
|
||||
position: relative;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* 添加伪元素作为平行四边形的角点 */
|
||||
.parallelogram::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
z-index: -1;
|
||||
background:#007cff;
|
||||
transform: skewX(-20deg);
|
||||
}
|
||||
.parallelogram.video.parallelogram::before{
|
||||
background:#00c986;
|
||||
}
|
||||
.parallelogram.yinan.parallelogram::before{
|
||||
background:#ffb700;
|
||||
}
|
||||
Reference in New Issue
Block a user