From 7164c6e9a1beb349d50a4ec55075cd8948ac8540 Mon Sep 17 00:00:00 2001 From: wangxiaowei <1121133807@qq.com> Date: Sat, 16 Aug 2025 18:11:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E9=A2=84=E7=BA=A6=E8=8C=B6?= =?UTF-8?q?=E5=AE=A4=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/mescroll-item.vue | 97 +++++++++++ src/components/recharge-btn.vue | 19 +++ src/pages-sub/reserve-room/reserve-room.vue | 172 +++++++++++++++++++- src/pages/index/index.vue | 24 +-- 4 files changed, 292 insertions(+), 20 deletions(-) create mode 100644 src/components/mescroll-item.vue create mode 100644 src/components/recharge-btn.vue diff --git a/src/components/mescroll-item.vue b/src/components/mescroll-item.vue new file mode 100644 index 0000000..12b5d08 --- /dev/null +++ b/src/components/mescroll-item.vue @@ -0,0 +1,97 @@ + + + + + + diff --git a/src/components/recharge-btn.vue b/src/components/recharge-btn.vue new file mode 100644 index 0000000..f15daa8 --- /dev/null +++ b/src/components/recharge-btn.vue @@ -0,0 +1,19 @@ + + + + + diff --git a/src/pages-sub/reserve-room/reserve-room.vue b/src/pages-sub/reserve-room/reserve-room.vue index 7ade130..ec83b64 100644 --- a/src/pages-sub/reserve-room/reserve-room.vue +++ b/src/pages-sub/reserve-room/reserve-room.vue @@ -24,28 +24,157 @@ + + + + + + + + + 凝香茶业 + + + + 4.0 推荐 + + + 营业时间:周一至周日 08:00-20:00 + + + + 1分钟前有人充值 + + + + + + + + + + + + 青浦区仓路478号 + + 距您14km + + + + + 导航 + + + + 电话 + + + + + + + + + + + + + + + + + + + + + + + @@ -57,4 +186,43 @@ .right-slot { padding-right: v-bind(rightPadding); } + + .swiper { + :deep() { + .wd-swiper-nav__item--dots-bar { + width: 56rpx !important; + height: 6rpx !important; + border-radius: 3rpx !important; + } + + .is-active { + background-color: #2B9F93 !important; + } + } + } + + .tabs { + :deep() { + + .wd-tabs__nav-item { + font-size: 32rpx !important; + color: #303133 !important; + line-height: 42rpx !important; + padding: 0 30rpx !important; + } + + .wd-tabs__nav-item.is-active { + font-weight: 500 !important; + } + + .wd-tabs__line { + bottom: 0 !important; + width: 60rpx !important; + height: 16rpx !important; + background-color: transparent !important; + background-image: url(#{$OSS}images/reserve_room_image1.png) !important; + background-size: cover !important; + } + } + } diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index f6564cc..3f2638a 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -56,7 +56,7 @@ - @@ -114,11 +114,11 @@ let navbarHeight = ref(0) let OSS = inject('OSS') - let swiperList = ref([ - { id: 1, image: `${OSS}images/banner1.png` }, - { id: 2, image: `${OSS}images/banner1.png` }, - { id: 3, image: `${OSS}images/banner1.png` } - ]) + const swiperList = ref([ + `${OSS}images/banner1.png`, + `${OSS}images/banner1.png`, + `${OSS}images/banner1.png` + ]) const current = ref(0) const { mescrollInit, downCallback } = useMescroll(onPageScroll, onReachBottom) // 调用mescroll的hook @@ -127,18 +127,6 @@ }) const home = { - upOption: { - // page: { - // num: 0, // 当前页码,默认0,回调之前会加1,即callback(page)会从1开始 - // size: 10 // 每页数据的数量 - // }, - noMoreSize: 4, //如果列表已无数据,可设置列表的总数量要大于半页才显示无更多数据;避免列表数据过少(比如只有一条数据),显示无更多数据会不好看; 默认5 - empty: { - tip: '~ 搜索无数据 ~', // 提示 - btnText: '去看看' - } - }, - toCity: () => { uni.navigateTo({ url: '/pages/city/city'