|
|
@@ -121,7 +121,7 @@
|
|
|
getOrderInfo() {
|
|
|
let _self = this
|
|
|
_self.orderList = []
|
|
|
- this.$axios.get(`/ihotel/hotelOrder/user/order/${this.orderId}`,
|
|
|
+ this.$axios.get(`/hotel/ihotel-api/ihotel/hotelOrder/user/order/${this.orderId}`,
|
|
|
{
|
|
|
headers:{
|
|
|
'user_token':localStorage.getItem('token')
|
|
|
@@ -187,7 +187,7 @@
|
|
|
// 订单结账信息
|
|
|
getOrderBill() {
|
|
|
let _self = this
|
|
|
- this.$axios.get(`/ihotel/hotelOrder/user/order/bill/${this.orderId}`,
|
|
|
+ this.$axios.get(`/hotel/ihotel-api/ihotel/hotelOrder/user/order/bill/${this.orderId}`,
|
|
|
{
|
|
|
headers:{
|
|
|
'user_token':localStorage.getItem('token')
|
|
|
@@ -215,7 +215,7 @@
|
|
|
getOrderCancel(order_txt_id) {
|
|
|
let _self = this
|
|
|
this.$axios.defaults.headers.common['user_token'] = localStorage.getItem('token');
|
|
|
- this.$axios.put(`/ihotel/hotelOrder/user/order/cancel/${this.order_txt_id}`,).then(res => {
|
|
|
+ this.$axios.put(`/hotel/ihotel-api/ihotel/hotelOrder/user/order/cancel/${this.order_txt_id}`,).then(res => {
|
|
|
res = res.data
|
|
|
if (res.success) {
|
|
|
this.order_txt='取消成功'
|
|
|
@@ -230,7 +230,7 @@
|
|
|
// 支付订单
|
|
|
getOrderPay(orderId) {
|
|
|
let _self = this
|
|
|
- this.$axios.get(`/ihotel/hotelOrder/user/order/pay/${orderId}`,
|
|
|
+ this.$axios.get(`/hotel/ihotel-api/ihotel/hotelOrder/user/order/pay/${orderId}`,
|
|
|
{
|
|
|
headers:{
|
|
|
'user_token':localStorage.getItem('token')
|
|
|
@@ -256,7 +256,7 @@
|
|
|
getOrderDelete(order_txt_id) {
|
|
|
let _self = this
|
|
|
this.$axios.defaults.headers.common['user_token'] = localStorage.getItem('token');
|
|
|
- this.$axios.delete(`/ihotel/hotelOrder/user/order/${this.order_txt_id}`,).then(res => {
|
|
|
+ this.$axios.delete(`/hotel/ihotel-api/ihotel/hotelOrder/user/order/${this.order_txt_id}`,).then(res => {
|
|
|
res = res.data
|
|
|
if (res.success) {
|
|
|
this.order_txt='删除订单成功'
|
|
|
@@ -278,7 +278,7 @@
|
|
|
getOrderHold(order_txt_id) {
|
|
|
let _self = this
|
|
|
this.$axios.defaults.headers.common['user_token'] = localStorage.getItem('token');
|
|
|
- this.$axios.put(`/ihotel/hotelOrder/user/order/hold/${this.order_txt_id}`,).then(res => {
|
|
|
+ this.$axios.put(`/hotel/ihotel-api/ihotel/hotelOrder/user/order/hold/${this.order_txt_id}`,).then(res => {
|
|
|
res = res.data
|
|
|
if (res.success) {
|
|
|
this.order_txt='办理入住成功'
|
|
|
@@ -294,7 +294,7 @@
|
|
|
getOrderReturn(order_txt_id) {
|
|
|
let _self = this
|
|
|
this.$axios.defaults.headers.common['user_token'] = localStorage.getItem('token');
|
|
|
- this.$axios.put(`/ihotel/hotelOrder/user/order/return/${this.order_txt_id}`,).then(res => {
|
|
|
+ this.$axios.put(`/hotel/ihotel-api/ihotel/hotelOrder/user/order/return/${this.order_txt_id}`,).then(res => {
|
|
|
res = res.data
|
|
|
if (res.success) {
|
|
|
this.order_txt='退房成功'
|