diff --git a/Pages/yishi/wenzhen_v2/wenzhen.js b/Pages/yishi/wenzhen_v2/wenzhen.js index 7ae1ab9..e8f1bf3 100644 --- a/Pages/yishi/wenzhen_v2/wenzhen.js +++ b/Pages/yishi/wenzhen_v2/wenzhen.js @@ -58,7 +58,11 @@ Page({ _this.setData({ has_data: true }) - _this.selectComponent('#tabs').resize(); + try { + _this.selectComponent('#tabs').resize(); + } catch (y) { + + } let getCurrentName = _this.selectComponent('#tabs').getCurrentName(); let now_message_inquiry_type = _this.data.now_message_inquiry_type; if(getCurrentName != now_message_inquiry_type){ @@ -194,6 +198,7 @@ Page({ let lastMessage = item.lastMessage; if(!lastMessage) return; let cloudCustomData = lastMessage.cloudCustomData; + if(!cloudCustomData) return; let cloudCustomDataJson; try { @@ -206,11 +211,20 @@ Page({ return; } let order_inquiry_id = cloudCustomDataJson.order_inquiry_id; + order_inquiry_id_list.push(order_inquiry_id);//准备去请求后端那订单状态 }) let conversationList = arr; //this.data.conversationList; //获取医生问诊消息用户属性 - api.getDoctorInquiryMessageAttr({order_inquiry_ids: order_inquiry_id_list.join(",")}).then(response => { + let order_inquiry_ids=''; + order_inquiry_id_list.forEach(item=>{ + if(order_inquiry_ids){ + order_inquiry_ids+=','+item; + }else{ + order_inquiry_ids+=item + } + }) + api.getDoctorInquiryMessageAttr({order_inquiry_ids: order_inquiry_ids}).then(response => { let new_conversationList = []; if(response.data.length > 0){ conversationList.forEach(item => { @@ -362,7 +376,7 @@ Page({ wx.setStorageSync(userID+'_wenzhen_info', totalUnreadCount); - console.log(session_data_list_3) + console.log(session_data_list_1) this.setData({ data_list_1: session_data_list_1, data_list_2: session_data_list_2, @@ -388,7 +402,7 @@ Page({ this.setData({ show: false }) - + console.log(111); // console.log("开始订阅消息"); // wx.requestSubscribeMessage({ // tmplIds: ['jhYUf91ULCTX_f69hazqAYwImdFf8ELasRAwB6X-MTM'], @@ -406,8 +420,10 @@ Page({ //from=end代表从问诊接触过来,from=prescription 代表从处方管理进来 //主要处理有新的问诊还停留在老的聊天问诊里的bug。 if(from){ + url = e.currentTarget.dataset.url+"?from_account="+from_account+"&order_inquiry_id="+order_inquiry_id+"&inquiry_type="+inquiry_type+"&from="+from; }else{ + url = e.currentTarget.dataset.url+"?from_account="+from_account+"&order_inquiry_id="+order_inquiry_id+"&inquiry_type="+inquiry_type; } diff --git a/Pages/yishi/wenzhen_v2/wenzhen.wxml b/Pages/yishi/wenzhen_v2/wenzhen.wxml index 9b908a1..8801644 100644 --- a/Pages/yishi/wenzhen_v2/wenzhen.wxml +++ b/Pages/yishi/wenzhen_v2/wenzhen.wxml @@ -43,7 +43,7 @@ - {{item.inquiry_mode==1?'图文':item.inquiry_mode==2?'视频':item.inquiry_mode==6?'疑难问诊':'其他'}} + {{item.inquiry_mode==1?'图文':item.inquiry_mode==2?'视频':item.inquiry_mode==6?'疑难问诊':item.inquiry_mode==7?'附赠回复':'其他'}} 就诊人: {{item.patient_name}} {{item.patient_sex==1?'男':'女'}}|{{item.patient_age}} @@ -194,7 +194,9 @@ + + data-url="/TUIChatService/pages/index"> + 就诊人: diff --git a/TUICallKit/TUICallKit/component/SingleCall/SingleCall.js b/TUICallKit/TUICallKit/component/SingleCall/SingleCall.js index f10fe4c..a4239c1 100644 --- a/TUICallKit/TUICallKit/component/SingleCall/SingleCall.js +++ b/TUICallKit/TUICallKit/component/SingleCall/SingleCall.js @@ -1,6 +1,7 @@ import { TUICallKitServer } from "../../../TUICallService/index"; const PATH = '../../../static'; Component({ + properties: { callRole: { type: String, @@ -36,6 +37,18 @@ Component({ type: Boolean } }, + pageLifetimes: { + show: function() { + // 页面被展示 + }, + hide: function() { + // 页面被隐藏 + this.hangup() + }, + resize: function(size) { + // 页面尺寸变化 + } + }, data:{ IMG_DEFAULT_AVATAR:`${PATH}/default_avatar.png`, IMG_HANGUP:`${PATH}/hangup.png`, diff --git a/TUIChatService/TUIKit/components/TUIChat/components/MessageElements/CustomMessage/index.js b/TUIChatService/TUIKit/components/TUIChat/components/MessageElements/CustomMessage/index.js index 701d271..ad67c14 100644 --- a/TUIChatService/TUIKit/components/TUIChat/components/MessageElements/CustomMessage/index.js +++ b/TUIChatService/TUIKit/components/TUIChat/components/MessageElements/CustomMessage/index.js @@ -224,6 +224,29 @@ Component({ }]; return renderDom; } + //13 SEND_TALK + if (customMessage.message_type === GDXZ_CUSTOM_MSEEAGE.SEND_TALK){ + + const renderDom = [{ + type: 'send_talk', + title: customMessage.title, + desc: customMessage.desc, + + }]; + return renderDom; + } + //16 预约时间 + if (customMessage.message_type === GDXZ_CUSTOM_MSEEAGE.VIDEO_TIME){ + + let data = customMessage.data; + const renderDom = [{ + type: 'video_time', + title: customMessage.title, + desc: customMessage.desc, + + }]; + return renderDom; + } } catch (error) { } // 客服咨询 diff --git a/TUIChatService/TUIKit/components/TUIChat/components/MessageElements/CustomMessage/index.wxml b/TUIChatService/TUIKit/components/TUIChat/components/MessageElements/CustomMessage/index.wxml index 298d93b..a3f19e4 100644 --- a/TUIChatService/TUIKit/components/TUIChat/components/MessageElements/CustomMessage/index.wxml +++ b/TUIChatService/TUIKit/components/TUIChat/components/MessageElements/CustomMessage/index.wxml @@ -54,7 +54,7 @@ {{renderDom[0].title}} @@ -71,7 +71,7 @@ {{renderDom[0].title}} @@ -143,5 +143,11 @@ 点击查看 + + {{renderDom[0].desc}} + + + {{renderDom[0].desc}} + diff --git a/TUIChatService/TUIKit/components/TUIChat/components/MessageElements/CustomMessage/index.wxss b/TUIChatService/TUIKit/components/TUIChat/components/MessageElements/CustomMessage/index.wxss index e3949c2..4b52d98 100644 --- a/TUIChatService/TUIKit/components/TUIChat/components/MessageElements/CustomMessage/index.wxss +++ b/TUIChatService/TUIKit/components/TUIChat/components/MessageElements/CustomMessage/index.wxss @@ -463,4 +463,10 @@ color: #666666; background: rgb(255, 255, 255); border: 1rpx solid #D8D8D8; border-style: none none solid solid - } \ No newline at end of file + } + .videotime{ + font-size: 28rpx; + text-align: center; + line-height: 44rpx; + color: rgba(0,0,0,0.65); + } \ No newline at end of file diff --git a/TUIChatService/TUIKit/components/TUIChat/components/MessageInput/index.js b/TUIChatService/TUIKit/components/TUIChat/components/MessageInput/index.js index 2a1c816..eb850a4 100644 --- a/TUIChatService/TUIKit/components/TUIChat/components/MessageInput/index.js +++ b/TUIChatService/TUIKit/components/TUIChat/components/MessageInput/index.js @@ -104,6 +104,7 @@ Component({ conversation: {}, message: '', showRound:false, + video_dialog_visible:false, showTalk:false, videoInfo:{}, baseInfo:{}, @@ -334,16 +335,36 @@ Component({ methods: { sendTalk(){ let {order_inquiry_id,duration,times_number}=this.data; + if(times_number==''){ + wx.showToast({ + title: '回合数不能为空', + icon:'none' + }) + return false + } + if(!(times_number>=0 && times_number<=300)){ + wx.showToast({ + title: '回合数在0~300之间', + icon:'none' + }) + return false + } + if(!duration){ + wx.showToast({ + title: '请选择回合周期', + icon:'none' + }) + return false + } this.setData({ showTalk:false }) api.giveRounds({ order_inquiry_id, - duration, + duration:duration*24*60, times_number }).then(response => { if(response.code==200){ - wx.showToast({ title: '赠送成功', icon:"none" @@ -389,12 +410,18 @@ Component({ title: '预约成功', icon:"none" }) + this.triggerEvent("freshVideoInfo") } }).catch(errors => { console.error(errors); }) }, + openVidaoDialog(){ + this.setData({ + video_dialog_visible:true + }) + }, call() { let {baseInfo}=this.data; console.log(baseInfo) @@ -419,7 +446,7 @@ Component({ await TUICallKitServer.call({ userID: this.data.patient_user_id, type: 2, - roomID:result + roomID:Number(result) }); }) @@ -812,7 +839,7 @@ Component({ break; case '10'://查看完整病历 // app.go("/Pages/yishi/case/index?order_inquiry_id="+this.data.order_inquiry_id) - app.go("/Pages/yishi/patient_sick/index?order_inquiry_id="+this.data.order_inquiry_id+"&family_id="+this.data.family_id) + app.go("/user/pages/yishi/patient_sick/index?order_inquiry_id="+this.data.order_inquiry_id+"&family_id="+this.data.family_id) break; case '11'://在线开方 let _this = this; @@ -836,7 +863,7 @@ Component({ this.openTimePicker(); break; case '13': - this.call(); + this.openVidaoDialog(); break; default: break; @@ -867,7 +894,7 @@ Component({ api.getDoctorPrescriptionCheck({order_inquiry_id: order_inquiry_id}).then(response => { let status = response.data.status if(status == 1){ - app.go("/Pages/yishi/onlinechufang/index?order_inquiry_id="+order_inquiry_id) + app.go("/user/pages/yishi/onlinechufang/index?order_inquiry_id="+order_inquiry_id) }else{ this.setData({ dialog_visible: true, @@ -883,6 +910,17 @@ Component({ dialog_visible: false }) }, + cancelDialogVideo(){ + this.setData({ + video_dialog_visible: false + }) + }, + confirmDialogVideo(){ + this.setData({ + video_dialog_visible: false + }) + this.call(); + }, //获取问诊订单状态 async getInquiryMessageBasic(order_inquiry_id) { // console.log("order_inquiry_id: ", this.data.order_inquiry_id); @@ -1426,11 +1464,16 @@ Component({ }, //常用语 showChangYongYu(){ - app.go("/Pages/yishi/quickreply/index?from=chat") + app.go("/user/pages/yishi/quickreply/index?from=chat") }, showWenZhenBiao(){ - app.go("/Pages/yishi/write_sickform/index?order_inquiry_id="+this.data.order_inquiry_id) + app.go("/user/pages/yishi/write_sickform/index?order_inquiry_id="+this.data.order_inquiry_id) }, + showSendTalk(){ + this.setData({ + showTalk:true + }) + } }, }); diff --git a/TUIChatService/TUIKit/components/TUIChat/components/MessageInput/index.wxml b/TUIChatService/TUIKit/components/TUIChat/components/MessageInput/index.wxml index 269790e..81a74a2 100644 --- a/TUIChatService/TUIKit/components/TUIChat/components/MessageInput/index.wxml +++ b/TUIChatService/TUIKit/components/TUIChat/components/MessageInput/index.wxml @@ -2,8 +2,8 @@ 查看完整病历 在线开处方 - 预约视频时间 - 发起视频 + 预约视频时间 + 发起视频 @@ -63,7 +63,7 @@ 问诊表 - + 赠送沟通 @@ -149,6 +149,20 @@ 确定 + + + + + 取消 + + + 立即发起 + + @@ -158,7 +172,7 @@ 个沟通回合数 - + 回合周期 { let result=response.data console.log(result); diff --git a/TUIChatService/TUIKit/components/TUIChat/index.wxml b/TUIChatService/TUIKit/components/TUIChat/index.wxml index f6e8240..db79446 100644 --- a/TUIChatService/TUIKit/components/TUIChat/index.wxml +++ b/TUIChatService/TUIKit/components/TUIChat/index.wxml @@ -32,7 +32,7 @@ {{baseInfo.inquiry_status==1?'待支付':baseInfo.inquiry_status==2?'待分配':baseInfo.inquiry_status==3?'待接诊':baseInfo.inquiry_status==4?'接诊中':baseInfo.inquiry_status==5?'问诊完成':baseInfo.inquiry_status==6?'已结束':baseInfo.inquiry_status==7?'已取消':'未知'}} - + 如需要修改视频时间,请点击这里 @@ -43,7 +43,7 @@ {{conversationName}} --> - + - + + - + - + - + + + + + + + + + + + + {{user_name}} + {{hospital.hospital_level_name}} + 可处方 + + {{doctor_title_name}}{{department_custom_name}} + {{hospital.hospital_name}} + + + + + + 医生简介 + + + {{brief_introduction}} + + + + + + + + 医生擅长 + + + {{be_good_at}} + + + + + + diff --git a/user/pages/yishi/expertDetail/expertDetail.wxss b/user/pages/yishi/expertDetail/expertDetail.wxss new file mode 100644 index 0000000..1912f97 --- /dev/null +++ b/user/pages/yishi/expertDetail/expertDetail.wxss @@ -0,0 +1,665 @@ +/* pages/expertDetail/expertDetail.wxss */ +page{ + height:100vh; + display: flex; + flex-direction: column; +} +.namebox { + display: flex; +} +.namebox .left{ + position: relative; +} +.contain { + position: relative; + background: #F2F2F2; + display: flex; + background: linear-gradient(180deg, #3CC7C0, #F2F2F2 20%); + flex-direction: column; + padding: 0 30rpx 0rpx; + flex:1; + overflow: hidden; + +} +.boxwraper{ + flex:1; + margin-bottom: 20rpx; + overflow-y:scroll; + -webkit-overflow-scrolling: touch; +} +.tipcon{ +display: flex; +justify-content: center; +flex-direction: column; +align-items: flex-start; +} +.tipcon text{ + width:100%; +} +.tips .count{ + display: inline; +} +.content { + z-index: 0; + left: 0; + position: absolute; + width: 100%; + overflow: hidden; + height: 490rpx; + background: linear-gradient(180deg, #3CC7C0 0%, rgba(255, 255, 255, 0) 100%) +} + +.infobox { + position: relative; + z-index: 1; + margin-top: 40rpx; + padding: 22rpx 20rpx 40rpx; + background: #FFFFFF; + border-radius: 10rpx; +} + +.namebox .head { + width: 120rpx; + height: 120rpx; + flex-shrink: 0; + border-radius: 50%; +} + + + +.namebox { + display: flex; + +} +.namewraper { + flex:1; + min-height: 120rpx; + display: flex; + justify-content: space-between; + flex-direction: column; + margin-left: 20rpx; +} + +.namebox .row { + max-width:380rpx; + display: flex; + align-items: flex-end; + width:100%; + +} + +.namebox { + display: flex; + align-items: center; + justify-content: space-between; +} + +.namebox .name { + + white-space: nowrap; + font-weight: 600; + color: #333333; + + overflow: hidden; + text-overflow: ellipsis; + font-size: 34rpx; +} + +.position { + font-size: 30rpx; + white-space: normal; + word-break: break-all; +} + +.hospital { + color: #333333; + font-size: 28rpx; + white-space: normal; + word-break: break-all; +} + +.type { + height: 32rpx; + display: flex; + margin-bottom: 6rpx; + line-height: 32rpx; + white-space: nowrap; + align-items: center; + margin-left: 18rpx; + padding: 0rpx 6rpx; + background: #ED9C00; + border-radius: 4rpx; + color: #FFFFFF; + font-size: 24rpx; +} + +.namebox .position { + font-weight: normal; + white-space: nowrap; + margin-left: 15rpx; + font-size: 30rpx; +} + +.guanzhu { + flex-shrink: 0; + display: flex; + height: 60rpx; + white-space: nowrap; + color: #3CC7C0; + font-size: 30rpx; + font-weight: 600; + justify-content: center; + align-items: center; + font-size: 24rpx; + +} +.namebox .guanzhu image { + width: 35rpx; + height: 32rpx; +} +.cell .nodata{ + color: #999999; + font-size: 32rpx; + font-weight: normal; +} +.descbox { + padding: 0 15rpx; + margin-top: 20rpx; + display: flex; + text-align: center; + justify-content: space-between; +} +.descbox .cell{ + display: flex; + flex-direction: column; + justify-content: space-between; +} +.descbox .number { + color: #333333; + font-size: 40rpx; + font-weight: bold; +} +.descbox .name { + margin-top: 15rpx; + color: #999999; + font-size: 24rpx; +} +.goodjob { + color: #666666; + margin-top: 38rpx; + line-height: 42rpx; + font-size: 28rpx; + white-space: pre-line; + word-break: break-all; + +} +.renzhenbox { + margin-top: 18rpx; + width: 100%; + display: flex; + justify-content: space-between; +} +.goodat .cell{ + height: 60rpx; +display: inline-flex; +border-radius: 30rpx; +align-items: center; +justify-content: center; +font-size: 28rpx; +white-space: nowrap; +color:#333; +margin-left: 20rpx; +padding:0 38rpx; +border: 1rpx solid #CCCCCC; +} +.goodat .cell:first-child{ + margin-left: 0; +} +.renzhenbox view { + display: flex; + align-items: center; +} +.renzhenbox .renzhen{ + visibility: hidden; +} +.renzhenbox .renzhen.active{ + visibility: visible; +} +.renzhen image { + width: 20rpx; + height: 20rpx; +} + +.renzhen text { + font-weight: 600; + color: #3CC7C0; + font-size: 24rpx; + margin-left: 10rpx; +} + +.intro image { + width: 10rpx; + height: 18rpx; +} + +.intro text { + color: #333333; + margin-right: 10rpx; + font-size: 24rpx; +} + +.titlebox { + display: flex; + padding: 0 20rpx 0rpx; + align-items: center; + justify-content: space-between; +} + +.titlebox .title { + font-weight: 600; + color: #333333; + font-size: 36rpx; +} + +.commentbox .titlebox { + border-bottom: 1rpx solid#E7E7E7; + padding: 0 20rpx 30rpx; +} + +.titlebox .tag { + transform: rotateZ(360deg); + height: 40rpx; + border: 1rpx solid #3CC7C0; + padding: 0 25rpx; + display: flex; + align-items: center; + border-radius: 20rpx; + color: #3CC7C0; + font-size: 24rpx; +} + +.drbox { + border-radius: 10rpx; + margin-top: 20rpx; + padding: 40rpx 0 30rpx; + background-color: #fff; +} + +.wentype { + position: relative; + align-items: center; + box-sizing: border-box; + margin: 0 20rpx; + margin-top: 38rpx; + display: flex; + height: 176rpx; + border-radius: 10rpx; + border: 1rpx solid #3CC7C0; +} +.freewenzhen{ + border: 1rpx solid #ED9C00 +} +.freewenzhen .pricebox{ + display: flex; + align-items: center; +} +.pricebox .rest{ + margin-left: 30rpx; + font-size: 28rpx; + color:#333; +} +.wentype image{ + width:88rpx; + height:94rpx; + margin-left: 52rpx; +} +.freewenzhen image{ + margin-left: 20rpx; + width:160rpx; + height:160rpx; +} +.wentype .rightbox{ + height:94rpx; + margin-left: 52rpx; + display: flex; + justify-content: space-between; + flex-direction: column; + +} +.freewenzhen .rightbox{ + margin-left: 22rpx; +} +.rightbox .name{ + color: #333333; + font-size: 34rpx; +} +.rightbox .price{ + color: #EF4F20; + font-size: 34rpx; + font-weight: 600; +} +.wentype .gou{ + position: absolute; + width:97rpx; + height:80rpx; + right:0rpx; + bottom:-1rpx; +} +.tips{ + position: relative; + margin:17rpx 20rpx 0; + height:129rpx; + border-radius: 10rpx; +} +.tips view{ + z-index:1; + display: flex; + align-items: center; + position: absolute; + left:20rpx; + margin-top: 12rpx; + right:20rpx; + height:129rpx; + line-height: 40rpx; + color: #333333; + font-size: 24rpx; +} +.tips image{ + z-index:0; + position: absolute; + width:100%; + height:129rpx; +} +.more{ + display: flex; + align-items: center; +} +.commentbox{ + margin-top: 20rpx; + padding: 40rpx 0 0; + background-color: #fff; + border-radius: 10rpx; +} +.more text{ + color: #333333; + font-size: 28rpx; + margin-right: 10rpx; +} +.more image{ + width: 14rpx; + height: 26rpx; +} +.commentbox .titlebox{ + padding-bottom: 30rpx; +} +.title text{ + font-size: 28rpx; + font-weight: normal; + color:#666; +} +.list{ + padding-top: 30rpx; + padding-bottom: 30rpx; + border-bottom: 1px solid #E7E7E7; +} +.list:last-child{ + border: none; +} +.list .namebox{ + margin:0rpx 20rpx 0rpx; + display: flex; +} +.list .namebox .name{ + font-weight: normal; + font-size: 28rpx; + color:#666; +} +.commment{ + margin:30rpx 20rpx 20rpx; + color: #333333; + font-size: 30rpx; + word-break: break-all; + line-height: 48rpx; +} +.date{ + margin:0rpx 20rpx 0rpx; + display: flex; + color: #666666; + font-size: 24rpx; +} +.ask{ +margin-bottom: 20rpx; +height: 94rpx; +background: #3CC7C0; +border-radius: 47rpx; +display: flex; +align-items: center; +color: #FFFFFF; +font-size: 36rpx; +justify-content:center; +} +.noask{ +margin-bottom: 20rpx; +height: 94rpx; +background: #dedede; +border-radius: 47rpx; +display: flex; +align-items: center; +color: #fff; +font-size: 36rpx; +justify-content:center; + +} +.van-icon-cross{ + color:#333; + +} +.van-popup__close-icon{ + position: absolute!important; + +} +.van-popup--bottom +.rowintro{ + margin-top: 30rpx; + display: flex; + color: #333333; + font-size: 34rpx; + align-items: center; +} +.rowintro image{ + width: 32rpx; + height:35rpx; +} +.rowintro text{ + margin-left: 16rpx; +} +.borderbox{ + position: relative; + padding-bottom: 30rpx; + +} +.borderbox .line{ + position: absolute; + left:-52rpx; + right:-52rpx; + height: 1rpx; + bottom:0rpx; + background:#E7E7E7; +} +.borderbox:last-child .line{ + display: none; +} +.ellipsis{ + text-overflow: ellipsis; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; + overflow: hidden +} +.goodat{ + display: flex; + white-space: nowrap; +} +.scroll-view_H{ + display: flex; +} +.popwrper{ + position: absolute; + width:100%; + top:0px; + overflow-y: scroll; + -webkit-overflow-scrolling: touch; + bottom:0px; +} +.doctor_title{ + margin-right: 10rpx; +} +.close{ + z-index:9; + width: 32rpx; + height:32rpx; + position: absolute; + right:20rpx; + top:30rpx; +} +.wz_tabbox{ + margin-top: 20rpx; +} +.tabs{ + margin-top: 16rpx; + display: flex; + justify-content: space-between; +} +.tabs .tab{ + width: 214rpx; + height: 300rpx; + position: relative; + box-shadow: 0rpx 8rpx 20rpx 2rpx rgba(0,0,0,0.04); +} +.tabbg{ + top:0rpx; +width: 100%; +z-index:0; +height: 314rpx; + position: absolute; +} +.typebox{ + margin-top: 158rpx; + position: relative; + + + z-index:1; + display: flex; + flex-direction: column; + align-items: center; +} +.typebox .name{ + color: #333333; + font-size: 32rpx; + font-weight: 500; + color: #333333; +} +.typebox .price{ + margin-top: 12rpx; + font-size: 28rpx; +font-weight: 400; +color: #EF4F20; +} +.jiaprice{ + margin-top: 10rpx; +font-size: 20rpx; +font-weight: 400; +color: #999999; +text-decoration: line-through; +} +.swiperbox{ + margin-top: 30rpx; +} +.swiper-item{ + border-radius: 20rpx; + + overflow: hidden; + position: relative; + background-color: #fff; +} +.swiper-item .title{ + margin-top: 10rpx; + font-size: 32rpx; +font-weight: 500; +color: rgba(0,0,0,0.85); +} +.tipbox{ + margin-top: 20rpx; +} +.tipbox .tipmsg{ + display: flex; + line-height: 44rpx; +} +.tipbox .tipmsg .circle{ + flex-shrink: 0; + margin-top: 17rpx; + margin-right: 10rpx; + width: 10rpx; +height: 10rpx; +background: #3BB5FE; +border-radius: 50%; +} +.tipbox .tipmsg .msg{ + white-space: pre-wrap; + font-size: 28rpx; +color: rgba(0,0,0,0.65); +} +.swiperbox .swiper-item:nth-child(1) .circle{ + background: #52C41A; +} +.swiperbox .swiper-item:last-child .circle{ + background: #FF9C00; +} +.tipbox.active .tipmsg .msg{ + color: rgba(0,0,0,0.35); +} +.swiperbox .tipbox.active .circle{ + background-color: rgba(0,0,0,0.35); +} +.itembg{ + height:100%; + width:100%; + position: absolute; + z-index:0; +} +.itembox{ + position: relative; + z-index:1; +} +.itembox{ + overflow: hidden; + padding: 30rpx; +} +/* .swiperbox .swiper-item:last-child{ + background-image: linear-gradient(270deg,#fff5e4,#fff); +} */ + +.typebox.disable .name,.typebox.disable .price{ + color: #999999; +} +.itembox.diable .title,.itembox.diable .msg{ + color: #999999; +} +.datebox{ + + display: flex; + justify-content: space-between; + align-items: flex-end; +} +.sick_name{ + margin-left: 20rpx; + font-size: 20rpx; +font-weight: 400; +display: flex; +border-radius: 20rpx; +height: 38rpx; +padding:0 15rpx; +border: 1rpx solid #3CC7C0; +align-items: center; +color: #3CC7C0; +} \ No newline at end of file diff --git a/user/pages/yishi/onlinesetup/index.js b/user/pages/yishi/onlinesetup/index.js index b4ffdd4..034a3f4 100644 --- a/user/pages/yishi/onlinesetup/index.js +++ b/user/pages/yishi/onlinesetup/index.js @@ -44,7 +44,11 @@ Page({ }, onShow(){ + let {active}=this.data; this.getDoctorconfig(); + if(active==2){ + this.getConfig() + } }, getDoctorconfig(){ let {inquiry_type,inquiry_mode}=this.data; diff --git a/user/pages/yishi/onlinesetup/index.wxml b/user/pages/yishi/onlinesetup/index.wxml index 378690d..b204a8d 100644 --- a/user/pages/yishi/onlinesetup/index.wxml +++ b/user/pages/yishi/onlinesetup/index.wxml @@ -12,7 +12,7 @@ - {{ note==1?'已开启,患者可以向您发起图文问诊':'已关闭,暂不接诊' }} + {{ (info.is_open==1 && active==0)?'已开启,患者可以向您发起图文问诊':'已关闭,暂不接诊' }} @@ -61,7 +61,7 @@ - {{ note==1?'已开启,患者可以向您发起视频问诊':'已关闭,暂不接诊'}} + {{ (info.is_open==1&& active==1)?'已开启,患者可以向您发起视频问诊':'已关闭,暂不接诊'}} @@ -116,7 +116,7 @@ - {{ note==1?'已开启,患者可以向您发起疑难会诊':'已关闭,暂不接诊'}} + {{ (info.is_open==1 && active==2)?'已开启,患者可以向您发起疑难会诊':'已关闭,暂不接诊'}} diff --git a/user/pages/yishi/orderdetail/index.wxml b/user/pages/yishi/orderdetail/index.wxml index bbd0f5d..da7e5b5 100644 --- a/user/pages/yishi/orderdetail/index.wxml +++ b/user/pages/yishi/orderdetail/index.wxml @@ -5,17 +5,17 @@ - {{ item.inquiry_type==1?'专家问诊':item.inquiry_type==2?'快速问诊':item.inquiry_type==3?'公益问诊':item.inquiry_type==4?'问诊购药':'其他' }} + {{ item.inquiry_type==1 && item.inquiry_mode==1?'在线问诊-图文':item.inquiry_type==1 && item.inquiry_mode==2?'在线问诊-视频':item.inquiry_type==1 && item.inquiry_mode==6?'疑难会诊':item.inquiry_type==2?'快速问诊':item.inquiry_type==3?'公益问诊':item.inquiry_type==4?'问诊购药':'其他' }} {{ item.entry_status==1?'入账中':item.entry_status==2?'入账成功':item.entry_status==3?'入账失败':'未知' }} - 订单编号:{{item.inquiry_no}} - 就诊患者:{{item.patient_name}}({{item.patient_sex==1?'男':'女'}},{{item.patient_age}}岁) - 接诊时间:{{item.reception_time}} - 结束时间:{{item.finish_time}} - 订单金额:¥{{item.amount_total}} - 预计收入:¥{{item.estimate_income}} + 订单编号:{{item.inquiry_no}} + 就诊患者:{{item.patient_name}}({{item.patient_sex==1?'男':'女'}},{{item.patient_age}}岁) + 接诊时间:{{item.reception_time}} + 结束时间:{{item.finish_time}} + 订单金额:¥{{item.amount_total}} + 预计收入:¥{{item.estimate_income}} diff --git a/user/pages/yishi/orderdetail/index.wxss b/user/pages/yishi/orderdetail/index.wxss index 03df119..09759f0 100644 --- a/user/pages/yishi/orderdetail/index.wxss +++ b/user/pages/yishi/orderdetail/index.wxss @@ -12,10 +12,11 @@ page{ padding-bottom: 50rpx; } .order_item{ + display: flex; width: 100%; margin-top: 30rpx; - height: 500rpx; + } .order_item_content{ flex: 5; @@ -23,15 +24,16 @@ page{ border-radius: 20rpx; display: flex; flex-direction: column; - padding: 20rpx; + } .order_item_content_top{ flex: 1; border-bottom: 1px solid #E5E5E5; display: flex; align-items: center; - font-size: 36rpx; + font-size: 32rpx; justify-content:space-between; + padding:20rpx; } .order_status{ padding: 10rpx 20rpx; @@ -39,33 +41,41 @@ page{ border-radius: 10rpx; } .order_status_ing{ - background-color: #FFF2E8; - color: #FA541C; + /* background-color: #FFF2E8; */ + color: #FF9C00; } .order_status_cancle{ - background-color: #C5C5C5; - color: #fff; + /* background-color: #C5C5C5; */ + color: #FF5D2E; } .order_status.entrying{ - background: #FFF2E8; + /* background: #FFF2E8; */ color: #FA541C; } .order_status.entrysuccess{ - background: #E2FFFE; + /* background: #E2FFFE; */ color: #3CC7C0; } .order_status.entryfail{ - background-color: #C5C5C5; - color: #fff; + color: #FF5D2E; } .order_item_content_data{ flex: 5; display: flex; + padding: 20rpx; flex-direction: column; } .order_id{ flex: 1; display: flex; align-items: center; + justify-content: space-between; + font-size: 30rpx; + margin-top: 10rpx; + flex: 1; + color: rgba(0,0,0,0.45); + display: flex; + line-height: 48rpx; + align-items: center; font-size: 30rpx; } diff --git a/user/pages/yishi/service_setting/index.js b/user/pages/yishi/service_setting/index.js index 2b69af0..4ad9171 100644 --- a/user/pages/yishi/service_setting/index.js +++ b/user/pages/yishi/service_setting/index.js @@ -12,6 +12,8 @@ Page({ showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示 title: '服务设置', //导航栏 中间的标题 }, + inquiry_type:1, + inquiry_mode:6, show:false, content_message:'', process_message:'', @@ -55,6 +57,17 @@ Page({ }) } }, + goBack(){ + let {cycle,rounds,content_message,process_message,config_service_id}=this.data; + if((cycle || rounds || content_message || process_message || rounds==0) && !config_service_id){ + this.setData({ + showSave:true + }) + }else{ + wx.navigateBack() + } + + }, onClickHide(){ this.setData({ show:false @@ -93,6 +106,30 @@ Page({ rounds:this.data.customRounds }) }, + openPreview(){ + let {process_message,content_message,}=this.data; + if(content_message.length<10){ + wx.showToast({ + title: '服务内容不少于10个字符', + icon:'none' + }) + return false + }; + if(process_message.length<10){ + wx.showToast({ + title: '服务流程不少于10个字符', + icon:'none' + }) + return false + }; + wx.setStorageSync('config_message', { + content_message, + process_message, + }) + this.setData({ + showPreview:true + }) + }, changeCustomIpt(event){ let {value}= event.detail; console.log(value); @@ -166,32 +203,44 @@ Page({ }) }, +// getConfig(){ +// let {inquiry_type,inquiry_mode}=this.data; +// api.getServiceConfig({ +// inquiry_type, +// inquiry_mode +// }).then(response => { +// let result=response.data; +// if(result){ +// this.setData({ +// 'config_setting.service_content':result.service_content, +// 'config_setting.service_process':result.service_process, +// 'config_setting.service_period':result.service_period, +// 'config_setting.service_rounds':result.service_rounds, +// 'config_setting.config_service_id':result.config_service_id +// }) +// } +// }).catch(errors => {console.error(errors);}) +// }, saveconfirmDialog(){ - - let {cycle,rounds,content_message,process_message,config_service_id}=this.data; + let {cycle,rounds,content_message,process_message}=this.data; wx.setStorageSync('service_setting',{ cycle, rounds, content_message, - process_message, - + process_message }) - this.setData({ showSave:false - }) - if(config_service_id){ - this.putConfig(); - }else{ - this.postConfig(); - } + }); + wx.navigateBack(); + }, draftcancelDialog(){ this.setData({ showDraft:false }) - this.getConfig(); + //this.getConfig(); }, draftconfirmDialog(){ const service_setting=wx.getStorageSync('service_setting'); @@ -212,15 +261,23 @@ Page({ this.setData({ showPreview:false }) + let doctor_id=wx.getStorageSync('client_user_id_2') + app.go("/user/pages/yishi/expertDetail/expertDetail?doctor_id="+doctor_id) + }, + onChangeText(event){ + let {id}=event.currentTarget.dataset; + console.log(id); + this.setData({ + [id]:event.detail + }) }, save(){ - let {cycle,rounds,content_message,process_message}=this.data; - if(cycle || rounds || content_message || process_message){ - this.setData({ - showSave:true - }) - - } + let {config_service_id}=this.data; + if(config_service_id){ + this.putConfig(); + }else{ + this.postConfig(); + } }, validate(){ let {process_message,content_message,cycle,rounds}=this.data; @@ -245,7 +302,7 @@ Page({ }) return false } - if(!rounds){ + if(!rounds && rounds!=0){ wx.showToast({ title: '请设置服务回合数', icon:'none' @@ -263,12 +320,13 @@ Page({ service_period:cycle, service_rounds:rounds=='不限次'?0:rounds }).then(response => { - if(response.data==200){ + if(response.code==200){ wx.showToast({ - title: 'title', - icon:'新增成功' + title: '新增成功', + icon:'none' }) - wx.navigateBack() + wx.navigateBack(); + wx.setStorageSync('service_setting','') } }).catch(errors => {console.error(errors);}) } @@ -283,19 +341,20 @@ Page({ service_period:cycle, service_rounds:rounds=='不限次'?0:rounds },config_service_id).then(response => { - if(response.data==200){ + console.log(response) + if(response.code==200){ wx.showToast({ - title: 'title', - icon:'修改成功' + title: '修改成功', + icon:'none' }) - wx.navigateBack() + wx.navigateBack(); + } }).catch(errors => {console.error(errors);}) } }, getConfig(){ - let {inquiry_type,inquiry_mode}=this.data; api.getServiceConfig({ inquiry_type:1, inquiry_mode:6 @@ -316,6 +375,7 @@ Page({ */ onLoad(options) { const service_setting=wx.getStorageSync('service_setting'); + console.log(service_setting) let arr=[]; for (let i =2; i < 31; i++) { arr.push(i) @@ -327,12 +387,13 @@ Page({ this.setData({ config_service_id:options.config_service_id }) - } - if(service_setting){ - this.setData({ - showDraft:true - }) - + this.getConfig(); + }else{ + if(service_setting){ + this.setData({ + showDraft:true + }) + } } }, diff --git a/user/pages/yishi/service_setting/index.json b/user/pages/yishi/service_setting/index.json index 714ddb3..0233690 100644 --- a/user/pages/yishi/service_setting/index.json +++ b/user/pages/yishi/service_setting/index.json @@ -1,6 +1,7 @@ { "usingComponents": { - "te-nav-bar": "../../../../commpents/te_navbar/index", + "t-navbar": "tdesign-miniprogram/navbar/navbar", + "t-icon": "tdesign-miniprogram/icon/icon", "van-icon": "@vant/weapp/icon/index", "van-radio": "@vant/weapp/radio/index", "van-picker": "@vant/weapp/picker/index", diff --git a/user/pages/yishi/service_setting/index.wxml b/user/pages/yishi/service_setting/index.wxml index 19ec481..06b6106 100644 --- a/user/pages/yishi/service_setting/index.wxml +++ b/user/pages/yishi/service_setting/index.wxml @@ -1,6 +1,8 @@ - + + + @@ -8,14 +10,19 @@ 服务内容 使用模板 > - + 服务流程 使用模板 > - + 服务周期 @@ -28,14 +35,14 @@ 服务回合数 - {{rounds}} + {{rounds}} 去设置 - - - 预览效果 + + + 预览效果 diff --git a/user/pages/yishi/wenzhenorderV2/index.js b/user/pages/yishi/wenzhenorderV2/index.js index 72852e0..a944c28 100644 --- a/user/pages/yishi/wenzhenorderV2/index.js +++ b/user/pages/yishi/wenzhenorderV2/index.js @@ -12,6 +12,7 @@ Page({ result: [], order_list:[], current_page: 0, + amount_total:0, total: 0, per_page: 10, last_page: 0, @@ -82,6 +83,7 @@ Page({ order_list: list.concat(response.data.data), current_page: response.data.current_page, per_page: response.data.per_page, + total: response.data.total, last_page: response.data.last_page }) } @@ -102,5 +104,15 @@ Page({ console.log(select_order_inquiry_id); let order_inquiry_ids = select_order_inquiry_id.join(","); app.go("/user/pages/yishi/cash/index?order_inquiry_ids="+order_inquiry_ids); + }, + goback(){ + wx.navigateBack() + }, + onLoad(options){ + this.setData({ + amount_total:options.amount_total + }) + } + }) \ No newline at end of file diff --git a/user/pages/yishi/wenzhenorderV2/index.wxml b/user/pages/yishi/wenzhenorderV2/index.wxml index 36d44e5..27ba2ba 100644 --- a/user/pages/yishi/wenzhenorderV2/index.wxml +++ b/user/pages/yishi/wenzhenorderV2/index.wxml @@ -5,14 +5,14 @@ - {{item.inquiry_type==1?'专家问诊':item.inquiry_type==2?'快速问诊':item.inquiry_type==3?'公益问诊':item.inquiry_type==4?'问诊购药':item.inquiry_type==5?'糖组检测':'未知'}} + {{item.inquiry_type==1 && item.inquiry_mode==1?'在线问诊-图文':item.inquiry_type==1 && item.inquiry_mode==2?'在线问诊-视频':item.inquiry_type==1 && item.inquiry_mode==6?'疑难会诊':item.inquiry_type==2?'快速问诊':item.inquiry_type==3?'公益问诊':item.inquiry_type==4?'问诊购药':item.inquiry_type==5?'糖组检测':'未知'}} - 订单编号:{{item.inquiry_no }} - 就诊患者:{{item.patient_name}}({{item.patient_sex==1?'男':'女'}},{{item.patient_age}}岁) - 接诊时间:{{item.reception_time}} - 结束时间:{{item.finish_time}} - 订单金额:¥{{item.amount_total}} - 预计收入:¥{{item.expected_amount_total}} + 订单编号:{{item.inquiry_no }} + 就诊患者:{{item.patient_name}}({{item.patient_sex==1?'男':'女'}},{{item.patient_age}}岁) + 接诊时间:{{item.reception_time}} + 结束时间:{{item.finish_time}} + 订单金额:¥{{item.amount_total}} + 入账入账{{item.amount_total}}*0.75元 @@ -20,4 +20,8 @@ 到底了~ - \ No newline at end of file + + + 共{{total}}个订单,金额:¥{{amount_total}}元 + 确定 + \ No newline at end of file diff --git a/user/pages/yishi/wenzhenorderV2/index.wxss b/user/pages/yishi/wenzhenorderV2/index.wxss index 3c1bba1..76189de 100644 --- a/user/pages/yishi/wenzhenorderV2/index.wxss +++ b/user/pages/yishi/wenzhenorderV2/index.wxss @@ -3,7 +3,8 @@ page{ } .container{ width: 100vw; - padding-bottom: 50rpx; + padding-bottom: 100rpx; + } .order_list{ display: flex; @@ -27,24 +28,34 @@ page{ border-radius: 20rpx; display: flex; flex-direction: column; - padding: 20rpx; - height: 400rpx; + + } .order_item_content_top{ flex: 1; + font-size: 32rpx; + padding:20rpx; + +font-weight: 500; +color: rgba(0,0,0,0.85); border-bottom: 1px solid #E5E5E5; display: flex; align-items: center; - font-size: 36rpx; + } .order_item_content_data{ + padding:20rpx; + margin-top: 10rpx; flex: 3; display: flex; flex-direction: column; } .order_id{ + margin-top: 10rpx; flex: 1; + color: rgba(0,0,0,0.45); display: flex; + line-height: 48rpx; align-items: center; font-size: 30rpx; } @@ -79,3 +90,34 @@ page{ } +.bottom{ + width:100%; + height: 102rpx; + background: #FFFFFF; + box-shadow: inset 0rpx 1rpx 0rpx 0rpx rgba(0,0,0,0.08); + position: fixed; + bottom:-50rpx; + display: flex; +} +.bottom .left{ + padding:0 32rpx; +flex:1; +font-size: 28rpx; +font-weight: 400; +color: #666666; +} +.bottom .money{ + color: #FF0000; + font-size: 30rpx; +} +.bottom .right{ +width: 208rpx; +height: 102rpx; +font-size: 34rpx; +display: flex; +align-items: center; +justify-content: center; +font-weight: 500; +color: #FFFFFF; +background: linear-gradient(310deg, #FF931A 0%, #FF931A 0%, #FCB75D 100%); +} \ No newline at end of file diff --git a/utils/network/api.js b/utils/network/api.js index 38ca2af..7962c98 100644 --- a/utils/network/api.js +++ b/utils/network/api.js @@ -968,6 +968,28 @@ postServiceConfig(params) {//新增医生问诊配置-服务设置 method: 'GET' }) } + getIntroReason() {//获取医生身份认证失败原因 + return this.request({ + url: `${this.baseUrl}/doctor/auth/introduction/reason`, + method: 'GET' + }) + } + getIntroduction() {//获取个人简介 + return this.request({ + url: `${this.baseUrl}/doctor/auth/introduction`, + method: 'GET' + }) + } + updateIntroduction(params) {//获取个人简介 + return this.request({ + url: `${this.baseUrl}/doctor/auth/introduction`, + method: 'PUT', + data: { + ...params + } + }) + } + geRoomId(params) {//创建音视频房间 return this.request({ url: `${this.baseUrl}/doctor/inquiry/video/room`, @@ -977,7 +999,18 @@ postServiceConfig(params) {//新增医生问诊配置-服务设置 } }) } - + getDoctorDetail(params){ + return this.request({ + url: `${this.baseUrl}/doctor/info/inquiry/${params}`, + method: 'GET' + }) + } + getDoctorService(params){ + return this.request({ + url: `${this.baseUrl}/doctor/inquiry/service/${params}`, + method: 'GET' + }) + } }