gree_leran/unpackage/dist/dev/mp-weixin/pages/index/index.js

103 lines
3.5 KiB
JavaScript
Raw Normal View History

2024-06-14 01:11:29 +00:00
"use strict";
const common_vendor = require("../../common/vendor.js");
if (!Array) {
const _easycom_up_search2 = common_vendor.resolveComponent("up-search");
const _easycom_up_swiper2 = common_vendor.resolveComponent("up-swiper");
const _easycom_up_grid_item2 = common_vendor.resolveComponent("up-grid-item");
const _easycom_up_grid2 = common_vendor.resolveComponent("up-grid");
const _easycom_up_text2 = common_vendor.resolveComponent("up-text");
(_easycom_up_search2 + _easycom_up_swiper2 + _easycom_up_grid_item2 + _easycom_up_grid2 + _easycom_up_text2)();
}
const _easycom_up_search = () => "../../node-modules/uview-plus/components/u-search/u-search.js";
const _easycom_up_swiper = () => "../../node-modules/uview-plus/components/u-swiper/u-swiper.js";
const _easycom_up_grid_item = () => "../../node-modules/uview-plus/components/u-grid-item/u-grid-item.js";
const _easycom_up_grid = () => "../../node-modules/uview-plus/components/u-grid/u-grid.js";
const _easycom_up_text = () => "../../node-modules/uview-plus/components/u-text/u-text.js";
if (!Math) {
(_easycom_up_search + _easycom_up_swiper + _easycom_up_grid_item + _easycom_up_grid + _easycom_up_text + newsCard)();
}
const newsCard = () => "../../components/newsCard.js";
const _sfc_main = {
__name: "index",
setup(__props) {
const swipe = common_vendor.reactive([
"/static/stu.png"
]);
const newsList = common_vendor.reactive([{
title: "测试",
image: "/static/stu.png",
detile: "这是一个测试",
time: "2024-6-1"
}]);
const baseList = common_vendor.ref([
{
src: "/static/icon/video.png",
2024-06-16 15:32:15 +00:00
title: "视频",
url: "/pages/video/video"
2024-06-14 01:11:29 +00:00
},
{
src: "/static/icon/talk.png",
2024-06-16 15:32:15 +00:00
title: "讨论",
url: "/pages/discuss/discuss"
2024-06-14 01:11:29 +00:00
},
{
src: "/static/icon/score.png",
2024-06-16 15:32:15 +00:00
title: "积分",
url: "/pages/intergral/intergral"
2024-06-14 01:11:29 +00:00
},
{
src: "/static/icon/me.png",
title: "我的"
}
]);
2024-06-16 15:32:15 +00:00
function NavicatToBaseItems(item) {
common_vendor.index.navigateTo({
url: item.url
});
}
2024-06-14 01:11:29 +00:00
return (_ctx, _cache) => {
return {
a: common_vendor.o(($event) => _ctx.keyword = $event),
b: common_vendor.p({
placeholder: "日照香炉生紫烟",
clearabled: true,
animation: "false",
modelValue: _ctx.keyword
}),
c: common_vendor.p({
height: "150",
list: swipe
}),
d: common_vendor.f(baseList.value, (baseListItem, baseListIndex, i0) => {
return {
a: baseListItem.src,
b: common_vendor.t(baseListItem.title),
c: baseListIndex,
2024-06-16 15:32:15 +00:00
d: common_vendor.o(($event) => NavicatToBaseItems(baseListItem), baseListIndex),
2024-06-16 23:47:03 +00:00
e: "5cad4243-3-" + i0 + ",5cad4243-2"
2024-06-14 01:11:29 +00:00
};
}),
e: common_vendor.p({
border: false,
col: "4"
}),
f: common_vendor.p({
margin: "1em",
type: "primary",
text: "新闻"
}),
g: common_vendor.f(newsList, (i, k0, i0) => {
return {
2024-06-16 23:47:03 +00:00
a: "5cad4243-5-" + i0,
2024-06-14 01:11:29 +00:00
b: common_vendor.p({
info: i
})
};
})
};
};
}
};
2024-06-16 23:47:03 +00:00
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/pages/index/index.vue"]]);
2024-06-14 01:11:29 +00:00
wx.createPage(MiniProgramPage);