|
|
@@ -79,8 +79,7 @@
|
|
|
</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 class="room-image" src="../../static/index/lux.jpg"
|
|
|
- @click="inputDialogToggle(item.h_type)"></image>
|
|
|
+ <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>
|
|
|
@@ -236,6 +235,24 @@
|
|
|
}
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
+ // 获取当前时间
|
|
|
+ const now = new Date()
|
|
|
+ // 设置指定日期
|
|
|
+ const specifiedDate = new Date('2024-08-15');
|
|
|
+
|
|
|
+ // 将指定日期的时间设置为0时0分0秒
|
|
|
+ specifiedDate.setHours(0, 0, 0, 0);
|
|
|
+
|
|
|
+ // 比较当前时间和指定日期
|
|
|
+ if (now < specifiedDate) {
|
|
|
+ // 如果当前时间早于指定日期的0时0分0秒,执行跳转
|
|
|
+ uni.redirectTo({
|
|
|
+ url: '/pages/default/default' // 跳转的目标页面路径
|
|
|
+ });
|
|
|
+
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
// console.log('index.options:', options.card_number);
|
|
|
if (!options.hasOwnProperty("card_number")) {
|
|
|
uni.showLoading({
|