暂存代码

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
+17 -5
View File
@@ -49,22 +49,34 @@
<script>
import { searchList } from '@/api/product.js';
import { SEARCH_TYPE } from '@/utils/enumUtils.js';
import { SEARCH_TYPE,APP_PAGE_TYPE } from '@/utils/enumUtils.js';
import { getCarouselImage } from '@/api/common.js';
export default {
data() {
return {
swiperList:[
'/static/home/banner03.png',
],
swiperList:[],
productList:[],
productListLoading:false,
}
},
onLoad() {
this.getSearchList();
this.getCarouselImage();
},
methods: {
// 查询轮播图
async getCarouselImage(){
const params={
pageUi:APP_PAGE_TYPE.GOOD,
}
const resp = await getCarouselImage(params);
if(resp && resp.bizcode === 100){
const data = resp.data || [];
this.swiperList = data.length !== 0 ? data.map(obj=>obj.carouselImage) : [];
}
},
jumpHome(){
uni.switchTab({
url: '/pages/home/home',