医生1.2
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import logger from '../../../../utils/logger';
|
||||
import constant from '../../../../utils/constant';
|
||||
import { API } from '../../../../../utils/network/api';
|
||||
import dayjs from '../../../../utils/dayjs';
|
||||
import { requestSubscribeMessage } from '../../../../../utils/requestSubscribeUtil';
|
||||
const api = new API()
|
||||
let app = getApp()
|
||||
@@ -93,6 +94,8 @@ Component({
|
||||
title: ' ',
|
||||
notShow: false,
|
||||
isShow: true,
|
||||
currentDate: null,
|
||||
minDate:null,
|
||||
commonFunction: [
|
||||
{ name: '查看完整病历', key: '10' },
|
||||
{ name: '在线开处方', key: '11' },
|
||||
@@ -116,7 +119,25 @@ Component({
|
||||
dialog_message: "在线开处方需先进行多点执业认证",
|
||||
message_rounds: 0,
|
||||
networkstatus: "wifi",
|
||||
static_host: api.getStaticHost()
|
||||
static_host: api.getStaticHost(),
|
||||
formatter(type, value) {
|
||||
if (type === 'year') {
|
||||
return `${value}年`;
|
||||
}
|
||||
if (type === 'month') {
|
||||
return `${value}月`;
|
||||
}
|
||||
if (type === 'day') {
|
||||
return `${value}日`;
|
||||
}
|
||||
if (type === 'hour') {
|
||||
return `${value}时`;
|
||||
}
|
||||
if (type === 'minute') {
|
||||
return `${value}分`;
|
||||
}
|
||||
return value;
|
||||
},
|
||||
},
|
||||
|
||||
lifetimes: {
|
||||
@@ -186,6 +207,7 @@ Component({
|
||||
const mycloudCustomData = JSON.stringify({
|
||||
order_inquiry_id: this.data.order_inquiry_id,
|
||||
inquiry_type: this.data.inquiry_type,
|
||||
inquiry_mode:this.data.baseInfo.inquiry_mode,
|
||||
message_type: 0,
|
||||
is_system: 0,
|
||||
message_rounds: message_rounds,
|
||||
@@ -292,7 +314,7 @@ Component({
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
// 打开录音开关
|
||||
switchAudio() {
|
||||
wx.hideKeyboard();
|
||||
@@ -595,6 +617,7 @@ Component({
|
||||
const mycloudCustomData = JSON.stringify({
|
||||
order_inquiry_id: this.data.order_inquiry_id,
|
||||
inquiry_type: this.data.inquiry_type,
|
||||
inquiry_mode:this.data.baseInfo.inquiry_mode,
|
||||
message_type: 0,
|
||||
is_system: 0,
|
||||
message_rounds: message_rounds,
|
||||
@@ -686,10 +709,27 @@ Component({
|
||||
}
|
||||
})
|
||||
break;
|
||||
case '12'://预约视频时间
|
||||
this.setData({
|
||||
currentDate:new Date().getTime(),
|
||||
minDate:new Date().getTime(),
|
||||
showTimepicker:true
|
||||
})
|
||||
default:
|
||||
break;
|
||||
}
|
||||
},
|
||||
cancelTimepicker(){
|
||||
this.setData({
|
||||
showTimepicker:false
|
||||
})
|
||||
},
|
||||
confirmTimepicker(event){
|
||||
console.log(dayjs(event.detail).format('YYYY-MM-DD HH:mm'));
|
||||
this.setData({
|
||||
showTimepicker:false
|
||||
})
|
||||
},
|
||||
goCase(){
|
||||
|
||||
let order_inquiry_id = this.data.order_inquiry_id
|
||||
@@ -978,6 +1018,7 @@ Component({
|
||||
const mycloudCustomData = JSON.stringify({
|
||||
order_inquiry_id: this.data.order_inquiry_id,
|
||||
inquiry_type: this.data.inquiry_type,
|
||||
inquiry_mode:this.data.baseInfo.inquiry_mode,
|
||||
message_type: 0,
|
||||
is_system: 0,
|
||||
message_rounds: message_rounds,
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
"Emoji": "../MessageElements/Emoji/index",
|
||||
"CommonWords": "../MessagePrivate/CommonWords/index",
|
||||
"OrderList": "../MessagePrivate/OrderList/index",
|
||||
"van-popup": "@vant/weapp/popup/index",
|
||||
"van-datetime-picker": "@vant/weapp/datetime-picker/index",
|
||||
"ServiceEvaluation": "../MessagePrivate/ServiceEvaluation/index",
|
||||
"t-dialog": "tdesign-miniprogram/dialog/dialog"
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
<view class="TUI-commom-function">
|
||||
<view class="TUI-commom-function-item" data-key="10" bindtap="handleCommonFunctions">查看完整病历</view>
|
||||
<view class="TUI-commom-function-item" data-key="11" bindtap="handleCommonFunctions" wx:if="{{baseInfo.multi_point_status == 1 && baseInfo.inquiry_status==4 && baseInfo.multi_point_enable==1}}">在线开处方</view>
|
||||
<view class="TUI-commom-function-item" data-key="12" bindtap="handleCommonFunctions" wx:if="{{baseInfo.multi_point_status == 1 && baseInfo.inquiry_status==4 && baseInfo.multi_point_enable==1}}">预约视频时间</view>
|
||||
</view>
|
||||
<view class="TUI-message-input">
|
||||
<image class="TUI-icon" bindtap="switchAudio"
|
||||
@@ -141,3 +142,19 @@
|
||||
确定
|
||||
</view>
|
||||
</t-dialog>
|
||||
<van-popup
|
||||
round
|
||||
show="{{ showTimepicker}}"
|
||||
position="bottom"
|
||||
custom-style="height: 50%"
|
||||
>
|
||||
<van-datetime-picker
|
||||
bind:cancel="cancelTimepicker"
|
||||
title="预约视频时间"
|
||||
bind:confirm="confirmTimepicker"
|
||||
value="{{ currentDate }}"
|
||||
min-date="{{ minDate }}"
|
||||
formatter="{{ formatter }}"
|
||||
/>
|
||||
|
||||
</van-popup>
|
||||
|
||||
@@ -213,4 +213,10 @@
|
||||
.dialog_confirm_btn{
|
||||
border-top: 1px solid #E9E9E9;
|
||||
color: #3CC7C0;
|
||||
}
|
||||
.van-picker__cancel{
|
||||
color: rgba(0,0,0,0.65)!important;
|
||||
}
|
||||
.van-picker__confirm{
|
||||
color: #3CC7C0!important;
|
||||
}
|
||||
@@ -107,6 +107,16 @@ Component({
|
||||
},
|
||||
|
||||
ready() {
|
||||
let hasTip=wx.getStorageSync('showNewerTip');
|
||||
if(hasTip){
|
||||
this.setData({
|
||||
showTip:false
|
||||
})
|
||||
}else{
|
||||
this.setData({
|
||||
showTip:true
|
||||
})
|
||||
}
|
||||
//修改为组件传值
|
||||
// this.getInquiryMessageBasic()
|
||||
// console.log("app.globalData.scene from TUIchat ready: ", app.globalData.scene);
|
||||
@@ -148,6 +158,7 @@ Component({
|
||||
rest_time:0,
|
||||
total_rounds:0,
|
||||
timeData:{},
|
||||
showTip:false,
|
||||
conversationName: '',
|
||||
conversation: {},
|
||||
messageList: [],
|
||||
@@ -209,6 +220,12 @@ Component({
|
||||
// }
|
||||
|
||||
},
|
||||
onClickHide() {
|
||||
this.setData({ showTip: false });
|
||||
wx.setStorageSync('showNewerTip',true)
|
||||
},
|
||||
|
||||
noop() {},
|
||||
onChangeTime(e) {
|
||||
this.setData({
|
||||
'timeData': e.detail,
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
"MessageList": "./components/MessageList/index",
|
||||
"MessageInput": "./components/MessageInput/index",
|
||||
"TUIGroup": "../TUIGroup/index",
|
||||
"van-overlay": "@vant/weapp/overlay/index",
|
||||
"van-count-down": "@vant/weapp/count-down/index",
|
||||
"te-nav-bar": "/commpents/te_navbar",
|
||||
"t-dialog": "tdesign-miniprogram/dialog/dialog"
|
||||
|
||||
@@ -81,4 +81,32 @@
|
||||
<view slot="confirm-btn" class="dialog dialog_confirm_btn" bindtap="confirmDialog">
|
||||
确定
|
||||
</view>
|
||||
</t-dialog>
|
||||
</t-dialog>
|
||||
<van-overlay show="{{ showTip }}" z-index="999">
|
||||
<view class="wrapper">
|
||||
<view class="block">
|
||||
<image src="../../../static/images/yishi/tabbar_icon/yuyue_star.png" mode="" class="star" />
|
||||
<view class="title">视频问诊新手指引</view>
|
||||
<view class="con">
|
||||
<view class="msgcell">1、主动与患者确定视频时间,并点击下发【预约视频时间】按钮进行设置;
|
||||
</view>
|
||||
<view class="msgcell">2、如需修改视频时间,可在聊天页的上方点击黄色区域修改;</view>
|
||||
<view class="msgcell">3、请设置视频时间,方便给双方下发短信;</view>
|
||||
<view class="msgcell">4、请在预约的视频时间前进入聊天页,准时发起视频。</view>
|
||||
<!-- <view class="msgcell">1、通过文字等形式与患者沟通确定视频沟通时间;</view>
|
||||
<view class="msgcell">2、按照医患双方确定的视频时间进行预约;</view>
|
||||
<view class="msgcell">3、点击确定预约后,平台会给双方发送短信提醒;</view>
|
||||
<view class="msgcell">4、在预约时间前3分钟,平台也会发送短信提醒医患进入聊天室;</view>
|
||||
<view class="msgcell">5、如需要更改预约视频时间,可与患者进行图文沟通重新确认时间后,点击上方【如需要修改视频时间,请点击这里】按钮,会弹窗提示您重新预约时间,仅有一次修改机会,若确认修改时间,建议您重新设置,平台可以帮助提醒双方在规定时间内进行视频;</view>
|
||||
<view class="msgcell">6、视频发起方为医生,医生可根据实际需要随时发起视频交流请求</view> -->
|
||||
</view>
|
||||
<view class="imgcon">
|
||||
<image src="../../../static/images/yishi/tabbar_icon/yuyue.png" mode="" class="yuyue"/>
|
||||
</view>
|
||||
<view class="btnwraper">
|
||||
<view class="tipcancel" bindtap="onClickHide">不再提醒</view>
|
||||
<view class="tipok" bindtap="onClickHide">确 定</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</van-overlay>
|
||||
@@ -226,4 +226,82 @@
|
||||
.dialog_confirm_btn{
|
||||
border-top: 1px solid #E9E9E9;
|
||||
color: #3CC7C0;
|
||||
}
|
||||
}
|
||||
|
||||
.wrapper {
|
||||
|
||||
width:100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.block .title{
|
||||
text-align: center;
|
||||
font-size: 48rpx;
|
||||
|
||||
font-weight: 500;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
.wrapper .con{
|
||||
margin-top: 30rpx;
|
||||
background-color: #f2fcff;
|
||||
border-radius: 20rpx;
|
||||
padding: 50rpx 40rpx 30rpx;
|
||||
}
|
||||
.msgcell{
|
||||
margin-top: 10rpx;
|
||||
font-size: 32rpx;
|
||||
}
|
||||
.yuyue{
|
||||
width:343rpx;
|
||||
height:274rpx;
|
||||
}
|
||||
.wrapper .block{
|
||||
margin-top:400rpx;
|
||||
position: relative;
|
||||
width:90%;
|
||||
}
|
||||
.imgcon{
|
||||
margin-top: 0rpx;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.btnwraper{
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
.tipcancel{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 32rpx;
|
||||
font-weight: 500;
|
||||
color: #FFFFFF;
|
||||
width: 240rpx;
|
||||
height: 88rpx;
|
||||
background: rgba(255,255,255,0.12);
|
||||
border-radius: 44rpx;
|
||||
border: 1rpx solid #FFFFFF;
|
||||
}
|
||||
.tipok{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 32rpx;
|
||||
font-weight: 500;
|
||||
width: 240rpx;
|
||||
height: 88rpx;
|
||||
background: #3CC7C0;
|
||||
border-radius: 50rpx;
|
||||
color: #FFFFFF;
|
||||
margin-left: 32rpx;
|
||||
}
|
||||
.star{
|
||||
left:50rpx;
|
||||
top:25rpx;
|
||||
position: absolute;
|
||||
width: 150rpx;
|
||||
height: 150rpx;
|
||||
}
|
||||
Reference in New Issue
Block a user