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

49 lines
1.7 KiB
JavaScript
Raw Normal View History

2024-06-22 07:20:39 +00:00
"use strict";
const common_vendor = require("../../common/vendor.js");
if (!Array) {
const _easycom_up_subsection2 = common_vendor.resolveComponent("up-subsection");
const _easycom_CaseList2 = common_vendor.resolveComponent("CaseList");
const _easycom_ListVideo2 = common_vendor.resolveComponent("ListVideo");
(_easycom_up_subsection2 + _easycom_CaseList2 + _easycom_ListVideo2)();
}
const _easycom_up_subsection = () => "../../node-modules/uview-plus/components/u-subsection/u-subsection.js";
const _easycom_CaseList = () => "../../components/CaseList/CaseList.js";
const _easycom_ListVideo = () => "../../components/ListVideo/ListVideo.js";
if (!Math) {
(_easycom_up_subsection + _easycom_CaseList + _easycom_ListVideo)();
}
const _sfc_main = {
__name: "userLik",
setup(__props) {
const list = common_vendor.ref(["案例", "视频"]);
const curNow = common_vendor.ref(0);
function sectionChange(index) {
curNow.value = index;
console.log("当前选择为", curNow.value);
}
common_vendor.ref("");
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.o(sectionChange),
b: common_vendor.p({
list: list.value,
current: curNow.value
}),
c: curNow.value == 0
}, curNow.value == 0 ? {
d: common_vendor.p({
isLik: true
})
} : {}, {
e: curNow.value == 1
}, curNow.value == 1 ? {
f: common_vendor.p({
isLik: true
})
} : {});
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/uniapp1/gree_leran/pages/userLik/userLik.vue"]]);
wx.createPage(MiniProgramPage);