暂存代码

This commit is contained in:
何江明
2025-05-23 18:03:45 +08:00
parent 8217069b9a
commit a2c87e47bf
313 changed files with 6157 additions and 1102 deletions
+15 -8
View File
@@ -71,8 +71,9 @@
</template>
<script>
import { getCascadeCategory } from '@/api/common.js';
import { getCascadeCategory,getCarouselImage } from '@/api/common.js';
import CustomTabBar from '@/components/custom-tab-bar.vue';
import { APP_PAGE_TYPE } from '@/utils/enumUtils.js'
export default {
components:{CustomTabBar},
@@ -83,11 +84,7 @@
current: null, // 预设当前项的值
menuHeight: 0, // 左边菜单的高度
menuItemHeight: 0, // 左边菜单item的高度
bannerList:[
'/static/common/product_def_banner.png',
'/static/common/product_def_banner.png',
'/static/common/product_def_banner.png'
],
bannerList:[],
tabbarList:[],// 左侧的主分类
tabbarContentList:[],// 右侧内容的分类
tabbarContentLoading:false,
@@ -99,8 +96,6 @@
animation: false
})
/*#endif*/
},
onShow() {
const then = this;
this.getSort(0).then(resp=>{
if(resp && resp.length !==0){
@@ -125,11 +120,23 @@
}
}
});
this.getCarouselImage();
},
methods: {
checkCategory(val){
this.selCategory = val;
},
// 查询轮播图
async getCarouselImage(){
const params={
pageUi:APP_PAGE_TYPE.SORT,
}
const resp = await getCarouselImage(params);
if(resp && resp.bizcode === 100){
const data = resp.data || [];
this.bannerList = data.length !== 0 ? data.map(obj=>obj.carouselImage) : [];
}
},
jumpSearch(item){
let path = "/pages/search/search";
if(item && Object.keys(item).length !==0){