3.22 更新

This commit is contained in:
zoujiandong 2024-03-22 16:10:22 +08:00
parent ed5f8c5c22
commit 06b0e6254f
23 changed files with 256 additions and 93 deletions

View File

@ -1,5 +1,6 @@
import { TUIStore, StoreName, NAME } from "../index";
import { TUICallKitServer } from "../TUICallService/index";
import { TUICallKitServer,TUIStore, StoreName, NAME } from "../index";
const {
CALL_STATUS,
CALL_ROLE,
@ -44,12 +45,15 @@ Component({
});
if(value=="calling"){
TUICallKitServer.setLogLevel(0);
console.log("呼叫者userId"+this.data.callerUserInfo.userId)
if(this.data.callerUserInfo.userId){
let chat=TUICallKitServer.getTim();
let promise=chat.getUserProfile({
userIDList: [this.data.callerUserInfo.userId]
});
promise.then((imResponse)=> {
console.log("呼叫者信息:");
console.log(imResponse.data[0])
this.setData({
doctorInfo:imResponse.data[0]
})
@ -196,6 +200,7 @@ Component({
},
async detached() {
let that = this;
TUICallKitServer.getTUICallEngineInstance().handleExceptionExit();
TUIStore.unwatch(StoreName.CALL, {
[CALL_STATUS]: this.handleCallStatusChange.bind(that),
[IS_GROUP]: this.handleIsGroupChange.bind(that),

View File

@ -49,18 +49,20 @@ Component({
moved(){
//console.log('moved')
},
detached(){
async detached(){
//await TUICallKitServer.enableFloatWindow(true);
//console.log('detached')
this.reject();
this.hangup()
// this.reject();
// this.hangup()
}
},
pageLifetimes: {
show() {
//TUICallKitServer.enableFloatWindow(true);
},
hide() {
this.hangup()
// this.reject();
// this.hangup()
},
},
@ -85,9 +87,11 @@ Component({
await TUICallKitServer.accept();
}),
async hangup() {
console.log("hangup")
await TUICallKitServer.hangup();
},
async reject() {
console.log("reject")
await TUICallKitServer.reject();
},
async switchCamera() {

View File

@ -87,6 +87,7 @@ class CallManager {
});
}
_handleCallStatusToCalling() {
console.log('_isPageRedirected:'+this._isPageRedirected);
if (this._isPageRedirected)
return;
this._targetPagePath = this.getRoute().route;
@ -103,6 +104,7 @@ class CallManager {
});
}
_handleCallStatusToIdle() {
console.log('idle__isPageRedirected:'+this._isPageRedirected);
if (!this._isPageRedirected)
return;
if (this._targetPagePath === this.getRoute().route) {
@ -115,6 +117,8 @@ class CallManager {
this._isPageRedirected = false;
},
fail: () => {
// this._isPageRedirected = false;
//wx.navigateBack();
console.error(`${PREFIX} navigateBack fail!`);
},
complete: () => { },

View File

@ -1,4 +1,8 @@
//import { TUICallKitServer } from "../../TUICallService/index";
Page({
data: {},
onShow() {},
onHide(){
//TUICallKitServer.getTUICallEngineInstance().handleExceptionExit();
}
});

View File

@ -477,9 +477,11 @@ Component({
let message='';
if(data.inquiry_type==4 || data.inquiry_type==2){
message=`医生接诊后${duration}${number}沟通。超过5分钟未接诊平台会在1个工作日内全额退还费用如使用优惠劵一并退回。`
}else if(data.inquiry_type==1 || data.inquiry_type==3){
}else if((data.inquiry_type==1 && data.inquiry_mode!=2) || data.inquiry_type==3){
message=`医生接诊后${duration}${number}沟通。医生超过24小时未接诊平台会在1个工作日内全额退还费用如使用优惠劵一并退回`
}
}else if(data.inquiry_type==1 && data.inquiry_mode==2){
message=` 医生会在24小时内接诊接诊后24小时内可以和医生按沟通时间进行视频问诊同时可进行图文、语音沟通且无回合限制。医生超过24小时未接诊平台会在24小时后全额退还费用如使用优惠劵一并退回。`
};
this.setData({
message:message
})

16
app.js
View File

@ -3,6 +3,7 @@ import TIM from './miniprogram_npm/tim-wx-sdk/index'
import TIMUploadPlugin from './miniprogram_npm/tim-upload-plugin/index'
import {lastSysMsg} from "/api/msg"
import {
imSign
} from "./api/common"
@ -17,11 +18,7 @@ import {
} from "./utils/config"
const myconfig = hostConfig();
require.async('./TUICallKit/TUICallService/serve/callManager').then(res => {
wx.callManager = new res.CallManager();
}).catch(({mod, errMsg}) => {
console.error(`path: ${mod}, ${errMsg}`)
})
// require.async('./TUICallKit/TUICallService/index').then(res => {
// wx.TUICallKitServer = res.TUICallKitServer;
// }).catch(({mod, errMsg}) => {
@ -99,10 +96,15 @@ App({
wx.$TUIKit.login({
userID: wx.getStorageSync('USER_ID'),
userSig: data
}).then(async res => {
}).then(async (res) => {
console.log("登录成功");
wx.$TUIKit.on(wx.$TUIKitTIM.EVENT.SDK_READY, this.onSDKReady);
console.log('userSig:'+data)
await require.async('./TUICallKit/TUICallService/serve/callManager').then(res => {
wx.callManager = new res.CallManager();
}).catch(({mod, errMsg}) => {
console.error(`path: ${mod}, ${errMsg}`)
})
await wx.callManager.init({
sdkAppID: Number(this.globalData.config.SDKAPPID), // 请填入 sdkAppID
userID: wx.getStorageSync('USER_ID'), // 请填入 userID
@ -110,8 +112,6 @@ App({
globalCallPagePath: "TUICallKit/pages/globalCall/globalCall",
tim: wx.$TUIKit
})
// wx.callManager
callback();
}).catch(function (imError) {
console.warn('login error:', imError); // 登录失败的相关信息

View File

@ -2,7 +2,8 @@
"pages": [
"pages/index/index",
"pages/message/message",
"pages/my/my"
"pages/my/my",
"pages/expertDetail/expertDetail"
],
"subPackages": [
{

View File

@ -43,22 +43,22 @@ Component({
methods: {
goFree:throttle(function(){
app.method.navigateTo({
url: '/pages/expertConsult/expertConsult?type=free',
url: '/patient/pages/expertConsult/expertConsult?type=free',
})
}),
goQuick:throttle(function(){
app.method.navigateTo({
url: '/pages/quickConsult/quickConsult'
url: '/patient/pages/quickConsult/quickConsult'
})
}),
goExpert:throttle(function(){
app.method.navigateTo({
url: '/pages/expertConsult/expertConsult'
url: '/patient/pages/expertConsult/expertConsult'
})
}),
goBuyMedince:throttle(function(){
app.method.navigateTo({
url: '/pages/quickConsult/quickConsult?inquiry_type=4'
url: '/patient/pages/quickConsult/quickConsult?inquiry_type=4'
})
}),
getPrice(){

View File

@ -0,0 +1,86 @@
// pages/expertDetail/expertDetail.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
wx.showLoading({
title: '加载中',
mask:true,
});
const scene = options.scene?decodeURIComponent(options.scene):'';
let doctor_id='';
if(scene){
doctor_id=scene.split('=')[1]
}else{
doctor_id=options.doctor_id
};
console.log(options)
this.setData({
doctor_id:doctor_id
})
wx.redirectTo({
url: '/patient/pages/expertDetail/expertDetail?doctor_id='+doctor_id,
complete:function(){
wx.hideLoading();
}
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})

View File

@ -0,0 +1,6 @@
{
"usingComponents": {
},
"navigationStyle":"custom"
}

View File

@ -0,0 +1 @@
<!--pages/expertDetail/expertDetail.wxml-->

View File

@ -0,0 +1 @@
/* pages/expertDetail/expertDetail.wxss */

View File

@ -22,8 +22,8 @@ Page({
lock:false,
is_online:0,
sort_order:1,
inquiry_type:0,
inquiry_mode:0,
inquiry_type:1,
inquiry_mode:'1,2,6',
navName:"专家问诊",
scrollHeight:300,
sickList:[],

View File

@ -58,19 +58,24 @@ Page({
freePrice:'',
freeAmount:0,
expertAmount:0,
hasFree:false,
hasExpert:false,
recieveStatus:0,
commentList: [],
hasVideoList:false,
totalComment:0,
isFinished:false,
isReceivePatient:false, //是否可接诊
service_content:'【医生填写的服务内容】',
service_process:'【医生填写的服务流程】'
service_process:'【医生填写的服务流程】',
cycle:'',
rounds:''
},
getHeight(){
wx.createSelectorQuery().select('#swiperitem3').boundingClientRect( (rect)=>{
this.setData({
tab3Height:rect.height*2
tab3Height:(rect.height)
})
console.log('元素高度为:', rect.height)
}).exec()
@ -253,7 +258,7 @@ bindchange(e){
}
//如果公益问诊 次数为0 则去看是否有专家问诊
if(type==3 && recieveStatus==0){
console.log('222222222222221');
for (let i = 0; i < arr.length; i++) {
if(arr[i].inquiry_type==1 && arr[i].inquiry_mode==1 && arr[i].is_enable==1){
order_type=1;
@ -288,13 +293,22 @@ bindchange(e){
hasOtherInquiry(arr){
if(arr){
for (var i = 0; i < arr.length; ++i) {
if(arr[i].inquiry_type==1 && arr[i].inquiry_mode==1){
if(arr[i].is_enable==1){
this.setData({
hasExpert:true
})
};
this.setData({
expertAmount:arr[i].work_num_day-arr[i].order_inquiry_count
})
}
if(arr[i].inquiry_type==1 && arr[i].inquiry_mode==2){
if(arr[i].is_enable==1){
this.setData({
canVideo:true
})
};
console.log('videoPrice:'+arr[i].inquiry_price)
this.setData({
videoPrice:arr[i].inquiry_price
})
@ -302,10 +316,13 @@ bindchange(e){
if(arr[i].inquiry_type==1 && arr[i].inquiry_mode==6){
if(arr[i].is_enable==1){
this.setData({
canDiffcult:true
canDiffcult:true,
})
}
this.setData({
rounds: arr[i].times_number,
cycle:arr[i].duration,
yinanPrice:arr[i].inquiry_price
})
}
@ -320,9 +337,13 @@ bindchange(e){
for (var i = 0; i < arr.length; ++i) {
if(arr[i].inquiry_type==1 && arr[i].inquiry_mode==1){
if(arr[i].is_enable==1 ){
this.setData({
hasExpert:true
})
a='2';
}
this.setData({
expertAmount:arr[i].work_num_day-arr[i].order_inquiry_count,
expertInquiry_price: arr[i].inquiry_price
})
@ -334,9 +355,10 @@ bindchange(e){
})
}
this.setData({
yinanPrice: arr[i].inquiry_price
yinanPrice: arr[i].inquiry_price,
rounds: arr[i].times_number,
cycle:arr[i].duration
})
};
if(arr[i].inquiry_type==1 && arr[i].inquiry_mode==2){
if(arr[i].is_enable==1){
@ -352,19 +374,26 @@ bindchange(e){
if(arr[i].inquiry_type==1 && arr[i].inquiry_mode==6){
if(arr[i].is_enable==1 ){
this.setData({
canDiffcult:true
canDiffcult:true,
})
}
console.log(' yinanPrice:'+arr[i].inquiry_price)
this.setData({
yinanPrice:arr[i].inquiry_price
yinanPrice:arr[i].inquiry_price,
rounds: arr[i].times_number,
cycle:arr[i].duration
})
}
if(arr[i].inquiry_type==3){
this.setData({
freePrice:arr[i].inquiry_price
freePrice:arr[i].inquiry_price,
freeAmount:arr[i].work_num_day-arr[i].order_inquiry_count,
})
if(arr[i].is_enable==1){
this.setData({
hasFree:true
})
return '1'
}
@ -372,7 +401,6 @@ bindchange(e){
}
}
console.log('a:'+a)
return a
},
getDeatil(id) {
@ -442,9 +470,9 @@ bindchange(e){
break;
}
}
wx.nextTick(()=>{
setTimeout(()=>{
this.getHeight()
})
},800)
if(this.data.canTuwen){
this.setData({

View File

@ -82,13 +82,25 @@
<view class="typebox" wx:if="{{canTuwen}}">
<view class="name">图文问诊</view>
<view class="price">¥{{current_inquiry_config.inquiry_price}}/次</view>
<view class="jiaprice" wx:if="{{expertInquiry_price && current_inquiry_config.inquiry_type==3 }}">¥{{expertInquiry_price}}/次</view>
<view class="pricebox" wx:if="{{hasExpert && !hasFree}}">
<view class="price">¥{{expertInquiry_price}}/次</view>
</view>
<view class="pricebox" wx:if="{{!hasExpert && hasFree}}">
<view class="price">¥{{freePrice}}/次</view>
</view>
<view class="pricebox" wx:if="{{hasExpert && hasFree}}">
<view class="price" wx:if="{{freeAmount>0}}">¥{{freePrice}}/次</view>
<view class="price" wx:if="{{freeAmount<=0 && expertAmount>0}}">¥{{expertInquiry_price}}/次</view>
<view class="price" wx:if="{{freeAmount<=0 && expertAmount<=0}}">¥{{freePrice}}/次</view>
<view class="jiaprice" wx:if="{{expertInquiry_price && current_inquiry_config.inquiry_type==3 && !(freeAmount<=0 && expertAmount>0)}}">¥{{expertInquiry_price}}/次</view>
</view>
<!-- <view class="price">¥{{current_inquiry_config.inquiry_price}}/次</view>
<view class="jiaprice" wx:if="{{expertInquiry_price && current_inquiry_config.inquiry_type==3 }}">¥{{expertInquiry_price}}/次</view> -->
</view>
<view class="typebox disable" wx:else>
<view class="name">图文问诊</view>
<view class="price" wx:if="{{expertInquiry_price}}">¥{{expertInquiry_price}}/次</view>
<!-- <view class="jiaprice" wx:if="{{expertInquiry_price}}">¥{{expertInquiry_price}}/次</view> -->
<view class="price" wx:if="{{!(expertInquiry_price && freePrice)}}">暂未开通</view>
</view>
</view>
@ -122,7 +134,7 @@
</view>
</view>
<swiper current="{{currentData}}" class="swiperbox" bindchange="bindchange" style="height:{{currentData==0?'350rpx':currentData==1?'700rpx':tab3Height+'rpx'}}">
<swiper current="{{currentData}}" class="swiperbox" bindchange="bindchange" style="height:{{currentData==0?'300rpx':currentData==1?'690rpx':tab3Height+'px'}}">
<swiper-item >
<view class="swiper-item">
@ -132,19 +144,19 @@
<view class="title">通过文字、图片、语音进行咨询</view>
<view class="tipbox {{!canTuwen?'active':''}}">
<view class="tipmsg">
<view class="circle"></view>
<view class="circle tuwen"></view>
<view class="msg">可通过文字、图片、语音等形式和医生进行沟通;</view>
</view>
<view class="tipmsg">
<view class="circle"></view>
<view class="circle tuwen"></view>
<view class="msg">医生接诊后24小时内10个沟通回合</view>
</view>
<view class="tipmsg">
<view class="circle"></view>
<view class="circle tuwen"></view>
<view class="msg">医生未接诊平台24小时内自动退款</view>
</view>
<view class="tipmsg">
<view class="circle"></view>
<view class="circle tuwen"></view>
<view class="msg">医生未回复,可联系平台客服协商进行退款。</view>
</view>
</view>
@ -159,35 +171,35 @@
<view class="title">通过视频面对面进行咨询</view>
<view class="tipbox {{!canVideo?'active':''}}">
<view class="tipmsg">
<view class="circle"></view>
<view class="circle video"></view>
<view class="msg">医生接诊后,主动和就诊人预约视频时间;</view>
</view>
<view class="tipmsg ">
<view class="circle"></view>
<view class="circle video"></view>
<view class="msg">若预约时间因故需要改变,可与医生图文协商时间;</view>
</view>
<view class="tipmsg">
<view class="circle"></view>
<view class="circle video"></view>
<view class="msg">视频交流服务时长一般为5-10分钟</view>
</view>
<view class="tipmsg">
<view class="circle"></view>
<view class="circle video"></view>
<view class="msg">医生接诊后48小时内可以通过文字、图片、语音等形式和医生不限制沟通回合数</view>
</view>
<view class="tipmsg">
<view class="circle"></view>
<view class="circle video"></view>
<view class="msg">医生未接诊平台24小时内自动退款</view>
</view>
<view class="tipmsg">
<view class="circle"></view>
<view class="circle video"></view>
<view class="msg">医生未回复或未进行视频,可联系平台客服协商进行退款;</view>
</view>
<view class="tipmsg">
<view class="circle"></view>
<view class="circle video"></view>
<view class="msg">如因您个人原因(忘记时间、迟到、中途断开未在进入视频等情况),咨询费用可能将无法退回,请准时接收医生视频请求;</view>
</view>
<view class="tipmsg">
<view class="circle"></view>
<view class="circle video"></view>
<view class="msg">视频不支持回放。</view>
</view>
</view>
@ -202,27 +214,29 @@
<view class="title">通过文字、图片、语音进行咨询</view>
<view class="tipbox {{!canDiffcult?'active':''}}">
<view class="tipmsg">
<view class="circle"></view>
<view class="circle yinan"></view>
<view class="msg">{{service_content}}</view>
</view>
<view class="tipmsg">
<view class="circle"></view>
<view class="circle yinan"></view>
<view class="msg">{{service_process}}</view>
</view>
<view class="tipmsg">
<view class="circle"></view>
<view class="circle yinan"></view>
<view class="msg">可通过文字、图片、语音等形式和医生进行沟通;</view>
</view>
<view class="tipmsg">
<view class="circle"></view>
<view class="msg">医生接诊后【医生选择的服务周期】内【医生选择的服务次数】沟通回合;</view>
<view class="circle yinan"></view>
<view class="msg" wx:if="{{canDiffcult}}">医生接诊后{{cycle}}天内{{(rounds!='' && rounds==0)?'不限':rounds+"个"}}沟通回合;</view>
<view class="msg" wx:else>医生接诊后{{cycle?cycle+'天':'【医生选择的服务周期】'}}内{{(rounds==='0' )?'不限':(rounds && rounds!==0)?rounds+"个":'【医生选择的服务次数】'}}沟通回合;</view>
</view>
<view class="tipmsg">
<view class="circle"></view>
<view class="circle yinan"></view>
<view class="msg">医生未接诊平台24小时内自动退款</view>
</view>
<view class="tipmsg">
<view class="circle"></view>
<view class="circle yinan"></view>
<view class="msg">医生未回复或医生服务不满意,可联系平台客服协商进行退款。</view>
</view>
</view>

View File

@ -604,18 +604,22 @@ border-radius: 50%;
white-space: pre-wrap;
color: rgba(0,0,0,0.65);
}
.swiperbox .swiper-item:nth-child(1) .circle{
background: #52C41A;
}
.swiperbox .swiper-item:last-child .circle{
background: #FF9C00;
}
.tipbox.active .tipmsg .msg{
color: rgba(0,0,0,0.35);
}
.swiperbox .tipbox.active .circle{
background-color: rgba(0,0,0,0.35);
}
.tipbox .tipmsg .circle.tuwen{
background: #3BB5FE;
}
.tipbox .tipmsg .circle.video{
background: #52C41A;
}
.tipbox .tipmsg .circle.yinan{
background: #FF9C00;
}
.itembg{
height:100%;
width:100%;

View File

@ -22,6 +22,7 @@ Page({
},
goBack(){
let {fromType}=this.data;
console.log(fromType);
if(app.globalData.origion==1){
wx.reLaunch({
url: '/pages/index/index',
@ -66,13 +67,13 @@ Page({
goExpress:throttle(function(event){
let id=event.currentTarget.dataset.id;
app.method.navigateTo({
url: '/pages/expressDetail/expressDetail?logistics_no='+id,
url: '/patient/pages/expressDetail/expressDetail?logistics_no='+id,
})
}),
goExpert:throttle(function(){
let id=this.data.user_doctor.doctor_id;
app.method.navigateTo({
url: '/pages/expertDetail/expertDetail?doctor_id='+id,
url: '/patient/pages/expertDetail/expertDetail?doctor_id='+id,
})
}),
handleProductDetail(flag=false){
@ -137,7 +138,7 @@ copy(event){
goPay:throttle(function(){
let {order_product_id,order_product_no}=this.data.order_product;
app.method.navigateTo({
url: '/patient/pages/payOrder/payOrder?inquiry_no='+ order_product_no +"&order_product_id="+order_product_id+"&order_type=2&fromType="+encodeURIComponent('pages/medinceOrder/medinceOrder')
url: '/patient/pages/payOrder/payOrder?inquiry_no='+ order_product_no +"&order_product_id="+order_product_id+"&order_type=2&fromType="+encodeURIComponent('patient/pages/medinceOrder/medinceOrder')
})
}),
handelDelProduct(){

View File

@ -62,7 +62,7 @@ Page({
btnLock:false
});
this.setData({
fromType:encodeURIComponent('pages/medinceOrder/medinceOrder')
fromType:encodeURIComponent('patient/pages/medinceOrder/medinceOrder')
})
// if(fromType){
// this.setData({

View File

@ -81,17 +81,17 @@ Page({
if(link_type==1){
url= '/TUIService/pages/index?currentConversationID='+link_params.doctor_user_id+'&order_inquiry_id='+link_params.order_inquiry_id+'&inquiry_type='+link_params.inquiry_type;
}else if(link_type==7){
url='/pages/myWelfare/myWelfare'
url='/patient/pages/myWelfare/myWelfare'
}else if(link_type==8){
url='/pages/medinceOrder/medinceOrder'
url='/patient/pages/medinceOrder/medinceOrder'
}else if(link_type==9){
url='/pages/medinceOrder/medinceOrder'
url='/patient/pages/medinceOrder/medinceOrder'
}else if(link_type==10){
url='/pages/orderDetail/orderDetail?order_inquiry_id='+link_params.order_inquiry_id
url='/patient/pages/orderDetail/orderDetail?order_inquiry_id='+link_params.order_inquiry_id
}else if(link_type==12){
}else if(link_type==13){
url='/pages/prescriptDetail/prescriptDetail?order_prescription_id='+link_params.order_prescription_id
url='/patient/pages/prescriptDetail/prescriptDetail?order_prescription_id='+link_params.order_prescription_id
};
app.method.navigateTo({
url: url,
@ -99,7 +99,7 @@ Page({
},
goMishu(){
app.method.navigateTo({
url: '/pages/gandansecretary/gandansecretary',
url: '/patient/pages/gandansecretary/gandansecretary',
})
},
/**

View File

@ -75,7 +75,9 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow() {
this.setData({
img_host:app.hostConfig().imghost
});
},
/**

View File

@ -23,12 +23,12 @@
<view class="hospital"><text class="doctor_title" wx:if="{{item.doctor_title_name}}">{{item.doctor_title_name}}</text><text>{{item.department_custom_name}}</text></view>
<view class="hospital">{{item.hospital.hospital_name}}</view>
<view class="goodjob" wx:if="{{item.be_good_at}}">擅长:{{item.be_good_at}}</view>
<!-- <view class="diseaseType" wx:for="{{item.doctor_expertise}}" wx:for-item="cell" wx:key="expertise_id">{{cell.expertise_name}}</view> -->
<!-- <view class="detail">
<view>好评率: <text>{{item.praise_rate}} </text> </view>
<view>服务患者数: <text>{{item.served_patients_num}}</text></view>
<view>平均回复: <text> {{item.avg_response_time}}</text></view>
</view> -->
<view class="diseaseType" wx:for="{{item.doctor_expertise}}" wx:for-item="cell" wx:key="index">{{cell.expertise_name}}</view>
<view class="detail" wx:if="{{item.is_display_score}}">
<view>评分: <text wx:if="{{item.praise_rate>0}}">{{item.praise_rate}} </text><text wx:else>暂无</text></view>
<view>问诊量: <text wx:if="{{item.served_patients_num>0}}">{{item.served_patients_num}}</text><text wx:else>暂无</text></view>
<view>平均回复: <text wx:if="{{item.avg_response_time>0}}"> {{moduleFilter.formatReply(item.avg_response_time)}}h</text><text wx:else>暂无</text></view>
</view>
<view class="consultbox">
<view class="price {{(itemName.inquiry_mode==2 && moduleFilter.hasTuWen(item.doctor_inquiry_config))?'videocell':''}}" wx:for="{{item.doctor_inquiry_config}}" wx:for-item="itemName" wx:if="{{((itemName.inquiry_type==1 && !(moduleFilter.hasFree(item.doctor_inquiry_config) && itemName.inquiry_mode==1 && itemName.is_enable==1) && ((itemName.inquiry_mode==1 && itemName.is_enable==1) || itemName.inquiry_mode==2) ) || itemName.inquiry_type==3 && itemName.is_enable==1)}}">
<view class="pricecell" wx:if="{{itemName.inquiry_type==3 }}">图文问诊:<text>¥{{itemName.inquiry_price}}</text>

View File

@ -372,13 +372,13 @@ Page({
},
goSugar:throttle(function(){
app.method.navigateTo({
url: '/pages/sugarDetail/sugarDetail',
url: '/sugarCheck/pages/sugarDetail/sugarDetail',
})
}),
goExpert:throttle(function(){
let id=this.data.user_doctor.doctor_id;
app.method.navigateTo({
url: '/pages/expertDetail/expertDetail?doctor_id='+id,
url: '/patient/pages/expertDetail/expertDetail?doctor_id='+id,
})
}),
handleDetectionDetail(flag=false){
@ -508,7 +508,7 @@ copy(event){
goPay:throttle(function(){
let {order_detection_id,detection_no}=this.data.order;
app.method.navigateTo({
url: '/pages/payOrder/payOrder?inquiry_no='+ detection_no +"&order_detection_id="+order_detection_id+"&order_type=3&fromType="+encodeURIComponent('/sugarCheck/pages/checkOrder/checkOrder')
url: '/patient/pages/payOrder/payOrder?inquiry_no='+ detection_no +"&order_detection_id="+order_detection_id+"&order_type=3&fromType="+encodeURIComponent('/sugarCheck/pages/checkOrder/checkOrder')
})
}),
handelDelProduct(){
@ -533,7 +533,7 @@ handelDelProduct(){
goPrescriptionDetail:throttle(function(event){
let id=event.currentTarget.dataset.id;
app.method.navigateTo({
url: '/pages/prescriptDetail/prescriptDetail?order_prescription_id='+id,
url: '/patient/pages/prescriptDetail/prescriptDetail?order_prescription_id='+id,
})
}),
handelfllowDoctor(){

View File

@ -114,7 +114,7 @@ Page({
if(this.data.messageTitle=="当前患者存在进行中检测订单"){
let {order_detection_id}=this.data;
app.method.navigateTo({
url: '/pages/checkOrderDetail/checkOrderDetail?order_detection_id='+ order_detection_id,
url: '/sugarCheck/pages/checkOrderDetail/checkOrderDetail?order_detection_id='+ order_detection_id,
})
}
},
@ -178,7 +178,7 @@ Page({
goAgree(){
let {detection_project_id}=this.data;
app.method.navigateTo({
url:'/pages/agreement/agreement?detection_project_id='+detection_project_id
url:'/patient/pages/agreement/agreement?detection_project_id='+detection_project_id
})
},
handelGetProject(){
@ -304,7 +304,7 @@ Page({
}).then(data=>{
if(data.status==1){
app.method.navigateTo({
url: '/pages/payOrder/payOrder?&inquiry_no=' + data.data.inquiry_no + "&order_detection_id="+ data.data.order_no+"&order_type=3&fromType="+encodeURIComponent('pages/checkOrder/checkOrder')
url: '/patient/pages/payOrder/payOrder?&inquiry_no=' + data.data.inquiry_no + "&order_detection_id="+ data.data.order_no+"&order_type=3&fromType="+encodeURIComponent('sugarCheck/pages/checkOrder/checkOrder')
})
}else if(data.status==2){
this.setData({