加检测未支付服务包订单的限制
This commit is contained in:
@@ -13,6 +13,7 @@ Page({
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
order_no:'',
|
||||
time: 30 * 60 * 60 * 1000,
|
||||
showCover:true,
|
||||
isWait:true,
|
||||
@@ -227,16 +228,17 @@ Page({
|
||||
handleCheckInquiry:throttle(function(){
|
||||
let id=this.data.order.order_detection_id;
|
||||
checkInquiry(id).then(data=>{
|
||||
let {order_inquiry_id,order_no}=data.data;
|
||||
console.log(data);
|
||||
if(data.status==1){
|
||||
this.setData({
|
||||
order_inquiry_id:data.data,
|
||||
order_inquiry_id:order_inquiry_id,
|
||||
})
|
||||
this.goChat();
|
||||
}else if(data.status==2){
|
||||
this.setData({
|
||||
showCheckDialog:true,
|
||||
order_inquiry_id:data.data,
|
||||
order_inquiry_id:order_inquiry_id,
|
||||
checkSatus:2,
|
||||
checkmessage:'当前医生有您待支付的订单,点击“继续”将为您取消订单直接进入报告解读服务。'
|
||||
})
|
||||
@@ -244,16 +246,23 @@ Page({
|
||||
this.setData({
|
||||
checkSatus:3,
|
||||
showCheckDialog:true,
|
||||
order_inquiry_id:data.data,
|
||||
order_inquiry_id:order_inquiry_id,
|
||||
checkmessage:'当前医生有您待接诊的订单,点击“继续”将为您取消订单直接进入报告解读服务。'
|
||||
})
|
||||
}else if(data.status==4){
|
||||
this.setData({
|
||||
showCheckDialog:true,
|
||||
checkSatus:4,
|
||||
order_inquiry_id:data.data,
|
||||
order_inquiry_id:order_inquiry_id,
|
||||
checkmessage:'当前医生有您接诊中的订单,点击“继续”将为您直接进入报告解读服务。'
|
||||
})
|
||||
}else if(data.status==5){
|
||||
this.setData({
|
||||
showCheckDialog:true,
|
||||
checkSatus:5,
|
||||
order_no:order_no,
|
||||
checkmessage:'存在未支付的服务包订单,点击“继续”将为您直接进入服务包订单详情。'
|
||||
})
|
||||
}
|
||||
})
|
||||
},1000),
|
||||
@@ -471,6 +480,11 @@ confirmCheck:throttle(function(){
|
||||
this.handelCancelInquiryOrder();
|
||||
}else if(this.data.checkSatus==4){
|
||||
this.goChat();
|
||||
}else if(this.data.checkSatus==5){
|
||||
let {order_no}=this.data;
|
||||
app.method.navigateTo({
|
||||
url: '/healthyService/pages/healthyOrderDetail/healthyOrderDetail?order_service_id='+order_no,
|
||||
})
|
||||
}
|
||||
}),
|
||||
handelCancelCheckOrder(flag=true){
|
||||
|
||||
Reference in New Issue
Block a user