支付
This commit is contained in:
parent
5c8214b8fd
commit
06d21668de
@ -12,6 +12,7 @@ function createServiceOrder(data){
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
module.exports={
|
module.exports={
|
||||||
getItems,
|
getItems,
|
||||||
getServiceDetail,
|
getServiceDetail,
|
||||||
|
|||||||
@ -12,6 +12,8 @@ Page({
|
|||||||
*/
|
*/
|
||||||
data: {
|
data: {
|
||||||
follow_package_item_id:'',
|
follow_package_item_id:'',
|
||||||
|
message:'',
|
||||||
|
showWarn:false,
|
||||||
img_host:app.hostConfig().imghost,
|
img_host:app.hostConfig().imghost,
|
||||||
doctor_id:'',
|
doctor_id:'',
|
||||||
currentData:0,
|
currentData:0,
|
||||||
@ -76,7 +78,9 @@ Page({
|
|||||||
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
goHasOrder(){
|
||||||
|
|
||||||
|
},
|
||||||
addPatient() {
|
addPatient() {
|
||||||
this.setData({
|
this.setData({
|
||||||
showAdd: true,
|
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
|
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){
|
}else if(res.status==2){
|
||||||
|
this.setData({
|
||||||
|
showWarn:true,
|
||||||
|
message:res.message
|
||||||
|
})
|
||||||
|
|
||||||
}else if(res.status==3){
|
}else if(res.status==3){
|
||||||
app.method.navigateTo({
|
app.method.navigateTo({
|
||||||
|
|||||||
@ -2,7 +2,8 @@
|
|||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"nav":"../../../components/nav/nav",
|
"nav":"../../../components/nav/nav",
|
||||||
"van-popup": "@vant/weapp/popup/index",
|
"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"
|
"navigationStyle":"custom"
|
||||||
}
|
}
|
||||||
@ -156,4 +156,18 @@
|
|||||||
确定
|
确定
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</van-popup>
|
</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
|
follow_package_item_id:follow_package_item_id
|
||||||
}).then((data) => {
|
}).then((data) => {
|
||||||
let {
|
let {
|
||||||
inquiry_no,
|
order_no
|
||||||
order_inquiry_id
|
|
||||||
} = data.data;
|
} = data.data;
|
||||||
let {
|
let {
|
||||||
chat_id,
|
chat_id,
|
||||||
@ -534,8 +533,9 @@ Page({
|
|||||||
lockBtn: false
|
lockBtn: false
|
||||||
});
|
});
|
||||||
if(data.status==1){
|
if(data.status==1){
|
||||||
|
let order_type=inquiry_mode==8?5:4
|
||||||
app.method.navigateTo({
|
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){
|
}else if(data.status==2){
|
||||||
this.setData({
|
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;
|
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){//糖组检测
|
}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;
|
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 {
|
}else {
|
||||||
if (chat_id) {
|
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;
|
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 {
|
} 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({
|
app.method.navigateTo({
|
||||||
@ -588,12 +592,14 @@ Page({
|
|||||||
* 生命周期函数--监听页面加载
|
* 生命周期函数--监听页面加载
|
||||||
*/
|
*/
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
|
console.log(options)
|
||||||
//fromType list跳问诊订单列表页,处方过来的是链接,跳链接页 ,chat是问诊过来
|
//fromType list跳问诊订单列表页,处方过来的是链接,跳链接页 ,chat是问诊过来
|
||||||
if (options.fromType) {
|
if (options.fromType) {
|
||||||
this.setData({
|
this.setData({
|
||||||
fromType: options.fromType
|
fromType: options.fromType
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
|
|
||||||
//处方订单
|
//处方订单
|
||||||
if (options.order_type == 2) {
|
if (options.order_type == 2) {
|
||||||
let order_prescription_id = options.order_prescription_id;
|
let order_prescription_id = options.order_prescription_id;
|
||||||
@ -614,6 +620,24 @@ Page({
|
|||||||
order_detection_id
|
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 {
|
}else {
|
||||||
//问诊相关
|
//问诊相关
|
||||||
this.setData({
|
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="{{inquiry_type==4}}">问诊购药</view>
|
||||||
<view class="name" wx:elif="{{order_type==2 && !inquiry_type }}">药品金额</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==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 class="desc">¥{{amount_total}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="row" wx:if="{{logistics_fee>0}}">
|
<view class="row" wx:if="{{logistics_fee>0}}">
|
||||||
|
|||||||
@ -269,6 +269,24 @@ Page({
|
|||||||
order_detection_id
|
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 {
|
}else {
|
||||||
//问诊相关
|
//问诊相关
|
||||||
this.setData({
|
this.setData({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user