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");
|
2024-06-20 15:36:19 +00:00
|
|
|
const _easycom_CaseList2 = common_vendor.resolveComponent("CaseList");
|
|
|
|
const _easycom_MenTab2 = common_vendor.resolveComponent("MenTab");
|
|
|
|
(_easycom_up_search2 + _easycom_up_swiper2 + _easycom_up_grid_item2 + _easycom_up_grid2 + _easycom_up_text2 + _easycom_CaseList2 + _easycom_MenTab2)();
|
2024-06-14 01:11:29 +00:00
|
|
|
}
|
|
|
|
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";
|
2024-06-20 15:36:19 +00:00
|
|
|
const _easycom_CaseList = () => "../../components/CaseList/CaseList.js";
|
|
|
|
const _easycom_MenTab = () => "../../components/MenTab/MenTab.js";
|
2024-06-14 01:11:29 +00:00
|
|
|
if (!Math) {
|
2024-06-20 15:36:19 +00:00
|
|
|
(_easycom_up_search + _easycom_up_swiper + _easycom_up_grid_item + _easycom_up_grid + _easycom_up_text + _easycom_CaseList + _easycom_MenTab)();
|
2024-06-14 01:11:29 +00:00
|
|
|
}
|
|
|
|
const _sfc_main = {
|
|
|
|
__name: "index",
|
|
|
|
setup(__props) {
|
2024-06-20 15:36:19 +00:00
|
|
|
const app = getApp();
|
|
|
|
const caseList = common_vendor.ref(null);
|
|
|
|
common_vendor.ref(app.globalData.utils);
|
2024-06-14 01:11:29 +00:00
|
|
|
const swipe = common_vendor.reactive([
|
|
|
|
"/static/stu.png"
|
|
|
|
]);
|
2024-06-19 11:29:08 +00:00
|
|
|
const toTop = () => {
|
|
|
|
common_vendor.index.pageScrollTo({
|
|
|
|
scrollTop: 0,
|
|
|
|
duration: 300
|
|
|
|
});
|
|
|
|
};
|
2024-06-14 01:11:29 +00:00
|
|
|
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",
|
2024-06-20 15:36:19 +00:00
|
|
|
title: "我的",
|
|
|
|
url: "/pages/user/user"
|
2024-06-14 01:11:29 +00:00
|
|
|
}
|
|
|
|
]);
|
2024-06-16 15:32:15 +00:00
|
|
|
function NavicatToBaseItems(item) {
|
|
|
|
common_vendor.index.navigateTo({
|
2024-06-20 15:36:19 +00:00
|
|
|
url: item.url,
|
|
|
|
fail: () => {
|
|
|
|
common_vendor.index.switchTab({
|
|
|
|
url: item.url,
|
|
|
|
fail: (err) => {
|
|
|
|
console.error("导航失败:", err);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
2024-06-16 15:32:15 +00:00
|
|
|
});
|
|
|
|
}
|
2024-06-14 01:11:29 +00:00
|
|
|
return (_ctx, _cache) => {
|
2024-06-20 15:36:19 +00:00
|
|
|
return {
|
2024-06-14 01:11:29 +00:00
|
|
|
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-19 11:29:08 +00:00
|
|
|
e: "adbc9592-3-" + i0 + ",adbc9592-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: "新闻"
|
|
|
|
}),
|
2024-06-19 11:29:08 +00:00
|
|
|
g: common_vendor.o(toTop),
|
2024-06-20 15:36:19 +00:00
|
|
|
h: common_vendor.sr(caseList, "adbc9592-5", {
|
|
|
|
"k": "caseList"
|
2024-06-14 01:11:29 +00:00
|
|
|
})
|
2024-06-20 15:36:19 +00:00
|
|
|
};
|
2024-06-14 01:11:29 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
2024-06-19 11:29:08 +00:00
|
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/uniapp1/gree_leran/pages/index/index.vue"]]);
|
2024-06-14 01:11:29 +00:00
|
|
|
wx.createPage(MiniProgramPage);
|