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));