暂存代码

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
+14 -3
View File
@@ -2,20 +2,31 @@
const common_vendor = require("../../common/vendor.js");
const api_product = require("../../api/product.js");
const utils_enumUtils = require("../../utils/enumUtils.js");
const api_common = require("../../api/common.js");
const _sfc_main = {
data() {
return {
swiperList: [
"/static/home/banner03.png"
],
swiperList: [],
productList: [],
productListLoading: false
};
},
onLoad() {
this.getSearchList();
this.getCarouselImage();
},
methods: {
// 查询轮播图
async getCarouselImage() {
const params = {
pageUi: utils_enumUtils.APP_PAGE_TYPE.GOOD
};
const resp = await api_common.getCarouselImage(params);
if (resp && resp.bizcode === 100) {
const data = resp.data || [];
this.swiperList = data.length !== 0 ? data.map((obj) => obj.carouselImage) : [];
}
},
jumpHome() {
common_vendor.index.switchTab({
url: "/pages/home/home"