|
@@ -7,14 +7,14 @@
|
|
</view>
|
|
</view>
|
|
<view class="order-item" v-for="(order,index) in orderList" :key="index">
|
|
<view class="order-item" v-for="(order,index) in orderList" :key="index">
|
|
<view class="one-order">
|
|
<view class="one-order">
|
|
- <view class="order--no" @click="gotoOrderDetail(order.orderId)">
|
|
|
|
|
|
+ <view class="order--no" @click="gotoOrderDetail(order.orderId,order.roomTypeName)">
|
|
<view class="order--no__no">
|
|
<view class="order--no__no">
|
|
<view>订单号:</view>
|
|
<view>订单号:</view>
|
|
<view>{{ order.orderId.toUpperCase() }}</view>
|
|
<view>{{ order.orderId.toUpperCase() }}</view>
|
|
</view>
|
|
</view>
|
|
<view class="order--no__status"></view>
|
|
<view class="order--no__status"></view>
|
|
</view>
|
|
</view>
|
|
- <view class="order--room" @click="gotoOrderDetail(order.orderId)">
|
|
|
|
|
|
+ <view class="order--room" @click="gotoOrderDetail(order.orderId,order.roomTypeName)">
|
|
<view class="order--room__pic">
|
|
<view class="order--room__pic">
|
|
<u-image :src="getPicPath(order.roomPicPath)" width="180rpx" height="180rpx"></u-image>
|
|
<u-image :src="getPicPath(order.roomPicPath)" width="180rpx" height="180rpx"></u-image>
|
|
</view>
|
|
</view>
|
|
@@ -25,7 +25,7 @@
|
|
{{ "¥"+ order.price }}
|
|
{{ "¥"+ order.price }}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="order--duration" @click="gotoOrderDetail(order.orderId)">
|
|
|
|
|
|
+ <view class="order--duration" @click="gotoOrderDetail(order.orderId,order.roomTypeName)">
|
|
<view class="order--duration__start">
|
|
<view class="order--duration__start">
|
|
<view class="order--duration__start-title">入住日期</view>
|
|
<view class="order--duration__start-title">入住日期</view>
|
|
<view class="order--duration__start-date">
|
|
<view class="order--duration__start-date">
|
|
@@ -146,7 +146,7 @@
|
|
orderStatus: this.status[index],
|
|
orderStatus: this.status[index],
|
|
hotelId: this.currentHotel.hotelId
|
|
hotelId: this.currentHotel.hotelId
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
let res = await uni.$http.post(`/order/status`, condition)
|
|
let res = await uni.$http.post(`/order/status`, condition)
|
|
this.orderList = [...this.orderList, ...res.data.data.records]
|
|
this.orderList = [...this.orderList, ...res.data.data.records]
|
|
this.total = res.data.data.total
|
|
this.total = res.data.data.total
|
|
@@ -196,9 +196,9 @@
|
|
getPicPath(path) {
|
|
getPicPath(path) {
|
|
return IMG_BASE_URL + '/' + path
|
|
return IMG_BASE_URL + '/' + path
|
|
},
|
|
},
|
|
- gotoOrderDetail(orderId) {
|
|
|
|
|
|
+ gotoOrderDetail(orderId, roomTypeName) {
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
- url: '/subpkg/orderDetail/orderDetail?orderId=' + orderId
|
|
|
|
|
|
+ url: `/subpkg/orderDetail/orderDetail?orderId=${orderId}&roomTypeName=${roomTypeName}`
|
|
})
|
|
})
|
|
}
|
|
}
|
|
},
|
|
},
|