|
@@ -610,6 +610,40 @@ Page({
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
|
|
|
|
+ //司机取消预约
|
|
|
|
+ driverCancelFun: function (e) {
|
|
|
|
+ let _this = this
|
|
|
|
+ let { id, licenseNumber } = e.currentTarget.dataset
|
|
|
|
+ wx.showModal({
|
|
|
|
+ title: '提示!',
|
|
|
|
+ content: `取消【${licenseNumber}】后不可恢复。确定要取消吗?`,
|
|
|
|
+ confirmColor: '#FF5B5B',
|
|
|
|
+ success: function (res) {
|
|
|
|
+ if (res.confirm) {
|
|
|
|
+ app.request.POST({
|
|
|
|
+ url: app.API.stoneAppointCancel,
|
|
|
|
+ params: {
|
|
|
|
+ id: id
|
|
|
|
+ },
|
|
|
|
+ page: _this,
|
|
|
|
+ isLoadingTxt: '取消中...',
|
|
|
|
+ successFun: true
|
|
|
|
+ }).then(res => {
|
|
|
|
+ wx.showToast({
|
|
|
|
+ title: '取消成功',
|
|
|
|
+ icon: 'success',
|
|
|
|
+ duration: 1000,
|
|
|
|
+ mask: true
|
|
|
|
+ })
|
|
|
|
+ _this.getListFun(); //刷新列表
|
|
|
|
+ })
|
|
|
|
+ } else if (res.cancel) {
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+
|
|
//充电结束预约
|
|
//充电结束预约
|
|
overFun: function (e) {
|
|
overFun: function (e) {
|
|
let _this = this
|
|
let _this = this
|
|
@@ -814,11 +848,11 @@ Page({
|
|
onReachBottom: function () {
|
|
onReachBottom: function () {
|
|
this.data.page++;
|
|
this.data.page++;
|
|
let params = {
|
|
let params = {
|
|
- current: this.data.page,
|
|
|
|
- size: this.data.limit,
|
|
|
|
- licenseNumber: this.data.searchVal,
|
|
|
|
- reservationStatus: this.data.applyData[this.data.setIndex].value,
|
|
|
|
- reservationType: this.data.typeArray[this.data.typeIndex].code,
|
|
|
|
|
|
+ current : this.data.page,
|
|
|
|
+ size : this.data.limit,
|
|
|
|
+ licenseNumber : this.data.searchVal,
|
|
|
|
+ appointmentStatus : this.data.appointmentStatusArray[this.data.appointmentStatusIndex].dictValue,
|
|
|
|
+ type : this.data.appointmentType
|
|
}
|
|
}
|
|
app.request.pageOther({
|
|
app.request.pageOther({
|
|
url: app.API.appointmentPage,
|
|
url: app.API.appointmentPage,
|