首页拼团商品显示不全
This commit is contained in:
parent
16c2c1fa71
commit
a91fa4708b
@ -13,7 +13,7 @@
|
|||||||
<swiper :current="swiperCurrent" @animationfinish="animationfinish" style="height: 340rpx;">
|
<swiper :current="swiperCurrent" @animationfinish="animationfinish" style="height: 340rpx;">
|
||||||
<swiper-item class="swiper-item list" v-for="(_, i) in classifyList" :key="i">
|
<swiper-item class="swiper-item list" v-for="(_, i) in classifyList" :key="i">
|
||||||
<!-- 最多显示3个 -->
|
<!-- 最多显示3个 -->
|
||||||
<view v-if="groupList[i]">
|
<view v-if="groupList[i]" class="group-container">
|
||||||
<sitem :info="info" v-for="(info, index) in groupList[i].slice(0, 3)" :key="index"></sitem>
|
<sitem :info="info" v-for="(info, index) in groupList[i].slice(0, 3)" :key="index"></sitem>
|
||||||
</view>
|
</view>
|
||||||
<u-empty text="暂无拼团商品" mode="list" color="#000" v-if="!groupList[i] || !groupList[i].length" style="margin: 0 auto;"></u-empty>
|
<u-empty text="暂无拼团商品" mode="list" color="#000" v-if="!groupList[i] || !groupList[i].length" style="margin: 0 auto;"></u-empty>
|
||||||
@ -61,7 +61,7 @@ export default {
|
|||||||
gc_id: id,
|
gc_id: id,
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
this.groupList[this.current] = res.data;
|
this.groupList[this.current] = res.data;
|
||||||
// console.log(this.groupList);
|
console.log(this.groupList);
|
||||||
this.$forceUpdate();
|
this.$forceUpdate();
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@ -105,6 +105,7 @@ export default {
|
|||||||
.list {
|
.list {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 0 30rpx;
|
padding: 0 30rpx;
|
||||||
|
.group-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
> view {
|
> view {
|
||||||
&:not(:nth-child(3n)) {
|
&:not(:nth-child(3n)) {
|
||||||
@ -112,5 +113,6 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
@ -12,8 +12,8 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="version-view">
|
<view class="version-view">
|
||||||
<text class="title">版本更新</text>
|
<text class="title">版本更新</text>
|
||||||
<text class="tips" v-if="0">已是最新版本</text>
|
<text class="tips" v-if="1">已是最新版本</text>
|
||||||
<text class="tips" v-else @click="updateVersion">1.1.10</text>
|
<text class="tips" v-else @click="updateVersion">发现新版本</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user