hldy_xcx/unpackage/dist/dev/mp-weixin/pages/index/mine.js

77 lines
2.3 KiB
JavaScript
Raw Normal View History

2025-06-27 08:56:14 +08:00
"use strict";
const common_vendor = require("../../common/vendor.js");
if (!Math) {
2025-07-23 17:37:27 +08:00
(exit + downMenu)();
2025-06-27 08:56:14 +08:00
}
2025-07-23 17:37:27 +08:00
const exit = () => "../../compontent/public/exit.js";
2025-06-27 08:56:14 +08:00
const downMenu = () => "../../compontent/public/downmenu.js";
const _sfc_main = {
__name: "mine",
setup(__props) {
const phone = common_vendor.ref("");
2025-06-30 17:33:35 +08:00
common_vendor.ref("");
const platId = common_vendor.ref("");
2025-07-23 17:37:27 +08:00
const exitshow = common_vendor.ref(false);
2025-06-27 08:56:14 +08:00
common_vendor.onMounted(() => {
phone.value = common_vendor.index.getStorageSync("tel");
2025-06-30 17:33:35 +08:00
platId.value = common_vendor.index.getStorageSync("platId");
2025-06-27 08:56:14 +08:00
});
2025-07-23 17:37:27 +08:00
const cardMenu = [`机构信息`, `加盟审核`, `宣传页`];
2025-06-27 08:56:14 +08:00
const change = () => {
2025-06-30 17:33:35 +08:00
common_vendor.index.navigateTo({
url: `/pages/login/threeselectonespec`
2025-06-27 08:56:14 +08:00
});
};
2025-07-23 17:37:27 +08:00
const exitshowopen = () => {
exitshow.value = true;
2025-06-27 08:56:14 +08:00
};
const clickButton = (index) => {
switch (index) {
case 0:
common_vendor.index.navigateTo({
2025-06-30 17:33:35 +08:00
url: `/pages/login/workjoinsuccess`
2025-06-27 08:56:14 +08:00
});
break;
case 1:
common_vendor.index.navigateTo({
2025-06-30 17:33:35 +08:00
url: `/pages/login/workjoin`
});
break;
case 2:
common_vendor.index.navigateTo({
url: `/pages/login/special?no=true`
2025-06-27 08:56:14 +08:00
});
break;
}
};
return (_ctx, _cache) => {
return {
2025-07-23 17:37:27 +08:00
a: common_vendor.o(($event) => exitshow.value = false),
b: common_vendor.p({
show: exitshow.value
}),
c: common_vendor.t(platId.value),
d: common_vendor.t(phone.value),
e: common_vendor.f(cardMenu, (item, index, i0) => {
2025-06-27 08:56:14 +08:00
return common_vendor.e({
a: `https://www.focusnu.com/media/directive/index/mine/${index}.png`,
b: common_vendor.t(item),
c: !index
}, !index ? {} : {}, {
d: index,
e: common_vendor.o(($event) => clickButton(index), index)
});
}),
2025-07-23 17:37:27 +08:00
f: common_vendor.o(change),
g: common_vendor.o(exitshowopen),
h: common_vendor.p({
2025-06-27 08:56:14 +08:00
itemTarget: 2
})
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-dd3057bc"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/mine.js.map