【fix】优化代码

This commit is contained in:
黄少君
2024-02-22 18:37:23 +08:00
parent 17c043348a
commit f8fac0a5bc
246 changed files with 973 additions and 406 deletions

View File

@ -1,6 +1,6 @@
<template>
<global-loading />
<div class="hom-pro-list">
<div class="hom-pro-list" v-if="productData.length > 0">
<div class="header">
<div class="header-warp">
<div class="title">商品推荐</div>
@ -115,7 +115,7 @@
<div
class="product-list-box"
v-if="productData.length>0">
v-if="!loading">
<div
class="product-list-item-warp"
v-for="(col,i) in colList"
@ -216,7 +216,7 @@ const props = defineProps({
},
});
const {typeId, componentContent} = toRefs(props);
const {productData, jumpProductDetail, jumpProList, loadNext, getPercentageNum} = productMixin(componentContent);
const {productData, jumpProductDetail, jumpProList, loadNext, getPercentageNum, loading} = productMixin(componentContent);
const swiperCurrent = ref(0)
const colList = computed(() => [