classList.js
1.1 KB
"use strict";
var common_vendor = require("../../common/vendor.js");
var api_index = require("../../api/index.js");
require("../../utils/request.js");
if (!Math) {
(search + shops)();
}
const search = () => "../../componets/searchBox.js";
const shops = () => "../../componets/shops.js";
const _sfc_main = {
setup(__props) {
const shopList = common_vendor.ref([]);
common_vendor.onLoad(async ({ pid }) => {
const res = await api_index.getCategoryGoods({ pid });
shopList.value = res;
console.log(res, "\u5206\u7C7B\u5546\u54C1\u5217\u8868");
});
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.p({
list: shopList.value,
shopWidth: 344,
shopHeight: 344,
isClass: true
}),
b: !shopList.value.length
}, !shopList.value.length ? {} : {});
};
}
};
var MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/pages/class/classList.vue"]]);
wx.createPage(MiniProgramPage);