支付
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user