From b3f85d807d75b5a0e6e95aa025825c5bfb68ff81 Mon Sep 17 00:00:00 2001 From: lifizer <913626195@qq.com> Date: Wed, 18 Sep 2024 11:40:20 +0800 Subject: [PATCH] =?UTF-8?q?Feat(=E8=B6=A3=E5=91=B3):=E8=BD=AE=E6=92=AD?= =?UTF-8?q?=E5=B9=BF=E5=91=8A=E4=BD=8D=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/cloud/haveFun.vue | 61 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/pages/cloud/haveFun.vue b/pages/cloud/haveFun.vue index ec388e6..b5dc066 100644 --- a/pages/cloud/haveFun.vue +++ b/pages/cloud/haveFun.vue @@ -31,6 +31,36 @@ + + + + + + + + + + + + + + + + @@ -95,6 +125,8 @@ export default { page: 1, typeList: [], typeIndex: 0, + // 当前选中的类型 + currType: {}, cityName: '', hotelList: [], isLoad: false, @@ -119,6 +151,7 @@ export default { onLoad() { getHotelTypeList().then(({data}) => { this.typeList = data + this.currType = data[this.typeIndex] this.getMapData() }) }, @@ -154,6 +187,7 @@ export default { tapType(index) { if (this.typeIndex === index) return this.typeIndex = index + this.currType = this.typeList[index] this.name = '' this.search() }, @@ -192,6 +226,10 @@ export default { }).finally(() => { this.isLoad = true }) + }, + typeBannerItemClick(item) { + if (!item.hotelId) return + uni.navigateTo({ url: `/pagesInn/inn/innHome?id=${item.hotelId}` }) } } } @@ -297,4 +335,27 @@ export default { .tabbar-page { padding: 0 0 180rpx 0; } +.type-banner-wrap { + padding: 0 20rpx; + background-color: #f0f0f0; + .title { + padding: 20rpx 0; + .img { + display: block; + height: 48rpx; + } + } + .slider-wrap { + width: 100%; + height: 330rpx; + padding: 0 0 20rpx 0; + .swiper-item { + .img { + display: block; + width: 100%; + height: 330rpx; + } + } + } +}