Fix:2459 【商城小程序】康养首页--城市列表应以三列进行展示

This commit is contained in:
modendeveloper
2024-10-10 19:17:12 +08:00
parent 8c2e785ea0
commit b3d8fefaba
+20 -11
View File
@@ -92,23 +92,23 @@
<view class="article-box">
<view class="v12-mt-2 v12-ml-3 v12-px-1 v12-font-28 v12-dark-text v12-font-bold label-wrap">{{ label }}</view>
<scroll-view
v-if="dataList.length > 0"
:style="{'height':listHeight}"
:enable-flex="true"
:scroll-anchoring="true"
:scroll-y="true"
:scroll-with-animation="true"
:enable-back-to-top="true"
class="list flex flex-wrap"
@scrolltolower="onLower"
>
v-if="dataList.length > 0"
:style="{'height':listHeight}"
:enable-flex="true"
:scroll-anchoring="true"
:scroll-y="true"
:scroll-with-animation="true"
:enable-back-to-top="true"
class="list flex flex-wrap"
@scrolltolower="onLower"
>
<view
v-for="(item, index) in dataList"
:key="index"
>
<view
v-if="tabIndex === 0"
class="item item-store"
class="city-item"
@click="goStore(item.id, item.cityName)"
>
<image
@@ -305,6 +305,15 @@ export default {
<style scoped lang="less">
@import "@/assets/css/product.less";
.cover{
width: 160rpx !important;
height: 160rpx !important;
border-radius: 8rpx;
}
.city-item{
width: 160rpx !important;
margin: 30rpx 0rpx 0rpx 20rpx;
}
.news-title{
white-space: nowrap;
}