支付
This commit is contained in:
parent
5c8214b8fd
commit
06d21668de
@ -12,6 +12,7 @@ function createServiceOrder(data){
|
||||
|
||||
|
||||
|
||||
|
||||
module.exports={
|
||||
getItems,
|
||||
getServiceDetail,
|
||||
|
||||
@ -12,6 +12,8 @@ Page({
|
||||
*/
|
||||
data: {
|
||||
follow_package_item_id:'',
|
||||
message:'',
|
||||
showWarn:false,
|
||||
img_host:app.hostConfig().imghost,
|
||||
doctor_id:'',
|
||||
currentData:0,
|
||||
@ -76,7 +78,9 @@ Page({
|
||||
|
||||
})
|
||||
},
|
||||
goHasOrder(){
|
||||
|
||||
},
|
||||
addPatient() {
|
||||
this.setData({
|
||||
showAdd: true,
|
||||
@ -261,6 +265,10 @@ Page({
|
||||
url:'/healthyService/pages/writeSick/writeSick?doctor_id='+doctor_id+"&family_id="+currentFamilyId+"&chat_id="+chat_id+"&inquiry_type="+inquiry_type+"&sex="+sex+"&inquiry_mode="+inquiry_mode+"&package_id="+follow_package_item_id
|
||||
})
|
||||
}else if(res.status==2){
|
||||
this.setData({
|
||||
showWarn:true,
|
||||
message:res.message
|
||||
})
|
||||
|
||||
}else if(res.status==3){
|
||||
app.method.navigateTo({
|
||||
|
||||
@ -2,7 +2,8 @@
|
||||
"usingComponents": {
|
||||
"nav":"../../../components/nav/nav",
|
||||
"van-popup": "@vant/weapp/popup/index",
|
||||
"van-picker": "@vant/weapp/picker/index"
|
||||
"van-picker": "@vant/weapp/picker/index",
|
||||
"van-dialog": "@vant/weapp/dialog/index"
|
||||
},
|
||||
"navigationStyle":"custom"
|
||||
}
|
||||
@ -157,3 +157,17 @@
|
||||
</view>
|
||||
</view>
|
||||
</van-popup>
|
||||
<van-dialog
|
||||
show-cancel-button
|
||||
class="mydailog"
|
||||
bind:confirm="goHasOrder"
|
||||
title="温馨提示"
|
||||
message="{{message}}"
|
||||
z-index="9999"
|
||||
theme='green'
|
||||
show="{{showWarn}}"
|
||||
confirm-button-color="#3CC7C0"
|
||||
cancel-button-text="确定"
|
||||
>
|
||||
|
||||
</van-dialog>
|
||||
@ -522,8 +522,7 @@ Page({
|
||||
follow_package_item_id:follow_package_item_id
|
||||
}).then((data) => {
|
||||
let {
|
||||
inquiry_no,
|
||||
order_inquiry_id
|
||||
order_no
|
||||
} = data.data;
|
||||
let {
|
||||
chat_id,
|
||||
@ -534,8 +533,9 @@ Page({
|
||||
lockBtn: false
|
||||
});
|
||||
if(data.status==1){
|
||||
let order_type=inquiry_mode==8?5:4
|
||||
app.method.navigateTo({
|
||||
url: '/patient/pages/payOrder/payOrder?doctor_id=' + doctor_id + '&inquiry_no=' + inquiry_no + "&chat_id=" + chat_id + "&inquiry_type=" + inquiry_type + "&inquiry_mode=" + inquiry_mode + "&order_inquiry_id=" + order_inquiry_id + "&fromType=chat"
|
||||
url: '/patient/pages/payOrder/payOrder?doctor_id=' + doctor_id + '&inquiry_no=' + order_no + "&chat_id=" + chat_id + "&inquiry_type=" + inquiry_type + "&inquiry_mode=" + inquiry_mode + "&fromType=chat&&order_type="+order_type
|
||||
})
|
||||
}else if(data.status==2){
|
||||
this.setData({
|
||||
|
||||
@ -230,11 +230,15 @@ Page({
|
||||
url = '/patient/pages/payPlatform/payPlatform?order_no=' + order_no + "&order_type=2" + "&order_prescription_id=" + order_prescription_id + "&order_product_id=" + order_product_id + "&fromType=" + fromType;
|
||||
}else if(order_type == 3){//糖组检测
|
||||
url = '/patient/pages/payPlatform/payPlatform?order_no=' + order_no + "&order_type=3" + "&order_detection_id=" + order_detection_id+ "&fromType=" + fromType;
|
||||
}else if(order_type == 4){//随访包
|
||||
url = '/patient/pages/payPlatform/payPlatform?order_no=' + order_no + "&order_type=4&chat_id=" + chat_id + "&doctor_id" + doctor_id + "&inquiry_type=" + inquiry_type + "&inquiry_mode=" + inquiry_mode + "&fromType=" + fromType;
|
||||
}else if(order_type == 5){//健康包
|
||||
url = '/patient/pages/payPlatform/payPlatform?order_no=' + order_no + "&order_type=5&chat_id=" + chat_id + "&doctor_id" + doctor_id + "&inquiry_type=" + inquiry_type + "&inquiry_mode=" + inquiry_mode + "&fromType=" + fromType;
|
||||
}else {
|
||||
if (chat_id) {
|
||||
url = '/patient/pages/payPlatform/payPlatform?order_no=' + order_no + "&order_type=1&chat_id=" + chat_id + "&doctor_id" + doctor_id + "&inquiry_type=" + inquiry_type + "&inquiry_mode" + inquiry_mode + "&order_inquiry_id=" + order_inquiry_id + "&fromType=" + fromType;
|
||||
} else {
|
||||
url = '/patient/pages/payPlatform/payPlatform?order_no=' + order_no + "&order_type=1&inquiry_type=" + inquiry_type + "&inquiry_mode" + inquiry_mode + "&order_inquiry_id=" + order_inquiry_id + "&fromType=" + fromType;
|
||||
url = '/patient/pages/payPlatform/payPlatform?order_no=' + order_no + "&order_type=1&inquiry_type=" + inquiry_type + "&inquiry_mode=" + inquiry_mode + "&order_inquiry_id=" + order_inquiry_id + "&fromType=" + fromType;
|
||||
}
|
||||
}
|
||||
app.method.navigateTo({
|
||||
@ -588,12 +592,14 @@ Page({
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
console.log(options)
|
||||
//fromType list跳问诊订单列表页,处方过来的是链接,跳链接页 ,chat是问诊过来
|
||||
if (options.fromType) {
|
||||
this.setData({
|
||||
fromType: options.fromType
|
||||
})
|
||||
};
|
||||
|
||||
//处方订单
|
||||
if (options.order_type == 2) {
|
||||
let order_prescription_id = options.order_prescription_id;
|
||||
@ -614,6 +620,24 @@ Page({
|
||||
order_detection_id
|
||||
})
|
||||
|
||||
}else if(options.order_type==4){//随访包订单
|
||||
this.setData({
|
||||
order_type: 4,
|
||||
doctor_id: options.doctor_id,
|
||||
inquiry_type:options.inquiry_type,
|
||||
order_no: options.inquiry_no,
|
||||
chat_id: options.chat_id,
|
||||
inquiry_mode: options.inquiry_mode
|
||||
})
|
||||
}else if(options.order_type==5){//健康包订单
|
||||
this.setData({
|
||||
order_type:5,
|
||||
doctor_id: options.doctor_id,
|
||||
inquiry_type:options.inquiry_type,
|
||||
order_no: options.inquiry_no,
|
||||
chat_id: options.chat_id,
|
||||
inquiry_mode: options.inquiry_mode
|
||||
})
|
||||
}else {
|
||||
//问诊相关
|
||||
this.setData({
|
||||
@ -626,7 +650,7 @@ Page({
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
console.log(options.inquiry_mode)
|
||||
},
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
|
||||
@ -24,7 +24,8 @@
|
||||
<view class="name" wx:elif="{{inquiry_type==4}}">问诊购药</view>
|
||||
<view class="name" wx:elif="{{order_type==2 && !inquiry_type }}">药品金额</view>
|
||||
<view class="name" wx:elif="{{order_type==3 && !inquiry_type }}">糖组检测</view>
|
||||
|
||||
<view class="name" wx:elif="{{order_type==4 && inquiry_mode==9 }}">随访包服务</view>
|
||||
<view class="name" wx:elif="{{order_type==5 && inquiry_mode==8 }}">健康包服务</view>
|
||||
<view class="desc">¥{{amount_total}}</view>
|
||||
</view>
|
||||
<view class="row" wx:if="{{logistics_fee>0}}">
|
||||
|
||||
@ -269,6 +269,24 @@ Page({
|
||||
order_detection_id
|
||||
})
|
||||
|
||||
}else if(options.order_type==4){//随访包订单
|
||||
this.setData({
|
||||
order_type: 4,
|
||||
doctor_id: options.doctor_id,
|
||||
inquiry_type:options.inquiry_type,
|
||||
order_no: options.order_no,
|
||||
chat_id: options.chat_id,
|
||||
inquiry_mode: options.inquiry_mode
|
||||
})
|
||||
}else if(options.order_type==5){//健康包订单
|
||||
this.setData({
|
||||
order_type:5,
|
||||
doctor_id: options.doctor_id,
|
||||
inquiry_type:options.inquiry_type,
|
||||
order_no: options.order_no,
|
||||
chat_id: options.chat_id,
|
||||
inquiry_mode: options.inquiry_mode
|
||||
})
|
||||
}else {
|
||||
//问诊相关
|
||||
this.setData({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user