3.22 更新
This commit is contained in:
parent
ed5f8c5c22
commit
06b0e6254f
@ -1,5 +1,6 @@
|
|||||||
import { TUIStore, StoreName, NAME } from "../index";
|
|
||||||
import { TUICallKitServer } from "../TUICallService/index";
|
import { TUICallKitServer,TUIStore, StoreName, NAME } from "../index";
|
||||||
|
|
||||||
const {
|
const {
|
||||||
CALL_STATUS,
|
CALL_STATUS,
|
||||||
CALL_ROLE,
|
CALL_ROLE,
|
||||||
@ -44,12 +45,15 @@ Component({
|
|||||||
});
|
});
|
||||||
if(value=="calling"){
|
if(value=="calling"){
|
||||||
TUICallKitServer.setLogLevel(0);
|
TUICallKitServer.setLogLevel(0);
|
||||||
|
console.log("呼叫者userId:"+this.data.callerUserInfo.userId)
|
||||||
if(this.data.callerUserInfo.userId){
|
if(this.data.callerUserInfo.userId){
|
||||||
let chat=TUICallKitServer.getTim();
|
let chat=TUICallKitServer.getTim();
|
||||||
let promise=chat.getUserProfile({
|
let promise=chat.getUserProfile({
|
||||||
userIDList: [this.data.callerUserInfo.userId]
|
userIDList: [this.data.callerUserInfo.userId]
|
||||||
});
|
});
|
||||||
promise.then((imResponse)=> {
|
promise.then((imResponse)=> {
|
||||||
|
console.log("呼叫者信息:");
|
||||||
|
console.log(imResponse.data[0])
|
||||||
this.setData({
|
this.setData({
|
||||||
doctorInfo:imResponse.data[0]
|
doctorInfo:imResponse.data[0]
|
||||||
})
|
})
|
||||||
@ -196,6 +200,7 @@ Component({
|
|||||||
},
|
},
|
||||||
async detached() {
|
async detached() {
|
||||||
let that = this;
|
let that = this;
|
||||||
|
TUICallKitServer.getTUICallEngineInstance().handleExceptionExit();
|
||||||
TUIStore.unwatch(StoreName.CALL, {
|
TUIStore.unwatch(StoreName.CALL, {
|
||||||
[CALL_STATUS]: this.handleCallStatusChange.bind(that),
|
[CALL_STATUS]: this.handleCallStatusChange.bind(that),
|
||||||
[IS_GROUP]: this.handleIsGroupChange.bind(that),
|
[IS_GROUP]: this.handleIsGroupChange.bind(that),
|
||||||
|
|||||||
@ -49,18 +49,20 @@ Component({
|
|||||||
moved(){
|
moved(){
|
||||||
//console.log('moved')
|
//console.log('moved')
|
||||||
},
|
},
|
||||||
detached(){
|
async detached(){
|
||||||
|
//await TUICallKitServer.enableFloatWindow(true);
|
||||||
//console.log('detached')
|
//console.log('detached')
|
||||||
this.reject();
|
// this.reject();
|
||||||
this.hangup()
|
// this.hangup()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
pageLifetimes: {
|
pageLifetimes: {
|
||||||
show() {
|
show() {
|
||||||
|
//TUICallKitServer.enableFloatWindow(true);
|
||||||
},
|
},
|
||||||
hide() {
|
hide() {
|
||||||
this.hangup()
|
// this.reject();
|
||||||
|
// this.hangup()
|
||||||
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -85,9 +87,11 @@ Component({
|
|||||||
await TUICallKitServer.accept();
|
await TUICallKitServer.accept();
|
||||||
}),
|
}),
|
||||||
async hangup() {
|
async hangup() {
|
||||||
|
console.log("hangup")
|
||||||
await TUICallKitServer.hangup();
|
await TUICallKitServer.hangup();
|
||||||
},
|
},
|
||||||
async reject() {
|
async reject() {
|
||||||
|
console.log("reject")
|
||||||
await TUICallKitServer.reject();
|
await TUICallKitServer.reject();
|
||||||
},
|
},
|
||||||
async switchCamera() {
|
async switchCamera() {
|
||||||
|
|||||||
@ -87,6 +87,7 @@ class CallManager {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
_handleCallStatusToCalling() {
|
_handleCallStatusToCalling() {
|
||||||
|
console.log('_isPageRedirected:'+this._isPageRedirected);
|
||||||
if (this._isPageRedirected)
|
if (this._isPageRedirected)
|
||||||
return;
|
return;
|
||||||
this._targetPagePath = this.getRoute().route;
|
this._targetPagePath = this.getRoute().route;
|
||||||
@ -103,6 +104,7 @@ class CallManager {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
_handleCallStatusToIdle() {
|
_handleCallStatusToIdle() {
|
||||||
|
console.log('idle__isPageRedirected:'+this._isPageRedirected);
|
||||||
if (!this._isPageRedirected)
|
if (!this._isPageRedirected)
|
||||||
return;
|
return;
|
||||||
if (this._targetPagePath === this.getRoute().route) {
|
if (this._targetPagePath === this.getRoute().route) {
|
||||||
@ -115,6 +117,8 @@ class CallManager {
|
|||||||
this._isPageRedirected = false;
|
this._isPageRedirected = false;
|
||||||
},
|
},
|
||||||
fail: () => {
|
fail: () => {
|
||||||
|
// this._isPageRedirected = false;
|
||||||
|
//wx.navigateBack();
|
||||||
console.error(`${PREFIX} navigateBack fail!`);
|
console.error(`${PREFIX} navigateBack fail!`);
|
||||||
},
|
},
|
||||||
complete: () => { },
|
complete: () => { },
|
||||||
|
|||||||
@ -1,4 +1,8 @@
|
|||||||
|
//import { TUICallKitServer } from "../../TUICallService/index";
|
||||||
Page({
|
Page({
|
||||||
data: {},
|
data: {},
|
||||||
onShow() {},
|
onShow() {},
|
||||||
|
onHide(){
|
||||||
|
//TUICallKitServer.getTUICallEngineInstance().handleExceptionExit();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@ -477,9 +477,11 @@ Component({
|
|||||||
let message='';
|
let message='';
|
||||||
if(data.inquiry_type==4 || data.inquiry_type==2){
|
if(data.inquiry_type==4 || data.inquiry_type==2){
|
||||||
message=`医生接诊后${duration}${number}沟通。超过5分钟未接诊,平台会在1个工作日内全额退还费用,如使用优惠劵,一并退回。`
|
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个工作日内全额退还费用,如使用优惠劵,一并退回`
|
message=`医生接诊后${duration}${number}沟通。医生超过24小时未接诊,平台会在1个工作日内全额退还费用,如使用优惠劵,一并退回`
|
||||||
}
|
}else if(data.inquiry_type==1 && data.inquiry_mode==2){
|
||||||
|
message=` 医生会在24小时内接诊,接诊后24小时内,可以和医生按沟通时间进行视频问诊,同时可进行图文、语音沟通且无回合限制。医生超过24小时未接诊,平台会在24小时后全额退还费用,如使用优惠劵,一并退回。`
|
||||||
|
};
|
||||||
this.setData({
|
this.setData({
|
||||||
message:message
|
message:message
|
||||||
})
|
})
|
||||||
|
|||||||
18
app.js
18
app.js
@ -3,6 +3,7 @@ import TIM from './miniprogram_npm/tim-wx-sdk/index'
|
|||||||
|
|
||||||
import TIMUploadPlugin from './miniprogram_npm/tim-upload-plugin/index'
|
import TIMUploadPlugin from './miniprogram_npm/tim-upload-plugin/index'
|
||||||
import {lastSysMsg} from "/api/msg"
|
import {lastSysMsg} from "/api/msg"
|
||||||
|
|
||||||
import {
|
import {
|
||||||
imSign
|
imSign
|
||||||
} from "./api/common"
|
} from "./api/common"
|
||||||
@ -17,11 +18,7 @@ import {
|
|||||||
} from "./utils/config"
|
} from "./utils/config"
|
||||||
const myconfig = hostConfig();
|
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 => {
|
// require.async('./TUICallKit/TUICallService/index').then(res => {
|
||||||
// wx.TUICallKitServer = res.TUICallKitServer;
|
// wx.TUICallKitServer = res.TUICallKitServer;
|
||||||
// }).catch(({mod, errMsg}) => {
|
// }).catch(({mod, errMsg}) => {
|
||||||
@ -99,19 +96,22 @@ App({
|
|||||||
wx.$TUIKit.login({
|
wx.$TUIKit.login({
|
||||||
userID: wx.getStorageSync('USER_ID'),
|
userID: wx.getStorageSync('USER_ID'),
|
||||||
userSig: data
|
userSig: data
|
||||||
}).then(async res => {
|
}).then(async (res) => {
|
||||||
console.log("登录成功");
|
console.log("登录成功");
|
||||||
wx.$TUIKit.on(wx.$TUIKitTIM.EVENT.SDK_READY, this.onSDKReady);
|
wx.$TUIKit.on(wx.$TUIKitTIM.EVENT.SDK_READY, this.onSDKReady);
|
||||||
console.log('userSig:'+data)
|
console.log('userSig:'+data)
|
||||||
await wx.callManager.init({
|
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
|
sdkAppID: Number(this.globalData.config.SDKAPPID), // 请填入 sdkAppID
|
||||||
userID: wx.getStorageSync('USER_ID'), // 请填入 userID
|
userID: wx.getStorageSync('USER_ID'), // 请填入 userID
|
||||||
userSig: data, // 请填入 userSig
|
userSig: data, // 请填入 userSig
|
||||||
globalCallPagePath: "TUICallKit/pages/globalCall/globalCall",
|
globalCallPagePath: "TUICallKit/pages/globalCall/globalCall",
|
||||||
tim: wx.$TUIKit
|
tim: wx.$TUIKit
|
||||||
})
|
})
|
||||||
|
|
||||||
// wx.callManager
|
|
||||||
callback();
|
callback();
|
||||||
}).catch(function (imError) {
|
}).catch(function (imError) {
|
||||||
console.warn('login error:', imError); // 登录失败的相关信息
|
console.warn('login error:', imError); // 登录失败的相关信息
|
||||||
|
|||||||
3
app.json
3
app.json
@ -2,7 +2,8 @@
|
|||||||
"pages": [
|
"pages": [
|
||||||
"pages/index/index",
|
"pages/index/index",
|
||||||
"pages/message/message",
|
"pages/message/message",
|
||||||
"pages/my/my"
|
"pages/my/my",
|
||||||
|
"pages/expertDetail/expertDetail"
|
||||||
],
|
],
|
||||||
"subPackages": [
|
"subPackages": [
|
||||||
{
|
{
|
||||||
|
|||||||
@ -43,22 +43,22 @@ Component({
|
|||||||
methods: {
|
methods: {
|
||||||
goFree:throttle(function(){
|
goFree:throttle(function(){
|
||||||
app.method.navigateTo({
|
app.method.navigateTo({
|
||||||
url: '/pages/expertConsult/expertConsult?type=free',
|
url: '/patient/pages/expertConsult/expertConsult?type=free',
|
||||||
})
|
})
|
||||||
}),
|
}),
|
||||||
goQuick:throttle(function(){
|
goQuick:throttle(function(){
|
||||||
app.method.navigateTo({
|
app.method.navigateTo({
|
||||||
url: '/pages/quickConsult/quickConsult'
|
url: '/patient/pages/quickConsult/quickConsult'
|
||||||
})
|
})
|
||||||
}),
|
}),
|
||||||
goExpert:throttle(function(){
|
goExpert:throttle(function(){
|
||||||
app.method.navigateTo({
|
app.method.navigateTo({
|
||||||
url: '/pages/expertConsult/expertConsult'
|
url: '/patient/pages/expertConsult/expertConsult'
|
||||||
})
|
})
|
||||||
}),
|
}),
|
||||||
goBuyMedince:throttle(function(){
|
goBuyMedince:throttle(function(){
|
||||||
app.method.navigateTo({
|
app.method.navigateTo({
|
||||||
url: '/pages/quickConsult/quickConsult?inquiry_type=4'
|
url: '/patient/pages/quickConsult/quickConsult?inquiry_type=4'
|
||||||
})
|
})
|
||||||
}),
|
}),
|
||||||
getPrice(){
|
getPrice(){
|
||||||
|
|||||||
86
pages/expertDetail/expertDetail.js
Normal file
86
pages/expertDetail/expertDetail.js
Normal 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() {
|
||||||
|
|
||||||
|
}
|
||||||
|
})
|
||||||
6
pages/expertDetail/expertDetail.json
Normal file
6
pages/expertDetail/expertDetail.json
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"usingComponents": {
|
||||||
|
|
||||||
|
},
|
||||||
|
"navigationStyle":"custom"
|
||||||
|
}
|
||||||
1
pages/expertDetail/expertDetail.wxml
Normal file
1
pages/expertDetail/expertDetail.wxml
Normal file
@ -0,0 +1 @@
|
|||||||
|
<!--pages/expertDetail/expertDetail.wxml-->
|
||||||
1
pages/expertDetail/expertDetail.wxss
Normal file
1
pages/expertDetail/expertDetail.wxss
Normal file
@ -0,0 +1 @@
|
|||||||
|
/* pages/expertDetail/expertDetail.wxss */
|
||||||
@ -22,8 +22,8 @@ Page({
|
|||||||
lock:false,
|
lock:false,
|
||||||
is_online:0,
|
is_online:0,
|
||||||
sort_order:1,
|
sort_order:1,
|
||||||
inquiry_type:0,
|
inquiry_type:1,
|
||||||
inquiry_mode:0,
|
inquiry_mode:'1,2,6',
|
||||||
navName:"专家问诊",
|
navName:"专家问诊",
|
||||||
scrollHeight:300,
|
scrollHeight:300,
|
||||||
sickList:[],
|
sickList:[],
|
||||||
|
|||||||
@ -58,19 +58,24 @@ Page({
|
|||||||
freePrice:'',
|
freePrice:'',
|
||||||
freeAmount:0,
|
freeAmount:0,
|
||||||
expertAmount:0,
|
expertAmount:0,
|
||||||
|
hasFree:false,
|
||||||
|
hasExpert:false,
|
||||||
recieveStatus:0,
|
recieveStatus:0,
|
||||||
commentList: [],
|
commentList: [],
|
||||||
hasVideoList:false,
|
hasVideoList:false,
|
||||||
|
|
||||||
totalComment:0,
|
totalComment:0,
|
||||||
isFinished:false,
|
isFinished:false,
|
||||||
isReceivePatient:false, //是否可接诊
|
isReceivePatient:false, //是否可接诊
|
||||||
service_content:'【医生填写的服务内容】',
|
service_content:'【医生填写的服务内容】',
|
||||||
service_process:'【医生填写的服务流程】'
|
service_process:'【医生填写的服务流程】',
|
||||||
|
cycle:'',
|
||||||
|
rounds:''
|
||||||
},
|
},
|
||||||
getHeight(){
|
getHeight(){
|
||||||
wx.createSelectorQuery().select('#swiperitem3').boundingClientRect( (rect)=>{
|
wx.createSelectorQuery().select('#swiperitem3').boundingClientRect( (rect)=>{
|
||||||
this.setData({
|
this.setData({
|
||||||
tab3Height:rect.height*2
|
tab3Height:(rect.height)
|
||||||
})
|
})
|
||||||
console.log('元素高度为:', rect.height)
|
console.log('元素高度为:', rect.height)
|
||||||
}).exec()
|
}).exec()
|
||||||
@ -253,7 +258,7 @@ bindchange(e){
|
|||||||
}
|
}
|
||||||
//如果公益问诊 次数为0 则去看是否有专家问诊
|
//如果公益问诊 次数为0 则去看是否有专家问诊
|
||||||
if(type==3 && recieveStatus==0){
|
if(type==3 && recieveStatus==0){
|
||||||
console.log('222222222222221');
|
|
||||||
for (let i = 0; i < arr.length; i++) {
|
for (let i = 0; i < arr.length; i++) {
|
||||||
if(arr[i].inquiry_type==1 && arr[i].inquiry_mode==1 && arr[i].is_enable==1){
|
if(arr[i].inquiry_type==1 && arr[i].inquiry_mode==1 && arr[i].is_enable==1){
|
||||||
order_type=1;
|
order_type=1;
|
||||||
@ -288,13 +293,22 @@ bindchange(e){
|
|||||||
hasOtherInquiry(arr){
|
hasOtherInquiry(arr){
|
||||||
if(arr){
|
if(arr){
|
||||||
for (var i = 0; i < arr.length; ++i) {
|
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].inquiry_type==1 && arr[i].inquiry_mode==2){
|
||||||
if(arr[i].is_enable==1){
|
if(arr[i].is_enable==1){
|
||||||
this.setData({
|
this.setData({
|
||||||
canVideo:true
|
canVideo:true
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
console.log('videoPrice:'+arr[i].inquiry_price)
|
|
||||||
this.setData({
|
this.setData({
|
||||||
videoPrice:arr[i].inquiry_price
|
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].inquiry_type==1 && arr[i].inquiry_mode==6){
|
||||||
if(arr[i].is_enable==1){
|
if(arr[i].is_enable==1){
|
||||||
this.setData({
|
this.setData({
|
||||||
canDiffcult:true
|
canDiffcult:true,
|
||||||
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
this.setData({
|
this.setData({
|
||||||
|
rounds: arr[i].times_number,
|
||||||
|
cycle:arr[i].duration,
|
||||||
yinanPrice:arr[i].inquiry_price
|
yinanPrice:arr[i].inquiry_price
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -320,9 +337,13 @@ bindchange(e){
|
|||||||
for (var i = 0; i < arr.length; ++i) {
|
for (var i = 0; i < arr.length; ++i) {
|
||||||
if(arr[i].inquiry_type==1 && arr[i].inquiry_mode==1){
|
if(arr[i].inquiry_type==1 && arr[i].inquiry_mode==1){
|
||||||
if(arr[i].is_enable==1 ){
|
if(arr[i].is_enable==1 ){
|
||||||
|
this.setData({
|
||||||
|
hasExpert:true
|
||||||
|
})
|
||||||
a='2';
|
a='2';
|
||||||
}
|
}
|
||||||
this.setData({
|
this.setData({
|
||||||
|
expertAmount:arr[i].work_num_day-arr[i].order_inquiry_count,
|
||||||
expertInquiry_price: arr[i].inquiry_price
|
expertInquiry_price: arr[i].inquiry_price
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -334,9 +355,10 @@ bindchange(e){
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
this.setData({
|
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].inquiry_type==1 && arr[i].inquiry_mode==2){
|
||||||
if(arr[i].is_enable==1){
|
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].inquiry_type==1 && arr[i].inquiry_mode==6){
|
||||||
if(arr[i].is_enable==1 ){
|
if(arr[i].is_enable==1 ){
|
||||||
this.setData({
|
this.setData({
|
||||||
canDiffcult:true
|
canDiffcult:true,
|
||||||
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
console.log(' yinanPrice:'+arr[i].inquiry_price)
|
console.log(' yinanPrice:'+arr[i].inquiry_price)
|
||||||
this.setData({
|
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){
|
if(arr[i].inquiry_type==3){
|
||||||
this.setData({
|
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){
|
if(arr[i].is_enable==1){
|
||||||
|
this.setData({
|
||||||
|
hasFree:true
|
||||||
|
})
|
||||||
return '1'
|
return '1'
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -372,7 +401,6 @@ bindchange(e){
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
console.log('a:'+a)
|
|
||||||
return a
|
return a
|
||||||
},
|
},
|
||||||
getDeatil(id) {
|
getDeatil(id) {
|
||||||
@ -442,9 +470,9 @@ bindchange(e){
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
wx.nextTick(()=>{
|
setTimeout(()=>{
|
||||||
this.getHeight()
|
this.getHeight()
|
||||||
})
|
},800)
|
||||||
|
|
||||||
if(this.data.canTuwen){
|
if(this.data.canTuwen){
|
||||||
this.setData({
|
this.setData({
|
||||||
|
|||||||
@ -82,13 +82,25 @@
|
|||||||
<view class="typebox" wx:if="{{canTuwen}}">
|
<view class="typebox" wx:if="{{canTuwen}}">
|
||||||
|
|
||||||
<view class="name">图文问诊</view>
|
<view class="name">图文问诊</view>
|
||||||
<view class="price">¥{{current_inquiry_config.inquiry_price}}/次</view>
|
<view class="pricebox" wx:if="{{hasExpert && !hasFree}}">
|
||||||
<view class="jiaprice" wx:if="{{expertInquiry_price && current_inquiry_config.inquiry_type==3 }}">¥{{expertInquiry_price}}/次</view>
|
<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>
|
||||||
<view class="typebox disable" wx:else>
|
<view class="typebox disable" wx:else>
|
||||||
<view class="name">图文问诊</view>
|
<view class="name">图文问诊</view>
|
||||||
<view class="price" wx:if="{{expertInquiry_price}}">¥{{expertInquiry_price}}/次</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 class="price" wx:if="{{!(expertInquiry_price && freePrice)}}">暂未开通</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -122,7 +134,7 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
</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 >
|
<swiper-item >
|
||||||
|
|
||||||
<view class="swiper-item">
|
<view class="swiper-item">
|
||||||
@ -132,19 +144,19 @@
|
|||||||
<view class="title">通过文字、图片、语音进行咨询</view>
|
<view class="title">通过文字、图片、语音进行咨询</view>
|
||||||
<view class="tipbox {{!canTuwen?'active':''}}">
|
<view class="tipbox {{!canTuwen?'active':''}}">
|
||||||
<view class="tipmsg">
|
<view class="tipmsg">
|
||||||
<view class="circle"></view>
|
<view class="circle tuwen"></view>
|
||||||
<view class="msg">可通过文字、图片、语音等形式和医生进行沟通;</view>
|
<view class="msg">可通过文字、图片、语音等形式和医生进行沟通;</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="tipmsg">
|
<view class="tipmsg">
|
||||||
<view class="circle"></view>
|
<view class="circle tuwen"></view>
|
||||||
<view class="msg">医生接诊后24小时内10个沟通回合;</view>
|
<view class="msg">医生接诊后24小时内10个沟通回合;</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="tipmsg">
|
<view class="tipmsg">
|
||||||
<view class="circle"></view>
|
<view class="circle tuwen"></view>
|
||||||
<view class="msg">医生未接诊,平台24小时内自动退款;</view>
|
<view class="msg">医生未接诊,平台24小时内自动退款;</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="tipmsg">
|
<view class="tipmsg">
|
||||||
<view class="circle"></view>
|
<view class="circle tuwen"></view>
|
||||||
<view class="msg">医生未回复,可联系平台客服协商进行退款。</view>
|
<view class="msg">医生未回复,可联系平台客服协商进行退款。</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -159,35 +171,35 @@
|
|||||||
<view class="title">通过视频面对面进行咨询</view>
|
<view class="title">通过视频面对面进行咨询</view>
|
||||||
<view class="tipbox {{!canVideo?'active':''}}">
|
<view class="tipbox {{!canVideo?'active':''}}">
|
||||||
<view class="tipmsg">
|
<view class="tipmsg">
|
||||||
<view class="circle"></view>
|
<view class="circle video"></view>
|
||||||
<view class="msg">医生接诊后,主动和就诊人预约视频时间;</view>
|
<view class="msg">医生接诊后,主动和就诊人预约视频时间;</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="tipmsg">
|
<view class="tipmsg ">
|
||||||
<view class="circle"></view>
|
<view class="circle video"></view>
|
||||||
<view class="msg">若预约时间因故需要改变,可与医生图文协商时间;</view>
|
<view class="msg">若预约时间因故需要改变,可与医生图文协商时间;</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="tipmsg">
|
<view class="tipmsg">
|
||||||
<view class="circle"></view>
|
<view class="circle video"></view>
|
||||||
<view class="msg">视频交流服务时长一般为5-10分钟;</view>
|
<view class="msg">视频交流服务时长一般为5-10分钟;</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="tipmsg">
|
<view class="tipmsg">
|
||||||
<view class="circle"></view>
|
<view class="circle video"></view>
|
||||||
<view class="msg">医生接诊后48小时内可以通过文字、图片、语音等形式和医生不限制沟通回合数;</view>
|
<view class="msg">医生接诊后48小时内可以通过文字、图片、语音等形式和医生不限制沟通回合数;</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="tipmsg">
|
<view class="tipmsg">
|
||||||
<view class="circle"></view>
|
<view class="circle video"></view>
|
||||||
<view class="msg">医生未接诊,平台24小时内自动退款;</view>
|
<view class="msg">医生未接诊,平台24小时内自动退款;</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="tipmsg">
|
<view class="tipmsg">
|
||||||
<view class="circle"></view>
|
<view class="circle video"></view>
|
||||||
<view class="msg">医生未回复或未进行视频,可联系平台客服协商进行退款;</view>
|
<view class="msg">医生未回复或未进行视频,可联系平台客服协商进行退款;</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="tipmsg">
|
<view class="tipmsg">
|
||||||
<view class="circle"></view>
|
<view class="circle video"></view>
|
||||||
<view class="msg">如因您个人原因(忘记时间、迟到、中途断开未在进入视频等情况),咨询费用可能将无法退回,请准时接收医生视频请求;</view>
|
<view class="msg">如因您个人原因(忘记时间、迟到、中途断开未在进入视频等情况),咨询费用可能将无法退回,请准时接收医生视频请求;</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="tipmsg">
|
<view class="tipmsg">
|
||||||
<view class="circle"></view>
|
<view class="circle video"></view>
|
||||||
<view class="msg">视频不支持回放。</view>
|
<view class="msg">视频不支持回放。</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -202,27 +214,29 @@
|
|||||||
<view class="title">通过文字、图片、语音进行咨询</view>
|
<view class="title">通过文字、图片、语音进行咨询</view>
|
||||||
<view class="tipbox {{!canDiffcult?'active':''}}">
|
<view class="tipbox {{!canDiffcult?'active':''}}">
|
||||||
<view class="tipmsg">
|
<view class="tipmsg">
|
||||||
<view class="circle"></view>
|
<view class="circle yinan"></view>
|
||||||
<view class="msg">{{service_content}};</view>
|
<view class="msg">{{service_content}};</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="tipmsg">
|
<view class="tipmsg">
|
||||||
<view class="circle"></view>
|
<view class="circle yinan"></view>
|
||||||
<view class="msg">{{service_process}};</view>
|
<view class="msg">{{service_process}};</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="tipmsg">
|
<view class="tipmsg">
|
||||||
<view class="circle"></view>
|
<view class="circle yinan"></view>
|
||||||
<view class="msg">可通过文字、图片、语音等形式和医生进行沟通;</view>
|
<view class="msg">可通过文字、图片、语音等形式和医生进行沟通;</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="tipmsg">
|
<view class="tipmsg">
|
||||||
<view class="circle"></view>
|
<view class="circle yinan"></view>
|
||||||
<view class="msg">医生接诊后【医生选择的服务周期】内【医生选择的服务次数】沟通回合;</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>
|
||||||
<view class="tipmsg">
|
<view class="tipmsg">
|
||||||
<view class="circle"></view>
|
<view class="circle yinan"></view>
|
||||||
<view class="msg">医生未接诊,平台24小时内自动退款;</view>
|
<view class="msg">医生未接诊,平台24小时内自动退款;</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="tipmsg">
|
<view class="tipmsg">
|
||||||
<view class="circle"></view>
|
<view class="circle yinan"></view>
|
||||||
<view class="msg">医生未回复或医生服务不满意,可联系平台客服协商进行退款。</view>
|
<view class="msg">医生未回复或医生服务不满意,可联系平台客服协商进行退款。</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@ -604,18 +604,22 @@ border-radius: 50%;
|
|||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
color: rgba(0,0,0,0.65);
|
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{
|
.tipbox.active .tipmsg .msg{
|
||||||
color: rgba(0,0,0,0.35);
|
color: rgba(0,0,0,0.35);
|
||||||
}
|
}
|
||||||
.swiperbox .tipbox.active .circle{
|
.swiperbox .tipbox.active .circle{
|
||||||
background-color: rgba(0,0,0,0.35);
|
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{
|
.itembg{
|
||||||
height:100%;
|
height:100%;
|
||||||
width:100%;
|
width:100%;
|
||||||
|
|||||||
@ -22,6 +22,7 @@ Page({
|
|||||||
},
|
},
|
||||||
goBack(){
|
goBack(){
|
||||||
let {fromType}=this.data;
|
let {fromType}=this.data;
|
||||||
|
console.log(fromType);
|
||||||
if(app.globalData.origion==1){
|
if(app.globalData.origion==1){
|
||||||
wx.reLaunch({
|
wx.reLaunch({
|
||||||
url: '/pages/index/index',
|
url: '/pages/index/index',
|
||||||
@ -66,13 +67,13 @@ Page({
|
|||||||
goExpress:throttle(function(event){
|
goExpress:throttle(function(event){
|
||||||
let id=event.currentTarget.dataset.id;
|
let id=event.currentTarget.dataset.id;
|
||||||
app.method.navigateTo({
|
app.method.navigateTo({
|
||||||
url: '/pages/expressDetail/expressDetail?logistics_no='+id,
|
url: '/patient/pages/expressDetail/expressDetail?logistics_no='+id,
|
||||||
})
|
})
|
||||||
}),
|
}),
|
||||||
goExpert:throttle(function(){
|
goExpert:throttle(function(){
|
||||||
let id=this.data.user_doctor.doctor_id;
|
let id=this.data.user_doctor.doctor_id;
|
||||||
app.method.navigateTo({
|
app.method.navigateTo({
|
||||||
url: '/pages/expertDetail/expertDetail?doctor_id='+id,
|
url: '/patient/pages/expertDetail/expertDetail?doctor_id='+id,
|
||||||
})
|
})
|
||||||
}),
|
}),
|
||||||
handleProductDetail(flag=false){
|
handleProductDetail(flag=false){
|
||||||
@ -137,7 +138,7 @@ copy(event){
|
|||||||
goPay:throttle(function(){
|
goPay:throttle(function(){
|
||||||
let {order_product_id,order_product_no}=this.data.order_product;
|
let {order_product_id,order_product_no}=this.data.order_product;
|
||||||
app.method.navigateTo({
|
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(){
|
handelDelProduct(){
|
||||||
|
|||||||
@ -62,7 +62,7 @@ Page({
|
|||||||
btnLock:false
|
btnLock:false
|
||||||
});
|
});
|
||||||
this.setData({
|
this.setData({
|
||||||
fromType:encodeURIComponent('pages/medinceOrder/medinceOrder')
|
fromType:encodeURIComponent('patient/pages/medinceOrder/medinceOrder')
|
||||||
})
|
})
|
||||||
// if(fromType){
|
// if(fromType){
|
||||||
// this.setData({
|
// this.setData({
|
||||||
|
|||||||
@ -81,17 +81,17 @@ Page({
|
|||||||
if(link_type==1){
|
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;
|
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){
|
}else if(link_type==7){
|
||||||
url='/pages/myWelfare/myWelfare'
|
url='/patient/pages/myWelfare/myWelfare'
|
||||||
}else if(link_type==8){
|
}else if(link_type==8){
|
||||||
url='/pages/medinceOrder/medinceOrder'
|
url='/patient/pages/medinceOrder/medinceOrder'
|
||||||
}else if(link_type==9){
|
}else if(link_type==9){
|
||||||
url='/pages/medinceOrder/medinceOrder'
|
url='/patient/pages/medinceOrder/medinceOrder'
|
||||||
}else if(link_type==10){
|
}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==12){
|
||||||
|
|
||||||
}else if(link_type==13){
|
}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({
|
app.method.navigateTo({
|
||||||
url: url,
|
url: url,
|
||||||
@ -99,7 +99,7 @@ Page({
|
|||||||
},
|
},
|
||||||
goMishu(){
|
goMishu(){
|
||||||
app.method.navigateTo({
|
app.method.navigateTo({
|
||||||
url: '/pages/gandansecretary/gandansecretary',
|
url: '/patient/pages/gandansecretary/gandansecretary',
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -75,7 +75,9 @@ Page({
|
|||||||
* 生命周期函数--监听页面显示
|
* 生命周期函数--监听页面显示
|
||||||
*/
|
*/
|
||||||
onShow() {
|
onShow() {
|
||||||
|
this.setData({
|
||||||
|
img_host:app.hostConfig().imghost
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -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"><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="hospital">{{item.hospital.hospital_name}}</view>
|
||||||
<view class="goodjob" wx:if="{{item.be_good_at}}">擅长:{{item.be_good_at}}</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="diseaseType" wx:for="{{item.doctor_expertise}}" wx:for-item="cell" wx:key="index">{{cell.expertise_name}}</view>
|
||||||
<!-- <view class="detail">
|
<view class="detail" wx:if="{{item.is_display_score}}">
|
||||||
<view>好评率: <text>{{item.praise_rate}} </text> </view>
|
<view>评分: <text wx:if="{{item.praise_rate>0}}">{{item.praise_rate}} </text><text wx:else>暂无</text></view>
|
||||||
<view>服务患者数: <text>{{item.served_patients_num}}</text></view>
|
<view>问诊量: <text wx:if="{{item.served_patients_num>0}}">{{item.served_patients_num}}</text><text wx:else>暂无</text></view>
|
||||||
<view>平均回复: <text> {{item.avg_response_time}}</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>
|
||||||
<view class="consultbox">
|
<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="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 class="pricecell" wx:if="{{itemName.inquiry_type==3 }}">图文问诊:<text>¥{{itemName.inquiry_price}}</text>
|
||||||
|
|||||||
@ -372,13 +372,13 @@ Page({
|
|||||||
},
|
},
|
||||||
goSugar:throttle(function(){
|
goSugar:throttle(function(){
|
||||||
app.method.navigateTo({
|
app.method.navigateTo({
|
||||||
url: '/pages/sugarDetail/sugarDetail',
|
url: '/sugarCheck/pages/sugarDetail/sugarDetail',
|
||||||
})
|
})
|
||||||
}),
|
}),
|
||||||
goExpert:throttle(function(){
|
goExpert:throttle(function(){
|
||||||
let id=this.data.user_doctor.doctor_id;
|
let id=this.data.user_doctor.doctor_id;
|
||||||
app.method.navigateTo({
|
app.method.navigateTo({
|
||||||
url: '/pages/expertDetail/expertDetail?doctor_id='+id,
|
url: '/patient/pages/expertDetail/expertDetail?doctor_id='+id,
|
||||||
})
|
})
|
||||||
}),
|
}),
|
||||||
handleDetectionDetail(flag=false){
|
handleDetectionDetail(flag=false){
|
||||||
@ -508,7 +508,7 @@ copy(event){
|
|||||||
goPay:throttle(function(){
|
goPay:throttle(function(){
|
||||||
let {order_detection_id,detection_no}=this.data.order;
|
let {order_detection_id,detection_no}=this.data.order;
|
||||||
app.method.navigateTo({
|
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(){
|
handelDelProduct(){
|
||||||
@ -533,7 +533,7 @@ handelDelProduct(){
|
|||||||
goPrescriptionDetail:throttle(function(event){
|
goPrescriptionDetail:throttle(function(event){
|
||||||
let id=event.currentTarget.dataset.id;
|
let id=event.currentTarget.dataset.id;
|
||||||
app.method.navigateTo({
|
app.method.navigateTo({
|
||||||
url: '/pages/prescriptDetail/prescriptDetail?order_prescription_id='+id,
|
url: '/patient/pages/prescriptDetail/prescriptDetail?order_prescription_id='+id,
|
||||||
})
|
})
|
||||||
}),
|
}),
|
||||||
handelfllowDoctor(){
|
handelfllowDoctor(){
|
||||||
|
|||||||
@ -114,7 +114,7 @@ Page({
|
|||||||
if(this.data.messageTitle=="当前患者存在进行中检测订单"){
|
if(this.data.messageTitle=="当前患者存在进行中检测订单"){
|
||||||
let {order_detection_id}=this.data;
|
let {order_detection_id}=this.data;
|
||||||
app.method.navigateTo({
|
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(){
|
goAgree(){
|
||||||
let {detection_project_id}=this.data;
|
let {detection_project_id}=this.data;
|
||||||
app.method.navigateTo({
|
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(){
|
handelGetProject(){
|
||||||
@ -304,7 +304,7 @@ Page({
|
|||||||
}).then(data=>{
|
}).then(data=>{
|
||||||
if(data.status==1){
|
if(data.status==1){
|
||||||
app.method.navigateTo({
|
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){
|
}else if(data.status==2){
|
||||||
this.setData({
|
this.setData({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user