Compare commits
5 Commits
c8cf0b0543
...
66d3d4b8a9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
66d3d4b8a9 | ||
|
|
9649d0a651 | ||
|
|
0c06201451 | ||
|
|
5788befbc3 | ||
|
|
0c437a60f3 |
@ -15,6 +15,7 @@ Page({
|
|||||||
user_name: "医师姓名",
|
user_name: "医师姓名",
|
||||||
not_accepted_inquiry_num: 0,
|
not_accepted_inquiry_num: 0,
|
||||||
accepting_inquiry_num: 0,
|
accepting_inquiry_num: 0,
|
||||||
|
is_welfare_cooperation:null,
|
||||||
info_shiming_status_txt: "未认证",
|
info_shiming_status_txt: "未认证",
|
||||||
info_shiming_status: "info_shiming_status_no",
|
info_shiming_status: "info_shiming_status_no",
|
||||||
show_info_note: false,
|
show_info_note: false,
|
||||||
@ -268,6 +269,8 @@ Page({
|
|||||||
let multi_point_status = response.data.info.multi_point_status;
|
let multi_point_status = response.data.info.multi_point_status;
|
||||||
//绑定结算银行卡
|
//绑定结算银行卡
|
||||||
let is_bind_bank = response.data.info.is_bind_bank;
|
let is_bind_bank = response.data.info.is_bind_bank;
|
||||||
|
let is_welfare_cooperation=response.data.info.is_welfare_cooperation;
|
||||||
|
|
||||||
api.getDoctorService(response.data.info.doctor_id).then(res=>{
|
api.getDoctorService(response.data.info.doctor_id).then(res=>{
|
||||||
if(res.code==200){
|
if(res.code==200){
|
||||||
let result=res.data;
|
let result=res.data;
|
||||||
@ -316,6 +319,7 @@ Page({
|
|||||||
"info.iden_auth_status": iden_auth_status,
|
"info.iden_auth_status": iden_auth_status,
|
||||||
"info.multi_point_status": multi_point_status,
|
"info.multi_point_status": multi_point_status,
|
||||||
"info.is_bind_bank": is_bind_bank,
|
"info.is_bind_bank": is_bind_bank,
|
||||||
|
'info.is_welfare_cooperation':is_welfare_cooperation
|
||||||
// "info.is_img_expert_reception": is_img_expert_reception,
|
// "info.is_img_expert_reception": is_img_expert_reception,
|
||||||
// "info.is_img_quick_reception": is_img_quick_reception,
|
// "info.is_img_quick_reception": is_img_quick_reception,
|
||||||
// "info.is_img_welfare_reception": is_img_welfare_reception,
|
// "info.is_img_welfare_reception": is_img_welfare_reception,
|
||||||
|
|||||||
@ -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?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;">
|
||||||
<van-image class="fun_box_item_img"
|
<van-image class="fun_box_item_img"
|
||||||
fit="widthFix"
|
fit="widthFix"
|
||||||
width="70rpx"
|
width="70rpx"
|
||||||
@ -131,7 +131,7 @@
|
|||||||
/>
|
/>
|
||||||
<text class="fun_box_item_txt">快速问诊管理</text>
|
<text class="fun_box_item_txt">快速问诊管理</text>
|
||||||
</view>
|
</view>
|
||||||
<view bindtap="go" data-moudle="6" data-url="/user/pages/yishi/yizhensetup/index" class="fun_box_item" style="height: {{funbox_height}}rpx;">
|
<view bindtap="go" data-moudle="6" data-url="/user/pages/yishi/yizhensetup/index?is_welfare_cooperation={{info.is_welfare_cooperation}}" 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"
|
||||||
|
|||||||
@ -37,6 +37,7 @@ Component({
|
|||||||
lifetimes: {
|
lifetimes: {
|
||||||
detached() {
|
detached() {
|
||||||
myaudio.stop();
|
myaudio.stop();
|
||||||
|
wx.setStorageSync('currentAudioId', '')
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -80,6 +81,8 @@ Component({
|
|||||||
|
|
||||||
const { id } = e.currentTarget.dataset;
|
const { id } = e.currentTarget.dataset;
|
||||||
const { audioSave } = this.data;
|
const { audioSave } = this.data;
|
||||||
|
console.log(id);
|
||||||
|
wx.setStorageSync('currentAudioId',id)
|
||||||
this.triggerEvent("closeAudio",false)
|
this.triggerEvent("closeAudio",false)
|
||||||
// 设置状态
|
// 设置状态
|
||||||
audioSave.forEach((message, index) => {
|
audioSave.forEach((message, index) => {
|
||||||
@ -128,7 +131,9 @@ Component({
|
|||||||
return;
|
return;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
stopmy(){
|
||||||
|
myaudio.stop();
|
||||||
|
},
|
||||||
// 音频停止
|
// 音频停止
|
||||||
audioStop(e) {
|
audioStop(e) {
|
||||||
const { key } = e.currentTarget.dataset;
|
const { key } = e.currentTarget.dataset;
|
||||||
|
|||||||
@ -120,6 +120,7 @@ Component({
|
|||||||
serviceInfo:{},
|
serviceInfo:{},
|
||||||
baseInfo:{},
|
baseInfo:{},
|
||||||
family_id:'',
|
family_id:'',
|
||||||
|
fresh:true,
|
||||||
patient_user_id:'',
|
patient_user_id:'',
|
||||||
extensionArea: false,
|
extensionArea: false,
|
||||||
sendMessageBtn: false,
|
sendMessageBtn: false,
|
||||||
@ -188,10 +189,16 @@ Component({
|
|||||||
lifetimes: {
|
lifetimes: {
|
||||||
attached() {
|
attached() {
|
||||||
let _this = this;
|
let _this = this;
|
||||||
|
|
||||||
// 加载声音录制管理器
|
// 加载声音录制管理器
|
||||||
this.recorderManager = wx.getRecorderManager();
|
this.recorderManager = wx.getRecorderManager();
|
||||||
this.recorderManager.onStop(async(resData) => {
|
this.recorderManager.onStop(async(resData) => {
|
||||||
|
this.setData({
|
||||||
|
fresh:!this.data.fresh
|
||||||
|
})
|
||||||
|
|
||||||
wx.hideLoading();
|
wx.hideLoading();
|
||||||
|
|
||||||
if (this.data.canSend) {
|
if (this.data.canSend) {
|
||||||
if (resData.duration < 1000) {
|
if (resData.duration < 1000) {
|
||||||
wx.showToast({
|
wx.showToast({
|
||||||
@ -596,6 +603,10 @@ this.setData({
|
|||||||
},
|
},
|
||||||
// 长按录音
|
// 长按录音
|
||||||
handleLongPress(e) {
|
handleLongPress(e) {
|
||||||
|
this.triggerEvent('closeAudio',false);
|
||||||
|
if(this.timer){
|
||||||
|
clearInterval(this.timer)
|
||||||
|
}
|
||||||
this.openRecord(e,this.recording)
|
this.openRecord(e,this.recording)
|
||||||
},
|
},
|
||||||
recording(e,THIS){
|
recording(e,THIS){
|
||||||
@ -616,7 +627,7 @@ this.setData({
|
|||||||
THIS.timer=setInterval(()=>{
|
THIS.timer=setInterval(()=>{
|
||||||
if(THIS.data.recordtime>=60){
|
if(THIS.data.recordtime>=60){
|
||||||
THIS.handleTouchEnd();
|
THIS.handleTouchEnd();
|
||||||
clearInterval(THIS.timer);
|
//clearInterval(THIS.timer);
|
||||||
|
|
||||||
};
|
};
|
||||||
THIS.setData({
|
THIS.setData({
|
||||||
|
|||||||
@ -22,11 +22,21 @@
|
|||||||
bindlinechange="inputBindLinechange"
|
bindlinechange="inputBindLinechange"
|
||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
<view wx:if="{{isAudio}}" class="TUI-message-input-main"
|
<view wx:if="{{isAudio && fresh}}"
|
||||||
|
id="talk1"
|
||||||
|
class="TUI-message-input-main"
|
||||||
|
catchlongpress="handleLongPress"
|
||||||
|
catchtouchmove="handleTouchMove"
|
||||||
|
catchtouchend="handleTouchEnd"
|
||||||
|
catchtouchcancel="handleTouchCancel"
|
||||||
|
style="display: flex; justify-content: center; font-size: 32rpx; font-family: PingFangSC-Regular; height: 30px">
|
||||||
|
<text >{{text}}</text>
|
||||||
|
</view>
|
||||||
|
<view wx:elif="{{isAudio && !fresh}}"
|
||||||
|
id="talk2" class="TUI-message-input-main"
|
||||||
catchlongpress="handleLongPress"
|
catchlongpress="handleLongPress"
|
||||||
catchtouchmove="handleTouchMove"
|
catchtouchmove="handleTouchMove"
|
||||||
catchtouchend="handleTouchEnd"
|
catchtouchend="handleTouchEnd"
|
||||||
catchtap="handleTouchCancel"
|
|
||||||
catchtouchcancel="handleTouchCancel"
|
catchtouchcancel="handleTouchCancel"
|
||||||
style="display: flex; justify-content: center; font-size: 32rpx; font-family: PingFangSC-Regular; height: 30px">
|
style="display: flex; justify-content: center; font-size: 32rpx; font-family: PingFangSC-Regular; height: 30px">
|
||||||
<text >{{text}}</text>
|
<text >{{text}}</text>
|
||||||
|
|||||||
@ -320,12 +320,21 @@ Component({
|
|||||||
},
|
},
|
||||||
closeAudio(data){
|
closeAudio(data){
|
||||||
//关闭其他语音
|
//关闭其他语音
|
||||||
|
let currentAudioId= wx.getStorageSync('currentAudioId');
|
||||||
this.data.messageList.forEach((item)=>{
|
this.data.messageList.forEach((item)=>{
|
||||||
if(item.type=="TIMSoundElem"){
|
if(item.type=="TIMSoundElem"){
|
||||||
let ele=this.selectComponent('#audio'+item.ID);
|
let ele=this.selectComponent('#audio'+item.ID);
|
||||||
|
if(item.ID!=currentAudioId){
|
||||||
|
|
||||||
|
ele.stopmy();
|
||||||
|
}
|
||||||
ele.setData({
|
ele.setData({
|
||||||
isPlay:false
|
isPlay:false
|
||||||
})
|
})
|
||||||
|
//console.log(ele);
|
||||||
|
|
||||||
|
//ele.stopmy();
|
||||||
|
//console.log(ele)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -234,6 +234,9 @@ Component({
|
|||||||
* 组件的方法列表
|
* 组件的方法列表
|
||||||
*/
|
*/
|
||||||
methods: {
|
methods: {
|
||||||
|
closeAudio(){
|
||||||
|
this.selectComponent('#MessageList').closeAudio();
|
||||||
|
},
|
||||||
checkChuFang(order_inquiry_id){
|
checkChuFang(order_inquiry_id){
|
||||||
api.getDoctorPrescriptionCheck({order_inquiry_id: order_inquiry_id}).then(response => {
|
api.getDoctorPrescriptionCheck({order_inquiry_id: order_inquiry_id}).then(response => {
|
||||||
let status = response.data.status
|
let status = response.data.status
|
||||||
|
|||||||
@ -73,8 +73,11 @@
|
|||||||
<!-- wx:if="{{baseInfo.inquiry_status==4}}" -->
|
<!-- wx:if="{{baseInfo.inquiry_status==4}}" -->
|
||||||
<view class="input-area" style="{{input_area_style}}" >
|
<view class="input-area" style="{{input_area_style}}" >
|
||||||
<!-- wx:if="{{showChat}}" -->
|
<!-- wx:if="{{showChat}}" -->
|
||||||
|
<!-- bind:closeAudio="closeAudio" -->
|
||||||
<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"
|
||||||
|
bind:closeAudio="closeAudio"
|
||||||
|
id="MessageInput" inquiry_type="{{inquiry_type}}" baseInfo="{{baseInfo}}" order_inquiry_id="{{order_inquiry_id}}" conversation="{{conversation}}" from="{{from}}" hasCallKit="{{hasCallKit}}"
|
||||||
serviceInfo="{{serviceInfo}}"
|
serviceInfo="{{serviceInfo}}"
|
||||||
isEditTime="{{isEditTime}}"
|
isEditTime="{{isEditTime}}"
|
||||||
videoInfo="{{videoInfo}}"
|
videoInfo="{{videoInfo}}"
|
||||||
|
|||||||
@ -70,9 +70,8 @@
|
|||||||
3、平台代扣个人所得税,根据公式:
|
3、平台代扣个人所得税,根据公式:
|
||||||
</text>
|
</text>
|
||||||
</view> -->
|
</view> -->
|
||||||
|
|
||||||
<view class="bottom">
|
<view class="bottom">
|
||||||
<van-button bind:click="postDoctorWithdrawal" disabled="{{order_inquiry_ids.length == 0 || sub_btn_disabled || withdrawal_amount == 0}}" custom-style="border-radius: 10rpx;font-size: 30rpx;" block color="#3CC7C0">提取</van-button>
|
<van-button bind:click="postDoctorWithdrawal" disabled="{{order_nos.length == 0 || sub_btn_disabled || withdrawal_amount == 0}}" custom-style="border-radius: 10rpx;font-size: 30rpx;" block color="#3CC7C0">提取</van-button>
|
||||||
<view class="kefu" bindtap="contactKeFu">
|
<view class="kefu" bindtap="contactKeFu">
|
||||||
<text>联系客服</text>
|
<text>联系客服</text>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@ -9,6 +9,7 @@ Page({
|
|||||||
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
|
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
|
||||||
title: '公益问诊设置', //导航栏 中间的标题
|
title: '公益问诊设置', //导航栏 中间的标题
|
||||||
},
|
},
|
||||||
|
is_welfare_cooperation:null,
|
||||||
height: app.globalData.height,
|
height: app.globalData.height,
|
||||||
checked: true,
|
checked: true,
|
||||||
showSetting:false,
|
showSetting:false,
|
||||||
@ -41,8 +42,13 @@ Page({
|
|||||||
sub_visible: false,
|
sub_visible: false,
|
||||||
},
|
},
|
||||||
|
|
||||||
onLoad(){
|
onLoad(options){
|
||||||
|
console.log(options.is_welfare_cooperation)
|
||||||
|
if(options.is_welfare_cooperation){
|
||||||
|
this.setData({
|
||||||
|
is_welfare_cooperation:options.is_welfare_cooperation
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
onShow(){
|
onShow(){
|
||||||
this.getDoctorOpen()
|
this.getDoctorOpen()
|
||||||
@ -62,8 +68,8 @@ Page({
|
|||||||
'info.work_num_day': response.data.work_num_day
|
'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 is_open = this.data.info.is_open;
|
||||||
// let note = this.data.note;
|
// let note = this.data.note;
|
||||||
@ -257,6 +263,7 @@ Page({
|
|||||||
|
|
||||||
onPickerChange(e) {
|
onPickerChange(e) {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
|
|
||||||
const { key } = e.currentTarget.dataset;
|
const { key } = e.currentTarget.dataset;
|
||||||
const { value } = e.detail;
|
const { value } = e.detail;
|
||||||
console.log('picker change:', e.detail);
|
console.log('picker change:', e.detail);
|
||||||
|
|||||||
@ -26,7 +26,7 @@
|
|||||||
<van-cell size="large" custom-style="font-size:32rpx;border-radius: 20rpx;"
|
<van-cell size="large" custom-style="font-size:32rpx;border-radius: 20rpx;"
|
||||||
title="每日接诊数量" is-link
|
title="每日接诊数量" is-link
|
||||||
border="{{true}}"
|
border="{{true}}"
|
||||||
url="/user/pages/yishi/yizhensetupprice/index"
|
url="/user/pages/yishi/yizhensetupprice/index?is_welfare_cooperation={{is_welfare_cooperation}}"
|
||||||
>
|
>
|
||||||
<view class="num" wx:if="{{info.work_num_day!==''}}">
|
<view class="num" wx:if="{{info.work_num_day!==''}}">
|
||||||
{{ info.work_num_day }}
|
{{ info.work_num_day }}
|
||||||
@ -37,7 +37,7 @@
|
|||||||
<van-cell size="large" custom-style="font-size:32rpx;border-radius: 20rpx;"
|
<van-cell size="large" custom-style="font-size:32rpx;border-radius: 20rpx;"
|
||||||
title="问诊单价" is-link
|
title="问诊单价" is-link
|
||||||
border="{{false}}"
|
border="{{false}}"
|
||||||
url="/user/pages/yishi/yizhensetupprice/index"
|
url="/user/pages/yishi/yizhensetupprice/index?is_welfare_cooperation={{is_welfare_cooperation}}"
|
||||||
>
|
>
|
||||||
<view wx:if="{{info.inquiry_price}}">
|
<view wx:if="{{info.inquiry_price}}">
|
||||||
<text class="price">{{ amountText }}</text>
|
<text class="price">{{ amountText }}</text>
|
||||||
|
|||||||
@ -9,6 +9,7 @@ Page({
|
|||||||
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
|
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
|
||||||
title: '设置价格', //导航栏 中间的标题
|
title: '设置价格', //导航栏 中间的标题
|
||||||
},
|
},
|
||||||
|
is_welfare_cooperation:null,
|
||||||
height: app.globalData.height,
|
height: app.globalData.height,
|
||||||
checked: true,
|
checked: true,
|
||||||
open_note: "已开启,可在问诊消息中进行接诊",
|
open_note: "已开启,可在问诊消息中进行接诊",
|
||||||
@ -39,7 +40,14 @@ Page({
|
|||||||
},
|
},
|
||||||
sub_visible: false,
|
sub_visible: false,
|
||||||
},
|
},
|
||||||
|
onLoad(options){
|
||||||
|
console.log(options.is_welfare_cooperation)
|
||||||
|
if(options.is_welfare_cooperation){
|
||||||
|
this.setData({
|
||||||
|
is_welfare_cooperation:options.is_welfare_cooperation
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
onShow(){
|
onShow(){
|
||||||
let params = {};
|
let params = {};
|
||||||
params.inquiry_type = this.data.inquiry_type;//接诊类型(1:专家问诊 2:快速问诊 3:公益问诊 4:问诊购药)
|
params.inquiry_type = this.data.inquiry_type;//接诊类型(1:专家问诊 2:快速问诊 3:公益问诊 4:问诊购药)
|
||||||
@ -199,6 +207,17 @@ Page({
|
|||||||
console.log(e);
|
console.log(e);
|
||||||
const { key } = e.currentTarget.dataset;
|
const { key } = e.currentTarget.dataset;
|
||||||
const { value } = e.detail;
|
const { value } = e.detail;
|
||||||
|
console.log(value);
|
||||||
|
if(this.data.is_welfare_cooperation==='0' && value[0] ==0){
|
||||||
|
wx.showToast({
|
||||||
|
title: `请联系客服开通权限~`,
|
||||||
|
icon:'none'
|
||||||
|
})
|
||||||
|
this.setData({
|
||||||
|
amountVisible:true
|
||||||
|
})
|
||||||
|
return false;
|
||||||
|
}
|
||||||
console.log('picker change:', e.detail);
|
console.log('picker change:', e.detail);
|
||||||
this.setData({
|
this.setData({
|
||||||
[`${key}Visible`]: false,
|
[`${key}Visible`]: false,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user