Browse Source

修改日期选择

soft5566 1 year ago
parent
commit
94df7d030a
2 changed files with 5 additions and 4 deletions
  1. 4 3
      pages/index/index.vue
  2. 1 1
      pages/my_orderlist/my_orderlist.vue

+ 4 - 3
pages/index/index.vue

@@ -79,12 +79,12 @@
 					</image>
 					<image v-else-if="item.h_type.indexOf('高级') !== -1" class="room-image" src="../../static/index/adv1.jpg"
 						@click="inputDialogToggle(item.h_type)"></image>
-					<image v-else="item.h_type.indexOf('豪华') !== -1" class="room-image" src="../../static/index/lux.jpg"
+					<image v-else class="room-image" src="../../static/index/lux.jpg"
 						@click="inputDialogToggle(item.h_type)"></image>
 					<view class="room-name">{{ item.h_type }}</view>
 					<view v-if="item.h_type.indexOf('标准') !== -1" class="room-mark">描述:面积约20平方米,配置1.35米双人床一张,点击左侧图片查看更多。</view>
 					<view v-else-if="item.h_type.indexOf('高级') !== -1" class="room-mark">描述:面积约28平方米,配置1.5米双人床一张,点击左侧图片查看更多。</view>
-					<view v-else="item.h_type.indexOf('豪华') !== -1" class="room-mark">描述:面积约40平方米,配置1.5米双人床一张,点击左侧图片查看更多。</view>
+					<view v-else class="room-mark">描述:面积约40平方米,配置1.5米双人床一张,点击左侧图片查看更多。</view>
 					<view class="room-icon">
 						<image src="../../static/index/index_wifi.svg" style="width: 30rpx;height: 30rpx;"></image>
 						<image src="../../static/index/index_kongtiao.svg" style="width: 26rpx;height: 26rpx;margin-left: 10rpx;"></image>
@@ -284,7 +284,7 @@
 			// TODO 模拟请求异步同步数据
 			setTimeout(() => {
 				const now = new Date();
-				const theEndDate = new Date('2023-09-15');
+				const theEndDate = new Date('2030-09-15');
 				// console.log('date:'+getDate(new Date()).fullDate)
 				// console.log('startDate:'+getDate(new Date()).fullDate)
 				// console.log('startWeek:'+getDate(new Date()).eWeek)
@@ -295,6 +295,7 @@
 				that.info.date = arrDate.date
 				that.info.startDate = arrDate.date
 				that.info.endDate = arrDate_6.date
+				console.log(that.info.endDate);
 				that.infoXu.date = arrDate.date
 				that.infoXu.startDate = arrDate.date
 				that.infoXu.endDate = arrDate_6.date

+ 1 - 1
pages/my_orderlist/my_orderlist.vue

@@ -19,7 +19,7 @@
 				<view>
 					<image class="room-image" v-if="item.h_type.indexOf('标准') !== -1" src="../../static/index/std.jpg"></image>
 					<image class="room-image" v-if="item.h_type.indexOf('高级') !== -1" src="../../static/index/adv.jpg"></image>
-					<image class="room-image" v-if="item.h_type.indexOf('豪华') !== -1" src="../../static/index/lux.jpg"></image>
+					<image class="room-image" v-else src="../../static/index/lux.jpg"></image>
 					<view class="room-name">{{ item.h_type }}</view>
 					<view class="room-time">{{item.live_time|snippet}}~{{item.end_time|snippet}}</view>
 					<view class="room-order">订单号:{{item.order_num}}</view>