修改本地生活商家分类的显示逻辑

This commit is contained in:
赵毅 2025-08-07 09:53:42 +08:00
parent 81b65f9eb9
commit 70d90876ee

View File

@ -39,7 +39,7 @@
<div class="dot"> <div class="dot">
<div <div
class="dotItem" class="dotItem"
v-for="(page, index) in swiperList" v-for="(page, index) in swiperList" :key="index"
:class="currentIndex == index ? 'actives' : ''" :class="currentIndex == index ? 'actives' : ''"
></div> ></div>
</div> </div>
@ -82,6 +82,7 @@
<div class="startList"> <div class="startList">
<image <image
v-for="index in 5" v-for="index in 5"
:key="index"
:src=" :src="
index < item.rating index < item.rating
? 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/local_start1.png' ? 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/local_start1.png'
@ -198,6 +199,7 @@ export default {
async getCateList() { async getCateList() {
let that = this; let that = this;
await request(apiArr.getMerChantCateList, "POST").then((res) => { await request(apiArr.getMerChantCateList, "POST").then((res) => {
res.rows = res.rows.filter((item) => item.is_visible == 1)
console.log(res); console.log(res);
// 10 // 10
const chunkSize = 10; const chunkSize = 10;