From 176c6918c51089da3027646d0976f2301c45dc3c Mon Sep 17 00:00:00 2001 From: zhangyao Date: Mon, 24 Jul 2023 18:22:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=BB=9A=E5=8A=A8=E6=9D=A1=EF=BC=8C=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E5=93=81=E7=89=8C=E6=A5=BC=E5=B1=82=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E4=BD=8D=E7=BD=AE=EF=BC=8C=E4=BF=AE=E6=94=B9=E6=8E=A8=E8=8D=90?= =?UTF-8?q?=E5=BA=97=E9=93=BA=E7=9A=84=E6=BB=91=E5=8A=A8=E9=80=9F=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/types/activity.d.ts | 4 +--- src/views/Activity/Activity.vue | 8 +------- src/views/Brand/recommendShop.vue | 4 +++- src/views/Brand/shopList.vue | 3 ++- src/views/Service/Service.vue | 18 +++++++++++++++--- 5 files changed, 22 insertions(+), 15 deletions(-) diff --git a/src/types/activity.d.ts b/src/types/activity.d.ts index fb7537f..fc313dd 100644 --- a/src/types/activity.d.ts +++ b/src/types/activity.d.ts @@ -11,14 +11,12 @@ declare interface Activity { buildingCode?: string startDate?: string //开始日期 endDate?: string //结束日期 - limitStartDate?: string //上线开始日期 - limitEndDate?: string //下线结束日期 fileUrl: string[] //封面 fileUrls?: string[] //活动详情图片列表 floor?: string //楼层 floorOrder?: number point: string // 导航点 shopCode: string //关联店铺code - logoCode?: string //一些地方用到这个字段 + logo_code?: string //一些地方用到这个字段 facilityCode?: string //服务里需要这个字段 } diff --git a/src/views/Activity/Activity.vue b/src/views/Activity/Activity.vue index ca195ef..497db3b 100644 --- a/src/views/Activity/Activity.vue +++ b/src/views/Activity/Activity.vue @@ -127,14 +127,8 @@ function getData(type: 'mall' | 'shop') { const fun = type === 'mall' ? getMallActivity() : getShopActivity() fun.then(res => { // actList.value = res.data ?? [] - const nowDate = new Date() for (let t = 0; t < res.data.length; t++) { - const ele = res.data[t] - const limitStartDate = new Date(ele.content.limitStartDate) - const limitEndDate = new Date(ele.content.limitEndDate) - if (nowDate.getTime() >= limitStartDate.getTime() && nowDate.getTime() < limitEndDate.getTime()) { - actList.value.push({ id: ele.id, ...ele.content }) - } + actList.value.push({ id: res.data[t].id, ...res.data[t].content }) } showList.value = true }) diff --git a/src/views/Brand/recommendShop.vue b/src/views/Brand/recommendShop.vue index 8c7a30c..bbf0742 100644 --- a/src/views/Brand/recommendShop.vue +++ b/src/views/Brand/recommendShop.vue @@ -28,7 +28,9 @@ : false " :free-mode="{ - enabled: true + enabled: true, + momentumRatio: 0.2, + momentumVelocityRatio: 0.2 }" :enabled="recList.length > 3" :loop="recList.length > 3" diff --git a/src/views/Brand/shopList.vue b/src/views/Brand/shopList.vue index 1f76bd9..eb1661f 100644 --- a/src/views/Brand/shopList.vue +++ b/src/views/Brand/shopList.vue @@ -383,10 +383,11 @@ function myScrollEnd() { padding-left: 0; .right-control-area { position: absolute; + top: 134px; right: 0; width: 230px; height: 622px; - margin-top: 134px; + margin-top: 0; margin-left: 28px; .format-items { diff --git a/src/views/Service/Service.vue b/src/views/Service/Service.vue index dc94df8..dcab413 100644 --- a/src/views/Service/Service.vue +++ b/src/views/Service/Service.vue @@ -18,7 +18,7 @@ - +
    @@ -126,6 +126,18 @@ getData() // border-radius: 6px !important; // } // } +:deep(.bscroll-horizontal-scrollbar) { + z-index: 3 !important; + width: 500px !important; + background: rgb(0 0 0 / 10%); + border-radius: 6px; + opacity: 1 !important; + .bscroll-indicator { + background: #e00068 !important; + border: none !important; + border-radius: 6px !important; + } +} .service-container { overflow: hidden; padding-top: 152px; @@ -136,7 +148,7 @@ getData() .service-scroll { position: relative; overflow: hidden; - width: 1828px; + width: 1860.5px; height: 615px; margin-top: 40px; margin-left: 0; @@ -149,7 +161,7 @@ getData() display: grid; grid-template-rows: 1fr 1fr; grid-auto-flow: column; - gap: 16px 16px; + gap: 12px 12px; } } }