From bdc8abf326a20ff10ebd6efcee6ffc381e36f76e Mon Sep 17 00:00:00 2001
From: zoujiandong <10130823232@qq.com>
Date: Fri, 22 Mar 2024 16:10:50 +0800
Subject: [PATCH] =?UTF-8?q?3.22=E5=8C=BB=E7=94=9F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Pages/yishi/index/index.wxss | 2 +-
Pages/yishi/wenzhen_v2/wenzhen.js | 23 ++--
Pages/yishi/wenzhen_v2/wenzhen.wxml | 2 +-
TUICallKit/TUICallKit/TUICallKit.js | 8 +-
.../component/SingleCall/SingleCall.js | 12 +-
.../component/SingleCall/SingleCall.wxml | 2 +-
.../TUICallService/serve/callManager.js | 3 +
.../TUICallService/serve/callManager.ts | 1 +
TUICallKit/pages/globalCall/globalCall.js | 2 +
.../TUICallKit/TUICallKit/TUICallKit.js | 3 -
.../TUICallKit/TUICallKit/TUICallKit.json | 7 -
.../TUICallKit/TUICallKit/TUICallKit.wxml | 0
.../TUICallKit/TUICallKit/TUICallKit.wxss | 0
.../TUIChat/components/MessageInput/index.js | 17 ++-
.../components/MessageInput/index.wxml | 8 +-
.../TUIKit/components/TUIChat/index.wxml | 6 +-
app.js | 31 +++--
commpents/te_navbar/index.js | 3 +-
user/commpents/myprofile/index.js | 10 +-
user/commpents/myprofile/index.wxml | 121 +++++++++++++++---
user/commpents/te_navbar/index.js | 11 +-
user/pages/yishi/chufangsetup/index.json | 2 +-
user/pages/yishi/expertDetail/expertDetail.js | 95 +++++++++++---
.../yishi/expertDetail/expertDetail.wxml | 76 ++++++-----
.../yishi/expertDetail/expertDetail.wxss | 17 ++-
user/pages/yishi/onlinesetup/index.js | 11 +-
user/pages/yishi/onlinesetup/index.wxml | 6 +-
user/pages/yishi/onlinesetupprice/index.wxml | 5 +-
user/pages/yishi/service_setting/index.js | 18 ++-
user/pages/yishi/service_setting/index.wxml | 2 +-
user/pages/yishi/service_setting/index.wxss | 2 +-
user/pages/yishi/yizhensetup/index.js | 44 ++++++-
user/pages/yishi/yizhensetup/index.wxml | 19 ++-
user/pages/yishi/yizhensetup/index.wxss | 5 +-
34 files changed, 437 insertions(+), 137 deletions(-)
delete mode 100644 TUIChatService/TUIKit/components/TUICallKit/TUICallKit/TUICallKit.js
delete mode 100644 TUIChatService/TUIKit/components/TUICallKit/TUICallKit/TUICallKit.json
delete mode 100644 TUIChatService/TUIKit/components/TUICallKit/TUICallKit/TUICallKit.wxml
delete mode 100644 TUIChatService/TUIKit/components/TUICallKit/TUICallKit/TUICallKit.wxss
diff --git a/Pages/yishi/index/index.wxss b/Pages/yishi/index/index.wxss
index 1590082..b9673ab 100644
--- a/Pages/yishi/index/index.wxss
+++ b/Pages/yishi/index/index.wxss
@@ -255,7 +255,7 @@ page{
}
.introicon{
top:2rpx;
- left:50rpx;
+ right:-2rpx;
width:32rpx;
height:32rpx;
display: flex;
diff --git a/Pages/yishi/wenzhen_v2/wenzhen.js b/Pages/yishi/wenzhen_v2/wenzhen.js
index 90caa34..2f6a6ee 100644
--- a/Pages/yishi/wenzhen_v2/wenzhen.js
+++ b/Pages/yishi/wenzhen_v2/wenzhen.js
@@ -117,7 +117,10 @@ Page({
if (typeof this.getTabBar === 'function' && this.getTabBar()) {
this.getTabBar().stopInterval()
}
- clearInterval(this.data.unreadnnum_inter)
+ if(this.data.unreadnnum_inter){
+ clearInterval(this.data.unreadnnum_inter);
+ }
+
this.setData({
hasOnShow: false,
data_list_1: [],
@@ -177,7 +180,9 @@ Page({
})
let url = e.currentTarget.dataset.url;
let name = e.currentTarget.dataset.name;
- wx.setStorageSync(name, 0);
+ if(name){
+ wx.setStorageSync(name, 0);
+ }
app.go(url);
},
$onMessageReceived(value) {
@@ -188,7 +193,7 @@ Page({
formatStatus(){
let order_inquiry_id_list = [];
order_inquiry_id_list.push("");//初始化一个,防止失败
- console.log(this.data.conversationList.length)
+ console.log(this.data.conversationList)
let arr=this.data.conversationList.filter(item => item.conversationID != 'C2Cadministrator');
arr.forEach(item => {
@@ -223,7 +228,8 @@ Page({
}else{
order_inquiry_ids+=item
}
- })
+ });
+ //console.log(order_inquiry_ids)
api.getDoctorInquiryMessageAttr({order_inquiry_ids: order_inquiry_ids}).then(response => {
let new_conversationList = [];
if(response.data.length > 0){
@@ -261,12 +267,12 @@ Page({
new_conversationList.push(item);
})
};
- console.log(new_conversationList);
+ //console.log(new_conversationList);
this.setData({
conversationList: new_conversationList
})
}).then(() => {
- console.log("开始格式化formatConversationList")
+ //console.log("开始格式化formatConversationList")
this.formatConversationList();
}).catch(errors => {console.error(errors);})
},
@@ -290,7 +296,7 @@ Page({
let userID = wx.getStorageSync('user_id_'+usertype);
let totalUnreadCount = 0;
let message_inquiry_type = this.data.message_inquiry_type;
- console.log(this.data.conversationList);
+ //console.log(this.data.conversationList);
this.data.conversationList.forEach(item => {
let conversationID = item.conversationID;
if(conversationID == "C2Cadministrator") return;//如果是管理员消息直接跳过
@@ -411,7 +417,6 @@ Page({
this.setData({
show: false
})
- console.log(111);
// console.log("开始订阅消息");
// wx.requestSubscribeMessage({
// tmplIds: ['jhYUf91ULCTX_f69hazqAYwImdFf8ELasRAwB6X-MTM'],
@@ -450,6 +455,8 @@ Page({
// console.log("开始接诊");
// console.log(response);
}).then(() => {
+ console.log(e)
+ console.log("gochat")
this.goChat(e);
}).catch(errors => {
console.error(errors);
diff --git a/Pages/yishi/wenzhen_v2/wenzhen.wxml b/Pages/yishi/wenzhen_v2/wenzhen.wxml
index 334482b..a107d04 100644
--- a/Pages/yishi/wenzhen_v2/wenzhen.wxml
+++ b/Pages/yishi/wenzhen_v2/wenzhen.wxml
@@ -232,6 +232,6 @@
content="为保障服务质量,请您查看患者病历后再去接诊"
>
去查看
- 去接诊
+ 去接诊
\ No newline at end of file
diff --git a/TUICallKit/TUICallKit/TUICallKit.js b/TUICallKit/TUICallKit/TUICallKit.js
index b925821..f2e2e39 100644
--- a/TUICallKit/TUICallKit/TUICallKit.js
+++ b/TUICallKit/TUICallKit/TUICallKit.js
@@ -1,6 +1,4 @@
-import { TUIStore, StoreName, NAME } from "../index";
-import { TUICallKitServer } from "../TUICallService/index";
-
+import { TUICallKitServer,TUIStore, StoreName, NAME } from "../index";
const {
CALL_STATUS,
CALL_ROLE,
@@ -207,6 +205,7 @@ Component({
lifetimes: {
attached() {
let that = this;
+
TUIStore.watch(
StoreName.CALL,
{
@@ -231,6 +230,7 @@ Component({
},
async detached() {
let that = this;
+ TUICallKitServer.getTUICallEngineInstance().handleExceptionExit();
TUIStore.unwatch(StoreName.CALL, {
[CALL_STATUS]: this.handleCallStatusChange.bind(that),
[IS_GROUP]: this.handleIsGroupChange.bind(that),
@@ -246,7 +246,7 @@ Component({
[PUSHER]: this.handlePusherChange.bind(that),
[PLAYER]: this.handlePlayerListChange.bind(that),
});
- await TUICallKitServer.reject();
+
},
},
});
diff --git a/TUICallKit/TUICallKit/component/SingleCall/SingleCall.js b/TUICallKit/TUICallKit/component/SingleCall/SingleCall.js
index f61a180..dd04160 100644
--- a/TUICallKit/TUICallKit/component/SingleCall/SingleCall.js
+++ b/TUICallKit/TUICallKit/component/SingleCall/SingleCall.js
@@ -44,9 +44,8 @@ Component({
moved(){
//console.log('moved')
},
- detached(){
- //console.log('detached')
- this.hangup()
+ async detached(){
+
}
},
pageLifetimes: {
@@ -54,7 +53,7 @@ Component({
},
hide() {
- this.hangup()
+ // this.hangup()
},
},
data:{
@@ -69,7 +68,8 @@ Component({
IMG_CAMERA_FALSE:`${PATH}/doctor_camera_false.png`,
IMG_TRANS:`${PATH}/doctor_trans.png`,
IMG_SWITCH_CAMERA:`${PATH}/doctor_switch_camera.png`,
- patient_avatar:wx.getStorageSync('patient_avatar')
+ patient_avatar:wx.getStorageSync('patient_avatar'),
+ patient_name:wx.getStorageSync('patientInfo')?wx.getStorageSync('patientInfo').patient_family_data.patient_name:''
},
methods: {
async accept() {
@@ -77,11 +77,9 @@ Component({
},
async hangup() {
await TUICallKitServer.hangup();
- console.log(this.data.remoteUserInfoList)
},
async reject() {
await TUICallKitServer.reject();
- //console.log(this.data.remoteUserInfoList)
},
async switchCamera() {
await TUICallKitServer.switchCamera();
diff --git a/TUICallKit/TUICallKit/component/SingleCall/SingleCall.wxml b/TUICallKit/TUICallKit/component/SingleCall/SingleCall.wxml
index 1a351b1..f8fbf26 100644
--- a/TUICallKit/TUICallKit/component/SingleCall/SingleCall.wxml
+++ b/TUICallKit/TUICallKit/component/SingleCall/SingleCall.wxml
@@ -20,7 +20,7 @@
+
+
+ 科室电话 *
+
+
+
@@ -273,7 +341,8 @@
{{ email_reason }}
-
+
+
专长 *
@@ -283,11 +352,29 @@
{{zhuanchang_note}}
-
+
+
+
+
+ 专长 *
+
+
+ {{data.expertise_name}}
+
+
+
+
+ {{zhuanchang_note}}
+
+
+
+
+
+
@@ -306,7 +393,7 @@
t_icon_name="view-module"
bind:showNote="onshowShanChangNote"
textarea_cell_note_show="{{!(indentity && iden_auth_disabled)}}"
- disabled="{{(indentity && iden_auth_disabled)}}"
+ disabled="{{(indentity && iden_auth_disabled) || (!indentity && introduction_status==2)}}"
textarea_val="{{textarea_shanchang}}"
has_error_content="{{ be_good_at_reason }}"
textarea_cell_content_placeholder="描述您所擅长治疗的疾病或者研究方向(10~1000字)"
@@ -382,7 +469,7 @@
{{iden_auth_status_txt}}
- {{iden_auth_status_txt}}
+ {{iden_auth_status_txt}}
diff --git a/user/commpents/te_navbar/index.js b/user/commpents/te_navbar/index.js
index cadc4e8..294b2c3 100644
--- a/user/commpents/te_navbar/index.js
+++ b/user/commpents/te_navbar/index.js
@@ -28,6 +28,8 @@ Component({
console.log("onBackonBackonBack");
let back_url = this.data.navbarData.back_url;
let back_url_type = this.data.navbarData.back_url_type;
+ console.log("--------");
+ console.log(back_url);
if(back_url){
if(back_url_type == 0){
app.go(back_url);
@@ -37,7 +39,14 @@ Component({
});
}
}else{
- wx.navigateBack();
+ wx.navigateBack({
+ fail:function(){
+ wx.reLaunch({
+ delta:1,
+ url: '/Pages/yishi/index/index',
+ })
+ }
+ });
}
},
onGoHome() {
diff --git a/user/pages/yishi/chufangsetup/index.json b/user/pages/yishi/chufangsetup/index.json
index 8aa4e22..814a742 100644
--- a/user/pages/yishi/chufangsetup/index.json
+++ b/user/pages/yishi/chufangsetup/index.json
@@ -1,7 +1,7 @@
{
"component": true,
"usingComponents": {
- "te-nav-bar": "../../../../commpents/te_navbar/index",
+ "te-nav-bar": "../../../commpents/te_navbar/index",
"t-tabs": "tdesign-miniprogram/tabs/tabs",
"t-tab-panel": "tdesign-miniprogram/tab-panel/tab-panel",
"van-empty": "@vant/weapp/empty/index"
diff --git a/user/pages/yishi/expertDetail/expertDetail.js b/user/pages/yishi/expertDetail/expertDetail.js
index acbc441..61965ac 100644
--- a/user/pages/yishi/expertDetail/expertDetail.js
+++ b/user/pages/yishi/expertDetail/expertDetail.js
@@ -51,18 +51,25 @@ Page({
follow: false,
id:'',
expertInquiry_price:'',
+ freePrice:'',
+ freeAmount:0,
+ expertAmount:0,
+ hasFree:false,
+ hasExpert:false,
recieveStatus:0,
commentList: [],
totalComment:0,
isFinished:false,
isReceivePatient:false, //是否可接诊
service_content:'【医生填写的服务内容】',
- service_process:'【医生填写的服务流程】'
+ service_process:'【医生填写的服务流程】',
+ cycle:'',
+ rounds:''
},
getHeight(){
wx.createSelectorQuery().select('#swiperitem3').boundingClientRect( (rect)=>{
this.setData({
- tab3Height:rect.height*2
+ tab3Height:rect.height
})
console.log('元素高度为:', rect.height)
}).exec()
@@ -264,15 +271,33 @@ bindchange(e){
hasOtherInquiry(arr){
if(arr){
for (var i = 0; i < arr.length; ++i) {
- if(arr[i].is_enable==1 && arr[i].inquiry_type==1 && arr[i].inquiry_mode==2){
+ if(arr[i].inquiry_type==1 && arr[i].inquiry_mode==1){
+ if(arr[i].is_enable==1){
+ this.setData({
+ hasExpert:true
+ })
+ };
+ this.setData({
+ expertAmount:arr[i].work_num_day-arr[i].order_inquiry_count
+ })
+ }
+ if(arr[i].inquiry_type==1 && arr[i].inquiry_mode==2){
+ if(arr[i].is_enable==1){
+ this.setData({
+ canVideo:true
+ })
+ };
this.setData({
- canVideo:true,
videoPrice:arr[i].inquiry_price
})
};
- if(arr[i].is_enable==1 && arr[i].inquiry_type==1 && arr[i].inquiry_mode==6){
+ if(arr[i].inquiry_type==1 && arr[i].inquiry_mode==6){
+ if(arr[i].is_enable==1){
+ this.setData({
+ canDiffcult:true
+ })
+ }
this.setData({
- canDiffcult:true,
yinanPrice:arr[i].inquiry_price
})
}
@@ -282,28 +307,66 @@ bindchange(e){
},
formatInquiryStatus(arr){
var a='3';
+ console.log(arr);
if(arr){
for (var i = 0; i < arr.length; ++i) {
- if(arr[i].is_enable==1 && arr[i].inquiry_type==1 && arr[i].inquiry_mode==1){
+ if(arr[i].inquiry_type==1 && arr[i].inquiry_mode==1){
+ if(arr[i].is_enable==1 ){
+ this.setData({
+ hasExpert:true
+ })
+ a='2';
+ }
this.setData({
+ expertAmount:arr[i].work_num_day-arr[i].order_inquiry_count,
expertInquiry_price: arr[i].inquiry_price
})
- a='2';
+
};
- if(arr[i].is_enable==1 && arr[i].inquiry_type==1 && arr[i].inquiry_mode==2){
+ if(arr[i].inquiry_type==1 && arr[i].inquiry_mode==6){
+ if(arr[i].is_enable==1){
+ this.setData({
+ canDiffcult:true
+ })
+ }
+ this.setData({
+ yinanPrice: arr[i].inquiry_price
+ })
+ };
+ if(arr[i].inquiry_type==1 && arr[i].inquiry_mode==2){
+ if(arr[i].is_enable==1){
+ this.setData({
+ canVideo:true,
+
+ })
+ }
this.setData({
- canVideo:true,
videoPrice:arr[i].inquiry_price
})
};
- if(arr[i].is_enable==1 && arr[i].inquiry_type==1 && arr[i].inquiry_mode==6){
+ if(arr[i].inquiry_type==1 && arr[i].inquiry_mode==6){
+ if(arr[i].is_enable==1 ){
+ this.setData({
+ canDiffcult:true
+ })
+ }
+ console.log(' yinanPrice:'+arr[i].inquiry_price)
this.setData({
- canDiffcult:true,
yinanPrice:arr[i].inquiry_price
})
}
- if(arr[i].is_enable==1 && arr[i].inquiry_type==3){
- return '1'
+ if(arr[i].inquiry_type==3){
+ this.setData({
+ freePrice:arr[i].inquiry_price,
+ freeAmount:arr[i].work_num_day-arr[i].order_inquiry_count,
+ })
+ if(arr[i].is_enable==1){
+ this.setData({
+ hasFree:true
+ })
+ return '1'
+ }
+
};
}
@@ -371,7 +434,9 @@ bindchange(e){
if(config_message){
this.setData({
service_content:config_message.content_message,
- service_process:config_message.process_message
+ service_process:config_message.process_message,
+ rounds:config_message.rounds,
+ cycle:config_message.cycle
})
}
diff --git a/user/pages/yishi/expertDetail/expertDetail.wxml b/user/pages/yishi/expertDetail/expertDetail.wxml
index d73807e..14ae10b 100644
--- a/user/pages/yishi/expertDetail/expertDetail.wxml
+++ b/user/pages/yishi/expertDetail/expertDetail.wxml
@@ -67,23 +67,37 @@
-
-
+
+
图文问诊
- ¥{{current_inquiry_config.inquiry_price}}/次
- ¥{{expertInquiry_price}}/次
+
+ ¥{{expertInquiry_price}}/次
+
+
+ ¥{{freePrice}}/次
+
+
+ ¥{{freePrice}}/次
+ ¥{{expertInquiry_price}}/次
+ ¥{{freePrice}}/次
+ ¥{{expertInquiry_price}}/次
+
+
- 图文问诊
- 暂未开通
+ 图文问诊
+ ¥{{expertInquiry_price}}/次
+
+ 暂未开通
-
-
+
+
@@ -96,8 +110,8 @@
-
-
+
+
@@ -111,30 +125,30 @@
-
+
-
+
通过文字、图片、语音进行咨询
-
+
可通过文字、图片、语音等形式和医生进行沟通;
-
+
医生接诊后24小时内10个沟通回合;
-
+
医生未接诊,平台24小时内自动退款;
-
+
医生未回复,可联系平台客服协商进行退款。
@@ -151,35 +165,35 @@
通过视频面对面进行咨询
-
+
医生接诊后,主动和就诊人预约视频时间;
-
+
若预约时间因故需要改变,可与医生图文协商时间;
-
+
视频交流服务时长一般为5-10分钟;
-
+
医生接诊后48小时内可以通过文字、图片、语音等形式和医生不限制沟通回合数;
-
+
医生未接诊,平台24小时内自动退款;
-
+
医生未回复或未进行视频,可联系平台客服协商进行退款;
-
+
如因您个人原因(忘记时间、迟到、中途断开未在进入视频等情况),咨询费用可能将无法退回,请准时接收医生视频请求;
-
+
视频不支持回放。
@@ -194,27 +208,27 @@
通过文字、图片、语音进行咨询
-
+
{{service_content}};
-
+
{{service_process}};
-
+
可通过文字、图片、语音等形式和医生进行沟通;
-
- 医生接诊后【医生选择的服务周期】内【医生选择的服务次数】沟通回合;
+
+ 医生接诊后{{cycle}}天内{{rounds==0?'不限':rounds+'个'}}沟通回合;
-
+
医生未接诊,平台24小时内自动退款;
-
+
医生未回复或医生服务不满意,可联系平台客服协商进行退款。
diff --git a/user/pages/yishi/expertDetail/expertDetail.wxss b/user/pages/yishi/expertDetail/expertDetail.wxss
index 1912f97..6b86fcc 100644
--- a/user/pages/yishi/expertDetail/expertDetail.wxss
+++ b/user/pages/yishi/expertDetail/expertDetail.wxss
@@ -543,6 +543,9 @@ z-index:0;
height: 314rpx;
position: absolute;
}
+.tabbg.on{
+ height: 330rpx;
+}
.typebox{
margin-top: 158rpx;
position: relative;
@@ -573,7 +576,7 @@ color: #999999;
text-decoration: line-through;
}
.swiperbox{
- margin-top: 30rpx;
+ margin-top: 50rpx;
}
.swiper-item{
border-radius: 20rpx;
@@ -662,4 +665,16 @@ padding:0 15rpx;
border: 1rpx solid #3CC7C0;
align-items: center;
color: #3CC7C0;
+}
+.tipbox .tipmsg .circle.tuwen{
+ background: #3BB5FE;
+ }
+ .tipbox .tipmsg .circle.video{
+ background: #52C41A;
+}
+.tipbox .tipmsg .circle.yinan{
+ background: #FF9C00;
+}
+.boxwraper::-webkit-scrollbar{
+ width:0;
}
\ No newline at end of file
diff --git a/user/pages/yishi/onlinesetup/index.js b/user/pages/yishi/onlinesetup/index.js
index 0e75d9a..b848ee1 100644
--- a/user/pages/yishi/onlinesetup/index.js
+++ b/user/pages/yishi/onlinesetup/index.js
@@ -115,6 +115,13 @@ Page({
let check = this.checkPrice(inquiry_price);
if(!check) return;
}
+ if(this.data.active==1 && detail){
+ wx.showToast({
+ title: '即将开通',
+ icon:'none',
+ })
+ return false
+ }
if(this.data.active==1 || this.data.active==2){
if(!this.data.info.work_num_day || !this.data.info.inquiry_price){
this.setData({
@@ -197,8 +204,10 @@ Page({
this.setData({
showSetting: false
})
- if(active==1){
+ if(active==0){
app.go("/user/pages/yishi/onlinesetupprice/index?inquiry_mode=1")
+ }else if(active==1){
+ app.go("/user/pages/yishi/onlinesetupprice/index?inquiry_mode=2")
}else if(active==2){
app.go("/user/pages/yishi/onlinesetupprice/index?inquiry_mode=6")
}
diff --git a/user/pages/yishi/onlinesetup/index.wxml b/user/pages/yishi/onlinesetup/index.wxml
index 97f8d2e..38c4979 100644
--- a/user/pages/yishi/onlinesetup/index.wxml
+++ b/user/pages/yishi/onlinesetup/index.wxml
@@ -42,8 +42,6 @@
-
-
去接诊
@@ -61,7 +59,7 @@
{{ (info.is_open==1&& active==1)?'已开启,患者可以向您发起视频问诊':'已关闭,暂不接诊'}}
-
+
@@ -116,7 +114,7 @@
{{ (info.is_open==1 && active==2)?'已开启,患者可以向您发起疑难会诊':'已关闭,暂不接诊'}}
-
+
diff --git a/user/pages/yishi/onlinesetupprice/index.wxml b/user/pages/yishi/onlinesetupprice/index.wxml
index 53cc1c8..39104b5 100644
--- a/user/pages/yishi/onlinesetupprice/index.wxml
+++ b/user/pages/yishi/onlinesetupprice/index.wxml
@@ -20,10 +20,11 @@
提示:服务开启后,患者按照所设置的价格向您购买图文问诊服务
- 1、接诊后,患者可与您在{{config.duration/60}}小时内进行{{config.times_number}}回合沟通
+ 1、接诊后,患者可与您在{{config.duration/60}}小时内进行{{config.times_number}}回合沟通\n2、若开启公益问诊,图文问诊价格以公益问诊价格为准\n3、每日接诊数量和问诊价格每日仅限调整1次,每月仅限调整5次\n4、价格修改后立即生效,不影响修改之前已生成的问诊订单\n
+
提示:服务开通后,患者可以向您购买视频问诊服务,接诊后需要您主动和患者预约视频时间并同步设置预约时间\n1、视频问诊价格每日仅限调整1次,每自然月仅限调整5次\n2、单价修改后立即生效,不影响当日已生成的问诊订单3、24小时不接诊,订单自动取消,并不展示在您的接诊列表中\n4、接诊后,您与患者沟通有效期为48小时,同时提供无回合限制图文、语音形式交流\n5、患者因服务不满意等原因要求退款时,平台会和您协商处理\n
diff --git a/user/pages/yishi/service_setting/index.js b/user/pages/yishi/service_setting/index.js
index 3dba8c6..678fe1f 100644
--- a/user/pages/yishi/service_setting/index.js
+++ b/user/pages/yishi/service_setting/index.js
@@ -107,7 +107,7 @@ Page({
})
},
openPreview(){
- let {process_message,content_message,}=this.data;
+ let {process_message,content_message,cycle,rounds}=this.data;
if(content_message.length<10){
wx.showToast({
title: '服务内容不少于10个字符',
@@ -122,9 +122,25 @@ Page({
})
return false
};
+ if(!cycle){
+ wx.showToast({
+ title: '请设置服务周期',
+ icon:'none'
+ })
+ return false
+ }
+ if(!rounds && rounds!=0){
+ wx.showToast({
+ title: '请设置服务回合数',
+ icon:'none'
+ })
+ return false
+ }
wx.setStorageSync('config_message', {
content_message,
process_message,
+ rounds,
+ cycle
})
this.setData({
showPreview:true
diff --git a/user/pages/yishi/service_setting/index.wxml b/user/pages/yishi/service_setting/index.wxml
index 06b6106..7a4f105 100644
--- a/user/pages/yishi/service_setting/index.wxml
+++ b/user/pages/yishi/service_setting/index.wxml
@@ -35,7 +35,7 @@
服务回合数
- {{rounds}}
+ {{rounds==0?'不限次':rounds}}
去设置
diff --git a/user/pages/yishi/service_setting/index.wxss b/user/pages/yishi/service_setting/index.wxss
index 1cbea42..cc88f23 100644
--- a/user/pages/yishi/service_setting/index.wxss
+++ b/user/pages/yishi/service_setting/index.wxss
@@ -104,7 +104,7 @@
}
.btnbox {
- margin-bottom: 20rpx;
+ margin-bottom: 80rpx;
}
.btn {
diff --git a/user/pages/yishi/yizhensetup/index.js b/user/pages/yishi/yizhensetup/index.js
index 508a340..33a664d 100644
--- a/user/pages/yishi/yizhensetup/index.js
+++ b/user/pages/yishi/yizhensetup/index.js
@@ -11,6 +11,8 @@ Page({
},
height: app.globalData.height,
checked: true,
+ canFree:false,
+ showSetting:false,
open_note: "已开启,可在问诊消息中进行接诊",
close_note: "已关闭,暂不接收公益问诊",
note: "",
@@ -44,6 +46,11 @@ Page({
},
onShow(){
+ let doctor_id=wx.getStorageSync('client_user_id_2');
+ console.log(doctor_id);
+ if(doctor_id){
+ this.getService(doctor_id)
+ }
let params = {};
params.inquiry_type = this.data.inquiry_type;//接诊类型(1:专家问诊 2:快速问诊 3:公益问诊 4:问诊购药)
params.inquiry_mode = this.data.inquiry_mode;//接诊方式(1:图文 2:视频 3:语音 4:电话 5:会员)
@@ -66,6 +73,21 @@ Page({
})
}).catch(errors => {console.error(errors);})
},
+ getService(id){
+ api.getDoctorService(id).then(response=>{
+ let res=response.data;
+ for (let i = 0; i < res.length; i++) {
+ if(res[i].inquiry_mode==1 && res[i].inquiry_type==3){
+ this.setData({
+ canFree:true
+ })
+ break;
+ };
+
+ }
+
+ })
+ },
formatAmounts(){
let list = this.data.config.system_inquiry_price.map(item => {
let it = {};
@@ -104,6 +126,13 @@ Page({
doChange(detail){
let is_open = 0;
if(detail){
+
+ if(!this.data.canFree){
+ this.setData({
+ showSetting:true
+ })
+ return false;
+ }
wx.vibrateShort({
"type": "heavy"
})
@@ -202,7 +231,20 @@ Page({
this.putDoctorInquiryConfig()
},
-
+ settingcancelDialog(){
+
+ this.setData({
+ showSetting: false
+ })
+ },
+ settingconfirmDialog(){
+
+ this.setData({
+ showSetting: false
+ })
+ app.go("/user/pages/yishi/yizhensetupprice/index")
+
+ },
onPickerCancel(e) {
const { key } = e.currentTarget.dataset;
console.log(e, '取消');
diff --git a/user/pages/yishi/yizhensetup/index.wxml b/user/pages/yishi/yizhensetup/index.wxml
index 78cb76f..eaf02c5 100644
--- a/user/pages/yishi/yizhensetup/index.wxml
+++ b/user/pages/yishi/yizhensetup/index.wxml
@@ -28,9 +28,10 @@
border="{{true}}"
url="/user/pages/yishi/yizhensetupprice/index"
>
-
+
{{ info.work_num_day }}
+ 去设置
-
+
{{ amountText }}
元
-
+ 去设置
@@ -88,4 +89,16 @@
确定
+
+
+ 取消
+
+
+ 去设置
+
+
\ No newline at end of file
diff --git a/user/pages/yishi/yizhensetup/index.wxss b/user/pages/yishi/yizhensetup/index.wxss
index 5c845f9..013e150 100644
--- a/user/pages/yishi/yizhensetup/index.wxss
+++ b/user/pages/yishi/yizhensetup/index.wxss
@@ -135,4 +135,7 @@ page{
.dialog_confirm_btn{
border-top: 1px solid #E9E9E9;
color: #3CC7C0;
-}
\ No newline at end of file
+}
+.cell_value_seting{
+ color: rgba(0,0,0,0.45);
+ }
\ No newline at end of file