修改本地生活商家分类的显示逻辑
This commit is contained in:
parent
81b65f9eb9
commit
70d90876ee
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user