|
@@ -8,7 +8,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
<!-- 第一层公寓名称卡片 -->
|
|
<!-- 第一层公寓名称卡片 -->
|
|
|
<view class="uni-ka" style="margin-top: -40px;margin-bottom:0px;">
|
|
<view class="uni-ka" style="margin-top: -40px;margin-bottom:0px;">
|
|
|
- <text class="uni-title">墨轩湖姬子公寓(南昌交通学院)</text>
|
|
|
|
|
|
|
+ <text class="uni-title">研究生公寓(南昌交通学院)</text>
|
|
|
<text class="uni-sub-title">2021年装修 | 智能门锁 | 房间wifi | 免费停车</text>
|
|
<text class="uni-sub-title">2021年装修 | 智能门锁 | 房间wifi | 免费停车</text>
|
|
|
<text class="uni-extra" @click="navigateToXiangqing">设施/详情></text>
|
|
<text class="uni-extra" @click="navigateToXiangqing">设施/详情></text>
|
|
|
<text class="uni-body">江西省宜春市靖安县墨轩湖大道1号</text>
|
|
<text class="uni-body">江西省宜春市靖安县墨轩湖大道1号</text>
|
|
@@ -19,24 +19,24 @@
|
|
|
<br><text class="uni-body2">距离我{{distance}}km</text>
|
|
<br><text class="uni-body2">距离我{{distance}}km</text>
|
|
|
</view>
|
|
</view>
|
|
|
<!-- 第二层工具 -->
|
|
<!-- 第二层工具 -->
|
|
|
- <view class="item-list">
|
|
|
|
|
|
|
+ <!-- <view class="item-list">
|
|
|
<view class="item-list-one" @click="navigateToXuzhi">
|
|
<view class="item-list-one" @click="navigateToXuzhi">
|
|
|
<image src="../../static/index/xuzhi.png" class="img-btn" height="100%" width="100%"></image>
|
|
<image src="../../static/index/xuzhi.png" class="img-btn" height="100%" width="100%"></image>
|
|
|
<text class="list-txt">入住须知</text>
|
|
<text class="list-txt">入住须知</text>
|
|
|
</view>
|
|
</view>
|
|
|
- <!-- <view class="item-list-one" @click="navigateToDairuzhu('warn')">
|
|
|
|
|
- <image src="../../static/index/ruzhu.png" class="img-btn"></image>
|
|
|
|
|
- <text class="list-txt">办理入住</text>
|
|
|
|
|
- </view> -->
|
|
|
|
|
- <!-- <view class="item-list-one" @click="navigateToXuzhu">
|
|
|
|
|
- <image src="../../static/index/index_xuzhu.svg" class="img-btn"></image>
|
|
|
|
|
- <text class="list-txt">办理续住</text>
|
|
|
|
|
- </view> -->
|
|
|
|
|
|
|
+ <view class="item-list-one" @click="navigateToDairuzhu('warn')">
|
|
|
|
|
+ <image src="../../static/index/ruzhu.png" class="img-btn"></image>
|
|
|
|
|
+ <text class="list-txt">办理入住</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="item-list-one" @click="navigateToXuzhu">
|
|
|
|
|
+ <image src="../../static/index/index_xuzhu.svg" class="img-btn"></image>
|
|
|
|
|
+ <text class="list-txt">办理续住</text>
|
|
|
|
|
+ </view>
|
|
|
<view class="item-list-one" @click="navigateToTuifang('warn')">
|
|
<view class="item-list-one" @click="navigateToTuifang('warn')">
|
|
|
<image src="../../static/index/tuifang.png" class="img-btn"></image>
|
|
<image src="../../static/index/tuifang.png" class="img-btn"></image>
|
|
|
<text class="list-txt">办理退房</text>
|
|
<text class="list-txt">办理退房</text>
|
|
|
</view>
|
|
</view>
|
|
|
- </view>
|
|
|
|
|
|
|
+ </view> -->
|
|
|
<!-- 退房失败时弹框 -->
|
|
<!-- 退房失败时弹框 -->
|
|
|
<!-- <uni-popup ref="popup_tui" type="center" width="300rpx" height="300rpx" background-color="#fff">
|
|
<!-- <uni-popup ref="popup_tui" type="center" width="300rpx" height="300rpx" background-color="#fff">
|
|
|
<view class="kuang_txt_tui">
|
|
<view class="kuang_txt_tui">
|
|
@@ -78,14 +78,14 @@
|
|
|
<!-- <image v-if="item.h_type.indexOf('标准') !== -1" class="room-image" src="../../static/index/std.jpg" @click="inputDialogToggle(item.id)"></image> -->
|
|
<!-- <image v-if="item.h_type.indexOf('标准') !== -1" class="room-image" src="../../static/index/std.jpg" @click="inputDialogToggle(item.id)"></image> -->
|
|
|
<image v-if="item.h_type.indexOf('标准') !== -1" class="room-image" src="../../static/index/std.jpg" @click="inputDialogToggle(item.h_type)">
|
|
<image v-if="item.h_type.indexOf('标准') !== -1" class="room-image" src="../../static/index/std.jpg" @click="inputDialogToggle(item.h_type)">
|
|
|
</image>
|
|
</image>
|
|
|
- <image v-else-if="item.h_type.indexOf('高级') !== -1" class="room-image" src="../../static/index/adv.jpg"
|
|
|
|
|
|
|
+ <image v-else-if="item.h_type.indexOf('高级') !== -1" class="room-image" src="../../static/index/adv1.jpg"
|
|
|
@click="inputDialogToggle(item.h_type)"></image>
|
|
@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="item.h_type.indexOf('豪华') !== -1" class="room-image" src="../../static/index/lux.jpg"
|
|
|
@click="inputDialogToggle(item.h_type)"></image>
|
|
@click="inputDialogToggle(item.h_type)"></image>
|
|
|
<view class="room-name">{{ item.h_type }}</view>
|
|
<view class="room-name">{{ item.h_type }}</view>
|
|
|
- <view v-if="item.h_type.indexOf('标准') !== -1" class="room-mark">描述:标准公寓套内面积约20平方米。详情请点击左侧图片。</view>
|
|
|
|
|
- <view v-else-if="item.h_type.indexOf('高级') !== -1" class="room-mark">描述:高级公寓套内面积约28平方米。详情请点击左侧图片。</view>
|
|
|
|
|
- <view v-else="item.h_type.indexOf('豪华') !== -1" class="room-mark">描述:豪华公寓套内面积约40平方米。详情请点击左侧图片。</view>
|
|
|
|
|
|
|
+ <view v-if="item.h_type.indexOf('标准') !== -1" class="room-mark">描述:面积约20平方米,配置1.5米大床房一张,点击左侧图片查看更多。</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 class="room-icon">
|
|
<view class="room-icon">
|
|
|
<image src="../../static/index/index_wifi.svg" style="width: 30rpx;height: 30rpx;"></image>
|
|
<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>
|
|
<image src="../../static/index/index_kongtiao.svg" style="width: 26rpx;height: 26rpx;margin-left: 10rpx;"></image>
|
|
@@ -216,7 +216,7 @@
|
|
|
typeText: '', //房型详细描述
|
|
typeText: '', //房型详细描述
|
|
|
indicatorDots: true, //滚动图片提示条默认出现
|
|
indicatorDots: true, //滚动图片提示条默认出现
|
|
|
img: [], //轮播图里图片
|
|
img: [], //轮播图里图片
|
|
|
- phone: '0791-82293574', //电话
|
|
|
|
|
|
|
+ phone: '19807957890', //电话
|
|
|
latitude: '', // 默认当前纬度
|
|
latitude: '', // 默认当前纬度
|
|
|
longitude: '',
|
|
longitude: '',
|
|
|
scale: 12, // 默认16
|
|
scale: 12, // 默认16
|
|
@@ -283,12 +283,13 @@
|
|
|
// TODO 模拟请求异步同步数据
|
|
// TODO 模拟请求异步同步数据
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
|
const now = new Date();
|
|
const now = new Date();
|
|
|
|
|
+ const theEndDate = new Date('2023-09-15');
|
|
|
// console.log('date:'+getDate(new Date()).fullDate)
|
|
// console.log('date:'+getDate(new Date()).fullDate)
|
|
|
// console.log('startDate:'+getDate(new Date()).fullDate)
|
|
// console.log('startDate:'+getDate(new Date()).fullDate)
|
|
|
// console.log('startWeek:'+getDate(new Date()).eWeek)
|
|
// console.log('startWeek:'+getDate(new Date()).eWeek)
|
|
|
var arrDate = that.$utils.getDateComponents(now, 'date', 'time', 'weekday_cn', 'monthday_cn');
|
|
var arrDate = that.$utils.getDateComponents(now, 'date', 'time', 'weekday_cn', 'monthday_cn');
|
|
|
var arrDate_1 = that.$utils.getDateComponents(that.$utils.addDaysToDate(now, 1), 'date', 'time', 'weekday_cn', 'monthday_cn');
|
|
var arrDate_1 = that.$utils.getDateComponents(that.$utils.addDaysToDate(now, 1), 'date', 'time', 'weekday_cn', 'monthday_cn');
|
|
|
- var arrDate_6 = that.$utils.getDateComponents(that.$utils.addDaysToDate(now, 6), 'date', 'time', 'weekday_cn', 'monthday_cn');
|
|
|
|
|
|
|
+ var arrDate_6 = that.$utils.getDateComponents(theEndDate, 'date', 'time', 'weekday_cn', 'monthday_cn');
|
|
|
|
|
|
|
|
that.info.date = arrDate.date
|
|
that.info.date = arrDate.date
|
|
|
that.info.startDate = arrDate.date
|
|
that.info.startDate = arrDate.date
|
|
@@ -368,6 +369,7 @@
|
|
|
that.$myRequest({
|
|
that.$myRequest({
|
|
|
url: '/hotelReservation/zhotel/apphouse_list.action',
|
|
url: '/hotelReservation/zhotel/apphouse_list.action',
|
|
|
}).then(res => {
|
|
}).then(res => {
|
|
|
|
|
+ // console.log(res.data);
|
|
|
if (res.data.code === 200) {
|
|
if (res.data.code === 200) {
|
|
|
let data = res.data.data;
|
|
let data = res.data.data;
|
|
|
data.forEach(item => {
|
|
data.forEach(item => {
|
|
@@ -420,13 +422,13 @@
|
|
|
_self.typeText = ''
|
|
_self.typeText = ''
|
|
|
_self.img = []
|
|
_self.img = []
|
|
|
if (id === 1) {
|
|
if (id === 1) {
|
|
|
- _self.typeText = '一室一卫,内有沙发、茶几、空调、电视、衣柜、24小时热水、阳台房间朝南面。'
|
|
|
|
|
- _self.img = ['/static/index/std.jpg', '/static/index/std.jpg', '/static/index/std.jpg']
|
|
|
|
|
|
|
+ _self.typeText = '一室一卫,内有沙发、茶几、空调、电视、衣柜、24小时热水、阳台房间朝南面,1.5米双人床一张。'
|
|
|
|
|
+ _self.img = ['/static/index/std0.jpg', '/static/index/std.jpg']
|
|
|
} else if (id === 2) {
|
|
} else if (id === 2) {
|
|
|
- _self.typeText = '一室一厅一卫,有标准公寓所有设施,客厅配有空调、3座沙发、书桌。卧室、阳台均朝北面。'
|
|
|
|
|
- _self.img = ['/static/index/adv.jpg', '/static/index/adv1.jpg', '/static/index/adv2.jpg']
|
|
|
|
|
|
|
+ _self.typeText = '一室一厅一卫,有标准公寓所有设施,客厅配有空调、3座沙发、书桌。卧室、阳台均朝北面,1.5米双人床一张。'
|
|
|
|
|
+ _self.img = ['/static/index/adv1.jpg', '/static/index/adv.jpg', '/static/index/adv2.jpg']
|
|
|
} else {
|
|
} else {
|
|
|
- _self.typeText = '一室一厅一卫,有标准公寓所有设施,大客厅配落地空调、5座沙发、书桌。卧室、大阳台均朝南面。'
|
|
|
|
|
|
|
+ _self.typeText = '一室一厅一卫,有标准公寓所有设施,大客厅配落地空调、5座沙发、书桌。卧室、大阳台均朝南面,1.5米双人床一张。'
|
|
|
_self.img = ['/static/index/lux.jpg', '/static/index/lux1.jpg', '/static/index/lux2.jpg']
|
|
_self.img = ['/static/index/lux.jpg', '/static/index/lux1.jpg', '/static/index/lux2.jpg']
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -456,12 +458,12 @@
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
- // 跳转到入住须知
|
|
|
|
|
- navigateToXuzhi() {
|
|
|
|
|
- uni.navigateTo({
|
|
|
|
|
- url: "/pages/ruzhuxuzhi/ruzhuxuzhi",
|
|
|
|
|
- });
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ // // 跳转到入住须知
|
|
|
|
|
+ // navigateToXuzhi() {
|
|
|
|
|
+ // uni.navigateTo({
|
|
|
|
|
+ // url: "/pages/ruzhuxuzhi/ruzhuxuzhi",
|
|
|
|
|
+ // });
|
|
|
|
|
+ // },
|
|
|
// 跳转到公寓详情
|
|
// 跳转到公寓详情
|
|
|
navigateToXiangqing() {
|
|
navigateToXiangqing() {
|
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
@@ -541,7 +543,7 @@
|
|
|
} else if (h_type.indexOf('豪华') !== -1) {
|
|
} else if (h_type.indexOf('豪华') !== -1) {
|
|
|
this.getRoomTypeInfo(3)
|
|
this.getRoomTypeInfo(3)
|
|
|
} else {
|
|
} else {
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
popupClose() {
|
|
popupClose() {
|