diff --git a/Pages/index/index.js b/Pages/index/index.js
index 9fdfb96..e40eb50 100644
--- a/Pages/index/index.js
+++ b/Pages/index/index.js
@@ -118,7 +118,13 @@ Page({
app.imLogout();
url = "/Pages/yaoshi/home/home";
}
- let token = wx.getStorageSync('AUTH_TOKEN_'+usertype);
+ let token = '';
+ const { envVersion } = wx.getAccountInfoSync().miniProgram;
+ if(envVersion=='release'){
+ token= wx.getStorageSync('AUTH_TOKEN_'+usertype)
+ }else{
+ token= wx.getStorageSync('DEV_AUTH_TOKEN_'+usertype)
+ }
console.log(token);
console.log(url);
if(token){
diff --git a/Pages/yaoshi/my/my.js b/Pages/yaoshi/my/my.js
index 0f2c357..ecb670d 100644
--- a/Pages/yaoshi/my/my.js
+++ b/Pages/yaoshi/my/my.js
@@ -35,7 +35,14 @@ Page({
success (res) {
if (res.confirm) {
console.log('用户点击确定')
- wx.setStorageSync('AUTH_TOKEN_'+usertype, "");
+ //wx.setStorageSync('AUTH_TOKEN_'+usertype, "");
+ const { envVersion } = wx.getAccountInfoSync().miniProgram;
+ if(envVersion=='release'){
+ wx.setStorageSync('AUTH_TOKEN_'+usertype, '');
+ }else{
+ wx.setStorageSync('DEV_AUTH_TOKEN_'+usertype,'');
+
+ }
wx.setStorageSync('user_id_'+usertype, "");
wx.setStorageSync('client_user_id_'+usertype, "");
app.globalData.isLogin=false;
diff --git a/Pages/yishi/index/index.js b/Pages/yishi/index/index.js
index 8bf4f85..5b12cac 100644
--- a/Pages/yishi/index/index.js
+++ b/Pages/yishi/index/index.js
@@ -268,6 +268,42 @@ Page({
let multi_point_status = response.data.info.multi_point_status;
//绑定结算银行卡
let is_bind_bank = response.data.info.is_bind_bank;
+ api.getDoctorService(response.data.info.doctor_id).then(res=>{
+ if(res.code==200){
+ let result=res.data;
+ for (let i = 0; i < result.length; i++) {
+ if(result[i].inquiry_type=1 && result[i].inquiry_mode==1 && result[i].is_enable==1){
+ this.setData({
+ 'info.is_img_expert_reception':1
+ })
+ }else{
+ this.setData({
+ 'info.is_img_expert_reception':0
+ })
+ };
+ if(result[i].inquiry_type=2 && result[i].is_enable==1){
+ this.setData({
+ 'info.is_img_quick_reception':1
+ })
+ }else{
+ this.setData({
+ 'info.is_img_quick_reception':0
+ })
+ };
+ if(result[i].inquiry_type=3 && result[i].is_enable==1){
+ this.setData({
+ 'info.is_img_welfare_reception':1
+ })
+ }else{
+ this.setData({
+ 'info.is_img_welfare_reception':0
+ })
+ };
+
+ }
+
+ }
+ })
// //是否参加专家图文接诊(0:否 1:是)
// let is_img_expert_reception = response.data.info.is_img_expert_reception;
// //是否参加专家快速接诊(0:否 1:是)
diff --git a/Pages/yishi/index/index.wxml b/Pages/yishi/index/index.wxml
index 8a80fec..febfbe1 100644
--- a/Pages/yishi/index/index.wxml
+++ b/Pages/yishi/index/index.wxml
@@ -115,7 +115,7 @@
个人简介管理
!
-
+
{
let conversationID = item.conversationID;
if(conversationID == "C2Cadministrator") return;//如果是管理员消息直接跳过
let lastMessage = item.lastMessage;
let type = lastMessage.type;
+ let no_inquiry_cancel_time=item.no_inquiry_cancel_time;
let userProfile = item.userProfile;
if(!lastMessage) return;
let cloudCustomData = lastMessage.cloudCustomData;
if(!cloudCustomData) return;
let cloudCustomDataJson = JSON.parse(cloudCustomData);
+ // remaining_month_inquiry_count:serviceInfo.remaining_month_inquiry_count,
+ // service_package_start_time:serviceInfo.start_time,
+ // service_package_finish_time:serviceInfo.finish_timestart_time,
+ // service_period:serviceInfo.service_period,
+ // remaining_quantity:serviceInfo.remaining_quantity,
+ let remaining_month_inquiry_count=cloudCustomDataJson.remaining_month_inquiry_count;
+ let service_package_start_time=cloudCustomDataJson.service_package_start_time;
+ let service_package_finish_time=cloudCustomDataJson.service_package_finish_time;
+ let remaining_quantity=cloudCustomDataJson.remaining_quantity;
+ let service_period=cloudCustomDataJson.service_period;
+ let monthly_frequency=cloudCustomDataJson.monthly_frequency;
+ let month_inquiry_count=cloudCustomDataJson.month_inquiry_count;
let order_inquiry_id = cloudCustomDataJson.order_inquiry_id;
if(!order_inquiry_id) return;
let inquiry_type = cloudCustomDataJson.inquiry_type;
@@ -354,6 +375,15 @@ Page({
txt.Text= lastMessage.messageForShow;
session_item.last_message_content = txt;
session_item.message_send_time = getTimeAgo(lastMessage.lastTime);
+ session_item.no_inquiry_cancel_time=no_inquiry_cancel_time;
+
+ session_item.remaining_month_inquiry_count=remaining_month_inquiry_count;
+ session_item.service_package_start_time=service_package_start_time;
+ session_item.service_package_finish_time=service_package_finish_time;
+ session_item.service_period=service_period;
+ session_item.remaining_quantity=remaining_quantity;
+ session_item.monthly_frequency= monthly_frequency;
+ session_item.month_inquiry_count= month_inquiry_count;
session_item.message_type = type;
session_item.order_inquiry_id = order_inquiry_id;
session_item.inquiry_type = inquiry_type;
@@ -442,25 +472,33 @@ Page({
}
app.go(url);
+ this.setData({
+ isLock: false
+ })
},
postDoctorInquiry(e){
- this.setData({
- show: false
- })
- // console.log("order_inquiry_id: ", e.currentTarget.dataset.order_inquiry_id);
- let params = {};
- params.order_inquiry_id = e.currentTarget.dataset.order_inquiry_id;
- // console.log("params: ",params)
- api.postDoctorInquiry(params).then(response => {
- // console.log("开始接诊");
- // console.log(response);
- }).then(() => {
- console.log(e)
- console.log("gochat")
- this.goChat(e);
- }).catch(errors => {
- console.error(errors);
- })
+ let {isLock}=this.data;
+ if(!isLock){
+ this.setData({
+ show: false,
+ isLock:true
+ })
+ // console.log("order_inquiry_id: ", e.currentTarget.dataset.order_inquiry_id);
+ let params = {};
+ params.order_inquiry_id = e.currentTarget.dataset.order_inquiry_id;
+ // console.log("params: ",params)
+ api.postDoctorInquiry(params).then(response => {
+ // console.log("开始接诊");
+ // console.log(response);
+ }).then(() => {
+ console.log(e)
+ console.log("gochat")
+ this.goChat(e);
+ }).catch(errors => {
+ console.error(errors);
+ })
+ }
+
},
//获取上方角标
getDoctorMessageNotice(e){
@@ -501,6 +539,7 @@ Page({
})
//点击请求数据为0,则重新渲染页面
this.getDoctorInquiryFinishMessage('end');
+
}
},
vanTabsChange(e){
@@ -538,7 +577,11 @@ Page({
last_page: response.data.last_page
})
if(from && response.data.data.length==0){
- this.formatStatus();
+ //this.formatStatus();
+
+ this.onHide();
+ this.onShow();
+
}
// this.selectComponent('#tabs').resize();
}).then(res =>{
diff --git a/Pages/yishi/wenzhen_v2/wenzhen.wxml b/Pages/yishi/wenzhen_v2/wenzhen.wxml
index a107d04..636ad7e 100644
--- a/Pages/yishi/wenzhen_v2/wenzhen.wxml
+++ b/Pages/yishi/wenzhen_v2/wenzhen.wxml
@@ -43,16 +43,34 @@
- {{item.inquiry_mode==1?'图文':item.inquiry_mode==2?'视频':item.inquiry_mode==6?'疑难问诊':item.inquiry_mode==7?'附赠回复':'其他'}}
+ {{item.inquiry_mode==1?'图文':item.inquiry_mode==2?'视频':item.inquiry_mode==6?'疑难问诊':item.inquiry_mode==7?'附赠回复':item.inquiry_mode==8?'健康包':item.inquiry_mode==9?'随访包':'其他'}}
就诊人:
{{item.patient_name}} {{item.patient_sex==1?'男':'女'}}|{{item.patient_age}}
- {{item.message_send_time}}
+ {{ item.inquiry_status==1?'待支付':item.inquiry_status==2?'待分配':item.inquiry_status==3?'待接诊':item.inquiry_status==4?'接诊中':item.inquiry_status==5?'已完成':item.inquiry_status==6?'已结束':item.inquiry_status==7?'已取消':'其他' }}
+ 服务内容:服务周期{{item.service_period/30}}个月
+
+ 服务期限:{{item.service_package_start_time}}-{{item.service_package_finish_time}}
+ 服务进度:不限次数问诊
+ 服务进度:当月剩余{{item.remaining_month_inquiry_count}}次问诊
+
+ 服务内容:{{item.monthly_frequency==='0'?'不限':item.monthly_frequency}}次问诊/月,30盒肝爽颗粒(步长)
+
+ 服务期限:{{item.service_package_start_time}}-{{item.service_package_finish_time}}
+ 服务进度:当月不限次问诊
+ 当月剩余{{item.remaining_month_inquiry_count}}次问诊,剩余{{item.remaining_quantity}}盒干爽颗粒(步长)
+
+
+
+
+
{{item.custommessagetype==13?'[附赠回复]':item.last_message_content.Text}}
- {{ item.inquiry_status==1?'待支付':item.inquiry_status==2?'待分配':item.inquiry_status==3?'待接诊':item.inquiry_status==4?'接诊中':item.inquiry_status==5?'已完成':item.inquiry_status==6?'已结束':item.inquiry_status==7?'已取消':'其他' }}
+
+ {{item.message_send_time}}
+
查看病历
- 不接诊5分钟后自动取消
- 不接诊24小时后自动取消
+ 不接诊{{no_inquiry_cancel_time}}分钟{{item.no_inquiry_cancel_time/60}}小时后自动取消
+ 不接诊{{no_inquiry_cancel_time}}分钟{{item.no_inquiry_cancel_time/60}}小时后自动取消
+ 不接诊{{no_inquiry_cancel_time}}分钟{{item.no_inquiry_cancel_time/60}}小时后自动取消
@@ -207,7 +226,8 @@
问诊已结束
- {{ 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==1 && item.inquiry_mode==7)?'附赠回复':(item.inquiry_type==1 && item.inquiry_mode==8)?'健康包':(item.inquiry_type==1 && item.inquiry_mode==9)?'随访包':item.inquiry_type==2?'快速问诊':item.inquiry_type==3?'公益问诊':item.inquiry_type==4?'问诊购药':item.inquiry_type==5?'糖组检测':'其他' }}
不接诊24小时后自动取消
diff --git a/Pages/yishi/wenzhen_v2/wenzhen.wxss b/Pages/yishi/wenzhen_v2/wenzhen.wxss
index bca92af..348f1a6 100644
--- a/Pages/yishi/wenzhen_v2/wenzhen.wxss
+++ b/Pages/yishi/wenzhen_v2/wenzhen.wxss
@@ -82,7 +82,8 @@ page{
}
.date{
font-size: 30rpx;
- color: #999;
+ color: #FA541C;
+
}
.content_2{
background-color: #FAFAFA;
@@ -98,7 +99,7 @@ page{
}
.status{
font-size: 26rpx;
- color: #FA541C;
+ color: #999;
flex: 1;
}
.status_end{
@@ -175,4 +176,15 @@ page{
}
.parallelogram.yinan.parallelogram::before{
background:#ffb700;
+}
+.parallelogram.healthy.parallelogram::before{
+ background:#ff5d6a;
+}
+.parallelogram.visit.parallelogram::before{
+ background:#03b5e3;
+}
+.desc{
+ margin: 0 30rpx 10rpx;
+ font-size: 28rpx;
+color: #000000;
}
\ 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 8a7108a..68177e4 100644
--- a/TUIChatService/TUIKit/components/TUIChat/components/MessageInput/index.js
+++ b/TUIChatService/TUIKit/components/TUIChat/components/MessageInput/index.js
@@ -48,6 +48,15 @@ Component({
});
},
},
+ serviceInfo:{
+ type: Object,
+ value:{},
+ observer(val){
+ this.setData({
+ serviceInfo:val
+ });
+ }
+ },
videoInfo:{
type: Object,
value:{},
@@ -101,12 +110,14 @@ Component({
* 组件的初始数据
*/
data: {
+ textFocus:false,
conversation: {},
message: '',
showRound:false,
video_dialog_visible:false,
showTalk:false,
videoInfo:{},
+ serviceInfo:{},
baseInfo:{},
family_id:'',
patient_user_id:'',
@@ -237,7 +248,7 @@ Component({
let cach_message_rounds = this.data.message_rounds
message_rounds = cach_message_rounds>message_rounds?cach_message_rounds:message_rounds
-
+ let {serviceInfo}=this.data;
const mycloudCustomData = JSON.stringify({
order_inquiry_id: this.data.order_inquiry_id,
inquiry_type: this.data.inquiry_type,
@@ -245,6 +256,13 @@ Component({
message_type: 0,
is_system: 0,
message_rounds: message_rounds,
+ remaining_month_inquiry_count:serviceInfo.remaining_month_inquiry_count,
+ month_inquiry_count:serviceInfo.month_inquiry_count,
+ service_package_start_time:serviceInfo.start_time,
+ service_package_finish_time:serviceInfo.finish_time,
+ service_period:serviceInfo.service_period,
+ remaining_quantity:serviceInfo.remaining_quantity,
+ monthly_frequency:serviceInfo.monthly_frequency,
patient_family_data: patient_family_data
});
@@ -317,7 +335,21 @@ this.setData({
})
wx.setStorageSync('words', "");
}
-
+ wx.hideKeyboard();
+ //let THIS=this;
+ // wx.getSystemInfo({
+ // success: function(res) {
+ // let platform = res.platform;
+ // if (platform === 'ios') {
+ // setTimeout(()=>{
+ // THIS.setData({
+ // textFocus: true,
+ // });
+ // })
+ // }
+ // }
+ // });
+
// console.log("pageLifetimes show")
let _this = this
wx.getNetworkType({
@@ -331,6 +363,7 @@ this.setData({
},
hide: function () {
+ wx.hideKeyboard();
let THIS=this;
if(THIS.data.isRecording){
THIS.handleTouchEnd()
@@ -796,7 +829,7 @@ this.setData({
let cach_message_rounds = this.data.message_rounds
message_rounds = cach_message_rounds>message_rounds?cach_message_rounds:message_rounds
-
+ let {serviceInfo}=this.data;
const mycloudCustomData = JSON.stringify({
order_inquiry_id: this.data.order_inquiry_id,
inquiry_type: this.data.inquiry_type,
@@ -804,6 +837,13 @@ this.setData({
message_type: 0,
is_system: 0,
message_rounds: message_rounds,
+ remaining_month_inquiry_count:serviceInfo.remaining_month_inquiry_count,
+ month_inquiry_count:serviceInfo.month_inquiry_count,
+ service_package_start_time:serviceInfo.start_time,
+ service_package_finish_time:serviceInfo.finish_time,
+ service_period:serviceInfo.service_period,
+ remaining_quantity:serviceInfo.remaining_quantity,
+ monthly_frequency:serviceInfo.monthly_frequency,
patient_family_data: patient_family_data
});
@@ -1215,7 +1255,7 @@ this.setData({
const to = this.getToAccount();
const text = flag ? msg : this.data.message;
-
+ let {serviceInfo}=this.data;
const { FEAT_NATIVE_CODE } = constant;
const mycloudCustomData = JSON.stringify({
order_inquiry_id: this.data.order_inquiry_id,
@@ -1224,6 +1264,13 @@ this.setData({
message_type: 0,
is_system: 0,
message_rounds: message_rounds,
+ remaining_month_inquiry_count:serviceInfo.remaining_month_inquiry_count,
+ month_inquiry_count:serviceInfo.month_inquiry_count,
+ service_package_start_time:serviceInfo.start_time,
+ service_package_finish_time:serviceInfo.finish_time,
+ service_period:serviceInfo.service_period,
+ remaining_quantity:serviceInfo.remaining_quantity,
+ monthly_frequency:serviceInfo.monthly_frequency,
patient_family_data: patient_family_data
});
@@ -1318,9 +1365,13 @@ this.setData({
},
// 监听是否获取焦点,有焦点则向父级传值,动态改变input组件的高度。
inputBindFocus(event) {
- this.setData({
- focus: true,
- });
+ //let {height}= event.detail;
+ // console.log(height);
+ // if(height==0){
+ // this.setData({
+ // textFocus: true,
+ // });
+ // }
// this.getMessageList(this.data.conversation);
this.triggerEvent('pullKeysBoards', {
event,
diff --git a/TUIChatService/TUIKit/components/TUIChat/components/MessageInput/index.wxml b/TUIChatService/TUIKit/components/TUIChat/components/MessageInput/index.wxml
index da7bb5e..d206d3a 100644
--- a/TUIChatService/TUIKit/components/TUIChat/components/MessageInput/index.wxml
+++ b/TUIChatService/TUIKit/components/TUIChat/components/MessageInput/index.wxml
@@ -11,8 +11,8 @@
src="{{isAudio ? '../../../../static/assets/keyboard.svg' : '../../../../static/assets/audio.svg'}}" />
-