4.23 更新
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// pages/medinceOrderDetail/medinceOrderDetail.js
|
||||
const app = getApp()
|
||||
import {serviceDetail,cancelCheckPay,delCheckOrder,cancelCheckOrder,checkInquiry,serviceEquityDetail,createServiceChatOrder,checkService} from "../../../api/health"
|
||||
import {serviceDetail,cancelCheckPay,delCheckOrder,cancelCheckOrder,serviceEquityDetail,createServiceChatOrder,checkService} from "../../../api/health"
|
||||
import {cancelPay} from "../../../api/consultOrder"
|
||||
import {cancelOrder} from "../../../api/consultOrder"
|
||||
import {fllowDoctor,notfllowDoctor} from "../../../api/consultExpert"
|
||||
@@ -168,7 +168,7 @@ Page({
|
||||
goHasOrder(){
|
||||
|
||||
let status=this.data.status;
|
||||
let {order_service_type,user_doctor,order_service_no}=this.data.order;
|
||||
// let {order_service_type,user_doctor,order_service_no}=this.data.order;
|
||||
|
||||
if(status==4){
|
||||
let id=this.data.order_inquiry_id;
|
||||
@@ -192,15 +192,16 @@ Page({
|
||||
}
|
||||
|
||||
},
|
||||
handleCheckService(){
|
||||
handleCheckService:throttle(function(){
|
||||
let {order_service_no}=this.data.order;
|
||||
|
||||
checkService(order_service_no).then((res)=>{
|
||||
if(res.status==1){
|
||||
console.log(res.data.order_no)
|
||||
this.setData({
|
||||
showWarn:true,
|
||||
status:5,
|
||||
confirmNext:'前往',
|
||||
status:1,
|
||||
confirmText:'前往',
|
||||
order_no:res.data.order_no,
|
||||
messageWarn:'是否使用剩余问诊次数?'
|
||||
})
|
||||
@@ -231,7 +232,7 @@ Page({
|
||||
}
|
||||
|
||||
})
|
||||
},
|
||||
}),
|
||||
goXuFei:throttle(function(){
|
||||
let {order_service_type,user_doctor,amount_total}=this.data.order;
|
||||
let url=order_service_type==2?'/healthyService/pages/visitDetail/visitDetail?doctor_id='+user_doctor.doctor_id:'/healthyService/pages/healthyDetail/healthyDetail?doctor_id='+user_doctor.doctor_id+"&price="+amount_total
|
||||
@@ -308,7 +309,7 @@ handleCreateServiceChatOrder(id){
|
||||
})
|
||||
})
|
||||
},
|
||||
chnageIpt(event){thi.se
|
||||
chnageIpt(event){
|
||||
const {value}=event.detail;
|
||||
this.setData({
|
||||
detection_bar_code:value
|
||||
@@ -321,7 +322,7 @@ handleCreateServiceChatOrder(id){
|
||||
title: '取消支付成功',
|
||||
icon:'none'
|
||||
})
|
||||
this.handleCheckInquiry();
|
||||
//this.handleCheckInquiry();
|
||||
})
|
||||
},
|
||||
handelCancelInquiryOrder(){
|
||||
@@ -335,39 +336,7 @@ handleCreateServiceChatOrder(id){
|
||||
// this.goChat()
|
||||
})
|
||||
},
|
||||
handleCheckInquiry:throttle(function(){
|
||||
let id=this.data.order.order_service_id;
|
||||
checkInquiry(id).then(data=>{
|
||||
console.log(data);
|
||||
if(data.status==1){
|
||||
this.setData({
|
||||
order_inquiry_id:data.data,
|
||||
})
|
||||
this.goChat();
|
||||
}else if(data.status==2){
|
||||
this.setData({
|
||||
showCheckDialog:true,
|
||||
order_inquiry_id:data.data,
|
||||
checkSatus:2,
|
||||
checkmessage:'当前医生有您待支付的订单,点击“继续”将为您取消订单直接进入报告解读服务。'
|
||||
})
|
||||
}else if(data.status==3){
|
||||
this.setData({
|
||||
checkSatus:3,
|
||||
showCheckDialog:true,
|
||||
order_inquiry_id:data.data,
|
||||
checkmessage:'当前医生有您待接诊的订单,点击“继续”将为您取消订单直接进入报告解读服务。'
|
||||
})
|
||||
}else if(data.status==4){
|
||||
this.setData({
|
||||
showCheckDialog:true,
|
||||
checkSatus:4,
|
||||
order_inquiry_id:data.data,
|
||||
checkmessage:'当前医生有您接诊中的订单,点击“继续”将为您直接进入报告解读服务。'
|
||||
})
|
||||
}
|
||||
})
|
||||
},1000),
|
||||
|
||||
goReport:throttle(function(){
|
||||
wx.showLoading({
|
||||
mask:true,
|
||||
|
||||
@@ -327,7 +327,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="paybox" style="background-color: transparent;" wx:if="{{order.order_service_status==3 }}">
|
||||
<view class="submitbtn" bindtap="handleCheckInquiry">去使用</view>
|
||||
<view class="submitbtn" bindtap="handleCheckService">去使用</view>
|
||||
</view>
|
||||
<view class="paybox" style="background-color: transparent;" wx:if="{{order.order_service_status==4 || (equity.order_service_package_detail.monthly_frequency!=0 && equity.order_service_package_detail.monthly_frequency-equity.order_service_package.month_inquiry_count==0)}}">
|
||||
<view class="submitbtn" bindtap="goXuFei">去续费</view>
|
||||
|
||||
Reference in New Issue
Block a user