Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b35893fd9c | ||
|
|
3d2599717f | ||
|
|
a3262a5bc0 | ||
|
|
bc94e1dafe | ||
|
|
8c0ed211dd | ||
|
|
7d3bd2e823 | ||
|
|
44642c8f58 | ||
|
|
b938adef70 |
@ -118,13 +118,7 @@ Page({
|
|||||||
app.imLogout();
|
app.imLogout();
|
||||||
url = "/Pages/yaoshi/home/home";
|
url = "/Pages/yaoshi/home/home";
|
||||||
}
|
}
|
||||||
let token = '';
|
let token = wx.getStorageSync('AUTH_TOKEN_'+usertype);
|
||||||
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(token);
|
||||||
console.log(url);
|
console.log(url);
|
||||||
if(token){
|
if(token){
|
||||||
|
|||||||
@ -35,14 +35,7 @@ Page({
|
|||||||
success (res) {
|
success (res) {
|
||||||
if (res.confirm) {
|
if (res.confirm) {
|
||||||
console.log('用户点击确定')
|
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('user_id_'+usertype, "");
|
||||||
wx.setStorageSync('client_user_id_'+usertype, "");
|
wx.setStorageSync('client_user_id_'+usertype, "");
|
||||||
app.globalData.isLogin=false;
|
app.globalData.isLogin=false;
|
||||||
|
|||||||
@ -266,6 +266,7 @@ Page({
|
|||||||
let iden_auth_status = response.data.info.iden_auth_status;
|
let iden_auth_status = response.data.info.iden_auth_status;
|
||||||
//多点执业认证
|
//多点执业认证
|
||||||
let multi_point_status = response.data.info.multi_point_status;
|
let multi_point_status = response.data.info.multi_point_status;
|
||||||
|
console.log(multi_point_status);
|
||||||
//绑定结算银行卡
|
//绑定结算银行卡
|
||||||
let is_bind_bank = response.data.info.is_bind_bank;
|
let is_bind_bank = response.data.info.is_bind_bank;
|
||||||
api.getDoctorService(response.data.info.doctor_id).then(res=>{
|
api.getDoctorService(response.data.info.doctor_id).then(res=>{
|
||||||
@ -710,6 +711,7 @@ Page({
|
|||||||
let is_bind_bank = this.data.info.is_bind_bank;
|
let is_bind_bank = this.data.info.is_bind_bank;
|
||||||
//是否参加专家图文接诊(0:否 1:是)
|
//是否参加专家图文接诊(0:否 1:是)
|
||||||
let is_img_expert_reception = this.data.info.is_img_expert_reception;
|
let is_img_expert_reception = this.data.info.is_img_expert_reception;
|
||||||
|
console.log(is_img_expert_reception)
|
||||||
//是否参加专家快速接诊(0:否 1:是)
|
//是否参加专家快速接诊(0:否 1:是)
|
||||||
let is_img_quick_reception = this.data.info.is_img_quick_reception;
|
let is_img_quick_reception = this.data.info.is_img_quick_reception;
|
||||||
//是否参加专家公益接诊(0:否 1:是)
|
//是否参加专家公益接诊(0:否 1:是)
|
||||||
@ -744,11 +746,12 @@ Page({
|
|||||||
}
|
}
|
||||||
|
|
||||||
let retult = true;
|
let retult = true;
|
||||||
|
console.log(statusArr);
|
||||||
statusArr.forEach(status => {
|
statusArr.forEach(status => {
|
||||||
let now_case = this.data.mycase.find(item => {
|
let now_case = this.data.mycase.find(item => {
|
||||||
return item.case_status == status;
|
return item.case_status == status;
|
||||||
});
|
});
|
||||||
// console.log("now_case: ", now_case);
|
console.log("now_case: ", now_case);
|
||||||
//所属模块
|
//所属模块
|
||||||
let moudle = e.currentTarget.dataset.moudle;
|
let moudle = e.currentTarget.dataset.moudle;
|
||||||
// console.log("moudle: ", moudle);
|
// console.log("moudle: ", moudle);
|
||||||
@ -768,7 +771,7 @@ Page({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
console.log(retult);
|
||||||
return retult;
|
return retult;
|
||||||
},
|
},
|
||||||
onClickHideOverlay(){
|
onClickHideOverlay(){
|
||||||
|
|||||||
@ -115,7 +115,7 @@
|
|||||||
<text class="fun_box_item_txt">个人简介管理</text>
|
<text class="fun_box_item_txt">个人简介管理</text>
|
||||||
<view class="introicon" wx:if="{{info.introduction_status==3}}">!</view>
|
<view class="introicon" wx:if="{{info.introduction_status==3}}">!</view>
|
||||||
</view>
|
</view>
|
||||||
<view bindtap="go" data-moudle="4" data-url="/user/pages/yishi/onlinesetup/index?multi_point_status={{info.multi_point_status}}&&idcard_status={{info.idcard_status}}&&is_bind_bank={{info.is_bind_bank}}&&iden_auth_status={{info.iden_auth_status}}" class="fun_box_item" style="height: {{funbox_height}}rpx;">
|
<view bindtap="go" data-moudle="4" data-url="/user/pages/yishi/onlinesetup/index" class="fun_box_item" style="height: {{funbox_height}}rpx;">
|
||||||
<van-image class="fun_box_item_img"
|
<van-image class="fun_box_item_img"
|
||||||
fit="widthFix"
|
fit="widthFix"
|
||||||
width="70rpx"
|
width="70rpx"
|
||||||
|
|||||||
@ -20,7 +20,6 @@ Page({
|
|||||||
data_list_6: [],//问诊结束
|
data_list_6: [],//问诊结束
|
||||||
data_list_6_loading: false,
|
data_list_6_loading: false,
|
||||||
conversationList: [],
|
conversationList: [],
|
||||||
isLock:false,
|
|
||||||
message_inquiry_type: 99999,
|
message_inquiry_type: 99999,
|
||||||
now_message_inquiry_type: 6,
|
now_message_inquiry_type: 6,
|
||||||
system_notice_unreadnnum: "",
|
system_notice_unreadnnum: "",
|
||||||
@ -42,9 +41,6 @@ Page({
|
|||||||
dot_5: false,
|
dot_5: false,
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
},
|
|
||||||
onUnload(){
|
|
||||||
|
|
||||||
},
|
},
|
||||||
initInterval(){
|
initInterval(){
|
||||||
let _this = this;
|
let _this = this;
|
||||||
@ -101,8 +97,7 @@ Page({
|
|||||||
}
|
}
|
||||||
//避免onshow加载多次
|
//避免onshow加载多次
|
||||||
this.setData({
|
this.setData({
|
||||||
hasOnShow: true,
|
hasOnShow: true
|
||||||
isLock:false
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
@ -269,12 +264,10 @@ Page({
|
|||||||
item.patient_age = order.patient_age;
|
item.patient_age = order.patient_age;
|
||||||
item.patient_name = order.patient_name;
|
item.patient_name = order.patient_name;
|
||||||
item.patient_sex = order.patient_sex;
|
item.patient_sex = order.patient_sex;
|
||||||
item.no_inquiry_cancel_time=order.no_inquiry_cancel_time;
|
|
||||||
new_conversationList.push(item);
|
new_conversationList.push(item);
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
console.log(2222);
|
//console.log(new_conversationList);
|
||||||
console.log(new_conversationList);
|
|
||||||
this.setData({
|
this.setData({
|
||||||
conversationList: new_conversationList
|
conversationList: new_conversationList
|
||||||
})
|
})
|
||||||
@ -303,31 +296,17 @@ Page({
|
|||||||
let userID = wx.getStorageSync('user_id_'+usertype);
|
let userID = wx.getStorageSync('user_id_'+usertype);
|
||||||
let totalUnreadCount = 0;
|
let totalUnreadCount = 0;
|
||||||
let message_inquiry_type = this.data.message_inquiry_type;
|
let message_inquiry_type = this.data.message_inquiry_type;
|
||||||
console.log(11111);
|
//console.log(this.data.conversationList);
|
||||||
console.log(this.data.conversationList);
|
|
||||||
this.data.conversationList.forEach(item => {
|
this.data.conversationList.forEach(item => {
|
||||||
let conversationID = item.conversationID;
|
let conversationID = item.conversationID;
|
||||||
if(conversationID == "C2Cadministrator") return;//如果是管理员消息直接跳过
|
if(conversationID == "C2Cadministrator") return;//如果是管理员消息直接跳过
|
||||||
let lastMessage = item.lastMessage;
|
let lastMessage = item.lastMessage;
|
||||||
let type = lastMessage.type;
|
let type = lastMessage.type;
|
||||||
let no_inquiry_cancel_time=item.no_inquiry_cancel_time;
|
|
||||||
let userProfile = item.userProfile;
|
let userProfile = item.userProfile;
|
||||||
if(!lastMessage) return;
|
if(!lastMessage) return;
|
||||||
let cloudCustomData = lastMessage.cloudCustomData;
|
let cloudCustomData = lastMessage.cloudCustomData;
|
||||||
if(!cloudCustomData) return;
|
if(!cloudCustomData) return;
|
||||||
let cloudCustomDataJson = JSON.parse(cloudCustomData);
|
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;
|
let order_inquiry_id = cloudCustomDataJson.order_inquiry_id;
|
||||||
if(!order_inquiry_id) return;
|
if(!order_inquiry_id) return;
|
||||||
let inquiry_type = cloudCustomDataJson.inquiry_type;
|
let inquiry_type = cloudCustomDataJson.inquiry_type;
|
||||||
@ -375,15 +354,6 @@ Page({
|
|||||||
txt.Text= lastMessage.messageForShow;
|
txt.Text= lastMessage.messageForShow;
|
||||||
session_item.last_message_content = txt;
|
session_item.last_message_content = txt;
|
||||||
session_item.message_send_time = getTimeAgo(lastMessage.lastTime);
|
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.message_type = type;
|
||||||
session_item.order_inquiry_id = order_inquiry_id;
|
session_item.order_inquiry_id = order_inquiry_id;
|
||||||
session_item.inquiry_type = inquiry_type;
|
session_item.inquiry_type = inquiry_type;
|
||||||
@ -472,16 +442,10 @@ Page({
|
|||||||
}
|
}
|
||||||
|
|
||||||
app.go(url);
|
app.go(url);
|
||||||
this.setData({
|
|
||||||
isLock: false
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
postDoctorInquiry(e){
|
postDoctorInquiry(e){
|
||||||
let {isLock}=this.data;
|
|
||||||
if(!isLock){
|
|
||||||
this.setData({
|
this.setData({
|
||||||
show: false,
|
show: false
|
||||||
isLock:true
|
|
||||||
})
|
})
|
||||||
// console.log("order_inquiry_id: ", e.currentTarget.dataset.order_inquiry_id);
|
// console.log("order_inquiry_id: ", e.currentTarget.dataset.order_inquiry_id);
|
||||||
let params = {};
|
let params = {};
|
||||||
@ -497,8 +461,6 @@ Page({
|
|||||||
}).catch(errors => {
|
}).catch(errors => {
|
||||||
console.error(errors);
|
console.error(errors);
|
||||||
})
|
})
|
||||||
}
|
|
||||||
|
|
||||||
},
|
},
|
||||||
//获取上方角标
|
//获取上方角标
|
||||||
getDoctorMessageNotice(e){
|
getDoctorMessageNotice(e){
|
||||||
@ -539,7 +501,6 @@ Page({
|
|||||||
})
|
})
|
||||||
//点击请求数据为0,则重新渲染页面
|
//点击请求数据为0,则重新渲染页面
|
||||||
this.getDoctorInquiryFinishMessage('end');
|
this.getDoctorInquiryFinishMessage('end');
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
vanTabsChange(e){
|
vanTabsChange(e){
|
||||||
@ -577,11 +538,7 @@ Page({
|
|||||||
last_page: response.data.last_page
|
last_page: response.data.last_page
|
||||||
})
|
})
|
||||||
if(from && response.data.data.length==0){
|
if(from && response.data.data.length==0){
|
||||||
//this.formatStatus();
|
this.formatStatus();
|
||||||
|
|
||||||
this.onHide();
|
|
||||||
this.onShow();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
// this.selectComponent('#tabs').resize();
|
// this.selectComponent('#tabs').resize();
|
||||||
}).then(res =>{
|
}).then(res =>{
|
||||||
|
|||||||
@ -43,34 +43,16 @@
|
|||||||
<view class="content" wx:for="{{ data_list_1 }}" wx:key="order_inquiry_id">
|
<view class="content" wx:for="{{ data_list_1 }}" wx:key="order_inquiry_id">
|
||||||
<view class="content_1">
|
<view class="content_1">
|
||||||
<view class="name">
|
<view class="name">
|
||||||
<view class="parallelogram {{item.inquiry_mode==1?'':item.inquiry_mode==2?'video':item.inquiry_mode==6?'yinan':item.inquiry_mode==8?'healthy':item.inquiry_mode==9?'visit':'other'}}">{{item.inquiry_mode==1?'图文':item.inquiry_mode==2?'视频':item.inquiry_mode==6?'疑难问诊':item.inquiry_mode==7?'附赠回复':item.inquiry_mode==8?'健康包':item.inquiry_mode==9?'随访包':'其他'}}</view>
|
<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?'疑难问诊':item.inquiry_mode==7?'附赠回复':'其他'}}</view>
|
||||||
<text style="font-size: 34rpx;color: #333;">就诊人:</text>
|
<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="岁" />
|
{{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>
|
</view>
|
||||||
<view class="date">{{ 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?'已取消':'其他' }}</view>
|
<view class="date"> {{item.message_send_time}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="desc" wx:if="{{(item.inquiry_mode==9 && item.monthly_frequency==='0') || (item.inquiry_mode==9 && item.month_inquiry_count==0 && item.monthly_frequency!=='0')}}">服务内容:服务周期{{item.service_period/30}}个月</view>
|
|
||||||
<view class="descbox" wx:if="{{(item.inquiry_mode==9 && item.monthly_frequency!=='0' && item.month_inquiry_count>0) }}">
|
|
||||||
<view class="desc" wx:if="{{item.service_package_start_time && item.service_package_finish_time}}">服务期限:{{item.service_package_start_time}}-{{item.service_package_finish_time}}</view>
|
|
||||||
<view class="desc" wx:if="{{item.monthly_frequency==='0'}}">服务进度:不限次数问诊</view>
|
|
||||||
<view class="desc" wx:else>服务进度:当月剩余{{item.remaining_month_inquiry_count}}次问诊</view>
|
|
||||||
</view>
|
|
||||||
<view class="desc" wx:if="{{(item.inquiry_mode==8 && item.monthly_frequency==='0') || (item.inquiry_mode==8 && item.month_inquiry_count==0 && item.monthly_frequency!=='0')}}">服务内容:{{item.monthly_frequency==='0'?'不限':item.monthly_frequency}}次问诊/月,30盒肝爽颗粒(步长)</view>
|
|
||||||
<view class="descbox" wx:if="{{item.inquiry_mode==8 && monthly_frequency!=='0' && item.month_inquiry_count>0}}">
|
|
||||||
<view class="desc" wx:if="{{item.service_package_start_time && item.service_package_finish_time}}">服务期限:{{item.service_package_start_time}}-{{item.service_package_finish_time}}</view>
|
|
||||||
<view class="desc" >服务进度:<text wx:if="{{item.monthly_frequency==='0'}}">当月不限次问诊</text>
|
|
||||||
<text wx:else>当月剩余{{item.remaining_month_inquiry_count}}次问诊</text>,剩余{{item.remaining_quantity}}盒干爽颗粒(步长)
|
|
||||||
|
|
||||||
</view>
|
|
||||||
|
|
||||||
</view>
|
|
||||||
|
|
||||||
<!-- {{item.last_message_content.message_type}} -->
|
<!-- {{item.last_message_content.message_type}} -->
|
||||||
<view class="content_2">{{item.custommessagetype==13?'[附赠回复]':item.last_message_content.Text}}</view>
|
<view class="content_2">{{item.custommessagetype==13?'[附赠回复]':item.last_message_content.Text}}</view>
|
||||||
<view class="content_3">
|
<view class="content_3">
|
||||||
<view class="status">
|
<view class="status">{{ 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?'已取消':'其他' }}</view>
|
||||||
{{item.message_send_time}}</view>
|
|
||||||
<!-- <view class="status">{{ 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?'已取消':'其他' }}</view> -->
|
|
||||||
<view class="btn" wx:if="{{ item.inquiry_status == 3 }}">
|
<view class="btn" wx:if="{{ item.inquiry_status == 3 }}">
|
||||||
<van-button bind:click="go" data-url="/user/pages/yishi/case/index?order_inquiry_id={{item.order_inquiry_id}}" plain custom-style="padding:0 35rpx; height:67rpx; border-radius: 10rpx;" color="#3CC7C0">查看病历</van-button>
|
<van-button bind:click="go" data-url="/user/pages/yishi/case/index?order_inquiry_id={{item.order_inquiry_id}}" plain custom-style="padding:0 35rpx; height:67rpx; border-radius: 10rpx;" color="#3CC7C0">查看病历</van-button>
|
||||||
<van-button type="default"
|
<van-button type="default"
|
||||||
@ -86,9 +68,8 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="content_4" wx:if="{{ item.inquiry_status == 3 }}">
|
<view class="content_4" wx:if="{{ item.inquiry_status == 3 }}">
|
||||||
<text wx:if="{{item.inquiry_type ==2 || item.inquiry_type ==4}}">不接诊<text wx:if="{{item.no_inquiry_cancel_time<60}}">{{no_inquiry_cancel_time}}分钟</text><text wx:else>{{item.no_inquiry_cancel_time/60}}小时</text>后自动取消</text>
|
<text wx:if="{{item.inquiry_type ==2 || item.inquiry_type ==4}}">不接诊5分钟后自动取消</text>
|
||||||
<text wx:elif="{{item.inquiry_type ==3 || (item.inquiry_type ==1 && item.inquiry_mode!=8 && item.inquiry_mode!=9)}}">不接诊<text wx:if="{{item.no_inquiry_cancel_time<60}}">{{no_inquiry_cancel_time}}分钟</text><text wx:else>{{item.no_inquiry_cancel_time/60}}小时</text>后自动取消</text>
|
<text wx:elif="{{item.inquiry_type ==3 || item.inquiry_type ==1}}">不接诊24小时后自动取消</text>
|
||||||
<text wx:elif="{{item.inquiry_type ==1 && (item.inquiry_mode==8 || item.inquiry_mode==9)}}">不接诊<text wx:if="{{item.no_inquiry_cancel_time<60}}">{{no_inquiry_cancel_time}}分钟</text><text wx:else>{{item.no_inquiry_cancel_time/60}}小时</text>后自动取消</text>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- aa -->
|
<!-- aa -->
|
||||||
@ -226,8 +207,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="content_2">问诊已结束</view>
|
<view class="content_2">问诊已结束</view>
|
||||||
<view class="content_3">
|
<view class="content_3">
|
||||||
<!-- {{item.inquiry_mode==1?'':item.inquiry_mode==2?'video':item.inquiry_mode==6?'yinan':item.inquiry_mode==8?'healthy':item.inquiry_mode==9?'visit':'other'}}">{{item.inquiry_mode==1?'图文':item.inquiry_mode==2?'视频':item.inquiry_mode==6?'疑难问诊':item.inquiry_mode==7?'附赠回复':item.inquiry_mode==8?'健康包':item.inquiry_mode==9?'随访包':'其他'}} -->
|
<view class="status status_end">{{ item.inquiry_type==1?'专家问诊':item.inquiry_type==2?'快速问诊':item.inquiry_type==3?'公益问诊':item.inquiry_type==4?'问诊购药':item.inquiry_type==5?'糖组检测':'其他' }}</view>
|
||||||
<view class="status status_end">{{ (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?'糖组检测':'其他' }}</view>
|
|
||||||
</view>
|
</view>
|
||||||
<view class="content_4" wx:if="{{ item.inquiry_status == 3 }}">不接诊24小时后自动取消</view>
|
<view class="content_4" wx:if="{{ item.inquiry_status == 3 }}">不接诊24小时后自动取消</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@ -82,8 +82,7 @@ page{
|
|||||||
}
|
}
|
||||||
.date{
|
.date{
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
color: #FA541C;
|
color: #999;
|
||||||
|
|
||||||
}
|
}
|
||||||
.content_2{
|
.content_2{
|
||||||
background-color: #FAFAFA;
|
background-color: #FAFAFA;
|
||||||
@ -99,7 +98,7 @@ page{
|
|||||||
}
|
}
|
||||||
.status{
|
.status{
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
color: #999;
|
color: #FA541C;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
.status_end{
|
.status_end{
|
||||||
@ -177,14 +176,3 @@ page{
|
|||||||
.parallelogram.yinan.parallelogram::before{
|
.parallelogram.yinan.parallelogram::before{
|
||||||
background:#ffb700;
|
background:#ffb700;
|
||||||
}
|
}
|
||||||
.parallelogram.healthy.parallelogram::before{
|
|
||||||
background:#ff5d6a;
|
|
||||||
}
|
|
||||||
.parallelogram.visit.parallelogram::before{
|
|
||||||
background:#03b5e3;
|
|
||||||
}
|
|
||||||
.desc{
|
|
||||||
margin: 0 30rpx 10rpx;
|
|
||||||
font-size: 28rpx;
|
|
||||||
color: #000000;
|
|
||||||
}
|
|
||||||
@ -48,15 +48,6 @@ Component({
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
serviceInfo:{
|
|
||||||
type: Object,
|
|
||||||
value:{},
|
|
||||||
observer(val){
|
|
||||||
this.setData({
|
|
||||||
serviceInfo:val
|
|
||||||
});
|
|
||||||
}
|
|
||||||
},
|
|
||||||
videoInfo:{
|
videoInfo:{
|
||||||
type: Object,
|
type: Object,
|
||||||
value:{},
|
value:{},
|
||||||
@ -110,14 +101,12 @@ Component({
|
|||||||
* 组件的初始数据
|
* 组件的初始数据
|
||||||
*/
|
*/
|
||||||
data: {
|
data: {
|
||||||
textFocus:false,
|
|
||||||
conversation: {},
|
conversation: {},
|
||||||
message: '',
|
message: '',
|
||||||
showRound:false,
|
showRound:false,
|
||||||
video_dialog_visible:false,
|
video_dialog_visible:false,
|
||||||
showTalk:false,
|
showTalk:false,
|
||||||
videoInfo:{},
|
videoInfo:{},
|
||||||
serviceInfo:{},
|
|
||||||
baseInfo:{},
|
baseInfo:{},
|
||||||
family_id:'',
|
family_id:'',
|
||||||
patient_user_id:'',
|
patient_user_id:'',
|
||||||
@ -248,7 +237,7 @@ Component({
|
|||||||
|
|
||||||
let cach_message_rounds = this.data.message_rounds
|
let cach_message_rounds = this.data.message_rounds
|
||||||
message_rounds = cach_message_rounds>message_rounds?cach_message_rounds:message_rounds
|
message_rounds = cach_message_rounds>message_rounds?cach_message_rounds:message_rounds
|
||||||
let {serviceInfo}=this.data;
|
|
||||||
const mycloudCustomData = JSON.stringify({
|
const mycloudCustomData = JSON.stringify({
|
||||||
order_inquiry_id: this.data.order_inquiry_id,
|
order_inquiry_id: this.data.order_inquiry_id,
|
||||||
inquiry_type: this.data.inquiry_type,
|
inquiry_type: this.data.inquiry_type,
|
||||||
@ -256,13 +245,6 @@ Component({
|
|||||||
message_type: 0,
|
message_type: 0,
|
||||||
is_system: 0,
|
is_system: 0,
|
||||||
message_rounds: message_rounds,
|
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
|
patient_family_data: patient_family_data
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -335,20 +317,6 @@ this.setData({
|
|||||||
})
|
})
|
||||||
wx.setStorageSync('words', "");
|
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")
|
// console.log("pageLifetimes show")
|
||||||
let _this = this
|
let _this = this
|
||||||
@ -363,7 +331,6 @@ this.setData({
|
|||||||
|
|
||||||
},
|
},
|
||||||
hide: function () {
|
hide: function () {
|
||||||
wx.hideKeyboard();
|
|
||||||
let THIS=this;
|
let THIS=this;
|
||||||
if(THIS.data.isRecording){
|
if(THIS.data.isRecording){
|
||||||
THIS.handleTouchEnd()
|
THIS.handleTouchEnd()
|
||||||
@ -829,7 +796,7 @@ this.setData({
|
|||||||
|
|
||||||
let cach_message_rounds = this.data.message_rounds
|
let cach_message_rounds = this.data.message_rounds
|
||||||
message_rounds = cach_message_rounds>message_rounds?cach_message_rounds:message_rounds
|
message_rounds = cach_message_rounds>message_rounds?cach_message_rounds:message_rounds
|
||||||
let {serviceInfo}=this.data;
|
|
||||||
const mycloudCustomData = JSON.stringify({
|
const mycloudCustomData = JSON.stringify({
|
||||||
order_inquiry_id: this.data.order_inquiry_id,
|
order_inquiry_id: this.data.order_inquiry_id,
|
||||||
inquiry_type: this.data.inquiry_type,
|
inquiry_type: this.data.inquiry_type,
|
||||||
@ -837,13 +804,6 @@ this.setData({
|
|||||||
message_type: 0,
|
message_type: 0,
|
||||||
is_system: 0,
|
is_system: 0,
|
||||||
message_rounds: message_rounds,
|
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
|
patient_family_data: patient_family_data
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -1255,7 +1215,7 @@ this.setData({
|
|||||||
|
|
||||||
const to = this.getToAccount();
|
const to = this.getToAccount();
|
||||||
const text = flag ? msg : this.data.message;
|
const text = flag ? msg : this.data.message;
|
||||||
let {serviceInfo}=this.data;
|
|
||||||
const { FEAT_NATIVE_CODE } = constant;
|
const { FEAT_NATIVE_CODE } = constant;
|
||||||
const mycloudCustomData = JSON.stringify({
|
const mycloudCustomData = JSON.stringify({
|
||||||
order_inquiry_id: this.data.order_inquiry_id,
|
order_inquiry_id: this.data.order_inquiry_id,
|
||||||
@ -1264,13 +1224,6 @@ this.setData({
|
|||||||
message_type: 0,
|
message_type: 0,
|
||||||
is_system: 0,
|
is_system: 0,
|
||||||
message_rounds: message_rounds,
|
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
|
patient_family_data: patient_family_data
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -1365,13 +1318,9 @@ this.setData({
|
|||||||
},
|
},
|
||||||
// 监听是否获取焦点,有焦点则向父级传值,动态改变input组件的高度。
|
// 监听是否获取焦点,有焦点则向父级传值,动态改变input组件的高度。
|
||||||
inputBindFocus(event) {
|
inputBindFocus(event) {
|
||||||
//let {height}= event.detail;
|
this.setData({
|
||||||
// console.log(height);
|
focus: true,
|
||||||
// if(height==0){
|
});
|
||||||
// this.setData({
|
|
||||||
// textFocus: true,
|
|
||||||
// });
|
|
||||||
// }
|
|
||||||
// this.getMessageList(this.data.conversation);
|
// this.getMessageList(this.data.conversation);
|
||||||
this.triggerEvent('pullKeysBoards', {
|
this.triggerEvent('pullKeysBoards', {
|
||||||
event,
|
event,
|
||||||
|
|||||||
@ -11,7 +11,7 @@
|
|||||||
src="{{isAudio ? '../../../../static/assets/keyboard.svg' : '../../../../static/assets/audio.svg'}}" />
|
src="{{isAudio ? '../../../../static/assets/keyboard.svg' : '../../../../static/assets/audio.svg'}}" />
|
||||||
<view wx:if="{{!isAudio || isEmoji}}" class="TUI-message-input-main {{ focus && 'TUI-message-input-main-focus'}}" >
|
<view wx:if="{{!isAudio || isEmoji}}" class="TUI-message-input-main {{ focus && 'TUI-message-input-main-focus'}}" >
|
||||||
<!-- <textarea class="TUI-message-input-area" adjust-position="{{true}}" cursor-spacing="-300" placeholder="请输入文字" value="{{message}}" bindinput="onInputValueChange" maxlength="-1" type="text" auto-height="{{true}}" placeholder-class="textarea-placeholder" confirm-type="send" show-confirm-bar="{{false}}" disable-default-padding="{{true}}" bindfocus="inputBindFocus" bindblur="inputBindBlur" bindconfirm="sendTextMessage" /> -->
|
<!-- <textarea class="TUI-message-input-area" adjust-position="{{true}}" cursor-spacing="-300" placeholder="请输入文字" value="{{message}}" bindinput="onInputValueChange" maxlength="-1" type="text" auto-height="{{true}}" placeholder-class="textarea-placeholder" confirm-type="send" show-confirm-bar="{{false}}" disable-default-padding="{{true}}" bindfocus="inputBindFocus" bindblur="inputBindBlur" bindconfirm="sendTextMessage" /> -->
|
||||||
<textarea focus="{{textFocus}}" id="mytextarea" cursor-spacing="-300" class="TUI-message-input-area" adjust-position="{{true}}"
|
<textarea focus="{{false}}" id="mytextarea" cursor-spacing="-300" class="TUI-message-input-area" adjust-position="{{true}}"
|
||||||
value="{{message}}" bindinput="onInputValueChange" maxlength="-1" type="text" auto-height="{{true}}"
|
value="{{message}}" bindinput="onInputValueChange" maxlength="-1" type="text" auto-height="{{true}}"
|
||||||
placeholder="请输入文字" placeholder-class="input-placeholder" confirm-type="return" show-confirm-bar="{{false}}"
|
placeholder="请输入文字" placeholder-class="input-placeholder" confirm-type="return" show-confirm-bar="{{false}}"
|
||||||
disable-default-padding="{{true}}"
|
disable-default-padding="{{true}}"
|
||||||
|
|||||||
@ -39,9 +39,8 @@ Component({
|
|||||||
order_inquiry_id: {
|
order_inquiry_id: {
|
||||||
type: String,
|
type: String,
|
||||||
value: '',
|
value: '',
|
||||||
observer(val){
|
observer(){
|
||||||
this.getAudioMsg();
|
this.getAudioMsg();
|
||||||
this.checkChuFang(val)
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
from:{
|
from:{
|
||||||
@ -75,15 +74,6 @@ Component({
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
serviceInfo:{
|
|
||||||
type: Object,
|
|
||||||
value: {},
|
|
||||||
observer(serviceInfo) {
|
|
||||||
this.setData({
|
|
||||||
serviceInfo: serviceInfo
|
|
||||||
});
|
|
||||||
},
|
|
||||||
},
|
|
||||||
baseInfo: {
|
baseInfo: {
|
||||||
type: Object,
|
type: Object,
|
||||||
value: {},
|
value: {},
|
||||||
@ -132,7 +122,6 @@ Component({
|
|||||||
showTip:true
|
showTip:true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
//修改为组件传值
|
//修改为组件传值
|
||||||
// this.getInquiryMessageBasic()
|
// this.getInquiryMessageBasic()
|
||||||
// console.log("app.globalData.scene from TUIchat ready: ", app.globalData.scene);
|
// console.log("app.globalData.scene from TUIchat ready: ", app.globalData.scene);
|
||||||
@ -183,9 +172,7 @@ Component({
|
|||||||
*/
|
*/
|
||||||
data: {
|
data: {
|
||||||
rest_time:0,
|
rest_time:0,
|
||||||
showYaotip:false,
|
|
||||||
videoInfo:{},
|
videoInfo:{},
|
||||||
serviceInfo:{},
|
|
||||||
total_rounds:0,
|
total_rounds:0,
|
||||||
timeData:{},
|
timeData:{},
|
||||||
showTip:false,
|
showTip:false,
|
||||||
@ -234,31 +221,6 @@ Component({
|
|||||||
* 组件的方法列表
|
* 组件的方法列表
|
||||||
*/
|
*/
|
||||||
methods: {
|
methods: {
|
||||||
checkChuFang(order_inquiry_id){
|
|
||||||
api.getDoctorPrescriptionCheck({order_inquiry_id: order_inquiry_id}).then(response => {
|
|
||||||
let status = response.data.status
|
|
||||||
if(status == 2){
|
|
||||||
wx.setStorageSync('hasYaoTip',true);
|
|
||||||
this.setData({
|
|
||||||
showYaotip:true
|
|
||||||
})
|
|
||||||
}else{
|
|
||||||
wx.setStorageSync('hasYaoTip',false);
|
|
||||||
this.setData({
|
|
||||||
showYaotip:false
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
}).catch(errors => {
|
|
||||||
console.error(errors);
|
|
||||||
})
|
|
||||||
},
|
|
||||||
closeYaotip(){
|
|
||||||
this.setData({
|
|
||||||
showYaotip:true
|
|
||||||
})
|
|
||||||
wx.setStorageSync('hasYaoTip',true);
|
|
||||||
},
|
|
||||||
openTime(){
|
openTime(){
|
||||||
this.selectComponent("#MessageInput").openTimePicker();
|
this.selectComponent("#MessageInput").openTimePicker();
|
||||||
this.setData({
|
this.setData({
|
||||||
|
|||||||
@ -2,16 +2,12 @@
|
|||||||
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
||||||
<view class="container">
|
<view class="container">
|
||||||
<view class="info" wx:if="{{ baseInfo.inquiry_status > 0 }}">
|
<view class="info" wx:if="{{ baseInfo.inquiry_status > 0 }}">
|
||||||
<view class="yaotip" hidden="{{showYaotip}}" wx:if="{{baseInfo.inquiry_status==4 && baseInfo.inquiry_mode==8}}">
|
|
||||||
<view>健康包剩{{serviceInfo.remaining_quantity}}盒肝爽颗粒(步长),请询问患者是否开具。</view>
|
|
||||||
<van-icon name="cross" bind:tap="closeYaotip"/>
|
|
||||||
</view>
|
|
||||||
<view class="left" >
|
<view class="left" >
|
||||||
<view class="circle_top"></view>
|
<view class="circle_top"></view>
|
||||||
<view class="name" wx:if="{{baseInfo.inquiry_status!=4}}">{{baseInfo.patient_family_name}}</view>
|
<view class="name" wx:if="{{baseInfo.inquiry_status!=4}}">{{baseInfo.patient_family_name}}</view>
|
||||||
<view class="age" wx:if="{{baseInfo.inquiry_status!=4}}">{{baseInfo.patient_family_sex==1?'男':'女'}} | {{baseInfo.patient_family_age}}岁</view>
|
<view class="age" wx:if="{{baseInfo.inquiry_status!=4}}">{{baseInfo.patient_family_sex==1?'男':'女'}} | {{baseInfo.patient_family_age}}岁</view>
|
||||||
|
|
||||||
<view class="count_time" wx:elif="{{baseInfo.inquiry_status==4 && !(baseInfo.inquiry_mode==9 || baseInfo.inquiry_mode==8) }}">
|
<view class="count_time" wx:else="{{baseInfo.inquiry_status==4}}">
|
||||||
|
|
||||||
问诊中|<text wx:if="{{rest_time==-1}}" class="time_desc">不限时间</text>
|
问诊中|<text wx:if="{{rest_time==-1}}" class="time_desc">不限时间</text>
|
||||||
<view wx:else="{{rest_time!=-1}}" class="time_desc">
|
<view wx:else="{{rest_time!=-1}}" class="time_desc">
|
||||||
@ -30,8 +26,6 @@
|
|||||||
<text wx:else>0</text>个沟通回合
|
<text wx:else>0</text>个沟通回合
|
||||||
</text>
|
</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="count_time" wx:elif="{{baseInfo.inquiry_status==4 && (baseInfo.inquiry_mode==9 || baseInfo.inquiry_mode==8) }}"> 问诊中 | <text wx:if="{{serviceInfo.monthly_frequency==0}}" class="red" decode> 不限问诊次数,{{serviceInfo.remaining_finish_day}}天后结束</text>
|
|
||||||
<text decode wx:else> 当月剩余:<text class="red">{{serviceInfo.monthly_frequency-serviceInfo.month_inquiry_count}}</text>次</text></view>
|
|
||||||
</view>
|
</view>
|
||||||
<view class="right">
|
<view class="right">
|
||||||
<text class="right_txt" bindtap="putDoctorInquiryFinish" wx:if="{{baseInfo.inquiry_status==4}}">结束问诊</text>
|
<text class="right_txt" bindtap="putDoctorInquiryFinish" wx:if="{{baseInfo.inquiry_status==4}}">结束问诊</text>
|
||||||
@ -42,8 +36,6 @@
|
|||||||
<view >如需要修改视频时间,请点击这里</view>
|
<view >如需要修改视频时间,请点击这里</view>
|
||||||
<van-icon name="arrow" size="14px" style="margin-top: 3rpx;" color="#FF9C00" />
|
<van-icon name="arrow" size="14px" style="margin-top: 3rpx;" color="#FF9C00" />
|
||||||
</view>
|
</view>
|
||||||
<!-- wx:if="{{baseInfo.inquiry_status==4 && baseInfo.inquiry_mode==8}}" -->
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -74,9 +66,7 @@
|
|||||||
<view class="input-area" style="{{input_area_style}}" >
|
<view class="input-area" style="{{input_area_style}}" >
|
||||||
<!-- wx:if="{{showChat}}" -->
|
<!-- wx:if="{{showChat}}" -->
|
||||||
<view class="message-input" style="{{viewData.style}}" >
|
<view class="message-input" style="{{viewData.style}}" >
|
||||||
<MessageInput bind:myhandleExtensions="myhandleExtensions" id="MessageInput" inquiry_type="{{inquiry_type}}" baseInfo="{{baseInfo}}" order_inquiry_id="{{order_inquiry_id}}" conversation="{{conversation}}" from="{{from}}" hasCallKit="{{hasCallKit}}"
|
<MessageInput bind:myhandleExtensions="myhandleExtensions" id="MessageInput" inquiry_type="{{inquiry_type}}" baseInfo="{{baseInfo}}" order_inquiry_id="{{order_inquiry_id}}" conversation="{{conversation}}" from="{{from}}" hasCallKit="{{hasCallKit}}" isEditTime="{{isEditTime}}"
|
||||||
serviceInfo="{{serviceInfo}}"
|
|
||||||
isEditTime="{{isEditTime}}"
|
|
||||||
videoInfo="{{videoInfo}}"
|
videoInfo="{{videoInfo}}"
|
||||||
bind:sendMessage="sendMessage"
|
bind:sendMessage="sendMessage"
|
||||||
bind:freshVideoInfo="getAudioMsg"
|
bind:freshVideoInfo="getAudioMsg"
|
||||||
|
|||||||
@ -129,7 +129,7 @@
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
}
|
}
|
||||||
.info{
|
.info{
|
||||||
position: relative;
|
/* position: relative; */
|
||||||
z-index: 9;
|
z-index: 9;
|
||||||
height: 100rpx;
|
height: 100rpx;
|
||||||
background-color: rgb(255, 255, 255);
|
background-color: rgb(255, 255, 255);
|
||||||
@ -316,26 +316,5 @@ margin-left: 32rpx;
|
|||||||
background: #FFFCF2;
|
background: #FFFCF2;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
color: #FF9C00;
|
|
||||||
}
|
|
||||||
.count_time .red{
|
|
||||||
color:#E34D59;
|
|
||||||
}
|
|
||||||
.yaotip{
|
|
||||||
position: absolute;
|
|
||||||
left:0;
|
|
||||||
width:100%;
|
|
||||||
z-index:999;
|
|
||||||
top:100rpx;
|
|
||||||
justify-content: space-between;
|
|
||||||
padding: 0 10rpx;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
box-sizing: border-box;
|
|
||||||
width:100%;
|
|
||||||
height: 72rpx;
|
|
||||||
background: #FFFCF2;
|
|
||||||
font-size: 28rpx;
|
|
||||||
font-weight: 400;
|
|
||||||
color: #FF9C00;
|
color: #FF9C00;
|
||||||
}
|
}
|
||||||
@ -21,7 +21,6 @@ Component({
|
|||||||
order_inquiry_id:'',
|
order_inquiry_id:'',
|
||||||
inquiry_type:'',
|
inquiry_type:'',
|
||||||
baseInfo:{},
|
baseInfo:{},
|
||||||
serviceInfo:{},
|
|
||||||
from:'',
|
from:'',
|
||||||
unreadCount: 0,
|
unreadCount: 0,
|
||||||
hasCallKit: true,
|
hasCallKit: true,
|
||||||
@ -38,8 +37,8 @@ Component({
|
|||||||
* 组件的方法列表
|
* 组件的方法列表
|
||||||
*/
|
*/
|
||||||
methods: {
|
methods: {
|
||||||
init(currentConversationID,order_inquiry_id,inquiry_type,baseInfo,from,serviceInfo) {
|
init(currentConversationID,order_inquiry_id,inquiry_type,baseInfo,from) {
|
||||||
console.log(serviceInfo)
|
console.log(baseInfo)
|
||||||
console.warn("TUIKit js: init")
|
console.warn("TUIKit js: init")
|
||||||
|
|
||||||
const { config } = this.data;
|
const { config } = this.data;
|
||||||
@ -53,8 +52,7 @@ Component({
|
|||||||
order_inquiry_id,
|
order_inquiry_id,
|
||||||
inquiry_type,
|
inquiry_type,
|
||||||
baseInfo,
|
baseInfo,
|
||||||
from,
|
from
|
||||||
serviceInfo
|
|
||||||
}, () => {
|
}, () => {
|
||||||
//this.TUICallKit = this.selectComponent('#TUICallKit');
|
//this.TUICallKit = this.selectComponent('#TUICallKit');
|
||||||
// 这里的 isExitInit 用来判断 TUICallKit init 方法是否存在
|
// 这里的 isExitInit 用来判断 TUICallKit init 方法是否存在
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<!--TUIKitWChat/Chat/index.wxml-->
|
<!--TUIKitWChat/Chat/index.wxml-->
|
||||||
<!-- <TUIConversation id="TUIConversation" wx:if="{{isShowConversationList}}" bind:currentConversationID="currentConversationID" bind:currentGroupID="currentGroupID"></TUIConversation> -->
|
<!-- <TUIConversation id="TUIConversation" wx:if="{{isShowConversationList}}" bind:currentConversationID="currentConversationID" bind:currentGroupID="currentGroupID"></TUIConversation> -->
|
||||||
<TUIChat id="TUIChat" currentConversationID="{{currentConversationID}}" inquiry_type="{{baseInfo.inquiry_type}}" order_inquiry_id="{{order_inquiry_id}}" baseInfo="{{baseInfo}}" serviceInfo="{{serviceInfo}}"
|
<TUIChat id="TUIChat" currentConversationID="{{currentConversationID}}" inquiry_type="{{baseInfo.inquiry_type}}" order_inquiry_id="{{order_inquiry_id}}" baseInfo="{{baseInfo}}"
|
||||||
from="{{from}}"></TUIChat>
|
from="{{from}}"></TUIChat>
|
||||||
<!-- <TUICallKit class="calling" id="TUICallKit" config="{{config}}" bind:sendMessage="sendMessage"></TUICallKit> -->
|
<!-- <TUICallKit class="calling" id="TUICallKit" config="{{config}}" bind:sendMessage="sendMessage"></TUICallKit> -->
|
||||||
|
|||||||
@ -9,8 +9,7 @@ Page({
|
|||||||
from:'',
|
from:'',
|
||||||
inquiry_type:'',
|
inquiry_type:'',
|
||||||
currentConversationID:'',
|
currentConversationID:'',
|
||||||
baseInfo: {},
|
baseInfo: {}
|
||||||
serviceInfo:{}
|
|
||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
// console.log("chat onload", option);
|
// console.log("chat onload", option);
|
||||||
@ -36,13 +35,13 @@ Page({
|
|||||||
initChat(){
|
initChat(){
|
||||||
let _this = this;
|
let _this = this;
|
||||||
let count = 0;
|
let count = 0;
|
||||||
let {currentConversationID,order_inquiry_id,inquiry_type,baseInfo,from,serviceInfo}=this.data;
|
let {currentConversationID,order_inquiry_id,inquiry_type,baseInfo,from}=this.data;
|
||||||
let interval = setInterval(() => {
|
let interval = setInterval(() => {
|
||||||
// console.log("chat init count: ", count);
|
// console.log("chat init count: ", count);
|
||||||
// console.log("app.globalData.chat_sdk_ready: ", app.globalData.chat_sdk_ready);
|
// console.log("app.globalData.chat_sdk_ready: ", app.globalData.chat_sdk_ready);
|
||||||
if(app.globalData.chat_sdk_ready){
|
if(app.globalData.chat_sdk_ready){
|
||||||
const TUIChat = _this.selectComponent('#TUIKit');
|
const TUIChat = _this.selectComponent('#TUIKit');
|
||||||
TUIChat.init(currentConversationID,order_inquiry_id,inquiry_type,baseInfo,from,serviceInfo);
|
TUIChat.init(currentConversationID,order_inquiry_id,inquiry_type,baseInfo,from);
|
||||||
// wx.$TUIKit.on(wx.$TUIKitTIM.EVENT.MESSAGE_RECEIVED, _this.$onMessageReceived, _this);
|
// wx.$TUIKit.on(wx.$TUIKitTIM.EVENT.MESSAGE_RECEIVED, _this.$onMessageReceived, _this);
|
||||||
clearInterval(interval);
|
clearInterval(interval);
|
||||||
}
|
}
|
||||||
@ -53,18 +52,8 @@ Page({
|
|||||||
}
|
}
|
||||||
}, 1000);
|
}, 1000);
|
||||||
},
|
},
|
||||||
handleServiceChatMsg(id){
|
|
||||||
api.serviceChatMsg(id).then(response=>{
|
|
||||||
console.log(response);
|
|
||||||
this.setData({
|
|
||||||
serviceInfo:response.data
|
|
||||||
})
|
|
||||||
this.initChat();
|
|
||||||
})
|
|
||||||
},
|
|
||||||
//获取问诊订单消息内页基础数据
|
//获取问诊订单消息内页基础数据
|
||||||
getInquiryMessageBasic() {
|
getInquiryMessageBasic() {
|
||||||
|
|
||||||
// console.log("order_inquiry_id: ", this.data.order_inquiry_id);
|
// console.log("order_inquiry_id: ", this.data.order_inquiry_id);
|
||||||
api.getInquiryMessageBasic({order_inquiry_id: this.data.order_inquiry_id}).then(response => {
|
api.getInquiryMessageBasic({order_inquiry_id: this.data.order_inquiry_id}).then(response => {
|
||||||
// console.log(response);
|
// console.log(response);
|
||||||
@ -81,8 +70,7 @@ Page({
|
|||||||
console.warn('getUserProfile error:', imError); // 获取其他用户资料失败的相关信息
|
console.warn('getUserProfile error:', imError); // 获取其他用户资料失败的相关信息
|
||||||
});
|
});
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
this.handleServiceChatMsg(this.data.order_inquiry_id);
|
this.initChat();
|
||||||
|
|
||||||
}).catch(errors => {console.error(errors);})
|
}).catch(errors => {console.error(errors);})
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
<view>
|
<view>
|
||||||
<TUIKit id="TUIKit" currentConversationID="C2C{{baseInfo.patient_user_id}}" inquiry_type="{{baseInfo.inquiry_type}}" order_inquiry_id="{{order_inquiry_id}}" baseInfo="{{baseInfo}}" serviceInfo="{{serviceInfo}}"
|
<TUIKit id="TUIKit" currentConversationID="C2C{{baseInfo.patient_user_id}}" inquiry_type="{{baseInfo.inquiry_type}}" order_inquiry_id="{{order_inquiry_id}}" baseInfo="{{baseInfo}}"
|
||||||
hasCallKit="{{ false }}" from="{{from}}" bind:handleCall="handleCall"></TUIKit>
|
hasCallKit="{{ false }}" from="{{from}}" bind:handleCall="handleCall"></TUIKit>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
9
app.js
9
app.js
@ -49,7 +49,6 @@ App({
|
|||||||
if(userID == ""){
|
if(userID == ""){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.globalData.config.userID = userID;
|
this.globalData.config.userID = userID;
|
||||||
// let sign = genTestUserSig(this.globalData.config);
|
// let sign = genTestUserSig(this.globalData.config);
|
||||||
// console.log("sign: ", sign);
|
// console.log("sign: ", sign);
|
||||||
@ -171,13 +170,7 @@ App({
|
|||||||
onKickedOut(){
|
onKickedOut(){
|
||||||
// console.log("onKickedOutonKickedOutonKickedOutonKickedOut");
|
// console.log("onKickedOutonKickedOutonKickedOutonKickedOut");
|
||||||
let usertype = wx.getStorageSync('usertype');
|
let usertype = wx.getStorageSync('usertype');
|
||||||
// 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('user_id_'+usertype, "");
|
||||||
wx.setStorageSync('client_user_id_'+usertype, "");
|
wx.setStorageSync('client_user_id_'+usertype, "");
|
||||||
if(wx.$TUIKit){
|
if(wx.$TUIKit){
|
||||||
|
|||||||
10
app.json
10
app.json
@ -46,6 +46,8 @@
|
|||||||
"pages/yishi/quickreply/index",
|
"pages/yishi/quickreply/index",
|
||||||
"pages/yishi/quickreply_data/index",
|
"pages/yishi/quickreply_data/index",
|
||||||
"pages/yishi/case/index",
|
"pages/yishi/case/index",
|
||||||
|
|
||||||
|
|
||||||
"pages/login/index",
|
"pages/login/index",
|
||||||
"pages/mobile_login/index",
|
"pages/mobile_login/index",
|
||||||
"pages/yishi/manual_detail/index",
|
"pages/yishi/manual_detail/index",
|
||||||
@ -65,8 +67,7 @@
|
|||||||
"pages/yishi/write_sickform/index",
|
"pages/yishi/write_sickform/index",
|
||||||
"pages/yishi/sickform/index",
|
"pages/yishi/sickform/index",
|
||||||
"pages/yishi/service_setting/index",
|
"pages/yishi/service_setting/index",
|
||||||
"pages/yishi/expertDetail/expertDetail",
|
"pages/yishi/expertDetail/expertDetail"
|
||||||
"pages/yishi/addServiceContent/index"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -89,9 +90,7 @@
|
|||||||
"preloadRule": {
|
"preloadRule": {
|
||||||
"TUICallKit/pages/globalCall/globalCall": {
|
"TUICallKit/pages/globalCall/globalCall": {
|
||||||
"network": "all",
|
"network": "all",
|
||||||
"packages": [
|
"packages": ["TUICallKit"]
|
||||||
"TUICallKit"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"window": {
|
"window": {
|
||||||
@ -109,6 +108,7 @@
|
|||||||
{
|
{
|
||||||
"pagePath": "Pages/yaoshi/home/home",
|
"pagePath": "Pages/yaoshi/home/home",
|
||||||
"text": "首页"
|
"text": "首页"
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"pagePath": "Pages/yaoshi/my/my",
|
"pagePath": "Pages/yaoshi/my/my",
|
||||||
|
|||||||
@ -75,17 +75,7 @@ function formatwenzhenList(arr,type){
|
|||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
function countMoney(value){
|
|
||||||
var m=parseFloat(value)*0.75;
|
|
||||||
var index= m.toString().indexOf(".");
|
|
||||||
if(index!=-1){
|
|
||||||
return m.toString().substring(0, index+3)
|
|
||||||
}else{
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
};
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
countMoney:countMoney,
|
|
||||||
formatwenzhenList:formatwenzhenList,
|
formatwenzhenList:formatwenzhenList,
|
||||||
numberTOstring:numberTOstring,
|
numberTOstring:numberTOstring,
|
||||||
transforDay:transforDay,
|
transforDay:transforDay,
|
||||||
|
|||||||
@ -905,25 +905,27 @@ Component({
|
|||||||
if(!avatar){wx.showToast({title: '请上传头像',icon: "error"});return}
|
if(!avatar){wx.showToast({title: '请上传头像',icon: "error"});return}
|
||||||
if(doctor_expertise.length == 0){wx.showToast({title: '请选择专长',icon: "error"});return}
|
if(doctor_expertise.length == 0){wx.showToast({title: '请选择专长',icon: "error"});return}
|
||||||
if(!textarea_jianjie){wx.showToast({title: '请输入简介',icon: "error"});return}
|
if(!textarea_jianjie){wx.showToast({title: '请输入简介',icon: "error"});return}
|
||||||
if(!textarea_shanchang){wx.showToast({title: '请输入擅长',icon: "error"});return}
|
if(!textarea_shanchang){wx.showToast({title: '请输入擅长',icon: "error"});return};
|
||||||
|
console.log(textarea_jianjie,old_brief_introduction)
|
||||||
|
console.log(textarea_shanchang, old_be_good_at )
|
||||||
if(avatar==old_avatar && textarea_jianjie==old_brief_introduction &&textarea_shanchang== old_be_good_at && JSON.stringify(doctor_expertise)==old_doctor_expertise){
|
if(avatar==old_avatar && textarea_jianjie==old_brief_introduction &&textarea_shanchang== old_be_good_at && JSON.stringify(doctor_expertise)==old_doctor_expertise){
|
||||||
wx.showToast({title: '请修改数据后再提交',icon: "none"});return
|
wx.showToast({title: '请修改数据后再提交',icon: "none"});return
|
||||||
}
|
}
|
||||||
api.updateIntroduction({
|
// api.updateIntroduction({
|
||||||
avatar,
|
// avatar,
|
||||||
brief_introduction:textarea_jianjie,
|
// brief_introduction:textarea_jianjie,
|
||||||
be_good_at:textarea_shanchang,
|
// be_good_at:textarea_shanchang,
|
||||||
doctor_expertise
|
// doctor_expertise
|
||||||
}).then(response=>{
|
// }).then(response=>{
|
||||||
wx.showToast({
|
// wx.showToast({
|
||||||
title: '提交成功',
|
// title: '提交成功',
|
||||||
icon: "success"
|
// icon: "success"
|
||||||
})
|
// })
|
||||||
this.setData({
|
// this.setData({
|
||||||
introduction_status:2,
|
// introduction_status:2,
|
||||||
iden_auth_status_txt: "资料已提交,审核中"
|
// iden_auth_status_txt: "资料已提交,审核中"
|
||||||
})
|
// })
|
||||||
})
|
// })
|
||||||
},
|
},
|
||||||
addDoctorAuthIden(e){
|
addDoctorAuthIden(e){
|
||||||
console.log("addDoctorAuthIden addDoctorAuthIden")
|
console.log("addDoctorAuthIden addDoctorAuthIden")
|
||||||
|
|||||||
@ -392,7 +392,9 @@
|
|||||||
has_error_content="{{ brief_introduction_reason }}"
|
has_error_content="{{ brief_introduction_reason }}"
|
||||||
data-textarea_name="textarea_jianjie"
|
data-textarea_name="textarea_jianjie"
|
||||||
bind:TextAreaBlur="getTextAreaVal" />
|
bind:TextAreaBlur="getTextAreaVal" />
|
||||||
|
<view class="has_error" wx:if="{{brief_introduction_reason != '' }}" >
|
||||||
|
|
||||||
|
</view>
|
||||||
<m-textarea-cell
|
<m-textarea-cell
|
||||||
textarea_cell_name="擅长领域"
|
textarea_cell_name="擅长领域"
|
||||||
t_icon_name="view-module"
|
t_icon_name="view-module"
|
||||||
|
|||||||
@ -75,7 +75,7 @@
|
|||||||
left: 32rpx;
|
left: 32rpx;
|
||||||
}
|
}
|
||||||
.zhuanchang.hasnoborder::after{
|
.zhuanchang.hasnoborder::after{
|
||||||
border-bottom:none
|
border-bottom: none;
|
||||||
}
|
}
|
||||||
.zhuanchang .content{
|
.zhuanchang .content{
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
|||||||
@ -25,27 +25,25 @@ Page({
|
|||||||
},
|
},
|
||||||
onShow(){
|
onShow(){
|
||||||
let usertype = wx.getStorageSync('usertype');
|
let usertype = wx.getStorageSync('usertype');
|
||||||
if(!usertype){
|
|
||||||
wx.redirectTo({
|
|
||||||
url: "/Pages/index/index"
|
|
||||||
})
|
|
||||||
};
|
|
||||||
this.setData({
|
this.setData({
|
||||||
beforeClose: this.data.beforeClose.bind(this),
|
beforeClose: this.data.beforeClose.bind(this),
|
||||||
})
|
})
|
||||||
|
if(!usertype){
|
||||||
|
wx.navigateTo({
|
||||||
|
url: "/Pages/index/index"
|
||||||
|
})
|
||||||
|
};
|
||||||
},
|
},
|
||||||
onLoad(){
|
onLoad(){
|
||||||
let usertype = wx.getStorageSync('usertype');
|
let usertype = wx.getStorageSync('usertype');
|
||||||
if(!usertype){
|
|
||||||
wx.redirectTo({
|
|
||||||
url: "/Pages/index/index"
|
|
||||||
})
|
|
||||||
};
|
|
||||||
this.setData({
|
this.setData({
|
||||||
beforeClose: this.data.beforeClose.bind(this),
|
beforeClose: this.data.beforeClose.bind(this),
|
||||||
})
|
})
|
||||||
|
if(!usertype){
|
||||||
|
wx.navigateTo({
|
||||||
|
url: "/Pages/index/index"
|
||||||
|
})
|
||||||
|
};
|
||||||
wx.getPrivacySetting({
|
wx.getPrivacySetting({
|
||||||
success: res => {
|
success: res => {
|
||||||
console.log(res) // 返回结果为: res = { needAuthorization: true/false, privacyContractName: '《xxx隐私保护指引》' }
|
console.log(res) // 返回结果为: res = { needAuthorization: true/false, privacyContractName: '《xxx隐私保护指引》' }
|
||||||
@ -145,15 +143,8 @@ Page({
|
|||||||
wx_code: res.code
|
wx_code: res.code
|
||||||
}
|
}
|
||||||
api.wechatMobileLogin(params).then(response => {
|
api.wechatMobileLogin(params).then(response => {
|
||||||
// console.log(response);
|
console.log(response);
|
||||||
const { envVersion } = wx.getAccountInfoSync().miniProgram;
|
|
||||||
if(envVersion=='release'){
|
|
||||||
wx.setStorageSync('AUTH_TOKEN_'+usertype, response.data.token);
|
wx.setStorageSync('AUTH_TOKEN_'+usertype, response.data.token);
|
||||||
}else{
|
|
||||||
wx.setStorageSync('DEV_AUTH_TOKEN_'+usertype, response.data.token);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
wx.setStorageSync('user_id_'+usertype, response.data.user_id);
|
wx.setStorageSync('user_id_'+usertype, response.data.user_id);
|
||||||
wx.setStorageSync('client_user_id_'+usertype, response.data.client_user_id);
|
wx.setStorageSync('client_user_id_'+usertype, response.data.client_user_id);
|
||||||
app.globalData.config.userID = response.data.user_id;
|
app.globalData.config.userID = response.data.user_id;
|
||||||
|
|||||||
@ -138,14 +138,8 @@ Page({
|
|||||||
|
|
||||||
api.mobileLogin(params).then(response => {
|
api.mobileLogin(params).then(response => {
|
||||||
app.globalData.isLogin=true;
|
app.globalData.isLogin=true;
|
||||||
const { envVersion } = wx.getAccountInfoSync().miniProgram;
|
console.log(response);
|
||||||
if(envVersion=='release'){
|
|
||||||
wx.setStorageSync('AUTH_TOKEN_'+usertype, response.data.token);
|
wx.setStorageSync('AUTH_TOKEN_'+usertype, response.data.token);
|
||||||
}else{
|
|
||||||
wx.setStorageSync('DEV_AUTH_TOKEN_'+usertype, response.data.token);
|
|
||||||
|
|
||||||
}
|
|
||||||
// wx.setStorageSync('AUTH_TOKEN_'+usertype, response.data.token);
|
|
||||||
wx.setStorageSync('user_id_'+usertype, response.data.user_id);
|
wx.setStorageSync('user_id_'+usertype, response.data.user_id);
|
||||||
wx.setStorageSync('client_user_id_'+usertype, response.data.client_user_id);
|
wx.setStorageSync('client_user_id_'+usertype, response.data.client_user_id);
|
||||||
app.globalData.config.userID = response.data.user_id;
|
app.globalData.config.userID = response.data.user_id;
|
||||||
|
|||||||
@ -35,13 +35,7 @@ Page({
|
|||||||
success (res) {
|
success (res) {
|
||||||
if (res.confirm) {
|
if (res.confirm) {
|
||||||
console.log('用户点击确定')
|
console.log('用户点击确定')
|
||||||
const { envVersion } = wx.getAccountInfoSync().miniProgram;
|
wx.setStorageSync('AUTH_TOKEN_'+usertype, "");
|
||||||
if(envVersion=='release'){
|
|
||||||
wx.setStorageSync('AUTH_TOKEN_'+usertype, '');
|
|
||||||
}else{
|
|
||||||
wx.setStorageSync('DEV_AUTH_TOKEN_'+usertype, '');
|
|
||||||
}
|
|
||||||
// wx.setStorageSync('AUTH_TOKEN_'+usertype, "");
|
|
||||||
wx.setStorageSync('user_id_'+usertype, "");
|
wx.setStorageSync('user_id_'+usertype, "");
|
||||||
wx.setStorageSync('client_user_id_'+usertype, "");
|
wx.setStorageSync('client_user_id_'+usertype, "");
|
||||||
app.globalData.isLogin=false;
|
app.globalData.isLogin=false;
|
||||||
|
|||||||
@ -1,309 +0,0 @@
|
|||||||
// user/pages/yishi/addServiceContent/index.js
|
|
||||||
import { API } from '../../../../utils/network/api'
|
|
||||||
let api = new API()
|
|
||||||
const app = getApp()
|
|
||||||
Page({
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 页面的初始数据
|
|
||||||
*/
|
|
||||||
data: {
|
|
||||||
navbarData: {
|
|
||||||
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
|
|
||||||
title: '添加服务内容', //导航栏 中间的标题
|
|
||||||
|
|
||||||
},
|
|
||||||
tuwenPrice:'',
|
|
||||||
cycle_columns:['1个月', '3个月', '6个月', '12个月'],
|
|
||||||
service_columns:['10次','不限次'],
|
|
||||||
showCycle:false,
|
|
||||||
showServiceNumber:false,
|
|
||||||
monthly_frequency:'',
|
|
||||||
isAdd:false,
|
|
||||||
service_rounds:0,
|
|
||||||
cur_id:'',
|
|
||||||
onePrice:null,
|
|
||||||
threePrice:null,
|
|
||||||
sixPrice:null,
|
|
||||||
yearPrice:null,
|
|
||||||
static_host: api.getStaticHost(),
|
|
||||||
items:[{
|
|
||||||
service_period:'',
|
|
||||||
service_price:''
|
|
||||||
}]
|
|
||||||
},
|
|
||||||
openCycle(event){
|
|
||||||
let {id} =event.currentTarget.dataset;
|
|
||||||
console.log(id);
|
|
||||||
this.setData({
|
|
||||||
showCycle:true,
|
|
||||||
cur_id:id,
|
|
||||||
})
|
|
||||||
},
|
|
||||||
|
|
||||||
confirmCycle(event){
|
|
||||||
const { picker, value, index} = event.detail;
|
|
||||||
let {items,cur_id}=this.data;
|
|
||||||
|
|
||||||
let obj='items['+cur_id+'].service_period';
|
|
||||||
let day=null;
|
|
||||||
if(index==0){
|
|
||||||
day=30
|
|
||||||
}else if(index==1){
|
|
||||||
day=90
|
|
||||||
}else if(index==2){
|
|
||||||
day=180
|
|
||||||
}else if(index==3){
|
|
||||||
day=360
|
|
||||||
}
|
|
||||||
for (let index = 0; index < items.length; index++) {
|
|
||||||
if(items[index].service_period==day){
|
|
||||||
wx.showToast({
|
|
||||||
title: '此服务周期不能重复设置',
|
|
||||||
icon:'none'
|
|
||||||
})
|
|
||||||
return false
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
||||||
this.setData({
|
|
||||||
showCycle:false,
|
|
||||||
[obj]:day
|
|
||||||
})
|
|
||||||
|
|
||||||
},
|
|
||||||
changeIpt(event){
|
|
||||||
let {value}=event.detail;
|
|
||||||
let {id}=event.currentTarget.dataset;
|
|
||||||
console.log(id);
|
|
||||||
let obj='items['+id+'].service_price';
|
|
||||||
this.setData({
|
|
||||||
[obj]:value
|
|
||||||
})
|
|
||||||
|
|
||||||
},
|
|
||||||
delService(event){
|
|
||||||
let {items}=this.data;
|
|
||||||
let {id} =event.currentTarget.dataset;
|
|
||||||
items.splice(id,1)
|
|
||||||
this.setData({
|
|
||||||
items
|
|
||||||
})
|
|
||||||
},
|
|
||||||
handle(){
|
|
||||||
this.data.isAdd?this.addService():this.editService();
|
|
||||||
},
|
|
||||||
addServiceArr(){
|
|
||||||
|
|
||||||
this.setData({
|
|
||||||
items:this.data.items.concat({
|
|
||||||
service_period:'' ,
|
|
||||||
service_price:''
|
|
||||||
})
|
|
||||||
})
|
|
||||||
},
|
|
||||||
cancelCycle(){
|
|
||||||
this.setData({
|
|
||||||
showCycle:false
|
|
||||||
})
|
|
||||||
},
|
|
||||||
getService(){
|
|
||||||
api.getFollow().then(response=>{
|
|
||||||
if(response.code==200){
|
|
||||||
if(response.data){
|
|
||||||
let {monthly_frequency,service_rounds,items}=response.data
|
|
||||||
this.setData({
|
|
||||||
monthly_frequency,
|
|
||||||
service_rounds,
|
|
||||||
isAdd:false
|
|
||||||
})
|
|
||||||
}else{
|
|
||||||
this.setData({
|
|
||||||
isAdd:true
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
addService(){
|
|
||||||
let {monthly_frequency,service_rounds,items}=this.data;
|
|
||||||
if(!monthly_frequency && monthly_frequency===''){
|
|
||||||
wx.showToast({
|
|
||||||
title: '请选择服务次数',
|
|
||||||
icon:'none'
|
|
||||||
})
|
|
||||||
return false
|
|
||||||
};
|
|
||||||
for (let i = 0; i < items.length; i++) {
|
|
||||||
if(!items[i].service_period){
|
|
||||||
wx.showToast({
|
|
||||||
title: '请选择第'+(i+1)+'个的服务周期',
|
|
||||||
icon:'none'
|
|
||||||
})
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
if(!items[i].service_price){
|
|
||||||
wx.showToast({
|
|
||||||
title: '请设置第'+(i+1)+'个的服务价格',
|
|
||||||
icon:'none'
|
|
||||||
})
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
api.postFollow({
|
|
||||||
monthly_frequency,
|
|
||||||
service_rounds,
|
|
||||||
items
|
|
||||||
}).then(response=>{
|
|
||||||
if(response.code==200){
|
|
||||||
wx.showToast({
|
|
||||||
title: '保存成功',
|
|
||||||
icon:'none'
|
|
||||||
})
|
|
||||||
wx.navigateBack()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
editService(){
|
|
||||||
let {monthly_frequency,service_rounds,items}=this.data;
|
|
||||||
if(!monthly_frequency && monthly_frequency!=0){
|
|
||||||
wx.showToast({
|
|
||||||
title: '请选择服务次数',
|
|
||||||
icon:'none'
|
|
||||||
})
|
|
||||||
return false
|
|
||||||
};
|
|
||||||
for (let i = 0; i < items.length; i++) {
|
|
||||||
if(!items[i].service_period){
|
|
||||||
wx.showToast({
|
|
||||||
title: '请选择第'+(i+1)+'个的服务周期',
|
|
||||||
icon:'none'
|
|
||||||
})
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
if(!items[i].service_price){
|
|
||||||
wx.showToast({
|
|
||||||
title: '请设置第'+(i+1)+'个的服务价格',
|
|
||||||
icon:'none'
|
|
||||||
})
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
api.editFollow({
|
|
||||||
monthly_frequency,
|
|
||||||
service_rounds,
|
|
||||||
items
|
|
||||||
}).then(response=>{
|
|
||||||
if(response.code==200){
|
|
||||||
wx.showToast({
|
|
||||||
title: '修改成功',
|
|
||||||
});
|
|
||||||
wx.navigateBack()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
getFollowDetail(){
|
|
||||||
let type=wx.getStorageSync('usertype');
|
|
||||||
let id=wx.getStorageSync('client_user_id_'+type);
|
|
||||||
api.getFollowDetail(id).then(response=>{
|
|
||||||
if(response.code==200){
|
|
||||||
if(response.data){
|
|
||||||
let res=response.data.map((item)=>{
|
|
||||||
return {service_period:item.service_period,service_price:item.service_price}
|
|
||||||
})
|
|
||||||
this.setData({
|
|
||||||
items:res?res:[]
|
|
||||||
})
|
|
||||||
console.log(this.data.items)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
openServiceNumber(){
|
|
||||||
this.setData({
|
|
||||||
showServiceNumber:true
|
|
||||||
})
|
|
||||||
},
|
|
||||||
confirmServiceNumber(event){
|
|
||||||
const { picker, value, index } = event.detail;
|
|
||||||
|
|
||||||
this.setData({
|
|
||||||
showServiceNumber:false,
|
|
||||||
monthly_frequency:index==0?10:'0'
|
|
||||||
})
|
|
||||||
},
|
|
||||||
cancelServiceNumber(){
|
|
||||||
this.setData({
|
|
||||||
showServiceNumber:false
|
|
||||||
})
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* 生命周期函数--监听页面加载
|
|
||||||
*/
|
|
||||||
onLoad(options) {
|
|
||||||
this.setData({
|
|
||||||
iden_auth_status:options.iden_auth_status,
|
|
||||||
idcard_status:options.idcard_status,
|
|
||||||
is_bind_bank:options.is_bind_bank,
|
|
||||||
tuwenPrice:options.tuwenPrice,
|
|
||||||
onePrice:options.tuwenPrice?(options.tuwenPrice*10*0.5).toFixed(2):0,
|
|
||||||
threePrice:options.tuwenPrice?(options.tuwenPrice*30*0.4).toFixed(2):0,
|
|
||||||
sixPrice:options.tuwenPrice?(options.tuwenPrice*60*0.3).toFixed(2):0,
|
|
||||||
yearPrice:options.tuwenPrice?(options.tuwenPrice*120*0.2).toFixed(2):0,
|
|
||||||
|
|
||||||
})
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 生命周期函数--监听页面初次渲染完成
|
|
||||||
*/
|
|
||||||
onReady() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 生命周期函数--监听页面显示
|
|
||||||
*/
|
|
||||||
onShow() {
|
|
||||||
this.getService();
|
|
||||||
let {idcard_status,iden_auth_status,is_bind_bank}=this.data;
|
|
||||||
if(idcard_status==1 && iden_auth_status==1 && is_bind_bank==1){
|
|
||||||
this.getFollowDetail();
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 生命周期函数--监听页面隐藏
|
|
||||||
*/
|
|
||||||
onHide() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 生命周期函数--监听页面卸载
|
|
||||||
*/
|
|
||||||
onUnload() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 页面相关事件处理函数--监听用户下拉动作
|
|
||||||
*/
|
|
||||||
onPullDownRefresh() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 页面上拉触底事件的处理函数
|
|
||||||
*/
|
|
||||||
onReachBottom() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 用户点击右上角分享
|
|
||||||
*/
|
|
||||||
onShareAppMessage() {
|
|
||||||
|
|
||||||
}
|
|
||||||
})
|
|
||||||
@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"usingComponents": {
|
|
||||||
"te-nav-bar": "../../../../commpents/te_navbar/index",
|
|
||||||
"van-field": "@vant/weapp/field/index",
|
|
||||||
"van-icon": "@vant/weapp/icon/index",
|
|
||||||
"van-picker": "@vant/weapp/picker/index",
|
|
||||||
"van-popup": "@vant/weapp/popup/index",
|
|
||||||
"van-button": "@vant/weapp/button/index"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,71 +0,0 @@
|
|||||||
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
|
||||||
<view class="page">
|
|
||||||
<view class="checked_box">
|
|
||||||
<view class="price_steup_box">
|
|
||||||
<view class="price_steup_box_top">
|
|
||||||
<view class="price_steup_box_top_title">服务次数/月</view>
|
|
||||||
<view class="price_steup_box_top_stepper" bind:tap="openServiceNumber">
|
|
||||||
<text class="amount nodata" wx:if="{{monthly_frequency===''}}">请选择服务次数</text>
|
|
||||||
<text class="amount" wx:else>{{monthly_frequency==='0'?'不限次数':'10次'}}</text>
|
|
||||||
|
|
||||||
<van-icon name="arrow" color="#999" style="margin-top: 2rpx;"/>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="price_steup_box_bottom">
|
|
||||||
<view class="price_steup_box_bottom_title">服务回合数</view>
|
|
||||||
<view class="price_steup_box_bottom_num">
|
|
||||||
|
|
||||||
<text class="price">不限制</text>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="vontent">
|
|
||||||
<view class="checked_box">
|
|
||||||
<view class="title">服务内容</view>
|
|
||||||
<view class="price_steup_box" style="height:260rpx" wx:for="{{items}}" wx:key="index">
|
|
||||||
<view class="price_steup_box_top" bind:tap="openCycle" data-id="{{index}}">
|
|
||||||
<view class="price_steup_box_top_title">服务周期</view>
|
|
||||||
<view class="price_steup_box_top_stepper">
|
|
||||||
<text class="amount " wx:if="{{item.service_period}}">{{item.service_period/30}}个月</text>
|
|
||||||
<text class="amount nodata" wx:else>请选择周期</text>
|
|
||||||
<van-icon name="arrow" color="#999" style="margin-top: 2rpx;"/>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="price_steup_box_bottom" style="border-bottom:0.5px solid #e7e7e7;padding-bottom: 25rpx;">
|
|
||||||
<view class="price_steup_box_bottom_title">服务价格</view>
|
|
||||||
<view class="price_steup_box_bottom_num">
|
|
||||||
<input type="number" class="ipt" value="{{item.service_price}}" placeholder="请设置价格" placeholder-style="font-size:28rpx;color: rgba(0,0,0,0.45);" bindinput="changeIpt" data-id="{{index}}" /><text class="unit" wx:if="{{item.service_price}}">元</text>
|
|
||||||
</view>
|
|
||||||
|
|
||||||
</view>
|
|
||||||
<view class="tips" wx:if="{{tuwenPrice}}">
|
|
||||||
<view class="advice_price">建议服务价格设置为:{{(item.service_period/30)==1?'¥'+onePrice:(item.service_period/30)==3?'¥'+threePrice:(item.service_period/30)==6?'¥'+sixPrice:(item.service_period/30)==12?'¥'+yearPrice:'单次图文*10次*0.5'}}</view>
|
|
||||||
<image class="del_img" src="{{static_host}}/applet/doctor/static/images/yishi/service_del.png" mode=""
|
|
||||||
|
|
||||||
bind:tap="delService" data-id="{{index}}" wx:if="{{items.length>1}}"/>
|
|
||||||
|
|
||||||
<!-- <view >删除</view> -->
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="continueadd" bind:tap="addServiceArr" wx:if="{{items.length<4}}">继续添加服务内容</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="btn" bind:tap="handle">保存</view>
|
|
||||||
<van-popup
|
|
||||||
show="{{ showCycle }}"
|
|
||||||
round
|
|
||||||
position="bottom"
|
|
||||||
custom-style="height: 35%"
|
|
||||||
>
|
|
||||||
<van-picker columns="{{ cycle_columns }}" show-toolbar bind:confirm="confirmCycle" title="周期" bind:cancel="cancelCycle"/>
|
|
||||||
</van-popup>
|
|
||||||
<van-popup
|
|
||||||
show="{{ showServiceNumber }}"
|
|
||||||
round
|
|
||||||
position="bottom"
|
|
||||||
custom-style="height: 35%"
|
|
||||||
>
|
|
||||||
<van-picker columns="{{ service_columns }}" show-toolbar bind:confirm="confirmServiceNumber" title="服务次数" bind:cancel="cancelServiceNumber"/>
|
|
||||||
</van-popup>
|
|
||||||
@ -1,215 +0,0 @@
|
|||||||
page {
|
|
||||||
background-color: #F6F6F6;
|
|
||||||
}
|
|
||||||
|
|
||||||
.page {
|
|
||||||
overflow: hidden;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
}
|
|
||||||
|
|
||||||
.title {
|
|
||||||
width: 90vw;
|
|
||||||
margin: 0 auto 20rpx;
|
|
||||||
font-weight: 550;
|
|
||||||
font-size: 32rpx;
|
|
||||||
color: rgba(0, 0, 0, 0.85);
|
|
||||||
}
|
|
||||||
|
|
||||||
.checked_box {
|
|
||||||
margin-top: 30rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.price_title {
|
|
||||||
width: 90vw;
|
|
||||||
margin: 20rpx auto 0 auto;
|
|
||||||
font-size: 32rpx;
|
|
||||||
margin-bottom: 20rpx;
|
|
||||||
/* font-family: "AlibabaPuHuiTi-2-55-Regular"; */
|
|
||||||
color: #333333;
|
|
||||||
}
|
|
||||||
|
|
||||||
.price_steup_box {
|
|
||||||
display: flex;
|
|
||||||
width: 90vw;
|
|
||||||
height: 180rpx;
|
|
||||||
margin: 0 auto 20rpx;
|
|
||||||
border-radius: 20rpx;
|
|
||||||
flex-direction: column;
|
|
||||||
background-color: rgb(255, 255, 255);
|
|
||||||
}
|
|
||||||
|
|
||||||
.price_steup_box_top {
|
|
||||||
position: relative;
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
margin: 20rpx 20rpx 20rpx 30rpx;
|
|
||||||
align-items: center;
|
|
||||||
padding-bottom: 30rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.price_steup_box_bottom {
|
|
||||||
position: relative;
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
margin: 0rpx 20rpx 0rpx 30rpx;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.price_steup_box_top_title,
|
|
||||||
.price_steup_box_bottom_title {
|
|
||||||
flex: 1;
|
|
||||||
font-size: 32rpx;
|
|
||||||
color: #333;
|
|
||||||
}
|
|
||||||
|
|
||||||
.price {
|
|
||||||
text-align: right !important;
|
|
||||||
font-size: 28rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.price_steup_box_bottom_num {
|
|
||||||
flex: 1.5;
|
|
||||||
display: flex;
|
|
||||||
justify-content: flex-end;
|
|
||||||
text-align: right;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.ipt {
|
|
||||||
font-size: 28rpx;
|
|
||||||
color: #E34D59;
|
|
||||||
}
|
|
||||||
|
|
||||||
.unit {
|
|
||||||
font-size: 28rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.price_steup_box_top::after {
|
|
||||||
position: absolute;
|
|
||||||
box-sizing: border-box;
|
|
||||||
content: ' ';
|
|
||||||
pointer-events: none;
|
|
||||||
right: 0;
|
|
||||||
left: 0;
|
|
||||||
bottom: 0;
|
|
||||||
border-bottom: 1px solid var(--td-cell-border-color, var(--td-gray-color-3, #e7e7e7));
|
|
||||||
transform: scaleY(0.5);
|
|
||||||
}
|
|
||||||
|
|
||||||
.price_steup_box_top_stepper {
|
|
||||||
display: flex;
|
|
||||||
text-align: right;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bottom {
|
|
||||||
width: 90vw;
|
|
||||||
margin: -20rpx auto;
|
|
||||||
color: #999;
|
|
||||||
letter-spacing: 2rpx;
|
|
||||||
font-size: 28rpx;
|
|
||||||
line-height: 40rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.go {
|
|
||||||
position: fixed;
|
|
||||||
left: 50%;
|
|
||||||
transform: translateX(-50%);
|
|
||||||
bottom: 100rpx;
|
|
||||||
width: 90vw;
|
|
||||||
}
|
|
||||||
|
|
||||||
.weui-input {
|
|
||||||
color: red;
|
|
||||||
display: inline-block;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
|
|
||||||
.price {
|
|
||||||
text-align: center;
|
|
||||||
flex: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.green {
|
|
||||||
color: #3CC7C0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tips {
|
|
||||||
margin: 15rpx 30rpx;
|
|
||||||
margin-right: 0;
|
|
||||||
font-weight: 400;
|
|
||||||
font-size: 24rpx;
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
color: #E34D59;
|
|
||||||
}
|
|
||||||
|
|
||||||
.continueadd {
|
|
||||||
|
|
||||||
font-size: 30rpx;
|
|
||||||
color: #3CC7C0;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
width: 90vw;
|
|
||||||
height: 80rpx;
|
|
||||||
margin: 80rpx auto 0;
|
|
||||||
background: rgba(44, 241, 248, 0.28);
|
|
||||||
border-radius: 8rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn {
|
|
||||||
bottom: 60rpx;
|
|
||||||
position: fixed;
|
|
||||||
font-size: 32rpx;
|
|
||||||
color: #fff;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
width: 90vw;
|
|
||||||
left: 50%;
|
|
||||||
transform: translate(-50%);
|
|
||||||
height: 80rpx;
|
|
||||||
margin: 160rpx auto 0;
|
|
||||||
background: #3CC7C0;
|
|
||||||
border-radius: 8rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.van-picker__cancel {
|
|
||||||
font-size: 32rpx !important;
|
|
||||||
color: rgba(0, 0, 0, 0.6) !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.van-picker__confirm {
|
|
||||||
font-size: 32rpx !important;
|
|
||||||
color: #3CC7C0 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.van-picker__title {
|
|
||||||
font-size: 32rpx !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.van-picker__toolbar {
|
|
||||||
border-bottom: .5px solid #E7E7E7;
|
|
||||||
}
|
|
||||||
|
|
||||||
.amount.nodata {
|
|
||||||
font-size: 28rpx;
|
|
||||||
color: rgba(0, 0, 0, 0.45);
|
|
||||||
}
|
|
||||||
|
|
||||||
.vontent {
|
|
||||||
flex: 1;
|
|
||||||
margin-bottom: 150rpx;
|
|
||||||
overflow-y: scroll;
|
|
||||||
}
|
|
||||||
|
|
||||||
.del_img {
|
|
||||||
width: 160rpx;
|
|
||||||
height: 64rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.advice_price {
|
|
||||||
margin-top: 10rpx;
|
|
||||||
}
|
|
||||||
@ -23,13 +23,11 @@ Page({
|
|||||||
sub_visible: false,
|
sub_visible: false,
|
||||||
skeleton_loading: true,
|
skeleton_loading: true,
|
||||||
order_inquiry_ids: [],
|
order_inquiry_ids: [],
|
||||||
order_nos:[],
|
|
||||||
sub_btn_disabled: false
|
sub_btn_disabled: false
|
||||||
},
|
},
|
||||||
onLoad(option){
|
onLoad(option){
|
||||||
let order_inquiry_ids = option.order_inquiry_ids;
|
let order_inquiry_ids = option.order_inquiry_ids;
|
||||||
let params = {};
|
let params = {};
|
||||||
console.log(order_inquiry_ids)
|
|
||||||
if(order_inquiry_ids){
|
if(order_inquiry_ids){
|
||||||
params.order_inquiry_ids = order_inquiry_ids;
|
params.order_inquiry_ids = order_inquiry_ids;
|
||||||
this.setData({
|
this.setData({
|
||||||
@ -95,7 +93,7 @@ Page({
|
|||||||
bank_card_code_mask: response.data.bank.bank_card_code_mask,
|
bank_card_code_mask: response.data.bank.bank_card_code_mask,
|
||||||
withdrawal_amount: response.data.withdrawal_amount,
|
withdrawal_amount: response.data.withdrawal_amount,
|
||||||
amount_total:response.data.amount_total,
|
amount_total:response.data.amount_total,
|
||||||
order_nos:response.data.order_nos,
|
order_inquiry_ids: response.data.order_inquiry_ids,
|
||||||
bank_card_name: response.data.bank.bank_card_name_mask,
|
bank_card_name: response.data.bank.bank_card_name_mask,
|
||||||
income_tax: response.data.income_tax,
|
income_tax: response.data.income_tax,
|
||||||
skeleton_loading: false
|
skeleton_loading: false
|
||||||
@ -111,7 +109,7 @@ Page({
|
|||||||
sub_btn_disabled: true
|
sub_btn_disabled: true
|
||||||
})
|
})
|
||||||
let params = {};
|
let params = {};
|
||||||
params.order_no = this.data.order_nos.join(",");
|
params.order_inquiry_id = this.data.order_inquiry_ids.join(",");
|
||||||
params.withdrawal_amount_total = this.data.withdrawal_amount;
|
params.withdrawal_amount_total = this.data.withdrawal_amount;
|
||||||
params.bank_card_id = this.data.bank_card_id;
|
params.bank_card_id = this.data.bank_card_id;
|
||||||
//获取提现数据
|
//获取提现数据
|
||||||
|
|||||||
@ -48,48 +48,10 @@ Page({
|
|||||||
api.getDoctorInquiryConfig(params).then(response => {
|
api.getDoctorInquiryConfig(params).then(response => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
this.setData({
|
this.setData({
|
||||||
'info.inquiry_price': response.data.inquiry_price,
|
info: response.data.info,
|
||||||
'info.work_num_day': response.data.work_num_day
|
config: response.data.config,
|
||||||
})
|
})
|
||||||
}).then(re => {
|
}).then(re => {
|
||||||
// let is_open = this.data.info.is_open;
|
|
||||||
// let note = this.data.note;
|
|
||||||
// if(is_open == 1) note = this.data.open_note;
|
|
||||||
// if(is_open == 0) note = this.data.close_note;
|
|
||||||
// this.setData({
|
|
||||||
// note: note
|
|
||||||
// })
|
|
||||||
|
|
||||||
}).catch(errors => {console.error(errors);})
|
|
||||||
this.getSysconfig()
|
|
||||||
this.getDoctorOpen();
|
|
||||||
},
|
|
||||||
getSysconfig(){
|
|
||||||
let {inquiry_type,inquiry_mode}=this.data;
|
|
||||||
api.getSysconfig({
|
|
||||||
inquiry_type,
|
|
||||||
inquiry_mode
|
|
||||||
}).then(response => {
|
|
||||||
console.log(response);
|
|
||||||
this.setData({
|
|
||||||
'config': response.data
|
|
||||||
// config: response.data.config,
|
|
||||||
// note: response.data.info.is_open == 1? this.data.open_note : this.data.close_note
|
|
||||||
})
|
|
||||||
|
|
||||||
}).catch(errors => {console.error(errors);})
|
|
||||||
|
|
||||||
},
|
|
||||||
getDoctorOpen(){
|
|
||||||
let {inquiry_type,inquiry_mode}=this.data;
|
|
||||||
api.getOpen({
|
|
||||||
inquiry_type,
|
|
||||||
inquiry_mode
|
|
||||||
}).then(response => {
|
|
||||||
this.setData({
|
|
||||||
note: response.data,
|
|
||||||
'info.is_open': response.data
|
|
||||||
})
|
|
||||||
let is_open = this.data.info.is_open;
|
let is_open = this.data.info.is_open;
|
||||||
let note = this.data.note;
|
let note = this.data.note;
|
||||||
if(is_open == 1) note = this.data.open_note;
|
if(is_open == 1) note = this.data.open_note;
|
||||||
@ -97,6 +59,7 @@ getDoctorOpen(){
|
|||||||
this.setData({
|
this.setData({
|
||||||
note: note
|
note: note
|
||||||
})
|
})
|
||||||
|
|
||||||
}).catch(errors => {console.error(errors);})
|
}).catch(errors => {console.error(errors);})
|
||||||
},
|
},
|
||||||
changeON(){
|
changeON(){
|
||||||
|
|||||||
@ -26,7 +26,7 @@
|
|||||||
<view class="price_steup_box_bottom">
|
<view class="price_steup_box_bottom">
|
||||||
<view class="price_steup_box_bottom_title">问诊单价</view>
|
<view class="price_steup_box_bottom_title">问诊单价</view>
|
||||||
<view class="price_steup_box_bottom_num">
|
<view class="price_steup_box_bottom_num">
|
||||||
<input class="weui-input" disabled bindblur="onPriceChange" type="digit" value="{{ config.inquiry_price }}" placeholder="请输入问诊单价" />
|
<input class="weui-input" disabled bindblur="onPriceChange" type="digit" value="{{ info.inquiry_price }}" placeholder="请输入问诊单价" />
|
||||||
<text class="price" decode="true"> 元</text>
|
<text class="price" decode="true"> 元</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@ -26,7 +26,7 @@
|
|||||||
<view class="money">¥{{doctor_today_inquiry_total}}</view>
|
<view class="money">¥{{doctor_today_inquiry_total}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="finish">
|
<view class="finish">
|
||||||
<view class="titlename">待入账</view>
|
<view class="titlename">已完成待入账</view>
|
||||||
<view class="money">¥{{doctor_day_completed_amount_total}}</view>
|
<view class="money">¥{{doctor_day_completed_amount_total}}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -69,8 +69,7 @@
|
|||||||
<view slot="content" class="slotcontent">
|
<view slot="content" class="slotcontent">
|
||||||
<view class="msg">1、账户余额表示未提现的所有已经结束的订单金额总和</view>
|
<view class="msg">1、账户余额表示未提现的所有已经结束的订单金额总和</view>
|
||||||
<view class="msg">2、今日接诊收入表示今日已经接诊的订单金额总和 </view>
|
<view class="msg">2、今日接诊收入表示今日已经接诊的订单金额总和 </view>
|
||||||
<view class="msg">3、待入账表示单次问诊已完成未结束的订单金额总和+健康包/随访包服务开始后的订单金额总和
|
<view class="msg">3、已完成待入账表示近期已完成未结束的订单金额总和 </view>
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
<view slot="confirm-btn" class="dialog dialog_confirm_btn" bindtap="confirmDialog">
|
<view slot="confirm-btn" class="dialog dialog_confirm_btn" bindtap="confirmDialog">
|
||||||
确定
|
确定
|
||||||
|
|||||||
@ -51,13 +51,7 @@ Page({
|
|||||||
if (res.confirm) {
|
if (res.confirm) {
|
||||||
console.log('用户点击确定')
|
console.log('用户点击确定')
|
||||||
let usertype = wx.getStorageSync('usertype');
|
let usertype = wx.getStorageSync('usertype');
|
||||||
const { envVersion } = wx.getAccountInfoSync().miniProgram;
|
wx.setStorageSync('AUTH_TOKEN_'+usertype, "");
|
||||||
if(envVersion=='release'){
|
|
||||||
wx.setStorageSync('AUTH_TOKEN_'+usertype, '');
|
|
||||||
}else{
|
|
||||||
wx.setStorageSync('DEV_AUTH_TOKEN_'+usertype, '');
|
|
||||||
}
|
|
||||||
// wx.setStorageSync('AUTH_TOKEN_'+usertype, "");
|
|
||||||
wx.setStorageSync('user_id_'+usertype, "");
|
wx.setStorageSync('user_id_'+usertype, "");
|
||||||
|
|
||||||
wx.setStorageSync('client_user_id_'+usertype, "");
|
wx.setStorageSync('client_user_id_'+usertype, "");
|
||||||
|
|||||||
@ -462,7 +462,6 @@ Page({
|
|||||||
save_durg_prescription_product_num = Number.parseInt(save_durg_prescription_product_num)
|
save_durg_prescription_product_num = Number.parseInt(save_durg_prescription_product_num)
|
||||||
console.log(save_durg_prescription_product_num)
|
console.log(save_durg_prescription_product_num)
|
||||||
if(isNaN(save_durg_prescription_product_num)){
|
if(isNaN(save_durg_prescription_product_num)){
|
||||||
wx.hideKeyboard();
|
|
||||||
Dialog.alert({
|
Dialog.alert({
|
||||||
message: '请输入正确数字',
|
message: '请输入正确数字',
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
@ -474,7 +473,6 @@ Page({
|
|||||||
}
|
}
|
||||||
let prescription_num=this.data.prescription_num?this.data.prescription_num:5
|
let prescription_num=this.data.prescription_num?this.data.prescription_num:5
|
||||||
if(save_durg_prescription_product_num > prescription_num){
|
if(save_durg_prescription_product_num > prescription_num){
|
||||||
wx.hideKeyboard();
|
|
||||||
Dialog.alert({
|
Dialog.alert({
|
||||||
message: '药品数量不允许添加超过'+prescription_num+'个',
|
message: '药品数量不允许添加超过'+prescription_num+'个',
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
|
|||||||
@ -14,13 +14,9 @@ Page({
|
|||||||
// open_note: "已开启,患者可以向您发起图文问诊",
|
// open_note: "已开启,患者可以向您发起图文问诊",
|
||||||
// close_note: "已关闭,暂不接诊",
|
// close_note: "已关闭,暂不接诊",
|
||||||
note: "",
|
note: "",
|
||||||
tuwenPrice:'',
|
|
||||||
inquiry_type: 1,
|
inquiry_type: 1,
|
||||||
inquiry_mode: 1,
|
inquiry_mode: 1,
|
||||||
monthly_frequency:'',
|
|
||||||
multi_point_status:'',
|
|
||||||
config_setting:{},
|
config_setting:{},
|
||||||
items:[],
|
|
||||||
info:{
|
info:{
|
||||||
is_open: false,
|
is_open: false,
|
||||||
inquiry_price: 0,
|
inquiry_price: 0,
|
||||||
@ -28,7 +24,6 @@ Page({
|
|||||||
},
|
},
|
||||||
active:0,
|
active:0,
|
||||||
myprice: "",
|
myprice: "",
|
||||||
healthPrice:'图文价格*0.5*6',
|
|
||||||
config:{
|
config:{
|
||||||
"max_work_num_day": 30,
|
"max_work_num_day": 30,
|
||||||
"min_inquiry_price": 0,
|
"min_inquiry_price": 0,
|
||||||
@ -44,71 +39,18 @@ Page({
|
|||||||
},
|
},
|
||||||
sub_visible: false,
|
sub_visible: false,
|
||||||
showSetting:false,
|
showSetting:false,
|
||||||
difficultSetting:false,
|
difficultSetting:false
|
||||||
showOpenchuFang:false,
|
|
||||||
showOpenTuWen:false,
|
|
||||||
},
|
},
|
||||||
onLoad(options){
|
onLoad(){
|
||||||
console.log(options.multi_point_status);
|
|
||||||
this.setData({
|
|
||||||
multi_point_status:options.multi_point_status,
|
|
||||||
iden_auth_status:options.iden_auth_status,
|
|
||||||
idcard_status:options.idcard_status,
|
|
||||||
is_bind_bank:options.is_bind_bank
|
|
||||||
|
|
||||||
})
|
|
||||||
},
|
|
||||||
cancelOpenChuFang(){
|
|
||||||
this.setData({
|
|
||||||
showOpenchuFang:false
|
|
||||||
})
|
|
||||||
},
|
|
||||||
confirmOpenChuFang(){
|
|
||||||
this.setData({
|
|
||||||
showOpenchuFang:false
|
|
||||||
})
|
|
||||||
app.go('/user/pages/yishi/zhiye_identity/index')
|
|
||||||
},
|
|
||||||
cancelOpenTuWen(){
|
|
||||||
this.setData({
|
|
||||||
showOpenTuWen:false
|
|
||||||
})
|
|
||||||
},
|
|
||||||
confirmOpenTuWen(){
|
|
||||||
this.setData({
|
|
||||||
showOpenTuWen:false,
|
|
||||||
active:0
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
onShow(){
|
onShow(){
|
||||||
let {active,idcard_status,iden_auth_status,is_bind_bank}=this.data;
|
let {active}=this.data;
|
||||||
this.getDoctorconfig();
|
this.getDoctorconfig();
|
||||||
this.getDoctorOpen();
|
if(active==2){
|
||||||
this.getSysconfig();
|
|
||||||
if(active==4){
|
|
||||||
this.getConfig()
|
this.getConfig()
|
||||||
}
|
}
|
||||||
if(active==1){
|
|
||||||
this.getFollow();
|
|
||||||
if(idcard_status==1 && iden_auth_status==1 && is_bind_bank==1){
|
|
||||||
this.getFollowDetail();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
getDoctorOpen(){
|
|
||||||
let {inquiry_type,inquiry_mode}=this.data;
|
|
||||||
api.getOpen({
|
|
||||||
inquiry_type,
|
|
||||||
inquiry_mode
|
|
||||||
}).then(response => {
|
|
||||||
this.setData({
|
|
||||||
note: response.data,
|
|
||||||
'info.is_open': response.data
|
|
||||||
})
|
|
||||||
}).catch(errors => {console.error(errors);})
|
|
||||||
},
|
|
||||||
|
|
||||||
getDoctorconfig(){
|
getDoctorconfig(){
|
||||||
let {inquiry_type,inquiry_mode}=this.data;
|
let {inquiry_type,inquiry_mode}=this.data;
|
||||||
//接诊类型(1:专家问诊 2:快速问诊 3:公益问诊 4:问诊购药)
|
//接诊类型(1:专家问诊 2:快速问诊 3:公益问诊 4:问诊购药)
|
||||||
@ -120,16 +62,10 @@ Page({
|
|||||||
}).then(response => {
|
}).then(response => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
this.setData({
|
this.setData({
|
||||||
'info.inquiry_price': response.data.inquiry_price,
|
info: response.data.info,
|
||||||
'info.work_num_day': response.data.work_num_day,
|
config: response.data.config,
|
||||||
// config: response.data.config,
|
note: response.data.info.is_open
|
||||||
// note: response.data.info.is_open
|
|
||||||
})
|
})
|
||||||
if(inquiry_mode==1){
|
|
||||||
this.setData({
|
|
||||||
tuwenPrice:response.data.inquiry_price
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}).catch(errors => {console.error(errors);})
|
}).catch(errors => {console.error(errors);})
|
||||||
},
|
},
|
||||||
changeON(){
|
changeON(){
|
||||||
@ -146,10 +82,12 @@ Page({
|
|||||||
onChange({ detail }) {
|
onChange({ detail }) {
|
||||||
this.doChange(detail)
|
this.doChange(detail)
|
||||||
},
|
},
|
||||||
|
|
||||||
getConfig(){
|
getConfig(){
|
||||||
// let {inquiry_type,inquiry_mode}=this.data;
|
let {inquiry_type,inquiry_mode}=this.data;
|
||||||
api.getServiceConfig().then(response => {
|
api.getServiceConfig({
|
||||||
|
inquiry_type,
|
||||||
|
inquiry_mode
|
||||||
|
}).then(response => {
|
||||||
let result=response.data;
|
let result=response.data;
|
||||||
if(result){
|
if(result){
|
||||||
this.setData({
|
this.setData({
|
||||||
@ -157,7 +95,7 @@ Page({
|
|||||||
'config_setting.service_process':result.service_process,
|
'config_setting.service_process':result.service_process,
|
||||||
'config_setting.service_period':result.service_period,
|
'config_setting.service_period':result.service_period,
|
||||||
'config_setting.service_rounds':result.service_rounds,
|
'config_setting.service_rounds':result.service_rounds,
|
||||||
'config_setting.config_service_id':result.difficult_consultation_id,
|
'config_setting.config_service_id':result.config_service_id,
|
||||||
difficultSetting:true
|
difficultSetting:true
|
||||||
})
|
})
|
||||||
}else{
|
}else{
|
||||||
@ -167,11 +105,7 @@ Page({
|
|||||||
}
|
}
|
||||||
}).catch(errors => {console.error(errors);})
|
}).catch(errors => {console.error(errors);})
|
||||||
},
|
},
|
||||||
addServiceContent(){
|
doChange(detail){
|
||||||
let {idcard_status,iden_auth_status,is_bind_bank,tuwenPrice}=this.data;
|
|
||||||
app.go('/user/pages/yishi/addServiceContent/index?idcard_status='+idcard_status+'&iden_auth_status='+iden_auth_status+'&is_bind_bank='+is_bind_bank+"&tuwenPrice="+tuwenPrice)
|
|
||||||
},
|
|
||||||
async doChange(detail){
|
|
||||||
console.log("onChange: ", detail);
|
console.log("onChange: ", detail);
|
||||||
let is_open = 0;
|
let is_open = 0;
|
||||||
if(detail){
|
if(detail){
|
||||||
@ -180,40 +114,15 @@ Page({
|
|||||||
if(this.data.active==0){
|
if(this.data.active==0){
|
||||||
let check = this.checkPrice(inquiry_price);
|
let check = this.checkPrice(inquiry_price);
|
||||||
if(!check) return;
|
if(!check) return;
|
||||||
};
|
}
|
||||||
if(this.data.active==1 && detail){
|
if(this.data.active==1 && detail){
|
||||||
if(this.data.items.length==0){
|
|
||||||
wx.showToast({
|
|
||||||
title: '请先添加服务内容',
|
|
||||||
icon:'none'
|
|
||||||
})
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if(this.data.active==2 && detail){
|
|
||||||
let {data}=await api.getDoctorInquiryConfig({inquiry_type:1,inquiry_mode:1});
|
|
||||||
if(data.inquiry_price==''){
|
|
||||||
this.setData({
|
|
||||||
showOpenTuWen:true
|
|
||||||
})
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
if(this.data.multi_point_status!=1){
|
|
||||||
this.setData({
|
|
||||||
showOpenchuFang:true
|
|
||||||
})
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
if(this.data.active==3 && detail){
|
|
||||||
wx.showToast({
|
wx.showToast({
|
||||||
title: '即将开通',
|
title: '即将开通',
|
||||||
icon:'none',
|
icon:'none',
|
||||||
})
|
})
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if(this.data.active==3 || this.data.active==4){
|
if(this.data.active==1 || this.data.active==2){
|
||||||
if(!this.data.info.work_num_day || !this.data.info.inquiry_price){
|
if(!this.data.info.work_num_day || !this.data.info.inquiry_price){
|
||||||
this.setData({
|
this.setData({
|
||||||
showSetting:true
|
showSetting:true
|
||||||
@ -221,7 +130,7 @@ Page({
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(this.data.active==4){
|
if(this.data.active==2){
|
||||||
if(!this.data.difficultSetting){
|
if(!this.data.difficultSetting){
|
||||||
wx.showToast({
|
wx.showToast({
|
||||||
title: '请先设置服务设置',
|
title: '请先设置服务设置',
|
||||||
@ -297,17 +206,15 @@ Page({
|
|||||||
})
|
})
|
||||||
if(active==0){
|
if(active==0){
|
||||||
app.go("/user/pages/yishi/onlinesetupprice/index?inquiry_mode=1")
|
app.go("/user/pages/yishi/onlinesetupprice/index?inquiry_mode=1")
|
||||||
}else if(active==3){
|
}else if(active==1){
|
||||||
app.go("/user/pages/yishi/onlinesetupprice/index?inquiry_mode=2")
|
app.go("/user/pages/yishi/onlinesetupprice/index?inquiry_mode=2")
|
||||||
}else if(active==4){
|
}else if(active==2){
|
||||||
app.go("/user/pages/yishi/onlinesetupprice/index?inquiry_mode=6")
|
app.go("/user/pages/yishi/onlinesetupprice/index?inquiry_mode=6")
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
onChangeInquiry(event) {
|
onChangeInquiry(event) {
|
||||||
let index=event.detail.name;
|
let index=event.detail.name;
|
||||||
let {idcard_status,iden_auth_status,is_bind_bank}=this.data;
|
|
||||||
this.setData({
|
this.setData({
|
||||||
active:index
|
active:index
|
||||||
})
|
})
|
||||||
@ -317,27 +224,11 @@ Page({
|
|||||||
inquiry_mode:1,
|
inquiry_mode:1,
|
||||||
})
|
})
|
||||||
}else if(index==1){
|
}else if(index==1){
|
||||||
this.setData({
|
|
||||||
inquiry_type:1,
|
|
||||||
inquiry_mode:9,
|
|
||||||
})
|
|
||||||
this.getFollow();
|
|
||||||
if(idcard_status==1 && iden_auth_status==1 && is_bind_bank==1){
|
|
||||||
this.getFollowDetail();
|
|
||||||
}
|
|
||||||
|
|
||||||
}else if(index==2){
|
|
||||||
this.setData({
|
|
||||||
inquiry_type:1,
|
|
||||||
inquiry_mode:8,
|
|
||||||
})
|
|
||||||
this.getHealthy()
|
|
||||||
}else if(index==3){
|
|
||||||
this.setData({
|
this.setData({
|
||||||
inquiry_type:1,
|
inquiry_type:1,
|
||||||
inquiry_mode:2,
|
inquiry_mode:2,
|
||||||
})
|
})
|
||||||
}else if(index==4){
|
}else{
|
||||||
this.setData({
|
this.setData({
|
||||||
inquiry_type:1,
|
inquiry_type:1,
|
||||||
inquiry_mode:6,
|
inquiry_mode:6,
|
||||||
@ -345,38 +236,6 @@ Page({
|
|||||||
this.getConfig();
|
this.getConfig();
|
||||||
}
|
}
|
||||||
this.getDoctorconfig();
|
this.getDoctorconfig();
|
||||||
this.getDoctorOpen();
|
|
||||||
this.getSysconfig();
|
|
||||||
},
|
|
||||||
getFollowDetail(){
|
|
||||||
let type=wx.getStorageSync('usertype');
|
|
||||||
let id=wx.getStorageSync('client_user_id_'+type);
|
|
||||||
api.getFollowDetail(id).then(response=>{
|
|
||||||
if(response.code==200){
|
|
||||||
if(response.data){
|
|
||||||
let res=response.data.map((item)=>{
|
|
||||||
return {service_period:item.service_period,service_price:item.service_price}
|
|
||||||
})
|
|
||||||
res.sort((a, b) =>a.service_period-b.service_period);
|
|
||||||
this.setData({
|
|
||||||
items:res
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
getFollow(){
|
|
||||||
api.getFollow().then(response=>{
|
|
||||||
if(response.code==200){
|
|
||||||
if(response.data){
|
|
||||||
let {monthly_frequency,service_rounds}=response.data
|
|
||||||
this.setData({
|
|
||||||
monthly_frequency,
|
|
||||||
service_rounds
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
putDoctorInquiryConfig(){
|
putDoctorInquiryConfig(){
|
||||||
//修改医生问诊配置
|
//修改医生问诊配置
|
||||||
@ -397,27 +256,6 @@ Page({
|
|||||||
url: "/Pages/yishi/wenzhen_v2/wenzhen"
|
url: "/Pages/yishi/wenzhen_v2/wenzhen"
|
||||||
})
|
})
|
||||||
|
|
||||||
},
|
|
||||||
getHealthy(){
|
|
||||||
api.getHealthy().then(response => {
|
|
||||||
this.setData({
|
|
||||||
healthPrice:(response.data.inquiry_price*response.data.service_rate/100*response.data.service_count).toFixed(2)
|
|
||||||
})
|
|
||||||
}).catch(errors => {console.error(errors);})
|
|
||||||
},
|
|
||||||
getSysconfig(){
|
|
||||||
let {inquiry_type,inquiry_mode}=this.data;
|
|
||||||
api.getSysconfig({
|
|
||||||
inquiry_type,
|
|
||||||
inquiry_mode
|
|
||||||
}).then(response => {
|
|
||||||
this.setData({
|
|
||||||
'config': response.data
|
|
||||||
// config: response.data.config,
|
|
||||||
// note: response.data.info.is_open == 1? this.data.open_note : this.data.close_note
|
|
||||||
})
|
|
||||||
}).catch(errors => {console.error(errors);})
|
|
||||||
|
|
||||||
},
|
},
|
||||||
myToast(message){
|
myToast(message){
|
||||||
Toast({
|
Toast({
|
||||||
|
|||||||
@ -9,7 +9,6 @@
|
|||||||
"van-button": "@vant/weapp/button/index",
|
"van-button": "@vant/weapp/button/index",
|
||||||
"t-toast": "tdesign-miniprogram/toast/toast",
|
"t-toast": "tdesign-miniprogram/toast/toast",
|
||||||
"van-tab": "@vant/weapp/tab/index",
|
"van-tab": "@vant/weapp/tab/index",
|
||||||
"van-icon": "@vant/weapp/icon/index",
|
|
||||||
"van-tabs": "@vant/weapp/tabs/index",
|
"van-tabs": "@vant/weapp/tabs/index",
|
||||||
"t-dialog": "tdesign-miniprogram/dialog/dialog"
|
"t-dialog": "tdesign-miniprogram/dialog/dialog"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
<view class="container">
|
<view class="container">
|
||||||
<van-tabs active="{{ active }}" bind:change="onChangeInquiry" color="#3CC7C0">
|
<van-tabs active="{{ active }}" bind:change="onChangeInquiry" color="#3CC7C0">
|
||||||
<van-tab title="图文问诊">
|
<van-tab title="图文问诊">
|
||||||
|
|
||||||
<view class="tabcon">
|
<view class="tabcon">
|
||||||
<view class="switch_box">
|
<view class="switch_box">
|
||||||
<view class="switch_box_top">
|
<view class="switch_box_top">
|
||||||
@ -19,100 +20,6 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="checked_box">
|
<view class="checked_box">
|
||||||
<view class="price_title">价格设置</view>
|
|
||||||
<view class="price_steup_box">
|
|
||||||
<van-cell size="large" url="/user/pages/yishi/onlinesetupprice/index?inquiry_mode=1" custom-style="font-size:32rpx;" title="每日接诊数量" is-link border="{{true}}">
|
|
||||||
<view class="cell_value" wx:if="{{info.work_num_day!==''}}">
|
|
||||||
{{info.work_num_day}}
|
|
||||||
</view>
|
|
||||||
<view wx:else style="white-space: nowrap;">请选择每日接诊数量</view>
|
|
||||||
</van-cell>
|
|
||||||
<van-cell size="large" url="/user/pages/yishi/onlinesetupprice/index?inquiry_mode=1" custom-style="font-size:32rpx;flex:0.8" title="问诊单价" is-link border="{{false}}">
|
|
||||||
<view class="cell_value" wx:if="{{info.inquiry_price}}">
|
|
||||||
<text style="color: red;">{{info.inquiry_price}}</text>
|
|
||||||
<text style="color: #000;"> 元</text>
|
|
||||||
</view>
|
|
||||||
<view wx:else >请选择单价</view>
|
|
||||||
</van-cell>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="bottom" style="padding-bottom: 30rpx;">
|
|
||||||
<text class="bottom_txt">
|
|
||||||
提示:服务开启后,患者按照所设置的价格向您购买图文问诊服务
|
|
||||||
1、接诊后,患者可与您在<text class="green">{{config.duration/60}}小时内进行{{config.times_number}}回合沟通\n</text>2、若开启公益问诊,图文问诊价格以公益问诊价格为准\n3、每日接诊数量和问诊价格<text class="green">每日仅限调整1次,每月仅限调整5次\n</text>4、价格修改后立即生效,不影响修改之前已生成的问诊订单\n
|
|
||||||
</text>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="go">
|
|
||||||
<van-button disabled="{{info.is_open!=1}}" bind:click="putDoctorInquiryConfig" color="#3CC7C0" custom-style="border-radius: 20rpx;font-size:30rpx;" type="primary" block>去接诊</van-button>
|
|
||||||
</view>
|
|
||||||
</van-tab>
|
|
||||||
|
|
||||||
<van-tab title="随访包">
|
|
||||||
|
|
||||||
<view class="tabcon">
|
|
||||||
<view class="switch_box">
|
|
||||||
<view class="switch_box_top">
|
|
||||||
<view class="switch_box_item" bindtap="changeON">
|
|
||||||
<view class="switch_box_item_name">接诊开关</view>
|
|
||||||
<view class="switch_box_item_btn">
|
|
||||||
<van-switch active-color="#3CC7C0" inactive-color="#E7E7E7" size="40rpx" checked="{{ info.is_open==1 }}" />
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="switch_box_note">{{ (info.is_open==1 && active==1)?'已开启,患者可以向您发起随访包服务':'已关闭,暂不接诊' }}</view>
|
|
||||||
</view>
|
|
||||||
<view class="help">
|
|
||||||
<van-cell size="large" url="/user/pages/yishi/manual_detail/index?manual_id=14" custom-style="font-size:32rpx;" title="服务内容介绍和结算" is-link border="{{false}}" />
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="checked_box" style="margin-top: 30rpx;">
|
|
||||||
<view class="price_steup_box">
|
|
||||||
<view class="price_steup_box_top">
|
|
||||||
<view class="price_steup_box_top_title">服务次数/月</view>
|
|
||||||
<view class="price_steup_box_top_stepper" bind:tap="addServiceContent">
|
|
||||||
<text class="amount nodata" wx:if="{{monthly_frequency===''}}">请选择服务次数</text>
|
|
||||||
<text class="amount" wx:else>{{monthly_frequency==="0"?'不限次数':'10次'}}</text>
|
|
||||||
|
|
||||||
<van-icon name="arrow" color="#999" style="margin-top: 2rpx;"/>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="price_steup_box_bottom" style="padding-bottom: 25rpx;">
|
|
||||||
<view class="price_steup_box_bottom_title">服务回合数</view>
|
|
||||||
<view class="price_steup_box_bottom_num" style="flex: none;">
|
|
||||||
|
|
||||||
<text class="price" style="text-align: right;">不限制</text>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="vontent" wx:if="{{items.length>0}}">
|
|
||||||
<view class="checked_box">
|
|
||||||
<view class="title">服务内容</view>
|
|
||||||
<view class="price_steup_box" wx:for="{{items}}" wx:key="index">
|
|
||||||
<view class="price_steup_box_top" bind:tap="addServiceContent" data-id="{{index}}">
|
|
||||||
<view class="price_steup_box_top_title">服务周期</view>
|
|
||||||
<view class="price_steup_box_top_stepper">
|
|
||||||
<text class="amount " wx:if="{{item.service_period}}">{{item.service_period/30}}个月</text>
|
|
||||||
<text class="amount nodata" wx:else>请选择周期</text>
|
|
||||||
<van-icon name="arrow" color="#999" style="margin-top: 2rpx;"/>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="price_steup_box_bottom" style="padding-bottom: 25rpx;">
|
|
||||||
<view class="price_steup_box_bottom_title">服务价格</view>
|
|
||||||
<view class="price_steup_box_bottom_num">
|
|
||||||
<input type="number" class="ipt" value="{{item.service_price}}" placeholder="请设置价格" placeholder-style="font-size:28rpx;color: rgba(0,0,0,0.45);" disabled="{{true}}" data-id="{{index}}" /><text class="unit" wx:if="{{item.service_price}}">元</text>
|
|
||||||
</view>
|
|
||||||
|
|
||||||
</view>
|
|
||||||
<!-- <view class="tips">
|
|
||||||
<view >建议服务价格设置为:{{(item.service_period/30)==1?'单次图文*10次*5~8折':(item.service_period/30)==3?'单次图文*30次*4~7折':(item.service_period/30)==6?'单次图文*60次*3~6折':(item.service_period/30)==12?'单次图文*120次*2~5折':'单次图文*10次*5'}}</view>
|
|
||||||
|
|
||||||
</view> -->
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
|
|
||||||
</view>
|
|
||||||
<!-- <view class="checked_box">
|
|
||||||
<view class="price_title">价格设置</view>
|
<view class="price_title">价格设置</view>
|
||||||
<view class="price_steup_box">
|
<view class="price_steup_box">
|
||||||
<van-cell size="large" url="/user/pages/yishi/onlinesetupprice/index?inquiry_mode=1" custom-style="font-size:32rpx;" title="每日接诊数量" is-link border="{{true}}">
|
<van-cell size="large" url="/user/pages/yishi/onlinesetupprice/index?inquiry_mode=1" custom-style="font-size:32rpx;" title="每日接诊数量" is-link border="{{true}}">
|
||||||
@ -127,52 +34,13 @@
|
|||||||
</view>
|
</view>
|
||||||
</van-cell>
|
</van-cell>
|
||||||
</view>
|
</view>
|
||||||
</view> -->
|
</view>
|
||||||
<!-- <view class="bottom" style="padding-bottom: 30rpx;">
|
<view class="bottom" style="padding-bottom: 30rpx;">
|
||||||
<text class="bottom_txt">
|
<text class="bottom_txt">
|
||||||
提示:服务开启后,患者按照所设置的价格向您购买图文问诊服务
|
提示:服务开启后,患者按照所设置的价格向您购买图文问诊服务
|
||||||
1、接诊后,患者可与您在<text class="green">{{config.duration/60}}小时内进行{{config.times_number}}回合沟通\n</text>2、若开启公益问诊,图文问诊价格以公益问诊价格为准\n3、每日接诊数量和问诊价格<text class="green">每日仅限调整1次,每月仅限调整5次\n</text>4、价格修改后立即生效,不影响修改之前已生成的问诊订单\n
|
1、接诊后,患者可与您在<text class="green">{{config.duration/60}}小时内进行{{config.times_number}}回合沟通\n</text>2、若开启公益问诊,图文问诊价格以公益问诊价格为准\n3、每日接诊数量和问诊价格<text class="green">每日仅限调整1次,每月仅限调整5次\n</text>4、价格修改后立即生效,不影响修改之前已生成的问诊订单\n
|
||||||
</text>
|
</text>
|
||||||
</view> -->
|
|
||||||
</view>
|
</view>
|
||||||
<view class="go">
|
|
||||||
<van-button bind:click="addServiceContent" color="#3CC7C0" custom-style="border-radius: 20rpx;font-size:30rpx;" type="primary" block>添加服务内容</van-button>
|
|
||||||
</view>
|
|
||||||
</van-tab>
|
|
||||||
<van-tab title="健康包">
|
|
||||||
|
|
||||||
<view class="tabcon">
|
|
||||||
<view class="switch_box">
|
|
||||||
<view class="switch_box_top">
|
|
||||||
<view class="switch_box_item" bindtap="changeON">
|
|
||||||
<view class="switch_box_item_name">接诊开关</view>
|
|
||||||
<view class="switch_box_item_btn">
|
|
||||||
<van-switch active-color="#3CC7C0" inactive-color="#E7E7E7" size="40rpx" checked="{{ info.is_open==1 }}" />
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="switch_box_note">{{ (info.is_open==1 && active==2)?'已开启,患者可以向您发起健康包服务':'已关闭,暂不接诊' }}</view>
|
|
||||||
</view>
|
|
||||||
<view class="help">
|
|
||||||
<van-cell size="large" url="/user/pages/yishi/manual_detail/index?manual_id=13" custom-style="font-size:32rpx;" title="服务内容介绍和结算" is-link border="{{false}}" />
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
|
|
||||||
<view class="checked_box">
|
|
||||||
<view class="price_title">服务价格</view>
|
|
||||||
<view class="price_steup_box pricebox" style="overflow: hidden;padding-bottom: 10rpx;">
|
|
||||||
<van-cell size="large" custom-style="font-size:32rpx;" title="服务价格" >
|
|
||||||
<view class="cell_value cell_value_heal">
|
|
||||||
<input type="number" placeholder="请设置价格"
|
|
||||||
value="{{healthPrice}}"
|
|
||||||
disabled="{{true}}"
|
|
||||||
class="healthPrice"
|
|
||||||
placeholder-style="font-size:28rpx;color: rgba(0,0,0,0.45);" /><text class="unit" wx:if="{{healthPrice}}">元</text>
|
|
||||||
</view>
|
|
||||||
</van-cell>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="desc">提示:开通此服务需通过多点执业认证</view>
|
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<view class="go">
|
<view class="go">
|
||||||
<van-button disabled="{{info.is_open!=1}}" bind:click="putDoctorInquiryConfig" color="#3CC7C0" custom-style="border-radius: 20rpx;font-size:30rpx;" type="primary" block>去接诊</van-button>
|
<van-button disabled="{{info.is_open!=1}}" bind:click="putDoctorInquiryConfig" color="#3CC7C0" custom-style="border-radius: 20rpx;font-size:30rpx;" type="primary" block>去接诊</van-button>
|
||||||
@ -188,7 +56,7 @@
|
|||||||
<van-switch active-color="#3CC7C0" inactive-color="#E7E7E7" size="40rpx" checked="{{ info.is_open==1 }}" />
|
<van-switch active-color="#3CC7C0" inactive-color="#E7E7E7" size="40rpx" checked="{{ info.is_open==1 }}" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="switch_box_note">{{ (info.is_open==1 && active==3)?'已开启,患者可以向您发起视频问诊':'已关闭,暂不接诊'}}</view>
|
<view class="switch_box_note">{{ (info.is_open==1&& active==1)?'已开启,患者可以向您发起视频问诊':'已关闭,暂不接诊'}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="help">
|
<view class="help">
|
||||||
<van-cell size="large" url="/user/pages/yishi/manual_detail/index?manual_id=12" custom-style="font-size:32rpx;" title="视频问诊操作手册" is-link border="{{false}}" />
|
<van-cell size="large" url="/user/pages/yishi/manual_detail/index?manual_id=12" custom-style="font-size:32rpx;" title="视频问诊操作手册" is-link border="{{false}}" />
|
||||||
@ -199,17 +67,15 @@
|
|||||||
<view class="price_title">价格设置</view>
|
<view class="price_title">价格设置</view>
|
||||||
<view class="price_steup_box">
|
<view class="price_steup_box">
|
||||||
<van-cell size="large" url="/user/pages/yishi/onlinesetupprice/index?inquiry_mode=2" custom-style="font-size:32rpx;" title="每日接诊数量" is-link border="{{true}}">
|
<van-cell size="large" url="/user/pages/yishi/onlinesetupprice/index?inquiry_mode=2" custom-style="font-size:32rpx;" title="每日接诊数量" is-link border="{{true}}">
|
||||||
<view class="cell_value" wx:if="{{info.work_num_day}}">
|
<view class="cell_value">
|
||||||
{{info.work_num_day}}
|
{{info.work_num_day}}
|
||||||
</view>
|
</view>
|
||||||
<view wx:else style="white-space: nowrap;">请选择每日接诊数量</view>
|
|
||||||
</van-cell>
|
</van-cell>
|
||||||
<van-cell size="large" url="/user/pages/yishi/onlinesetupprice/index?inquiry_mode=2" custom-style="font-size:32rpx;" title="问诊单价" is-link border="{{false}}">
|
<van-cell size="large" url="/user/pages/yishi/onlinesetupprice/index?inquiry_mode=2" custom-style="font-size:32rpx;" title="问诊单价" is-link border="{{false}}">
|
||||||
<view class="cell_value" wx:if="{{info.inquiry_price}}">
|
<view class="cell_value">
|
||||||
<text style="color: red;">{{info.inquiry_price}}</text>
|
<text style="color: red;">{{info.inquiry_price}}</text>
|
||||||
<text style="color: #000;"> 元</text>
|
<text style="color: #000;"> 元</text>
|
||||||
</view>
|
</view>
|
||||||
<view wx:else style="white-space: nowrap;">请选择问诊单价</view>
|
|
||||||
</van-cell>
|
</van-cell>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -245,7 +111,7 @@
|
|||||||
<van-switch active-color="#3CC7C0" inactive-color="#E7E7E7" size="40rpx" checked="{{ info.is_open==1 }}" />
|
<van-switch active-color="#3CC7C0" inactive-color="#E7E7E7" size="40rpx" checked="{{ info.is_open==1 }}" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="switch_box_note">{{ (info.is_open==1 && active==4)?'已开启,患者可以向您发起疑难会诊':'已关闭,暂不接诊'}}</view>
|
<view class="switch_box_note">{{ (info.is_open==1 && active==2)?'已开启,患者可以向您发起疑难会诊':'已关闭,暂不接诊'}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="help">
|
<view class="help">
|
||||||
<van-cell size="large" url="/user/pages/yishi/manual_detail/index?manual_id=11" custom-style="font-size:32rpx;" title="疑难会诊操作手册" is-link border="{{false}}" />
|
<van-cell size="large" url="/user/pages/yishi/manual_detail/index?manual_id=11" custom-style="font-size:32rpx;" title="疑难会诊操作手册" is-link border="{{false}}" />
|
||||||
@ -351,26 +217,4 @@
|
|||||||
去设置
|
去设置
|
||||||
</view>
|
</view>
|
||||||
</t-dialog>
|
</t-dialog>
|
||||||
<t-dialog
|
|
||||||
visible="{{ showOpenchuFang }}"
|
|
||||||
title="温馨提示"
|
|
||||||
content="本服务需开处方,您还未做多点执业认证,是否前往?">
|
|
||||||
<view slot="cancel-btn" class="dialog dialog_cancel_btn" bindtap="cancelOpenChuFang">
|
|
||||||
取消
|
|
||||||
</view>
|
|
||||||
<view slot="confirm-btn" class="dialog dialog_confirm_btn" bindtap="confirmOpenChuFang">
|
|
||||||
前往
|
|
||||||
</view>
|
|
||||||
</t-dialog>
|
|
||||||
<t-dialog
|
|
||||||
visible="{{ showOpenTuWen }}"
|
|
||||||
title="温馨提示"
|
|
||||||
content="本服务需设置图文问诊的价格, 才可开通。">
|
|
||||||
<view slot="cancel-btn" class="dialog dialog_cancel_btn" bindtap="cancelOpenTuWen">
|
|
||||||
取消
|
|
||||||
</view>
|
|
||||||
<view slot="confirm-btn" class="dialog dialog_confirm_btn" bindtap="confirmOpenTuWen">
|
|
||||||
前往
|
|
||||||
</view>
|
|
||||||
</t-dialog>
|
|
||||||
</view>
|
</view>
|
||||||
@ -65,12 +65,11 @@ page{
|
|||||||
padding-top: 10rpx;
|
padding-top: 10rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 90vw;
|
width: 90vw;
|
||||||
margin: 0 auto 20rpx;
|
margin: 0 auto;
|
||||||
border-radius: 20rpx;
|
border-radius: 20rpx;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
background-color: rgb(255, 255, 255);
|
background-color: rgb(255, 255, 255);
|
||||||
}
|
}
|
||||||
|
|
||||||
.price_steup_box_top{
|
.price_steup_box_top{
|
||||||
position: relative;
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -140,8 +139,6 @@ page{
|
|||||||
color: #000;
|
color: #000;
|
||||||
}
|
}
|
||||||
.cell_value_seting{
|
.cell_value_seting{
|
||||||
|
|
||||||
white-space: nowrap;
|
|
||||||
color: rgba(0,0,0,0.45);
|
color: rgba(0,0,0,0.45);
|
||||||
}
|
}
|
||||||
.dialog{
|
.dialog{
|
||||||
@ -177,49 +174,3 @@ page{
|
|||||||
.green{
|
.green{
|
||||||
color:#3CC7C0;
|
color:#3CC7C0;
|
||||||
}
|
}
|
||||||
.pricebox .van-cell:after{
|
|
||||||
border-bottom: none!important;
|
|
||||||
}
|
|
||||||
.desc{
|
|
||||||
width: 90vw;
|
|
||||||
font-size: 28rpx;
|
|
||||||
color: rgba(0,0,0,0.65);
|
|
||||||
margin: 20rpx auto 0 auto;
|
|
||||||
}
|
|
||||||
.healthPrice{
|
|
||||||
font-size: 28rpx;
|
|
||||||
color: #E34D59;
|
|
||||||
}
|
|
||||||
.unit{
|
|
||||||
color: #333;
|
|
||||||
}
|
|
||||||
.cell_value_heal{
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
.tips{
|
|
||||||
margin:15rpx 30rpx;
|
|
||||||
font-weight: 400;
|
|
||||||
font-size: 24rpx;
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
color: #E34D59;
|
|
||||||
}
|
|
||||||
.checked_box .title{
|
|
||||||
width:90vw;
|
|
||||||
font-weight: 550;
|
|
||||||
font-size: 32rpx;
|
|
||||||
color: rgba(0,0,0,0.85);
|
|
||||||
margin:20rpx auto 20rpx;
|
|
||||||
}
|
|
||||||
.ipt{
|
|
||||||
font-size: 28rpx;
|
|
||||||
text-align: right;
|
|
||||||
color: #E34D59;
|
|
||||||
}
|
|
||||||
.unit{
|
|
||||||
font-size: 28rpx;
|
|
||||||
}
|
|
||||||
.nodata{
|
|
||||||
color: #999999;
|
|
||||||
}
|
|
||||||
@ -46,36 +46,11 @@ Page({
|
|||||||
api.getDoctorInquiryConfig(params).then(response => {
|
api.getDoctorInquiryConfig(params).then(response => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
this.setData({
|
this.setData({
|
||||||
'info.inquiry_price': response.data.inquiry_price,
|
info: response.data.info,
|
||||||
'info.work_num_day': response.data.work_num_day,
|
config: response.data.config,
|
||||||
// config: response.data.config,
|
note: response.data.info.is_open == 1? this.data.open_note : this.data.close_note
|
||||||
// note: response.data.info.is_open == 1? this.data.open_note : this.data.close_note
|
|
||||||
})
|
})
|
||||||
this.getSysconfig();
|
|
||||||
}).catch(errors => {console.error(errors);})
|
}).catch(errors => {console.error(errors);})
|
||||||
|
|
||||||
},
|
|
||||||
getSysconfig(){
|
|
||||||
let {inquiry_type,inquiry_mode,info}=this.data;
|
|
||||||
api.getSysconfig({
|
|
||||||
inquiry_type,
|
|
||||||
inquiry_mode
|
|
||||||
}).then(response => {
|
|
||||||
console.log(response);
|
|
||||||
this.setData({
|
|
||||||
'config': response.data
|
|
||||||
// config: response.data.config,
|
|
||||||
// note: response.data.info.is_open == 1? this.data.open_note : this.data.close_note
|
|
||||||
});
|
|
||||||
|
|
||||||
if(info.work_num_day===''){
|
|
||||||
|
|
||||||
this.setData({
|
|
||||||
'info.work_num_day':response.data.default_work_num_day
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}).catch(errors => {console.error(errors);})
|
|
||||||
|
|
||||||
},
|
},
|
||||||
onStepperChange(event) {
|
onStepperChange(event) {
|
||||||
console.log(event.detail);
|
console.log(event.detail);
|
||||||
|
|||||||
@ -4,15 +4,6 @@ const api = new API()
|
|||||||
const app = getApp()
|
const app = getApp()
|
||||||
Page({
|
Page({
|
||||||
data: {
|
data: {
|
||||||
active:1,
|
|
||||||
tabList:[{
|
|
||||||
id:1,
|
|
||||||
name:'问诊订单'
|
|
||||||
},{
|
|
||||||
id:2,
|
|
||||||
name:'服务包订单'
|
|
||||||
}],
|
|
||||||
|
|
||||||
navbarData: {
|
navbarData: {
|
||||||
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
|
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
|
||||||
title: '收益明细 ', //导航栏 中间的标题
|
title: '收益明细 ', //导航栏 中间的标题
|
||||||
@ -37,38 +28,25 @@ Page({
|
|||||||
this.setData({
|
this.setData({
|
||||||
date: date
|
date: date
|
||||||
})
|
})
|
||||||
this.getDoctorAccountInfo();
|
|
||||||
},
|
},
|
||||||
onHide(){
|
onHide(){
|
||||||
// this.setData({
|
this.setData({
|
||||||
// list: [],
|
list: [],
|
||||||
// date: "",
|
date: "",
|
||||||
// current_page: 0,
|
current_page: 0,
|
||||||
// total: 0,
|
total: 0,
|
||||||
// per_page: 0,
|
per_page: 0,
|
||||||
// last_page: 0
|
last_page: 0
|
||||||
// })
|
})
|
||||||
},
|
},
|
||||||
onShow(){
|
onShow(){
|
||||||
// if(this.data.date){
|
this.getDoctorAccountInfo();
|
||||||
// this.getDoctorAccountInfo();
|
|
||||||
// }
|
|
||||||
|
|
||||||
},
|
|
||||||
switchTab(e){
|
|
||||||
let {id}=e.currentTarget.dataset;
|
|
||||||
this.setData({
|
|
||||||
active:id,
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
getDoctorAccountInfo(){
|
getDoctorAccountInfo(){
|
||||||
let list = this.data.list
|
let list = this.data.list
|
||||||
let params = {};
|
let params = {};
|
||||||
params.page = this.data.current_page + 1;
|
params.page = this.data.current_page + 1;
|
||||||
params.date = this.data.date;
|
params.date = this.data.date;
|
||||||
|
|
||||||
//1:问诊订单 2:药品订单 3:检测订单 4:随访包订单 5:健康包订单)
|
|
||||||
params.per_page=10;
|
|
||||||
api.getDoctorAccountInfo(params).then(response => {
|
api.getDoctorAccountInfo(params).then(response => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
this.setData({
|
this.setData({
|
||||||
|
|||||||
@ -1,29 +1,21 @@
|
|||||||
<!-- 收益明细 -->
|
<!-- 收益明细 -->
|
||||||
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
||||||
<view class="container">
|
<view class="container">
|
||||||
<!-- <view class="tabbox">
|
|
||||||
<view class="tab {{active==item.id?'active':''}}" wx:for="{{tabList}}" wx:key="id" bind:tap="switchTab" data-id="{{item.id}}">{{item.name}}</view>
|
|
||||||
|
|
||||||
</view> -->
|
|
||||||
<view class="order_list">
|
<view class="order_list">
|
||||||
<view class="order_item" wx:for="{{list}}">
|
<view class="order_item" wx:for="{{list}}">
|
||||||
<view class="order_item_content">
|
<view class="order_item_content">
|
||||||
<view class="order_item_content_top ">
|
<view class="order_item_content_top ">
|
||||||
{{ (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==8)?'健康包':(item.inquiry_type==1 && item.inquiry_mode==9)?'随访包':item.inquiry_type==2?'快速问诊':item.inquiry_type==3?'公益问诊':item.inquiry_type==4?'问诊购药':item.order_type==4?'随访包':item.order_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?'问诊购药':'其他' }}
|
||||||
<!-- <view class="order_status order_status_cancle">{{ 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?'已取消':'其他' }}</view> -->
|
<!-- <view class="order_status order_status_cancle">{{ 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?'已取消':'其他' }}</view> -->
|
||||||
<view class="order_status order_status_cancle {{item.entry_status==1?'entrying':item.entry_status==2?'entrysuccess':item.entry_status==3?'entryfail':'' }}">{{ item.entry_status==1?'入账中':item.entry_status==2?'入账成功':item.entry_status==3?'入账失败':'未知' }}</view>
|
<view class="order_status order_status_cancle {{item.entry_status==1?'entrying':item.entry_status==2?'entrysuccess':item.entry_status==3?'entryfail':'' }}">{{ item.entry_status==1?'入账中':item.entry_status==2?'入账成功':item.entry_status==3?'入账失败':'未知' }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="order_item_content_data">
|
<view class="order_item_content_data">
|
||||||
<view class="order_id">订单编号:<text style="font-size: 30rpx;color: rgba(0,0,0,0.85);">{{item.order_no}}</text></view>
|
<view class="order_id">订单编号:<text style="font-size: 30rpx;color: rgba(0,0,0,0.85);">{{item.inquiry_no}}</text></view>
|
||||||
<view class="order_id">就诊患者:<text style="font-size: 30rpx;color: rgba(0,0,0,0.85);">{{item.patient_name}}({{item.patient_sex==1?'男':'女'}},{{item.patient_age}}岁)</text></view>
|
<view class="order_id">就诊患者:<text style="font-size: 30rpx;color: rgba(0,0,0,0.85);">{{item.patient_name}}({{item.patient_sex==1?'男':'女'}},{{item.patient_age}}岁)</text></view>
|
||||||
<view class="order_id">{{(item.order_type==4 || item.order_type==5)?'开始时间':'问诊时间'}}:<text style="font-size: 30rpx;color: rgba(0,0,0,0.85);">{{item.start_time}}</text></view>
|
<view class="order_id">接诊时间:<text style="font-size: 30rpx;color: rgba(0,0,0,0.85);">{{item.reception_time}}</text></view>
|
||||||
<view class="order_id" wx:if="{{item.finish_time}}">结束时间:<text style="font-size: 30rpx;color: rgba(0,0,0,0.85);">{{item.finish_time}}</text></view>
|
<view class="order_id" wx:if="{{item.finish_time}}">结束时间:<text style="font-size: 30rpx;color: rgba(0,0,0,0.85);">{{item.finish_time}}</text></view>
|
||||||
<view class="order_id">订单金额:<text style="font-size: 30rpx;color: rgba(0,0,0,0.85);">¥{{item.amount_total}}</text></view>
|
<view class="order_id">订单金额:<text style="font-size: 30rpx;color: rgba(0,0,0,0.85);">¥{{item.amount_total}}</text></view>
|
||||||
<view class="order_id" wx:if="{{item.entry_status==1 || item.entry_status==2}}">
|
<view class="order_id">预计收入:<text style="font-size: 30rpx;color: rgba(0,0,0,0.85);">¥{{item.estimate_income}}</text></view>
|
||||||
<text wx:if="{{item.entry_status==1}}">预计入账:</text>
|
|
||||||
<text decode wx:elif="{{item.entry_status==2}}"> 入账:</text><text style="font-size: 30rpx;color: rgba(0,0,0,0.85);">¥{{item.estimate_income}}</text></view>
|
|
||||||
<view class="order_id" wx:if="{{item.entry_status==3}}"><text decode> 原因:</text><text style="font-size: 30rpx;color: rgba(0,0,0,0.85);">¥{{item.cancel_remarks}}</text></view>
|
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@ -79,29 +79,3 @@ page{
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
}
|
}
|
||||||
.tabbox{
|
|
||||||
display: flex;
|
|
||||||
height: 100rpx;
|
|
||||||
background-color: #fff;
|
|
||||||
border-bottom: 1rpx solid #E5E5E5;
|
|
||||||
}
|
|
||||||
.tabbox .tab:first-child::after{
|
|
||||||
right:0;
|
|
||||||
top:26rpx;
|
|
||||||
width:rpx;
|
|
||||||
content:'|';
|
|
||||||
position:absolute;
|
|
||||||
color:#E5E5E5;
|
|
||||||
|
|
||||||
font-size: 32rpx;
|
|
||||||
}
|
|
||||||
.tabbox .tab{
|
|
||||||
position: relative;
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
flex:1;
|
|
||||||
}
|
|
||||||
.tabbox .tab.active{
|
|
||||||
color: #3CC7C0;
|
|
||||||
}
|
|
||||||
@ -106,7 +106,6 @@ Page({
|
|||||||
app.go("/user/pages/yishi/cash/index?order_inquiry_ids="+order_inquiry_ids);
|
app.go("/user/pages/yishi/cash/index?order_inquiry_ids="+order_inquiry_ids);
|
||||||
},
|
},
|
||||||
goback(){
|
goback(){
|
||||||
|
|
||||||
wx.navigateBack()
|
wx.navigateBack()
|
||||||
},
|
},
|
||||||
onLoad(options){
|
onLoad(options){
|
||||||
|
|||||||
@ -1,20 +1,18 @@
|
|||||||
<!-- 问诊订单 -->
|
<!-- 问诊订单 -->
|
||||||
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
||||||
<wxs src="../../../../filters/filter.wxs" module="filter"></wxs>
|
|
||||||
|
|
||||||
<view class="container">
|
<view class="container">
|
||||||
<view class="order_list">
|
<view class="order_list">
|
||||||
<view class="order_item" wx:for="{{order_list}}">
|
<view class="order_item" wx:for="{{order_list}}">
|
||||||
<view class="order_item_content" data-index="{{index}}" bindtap="selectOrder">
|
<view class="order_item_content" data-index="{{index}}" bindtap="selectOrder">
|
||||||
<!-- (1:专家问诊 2:快速问诊 3:公益问诊 4:问诊购药) -->
|
<!-- (1:专家问诊 2:快速问诊 3:公益问诊 4:问诊购药) -->
|
||||||
<view class="order_item_content_top">{{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==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?'糖组检测':item.inquiry_type==4?'问诊购药':item.order_type==4?'随访包':item.order_type==5? '健康包':'其他'}}</view>
|
<view class="order_item_content_top">{{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?'糖组检测':'未知'}}</view>
|
||||||
<view class="order_item_content_data">
|
<view class="order_item_content_data">
|
||||||
<view class="order_id">订单编号:<text style="font-size: 30rpx;color: rgba(0,0,0,0.85);">{{item.order_no}}</text></view>
|
<view class="order_id">订单编号:<text style="font-size: 30rpx;color: rgba(0,0,0,0.85);">{{item.inquiry_no }}</text></view>
|
||||||
<view class="order_id">就诊患者:<text style="font-size: 30rpx;color: rgba(0,0,0,0.85);">{{item.patient_name}}({{item.patient_sex==1?'男':'女'}},{{item.patient_age}}岁)</text></view>
|
<view class="order_id">就诊患者:<text style="font-size: 30rpx;color: rgba(0,0,0,0.85);">{{item.patient_name}}({{item.patient_sex==1?'男':'女'}},{{item.patient_age}}岁)</text></view>
|
||||||
<view class="order_id">接诊时间:<text style="font-size: 30rpx;color: rgba(0,0,0,0.85);">{{item.start_time}}</text></view>
|
<view class="order_id">接诊时间:<text style="font-size: 30rpx;color: rgba(0,0,0,0.85);">{{item.reception_time}}</text></view>
|
||||||
<view class="order_id">结束时间:<text style="font-size: 30rpx;color: rgba(0,0,0,0.85);">{{item.finish_time}}</text></view>
|
<view class="order_id">结束时间:<text style="font-size: 30rpx;color: rgba(0,0,0,0.85);">{{item.finish_time}}</text></view>
|
||||||
<view class="order_id">订单金额:<text style="font-size: 30rpx;color: rgba(0,0,0,0.85);">¥{{item.amount_total}}</text></view>
|
<view class="order_id">订单金额:<text style="font-size: 30rpx;color: rgba(0,0,0,0.85);">¥{{item.amount_total}}</text></view>
|
||||||
<view class="order_id"><text decode style="opacity: 0;">入账</text><text >入账:</text><text style="font-size: 30rpx;color: #FF5D2E;">{{filter.countMoney(item.amount_total)}}元</text></view>
|
<view class="order_id"><text decode>入账<text style="opacity: 0;">入账</text>:</text><text style="font-size: 30rpx;color: #FF5D2E;">{{item.amount_total}}*0.75元</text></view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@ -11,6 +11,7 @@ Page({
|
|||||||
},
|
},
|
||||||
height: app.globalData.height,
|
height: app.globalData.height,
|
||||||
checked: true,
|
checked: true,
|
||||||
|
canFree:false,
|
||||||
showSetting:false,
|
showSetting:false,
|
||||||
open_note: "已开启,可在问诊消息中进行接诊",
|
open_note: "已开启,可在问诊消息中进行接诊",
|
||||||
close_note: "已关闭,暂不接收公益问诊",
|
close_note: "已关闭,暂不接收公益问诊",
|
||||||
@ -45,9 +46,8 @@ Page({
|
|||||||
|
|
||||||
},
|
},
|
||||||
onShow(){
|
onShow(){
|
||||||
this.getDoctorOpen()
|
|
||||||
let doctor_id=wx.getStorageSync('client_user_id_2');
|
let doctor_id=wx.getStorageSync('client_user_id_2');
|
||||||
|
console.log(doctor_id);
|
||||||
if(doctor_id){
|
if(doctor_id){
|
||||||
this.getService(doctor_id)
|
this.getService(doctor_id)
|
||||||
}
|
}
|
||||||
@ -58,33 +58,12 @@ Page({
|
|||||||
api.getDoctorInquiryConfig(params).then(response => {
|
api.getDoctorInquiryConfig(params).then(response => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
this.setData({
|
this.setData({
|
||||||
'info.inquiry_price': response.data.inquiry_price,
|
info: response.data.info,
|
||||||
'info.work_num_day': response.data.work_num_day
|
config: response.data.config,
|
||||||
// config: response.data.config,
|
|
||||||
})
|
})
|
||||||
// this.formatAmounts();
|
this.formatAmounts();
|
||||||
// this.formatAmountValue();
|
this.formatAmountValue();
|
||||||
}).then(re =>{
|
}).then(re =>{
|
||||||
// let is_open = this.data.info.is_open;
|
|
||||||
// let note = this.data.note;
|
|
||||||
// if(is_open == 1) note = this.data.open_note;
|
|
||||||
// if(is_open == 0) note = this.data.close_note;
|
|
||||||
// this.setData({
|
|
||||||
// note: note
|
|
||||||
// })
|
|
||||||
}).catch(errors => {console.error(errors);})
|
|
||||||
this.getSysconfig();
|
|
||||||
},
|
|
||||||
getDoctorOpen(){
|
|
||||||
let {inquiry_type,inquiry_mode}=this.data;
|
|
||||||
api.getOpen({
|
|
||||||
inquiry_type,
|
|
||||||
inquiry_mode
|
|
||||||
}).then(response => {
|
|
||||||
this.setData({
|
|
||||||
note: response.data,
|
|
||||||
'info.is_open': response.data
|
|
||||||
})
|
|
||||||
let is_open = this.data.info.is_open;
|
let is_open = this.data.info.is_open;
|
||||||
let note = this.data.note;
|
let note = this.data.note;
|
||||||
if(is_open == 1) note = this.data.open_note;
|
if(is_open == 1) note = this.data.open_note;
|
||||||
@ -128,23 +107,6 @@ Page({
|
|||||||
amountValue: valarr,
|
amountValue: valarr,
|
||||||
amountText: val
|
amountText: val
|
||||||
})
|
})
|
||||||
},
|
|
||||||
getSysconfig(){
|
|
||||||
let {inquiry_type,inquiry_mode}=this.data;
|
|
||||||
api.getSysconfig({
|
|
||||||
inquiry_type,
|
|
||||||
inquiry_mode
|
|
||||||
}).then(response => {
|
|
||||||
console.log(response);
|
|
||||||
this.setData({
|
|
||||||
'config': response.data
|
|
||||||
// config: response.data.config,
|
|
||||||
// note: response.data.info.is_open == 1? this.data.open_note : this.data.close_note
|
|
||||||
})
|
|
||||||
this.formatAmounts();
|
|
||||||
this.formatAmountValue();
|
|
||||||
}).catch(errors => {console.error(errors);})
|
|
||||||
|
|
||||||
},
|
},
|
||||||
changeON(){
|
changeON(){
|
||||||
let is_open = this.data.info.is_open
|
let is_open = this.data.info.is_open
|
||||||
|
|||||||
@ -28,7 +28,7 @@
|
|||||||
border="{{true}}"
|
border="{{true}}"
|
||||||
url="/user/pages/yishi/yizhensetupprice/index"
|
url="/user/pages/yishi/yizhensetupprice/index"
|
||||||
>
|
>
|
||||||
<view class="num" wx:if="{{info.work_num_day!==''}}">
|
<view class="num" wx:if="{{canFree}}">
|
||||||
{{ info.work_num_day }}
|
{{ info.work_num_day }}
|
||||||
</view>
|
</view>
|
||||||
<view calss="cell_value_seting" wx:else>去设置</view>
|
<view calss="cell_value_seting" wx:else>去设置</view>
|
||||||
@ -39,7 +39,7 @@
|
|||||||
border="{{false}}"
|
border="{{false}}"
|
||||||
url="/user/pages/yishi/yizhensetupprice/index"
|
url="/user/pages/yishi/yizhensetupprice/index"
|
||||||
>
|
>
|
||||||
<view wx:if="{{info.inquiry_price}}">
|
<view wx:if="{{canFree}}">
|
||||||
<text class="price">{{ amountText }}</text>
|
<text class="price">{{ amountText }}</text>
|
||||||
<text style="color: #000;"> 元</text>
|
<text style="color: #000;"> 元</text>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@ -48,46 +48,20 @@ Page({
|
|||||||
api.getDoctorInquiryConfig(params).then(response => {
|
api.getDoctorInquiryConfig(params).then(response => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
this.setData({
|
this.setData({
|
||||||
'info.inquiry_price': response.data.inquiry_price,
|
info: response.data.info,
|
||||||
'info.work_num_day': response.data.work_num_day
|
config: response.data.config,
|
||||||
// config: response.data.config,
|
|
||||||
})
|
})
|
||||||
// this.formatAmounts();
|
|
||||||
// this.formatAmountValue();
|
|
||||||
}).then(re =>{
|
|
||||||
// let is_open = this.data.info.is_open;
|
|
||||||
// let note = this.data.note;
|
|
||||||
// if(is_open == 1) note = this.data.open_note;
|
|
||||||
// if(is_open == 0) note = this.data.close_note;
|
|
||||||
// this.setData({
|
|
||||||
// note: note
|
|
||||||
// })
|
|
||||||
this.getSysconfig()
|
|
||||||
}).catch(errors => {console.error(errors);})
|
|
||||||
|
|
||||||
},
|
|
||||||
getSysconfig(){
|
|
||||||
let {inquiry_type,inquiry_mode,info}=this.data;
|
|
||||||
api.getSysconfig({
|
|
||||||
inquiry_type,
|
|
||||||
inquiry_mode
|
|
||||||
}).then(response => {
|
|
||||||
console.log(response);
|
|
||||||
this.setData({
|
|
||||||
'config': response.data
|
|
||||||
// config: response.data.config,
|
|
||||||
// note: response.data.info.is_open == 1? this.data.open_note : this.data.close_note
|
|
||||||
})
|
|
||||||
|
|
||||||
if(info.work_num_day===''){
|
|
||||||
this.setData({
|
|
||||||
'info.work_num_day':response.data.default_work_num_day
|
|
||||||
})
|
|
||||||
}
|
|
||||||
this.formatAmounts();
|
this.formatAmounts();
|
||||||
this.formatAmountValue();
|
this.formatAmountValue();
|
||||||
|
}).then(re =>{
|
||||||
|
let is_open = this.data.info.is_open;
|
||||||
|
let note = this.data.note;
|
||||||
|
if(is_open == 1) note = this.data.open_note;
|
||||||
|
if(is_open == 0) note = this.data.close_note;
|
||||||
|
this.setData({
|
||||||
|
note: note
|
||||||
|
})
|
||||||
}).catch(errors => {console.error(errors);})
|
}).catch(errors => {console.error(errors);})
|
||||||
|
|
||||||
},
|
},
|
||||||
formatAmounts(){
|
formatAmounts(){
|
||||||
let list = this.data.config.system_inquiry_price.map(item => {
|
let list = this.data.config.system_inquiry_price.map(item => {
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
||||||
|
|
||||||
<view class="container">
|
<view class="container">
|
||||||
<view class="checked_box">
|
<view class="checked_box">
|
||||||
<view class="price_steup_box">
|
<view class="price_steup_box">
|
||||||
|
|||||||
@ -912,7 +912,7 @@ getJob() {//获取职业
|
|||||||
}
|
}
|
||||||
getServiceConfig(params) {//获取医生问诊配置-服务设置
|
getServiceConfig(params) {//获取医生问诊配置-服务设置
|
||||||
return this.request({
|
return this.request({
|
||||||
url: `${this.baseUrl}/doctor/inquiry/config/difficult`,
|
url: `${this.baseUrl}/doctor/inquiry/config/service`,
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
data: {
|
data: {
|
||||||
...params
|
...params
|
||||||
@ -922,7 +922,7 @@ getServiceConfig(params) {//获取医生问诊配置-服务设置
|
|||||||
|
|
||||||
postServiceConfig(params) {//新增医生问诊配置-服务设置
|
postServiceConfig(params) {//新增医生问诊配置-服务设置
|
||||||
return this.request({
|
return this.request({
|
||||||
url: `${this.baseUrl}/doctor/inquiry/config/difficult`,
|
url: `${this.baseUrl}/doctor/inquiry/config/service`,
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
data: {
|
data: {
|
||||||
...params
|
...params
|
||||||
@ -931,7 +931,7 @@ postServiceConfig(params) {//新增医生问诊配置-服务设置
|
|||||||
}
|
}
|
||||||
putServiceConfig(params,id) {//修改医生问诊配置-服务设置
|
putServiceConfig(params,id) {//修改医生问诊配置-服务设置
|
||||||
return this.request({
|
return this.request({
|
||||||
url: `${this.baseUrl}/doctor/inquiry/config/difficult/${id}`,
|
url: `${this.baseUrl}/doctor/inquiry/config/service/${id}`,
|
||||||
method: 'PUT',
|
method: 'PUT',
|
||||||
data: {
|
data: {
|
||||||
...params
|
...params
|
||||||
@ -1005,78 +1005,12 @@ postServiceConfig(params) {//新增医生问诊配置-服务设置
|
|||||||
method: 'GET'
|
method: 'GET'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
getDoctorService(params){//获取开通服务
|
getDoctorService(params){
|
||||||
return this.request({
|
return this.request({
|
||||||
url: `${this.baseUrl}/doctor/inquiry/service/${params}`,
|
url: `${this.baseUrl}/doctor/inquiry/service/${params}`,
|
||||||
method: 'GET'
|
method: 'GET'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
getOpen(params){//获取医生问诊服务开启状态
|
|
||||||
return this.request({
|
|
||||||
url: `${this.baseUrl}/doctor/inquiry/config/open`,
|
|
||||||
method: 'GET',
|
|
||||||
data: {
|
|
||||||
...params
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
getSysconfig(params){
|
|
||||||
return this.request({//获取系统问诊配置
|
|
||||||
url: `${this.baseUrl}/system/inquiry/config`,
|
|
||||||
method: 'GET',
|
|
||||||
data: {
|
|
||||||
...params
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
getFollow(params){
|
|
||||||
return this.request({//获取医生问诊配置-随访包
|
|
||||||
url: `${this.baseUrl}/doctor/inquiry/config/follow`,
|
|
||||||
method: 'GET',
|
|
||||||
data: {
|
|
||||||
...params
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
postFollow(params){
|
|
||||||
return this.request({//新增医生问诊配置-随访包
|
|
||||||
url: `${this.baseUrl}/doctor/inquiry/config/follow`,
|
|
||||||
method: 'POST',
|
|
||||||
data: {
|
|
||||||
...params
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
getFollowDetail(id){
|
|
||||||
return this.request({//获取医生问诊配置-随访包-明细
|
|
||||||
url: `${this.baseUrl}/doctor/inquiry/service/follow/item/${id}`,
|
|
||||||
method: 'GET'
|
|
||||||
})
|
|
||||||
}
|
|
||||||
editFollow(params){
|
|
||||||
return this.request({//修改医生问诊配置-随访包
|
|
||||||
url: `${this.baseUrl}/doctor/inquiry/config/follow`,
|
|
||||||
method: 'PUT',
|
|
||||||
data: {
|
|
||||||
...params
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
getHealthy(){
|
|
||||||
return this.request({//获取医生问诊配置-健康包
|
|
||||||
url: `${this.baseUrl}/doctor/inquiry/config/health`,
|
|
||||||
method: 'GET'
|
|
||||||
})
|
|
||||||
}
|
|
||||||
serviceChatMsg(id){
|
|
||||||
return this.request({//获取服务包关联问诊订单消息内页基础数据
|
|
||||||
url: `${this.baseUrl}/im/inquiry/basic/service/${id}`,
|
|
||||||
method: 'GET'
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -28,32 +28,19 @@ class HTTP {
|
|||||||
_request(url, resolve, reject, data = {}, method = 'GET', contentType = 'application/json', showLoading = true) {
|
_request(url, resolve, reject, data = {}, method = 'GET', contentType = 'application/json', showLoading = true) {
|
||||||
if(showLoading) wx.showLoading();
|
if(showLoading) wx.showLoading();
|
||||||
let usertype = wx.getStorageSync('usertype');
|
let usertype = wx.getStorageSync('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)
|
|
||||||
}
|
|
||||||
wx.request({
|
wx.request({
|
||||||
url: url,
|
url: url,
|
||||||
method: method,
|
method: method,
|
||||||
data: data,
|
data: data,
|
||||||
header: {
|
header: {
|
||||||
'content-type': contentType,
|
'content-type': contentType,
|
||||||
'Authorization': "Bearer " + token
|
'Authorization': "Bearer " + wx.getStorageSync('AUTH_TOKEN_'+usertype)
|
||||||
},
|
},
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
// console.log("header Authorization: ", res.header.Authorization);
|
// console.log("header Authorization: ", res.header.Authorization);
|
||||||
var Authorization_token = res.header.Authorization;
|
var Authorization_token = res.header.Authorization;
|
||||||
if(Authorization_token){
|
if(Authorization_token){
|
||||||
const { envVersion } = wx.getAccountInfoSync().miniProgram;
|
|
||||||
if(envVersion=='release'){
|
|
||||||
wx.setStorageSync('AUTH_TOKEN_'+usertype, Authorization_token);//当token快过期时,服务器会返回新token,本地刷新
|
wx.setStorageSync('AUTH_TOKEN_'+usertype, Authorization_token);//当token快过期时,服务器会返回新token,本地刷新
|
||||||
}else{
|
|
||||||
wx.setStorageSync('DEV_AUTH_TOKEN_'+usertype, Authorization_token);//当token快过期时,服务器会返回新token,本地刷新
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
if (res.data) {
|
if (res.data) {
|
||||||
const code = res.data.code;
|
const code = res.data.code;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user