diff --git a/static/js/CommonFunction.js b/static/js/CommonFunction.js
index 06d7dcb..6220d7a 100644
--- a/static/js/CommonFunction.js
+++ b/static/js/CommonFunction.js
@@ -291,12 +291,13 @@ Vue.prototype.goCartNextPage= function(currentPageIndex){
let ticketOrderList = this.$store.state.user.ticketOrderList;
let foodOrderList = this.$store.state.user.foodOrderList;
let hotelOrderList = this.$store.state.user.hotelOrderList;
+ console.log(hotelOrderList)
let orderPage = [
{path: '/subPackages/techan/order', length: techanOrderList.length},
{path: '/subPackages/ticket/order', length: ticketOrderList.length},
{path: '/subPackages/food/order', length: foodOrderList.length},
- {path: '',length: hotelOrderList.length}
+ {path: '/subPackages/homestay/order',length: hotelOrderList.length}
]
let nextPage = orderPage.find((v,index)=>v.length>0&&index>=currentPageIndex)
if (nextPage) {
diff --git a/subPackages/homestay/detail.vue b/subPackages/homestay/detail.vue
index 92cbc29..00364fe 100644
--- a/subPackages/homestay/detail.vue
+++ b/subPackages/homestay/detail.vue
@@ -319,11 +319,10 @@
if (item.stock == 0) {
return
}
-
- let param = {
- skuInfo: item,
- selectDate: this.selectDate
- }
+ item.selectDate = this.selectDate
+ item.allSeldDate = []
+ item.buyNum = 1
+ let param = [{skuInfo: item}]
uni.setStorageSync('hotelOrderInfo', JSON.stringify(param))
uni.navigateTo({
url:`/subPackages/homestay/order`
diff --git a/subPackages/homestay/order.vue b/subPackages/homestay/order.vue
index 38bb9ba..a17568e 100644
--- a/subPackages/homestay/order.vue
+++ b/subPackages/homestay/order.vue
@@ -1,374 +1,387 @@
-
-
-
-
- {{skuInfo.sku_name}}
-
- 房型信息
-
-
-
-
-
- {{skuInfo.sku_model.bed_type}} | {{skuInfo.sku_model.area}}
- | {{skuInfo.sku_model.window}} | 可入住{{skuInfo.sku_model.max_room_num}}人
- | {{skuInfo.sku_model.breakfast}}
-
-
-
-
-
- {{new Date(selectDate.startDay).Format('MM-dd')}}
- {{ ShowDateDay(new Date(selectDate.startDay).getDay()) }}
-
- 入住
-
-
- 共{{selectDate.differDays}}晚
-
-
-
- {{new Date(selectDate.endDay).Format('MM-dd')}}
- {{ShowDateDay(new Date(selectDate.endDay).getDay()) }}
- 离店
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 证件要求:大陆居民身份证登记入住
-
-
-
-
-
-
-
-
-
- 预订信息
- 姓名需与证件一致
-
-
-
- 房间数
-
-
- -
-
- +
-
-
-
-
- 房间{{index+1}}
-
-
-
- 联系电话
-
-
-
-
-
-
-
-
-
-
- 优惠券
-
- 选择优惠券
-
- -¥{{coupon.activity.money/100}}
- {{coupon.activity.fold}}折
-
-
-
-
-
-
-
-
-
-
- 合计:
- {{ total() / 100 }}
-
-
- 立即预订
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+ {{order.sku_name}}
+
+ 房型信息
+
+
+
+
+
+ {{order.sku_model.bed_type}} | {{order.sku_model.area}}
+ | {{order.sku_model.window}} | 可入住{{order.sku_model.max_room_num}}人
+ | {{order.sku_model.breakfast}}
+
+
+
+
+
+ {{new Date(order.selectDate.startDay).Format('MM-dd')}}
+ {{ ShowDateDay(new Date(order.selectDate.startDay).getDay()) }}
+
+ 入住
+
+
+ 共{{order.selectDate.differDays}}晚
+
+
+
+ {{new Date(order.selectDate.endDay).Format('MM-dd')}}
+ {{ShowDateDay(new Date(order.selectDate.endDay).getDay()) }}
+ 离店
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 证件要求:大陆居民身份证登记入住
+
+
+
+
+
+
+
+
+
+ 预订信息
+ 姓名需与证件一致
+
+
+
+ 房间数
+
+
+ -
+
+ +
+
+
+
+
+ 房间{{idx+1}}
+
+
+
+ 联系电话
+
+
+
+
+
+
+
+
+
+
+
+ 优惠券
+
+ 选择优惠券
+
+ -¥{{coupon.activity.money/100}}
+ {{coupon.activity.fold}}折
+
+
+
+
+
+
+
+ 合计:
+ {{ total() / 100 }}
+
+
+ 立即预订
+
+
+
+
+
+
+
+
+