62 lines
1.8 KiB
JavaScript
62 lines
1.8 KiB
JavaScript
"use strict";
|
|
const common_vendor = require("../../common/vendor.js");
|
|
if (!Math) {
|
|
downMenu();
|
|
}
|
|
const downMenu = () => "../../compontent/public/downmenu.js";
|
|
const _sfc_main = {
|
|
__name: "mine",
|
|
setup(__props) {
|
|
const phone = common_vendor.ref("");
|
|
common_vendor.onMounted(() => {
|
|
phone.value = common_vendor.index.getStorageSync("tel");
|
|
});
|
|
const cardMenu = [`机构信息`, `加盟审核`, `机构功能01`, `机构功能02`];
|
|
const change = () => {
|
|
common_vendor.index.redirectTo({
|
|
url: `/pages/login/threeselectone`
|
|
});
|
|
};
|
|
const exit = () => {
|
|
common_vendor.index.exitMiniProgram({});
|
|
};
|
|
const clickButton = (index) => {
|
|
switch (index) {
|
|
case 0:
|
|
common_vendor.index.navigateTo({
|
|
url: `/pages/login/workjoin?type=3`
|
|
});
|
|
break;
|
|
case 1:
|
|
common_vendor.index.navigateTo({
|
|
url: `/pages/login/workjoin?type=1`
|
|
});
|
|
break;
|
|
}
|
|
};
|
|
return (_ctx, _cache) => {
|
|
return {
|
|
a: common_vendor.t(phone.value),
|
|
b: common_vendor.f(cardMenu, (item, index, i0) => {
|
|
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)
|
|
});
|
|
}),
|
|
c: common_vendor.o(change),
|
|
d: common_vendor.o(exit),
|
|
e: common_vendor.p({
|
|
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
|