修改
This commit is contained in:
parent
0f7d159fe9
commit
ee2c987670
@ -248,79 +248,79 @@
|
|||||||
console.log(this.orderlist)
|
console.log(this.orderlist)
|
||||||
this.orderlist.consumableTotalPrice = null
|
this.orderlist.consumableTotalPrice = null
|
||||||
this.orderlist.orderChannel = 'WECHAT_APPLET'
|
this.orderlist.orderChannel = 'WECHAT_APPLET'
|
||||||
// if (this.radio == 1) {
|
if (this.radio == 1) {
|
||||||
// this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
// title: '请阅读用户协议并同意',
|
title: '请阅读用户协议并同意',
|
||||||
// type: 'error',
|
type: 'error',
|
||||||
// })
|
})
|
||||||
// } else {
|
} else {
|
||||||
// this.orderlist.orderCount = 1;
|
this.orderlist.orderCount = 1;
|
||||||
// this.orderlist.orderConsumableList = []
|
this.orderlist.orderConsumableList = []
|
||||||
// if (this.orderlist.itemConsumableList) {
|
if (this.orderlist.itemConsumableList) {
|
||||||
// this.orderlist.itemConsumableList.forEach(e => {
|
this.orderlist.itemConsumableList.forEach(e => {
|
||||||
// if (e.radio) {
|
if (e.radio) {
|
||||||
// this.orderlist.orderConsumableList.push(e)
|
this.orderlist.orderConsumableList.push(e)
|
||||||
// }
|
}
|
||||||
// })
|
})
|
||||||
// }
|
}
|
||||||
// this.orderlist.afternoonOpenEndTime = this.orderlist.afternoonOpenEndTime.slice(0, 5)
|
this.orderlist.afternoonOpenEndTime = this.orderlist.afternoonOpenEndTime.slice(0, 5)
|
||||||
// this.orderlist.afternoonOpenStartTime = this.orderlist.afternoonOpenStartTime.slice(0, 5)
|
this.orderlist.afternoonOpenStartTime = this.orderlist.afternoonOpenStartTime.slice(0, 5)
|
||||||
// this.orderlist.morningOpenEndTime = this.orderlist.morningOpenEndTime.slice(0, 5)
|
this.orderlist.morningOpenEndTime = this.orderlist.morningOpenEndTime.slice(0, 5)
|
||||||
// this.orderlist.morningOpenStartTime = this.orderlist.morningOpenStartTime.slice(0, 5)
|
this.orderlist.morningOpenStartTime = this.orderlist.morningOpenStartTime.slice(0, 5)
|
||||||
// this.orderlist.patientId = this.patientId
|
this.orderlist.patientId = this.patientId
|
||||||
// this.orderlist.serviceAddress = this.personInfo.areaName + this.personInfo.address
|
this.orderlist.serviceAddress = this.personInfo.areaName + this.personInfo.address
|
||||||
// submitAppointment(this.orderlist).then(res => {
|
submitAppointment(this.orderlist).then(res => {
|
||||||
// if (res.code == 500) {
|
if (res.code == 500) {
|
||||||
// that.$refs.uToast.show({
|
that.$refs.uToast.show({
|
||||||
// title: res.msg,
|
title: res.msg,
|
||||||
// type: 'error',
|
type: 'error',
|
||||||
// })
|
})
|
||||||
// } else if (res.code == 200) {
|
} else if (res.code == 200) {
|
||||||
// let obj = {
|
let obj = {
|
||||||
// patientId: res.data.patientId,
|
patientId: res.data.patientId,
|
||||||
// openid: that.openid,
|
openid: that.openid,
|
||||||
// orderNo: res.data.orderNo,
|
orderNo: res.data.orderNo,
|
||||||
// orderChannel: res.data.orderChannel,
|
orderChannel: res.data.orderChannel,
|
||||||
// paymentPrice: res.data.totalPrice,
|
paymentPrice: res.data.totalPrice,
|
||||||
// payType: "WECHAT_PAY",
|
payType: "WECHAT_PAY",
|
||||||
// buySource: "NURSE_STATION",
|
buySource: "NURSE_STATION",
|
||||||
// }
|
}
|
||||||
// appletAppointmentOrderPay(obj).then(response => {
|
appletAppointmentOrderPay(obj).then(response => {
|
||||||
// if (response.code == 200) {
|
if (response.code == 200) {
|
||||||
// uni.requestPayment({
|
uni.requestPayment({
|
||||||
// timeStamp: response.data.timeStamp,
|
timeStamp: response.data.timeStamp,
|
||||||
// nonceStr: response.data.nonceStr,
|
nonceStr: response.data.nonceStr,
|
||||||
// package: response.data.prepayId,
|
package: response.data.prepayId,
|
||||||
// signType: response.data.signType,
|
signType: response.data.signType,
|
||||||
// paySign: response.data.paySign,
|
paySign: response.data.paySign,
|
||||||
// success: function(res) {
|
success: function(res) {
|
||||||
// that.$refs.uToast.show({
|
that.$refs.uToast.show({
|
||||||
// title: '预约成功',
|
title: '预约成功',
|
||||||
// type: 'success',
|
type: 'success',
|
||||||
// duration: 1500,
|
duration: 1500,
|
||||||
// url: `/pages/paysuccess/paysuccess`
|
url: `/pages/paysuccess/paysuccess`
|
||||||
// })
|
})
|
||||||
// },
|
},
|
||||||
// fail: function(err) {
|
fail: function(err) {
|
||||||
// that.$refs.uToast.show({
|
that.$refs.uToast.show({
|
||||||
// title: '取消预约',
|
title: '取消预约',
|
||||||
// type: 'error',
|
type: 'error',
|
||||||
// duration: 1500,
|
duration: 1500,
|
||||||
// url: `/pages/menttimeorder/menttimeorder?list=${JSON.stringify(obj)}`
|
url: `/pages/menttimeorder/menttimeorder?list=${JSON.stringify(obj)}`
|
||||||
// })
|
})
|
||||||
// }
|
}
|
||||||
// });
|
});
|
||||||
// } else {
|
} else {
|
||||||
// that.$refs.uToast.show({
|
that.$refs.uToast.show({
|
||||||
// title: response.msg,
|
title: response.msg,
|
||||||
// type: 'error',
|
type: 'error',
|
||||||
// duration: 2000
|
duration: 2000
|
||||||
// })
|
})
|
||||||
// }
|
}
|
||||||
// })
|
})
|
||||||
// }
|
}
|
||||||
// })
|
})
|
||||||
// }
|
}
|
||||||
},
|
},
|
||||||
changeRadio() {
|
changeRadio() {
|
||||||
if (this.radio == 1) {
|
if (this.radio == 1) {
|
||||||
|
|||||||
@ -17,11 +17,11 @@
|
|||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.app {
|
.app {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100vh;
|
padding: 0;
|
||||||
|
background-color: #1A191E;
|
||||||
image {
|
image {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100vh;
|
height: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 82 KiB |
Loading…
Reference in New Issue
Block a user