Files
test/unpackage/dist/dev/mp-weixin/pages/classify/classify.js

62 lines
1.9 KiB
JavaScript

"use strict";
const common_vendor = require("../../common/vendor.js");
const api_apis = require("../../api/apis.js");
if (!Array) {
const _easycom_custom_nav_bar2 = common_vendor.resolveComponent("custom-nav-bar");
const _easycom_theme_item2 = common_vendor.resolveComponent("theme-item");
(_easycom_custom_nav_bar2 + _easycom_theme_item2)();
}
const _easycom_custom_nav_bar = () => "../../components/custom-nav-bar/custom-nav-bar.js";
const _easycom_theme_item = () => "../../components/theme-item/theme-item.js";
if (!Math) {
(_easycom_custom_nav_bar + _easycom_theme_item)();
}
const _sfc_main = {
__name: "classify",
setup(__props) {
const classifyList = common_vendor.ref([]);
const getClassify = async () => {
let res = await api_apis.apiGetClassify({
// select:true
pageSize: 15
});
classifyList.value = res.data;
};
getClassify();
common_vendor.onShareAppMessage((e) => {
return {
title: "hzb壁纸,精选分类",
path: "/pages/classfy/classfy"
};
});
common_vendor.onShareTimeline(() => {
return {
// 标题
title: "hzb壁纸,精选分类",
// 分享时候的图片地址。可以本地也可以网络图
imageUrl: "/static/images/logo2.jpg"
};
});
return (_ctx, _cache) => {
return {
a: common_vendor.p({
title: "分类"
}),
b: common_vendor.f(classifyList.value, (item, k0, i0) => {
return {
a: item._id,
b: "6bcfa975-1-" + i0,
c: common_vendor.p({
item
})
};
})
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-6bcfa975"]]);
_sfc_main.__runtimeHooks = 6;
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/classify/classify.js.map