From 335d0e937cc7dd116a0ac7356a3be570e8b78e9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=A6=E5=BD=A6=E7=A5=96?= <605893810@qq.com> Date: Tue, 28 Oct 2025 14:42:51 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=85=88=E4=B8=93=E5=8C=BA?= =?UTF-8?q?=E4=B8=8A=E8=BD=AE=E6=92=AD=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/rwa_package/shop/fen-shop.vue | 6 ++-- pages/rwa_package/shop/you-shop.vue | 47 +++++++++++++++++++++++++++-- 2 files changed, 48 insertions(+), 5 deletions(-) diff --git a/pages/rwa_package/shop/fen-shop.vue b/pages/rwa_package/shop/fen-shop.vue index 67fb35c..0f84e25 100644 --- a/pages/rwa_package/shop/fen-shop.vue +++ b/pages/rwa_package/shop/fen-shop.vue @@ -15,6 +15,7 @@ circular > + 信任桥兑换 @@ -33,7 +34,6 @@ import TopSafe from '@/components/common/top-safe.nvue' import MyBtn from '@/components/common/my-btn.vue' import FenItem from '@/components/shop/fen-item.vue' import { searchList } from '@/api/product.js'; -import func from '@/utils/func.js'; import { getCarouselImage } from '@/api/common.js'; export default { @@ -107,8 +107,8 @@ export default { flex-direction: row; align-items: center; justify-content: center; - height:156rpx; - min-height:156rpx; + height:120rpx; + min-height:120rpx; } .swiper-view{ width:100%; diff --git a/pages/rwa_package/shop/you-shop.vue b/pages/rwa_package/shop/you-shop.vue index f3d0926..52b2a1f 100644 --- a/pages/rwa_package/shop/you-shop.vue +++ b/pages/rwa_package/shop/you-shop.vue @@ -8,8 +8,23 @@ + + + + + + + + 信任桥优选 + + + - + @@ -21,19 +36,22 @@ import TopSafe from '@/components/common/top-safe.nvue' import MyBtn from '@/components/common/my-btn.vue' import YouItem from '@/components/shop/you-item.vue' import { searchList } from '@/api/product.js'; +import { getCarouselImage } from '@/api/common.js'; export default { components: { Header, TopSafe,MyBtn,YouItem }, data() { return { dataList:[ - ] + ], + swiperList: ['https://cdn.uviewui.com/uview/swiper/swiper1.png'], }; }, onShow() { }, onLoad() { this.init(); + this.getCarouselImage(); }, methods: { init() { @@ -49,6 +67,16 @@ export default { if(resp && resp.bizcode === 100){ this.dataList = resp.data || []; } + }, + async getCarouselImage(){ + const params={ + pageUi:4, + } + const resp = await getCarouselImage(params); + if(resp && resp.bizcode === 100){ + const data = resp.data || []; + this.swiperList = data.length !== 0 ? data.map(obj=>obj.carouselImage) : []; + } }, onJumpShop(id){ uni.navigateTo({ @@ -76,6 +104,21 @@ export default { position: relative; } +.mid-panel{ + width:100%; + display: flex; + flex-direction: row; + align-items: center; + justify-content: center; + height:120rpx; + min-height:120rpx; +} +.swiper-view{ + width:100%; + height:268rpx; + min-height:268rpx; + display: flex; +} .setting-view { width: 100%; height: calc(100% - 88rpx - var(--status-bar-height));