|
|
@@ -112,7 +112,7 @@
|
|
|
getOrderInfo() {
|
|
|
let _self = this
|
|
|
_self.orderList = []
|
|
|
- this.$axios.get(`/hotelReservation/zhotel2/ihotel/hotelOrder/user/order/${this.orderId}`, {
|
|
|
+ this.$axios.get(`/hotelReservation/zhotel/ihotel/hotelOrder/user/order/${this.orderId}`, {
|
|
|
headers: {
|
|
|
'user_token': localStorage.getItem('token')
|
|
|
}
|
|
|
@@ -176,7 +176,7 @@
|
|
|
// 订单结账信息
|
|
|
getOrderBill() {
|
|
|
let _self = this
|
|
|
- this.$axios.get(`/hotelReservation/zhotel2/ihotel/hotelOrder/user/order/bill/${this.orderId}`, {
|
|
|
+ this.$axios.get(`/hotelReservation/zhotel/ihotel/hotelOrder/user/order/bill/${this.orderId}`, {
|
|
|
headers: {
|
|
|
'user_token': localStorage.getItem('token')
|
|
|
}
|
|
|
@@ -196,7 +196,7 @@
|
|
|
// 订单取消再次预订
|
|
|
navigateToZaici(enableStartTime, enableEndTime, roomTypeId) {
|
|
|
uni.navigateTo({
|
|
|
- url: "../order_room/order_room?enableStartTime=" + enableStartTime + "&enableEndTime=" + enableEndTime + "&startTime=" +
|
|
|
+ url: "/pages/order_room/order_room?enableStartTime=" + enableStartTime + "&enableEndTime=" + enableEndTime + "&startTime=" +
|
|
|
enableStartTime.substring(5, 7) + '月' + enableStartTime.substring(8, 10) + '日' + "&endTime=" + enableEndTime.substring(5, 7) +
|
|
|
'月' + enableEndTime.substring(8, 10) + '日' + "&roomTypeId=" + roomTypeId
|
|
|
})
|
|
|
@@ -205,7 +205,7 @@
|
|
|
getOrderCancel(order_txt_id) {
|
|
|
let _self = this
|
|
|
this.$axios.defaults.headers.common['user_token'] = localStorage.getItem('token');
|
|
|
- this.$axios.put(`/hotelReservation/zhotel2/ihotel/hotelOrder/user/order/cancel/${this.order_txt_id}`, ).then(res => {
|
|
|
+ this.$axios.put(`/hotelReservation/zhotel/ihotel/hotelOrder/user/order/cancel/${this.order_txt_id}`, ).then(res => {
|
|
|
res = res.data
|
|
|
if (res.success) {
|
|
|
this.order_txt = '取消成功'
|
|
|
@@ -220,7 +220,7 @@
|
|
|
// 支付订单
|
|
|
getOrderPay(orderId) {
|
|
|
let _self = this
|
|
|
- this.$axios.get(`/hotelReservation/zhotel2/ihotel/hotelOrder/user/order/pay/${orderId}`, {
|
|
|
+ this.$axios.get(`/hotelReservation/zhotel/ihotel/hotelOrder/user/order/pay/${orderId}`, {
|
|
|
headers: {
|
|
|
'user_token': localStorage.getItem('token')
|
|
|
}
|
|
|
@@ -245,7 +245,7 @@
|
|
|
getOrderDelete(order_txt_id) {
|
|
|
let _self = this
|
|
|
this.$axios.defaults.headers.common['user_token'] = localStorage.getItem('token');
|
|
|
- this.$axios.delete(`/hotelReservation/zhotel2/ihotel/hotelOrder/user/order/${this.order_txt_id}`, ).then(res => {
|
|
|
+ this.$axios.delete(`/hotelReservation/zhotel/ihotel/hotelOrder/user/order/${this.order_txt_id}`, ).then(res => {
|
|
|
res = res.data
|
|
|
if (res.success) {
|
|
|
this.order_txt = '删除订单成功'
|
|
|
@@ -267,7 +267,7 @@
|
|
|
getOrderHold(order_txt_id) {
|
|
|
let _self = this
|
|
|
this.$axios.defaults.headers.common['user_token'] = localStorage.getItem('token');
|
|
|
- this.$axios.put(`/hotelReservation/zhotel2/ihotel/hotelOrder/user/order/hold/${this.order_txt_id}`, ).then(res => {
|
|
|
+ this.$axios.put(`/hotelReservation/zhotel/ihotel/hotelOrder/user/order/hold/${this.order_txt_id}`, ).then(res => {
|
|
|
res = res.data
|
|
|
if (res.success) {
|
|
|
this.order_txt = '办理入住成功'
|
|
|
@@ -283,7 +283,7 @@
|
|
|
getOrderReturn(order_txt_id) {
|
|
|
let _self = this
|
|
|
this.$axios.defaults.headers.common['user_token'] = localStorage.getItem('token');
|
|
|
- this.$axios.put(`/hotelReservation/zhotel2/ihotel/hotelOrder/user/order/return/${this.order_txt_id}`, ).then(res => {
|
|
|
+ this.$axios.put(`/hotelReservation/zhotel/ihotel/hotelOrder/user/order/return/${this.order_txt_id}`, ).then(res => {
|
|
|
res = res.data
|
|
|
if (res.success) {
|
|
|
this.order_txt = '退房成功'
|