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

77 lines
2.3 KiB
JavaScript

"use strict";
const common_vendor = require("../../common/vendor.js");
if (!Math) {
(exit + downMenu)();
}
const exit = () => "../../compontent/public/exit.js";
const downMenu = () => "../../compontent/public/downmenu.js";
const _sfc_main = {
__name: "mine",
setup(__props) {
const phone = common_vendor.ref("");
common_vendor.ref("");
const platId = common_vendor.ref("");
const exitshow = common_vendor.ref(false);
common_vendor.onMounted(() => {
phone.value = common_vendor.index.getStorageSync("tel");
platId.value = common_vendor.index.getStorageSync("platId");
});
const cardMenu = [`机构信息`, `加盟审核`, `宣传页`];
const change = () => {
common_vendor.index.navigateTo({
url: `/pages/login/threeselectonespec`
});
};
const exitshowopen = () => {
exitshow.value = true;
};
const clickButton = (index) => {
switch (index) {
case 0:
common_vendor.index.navigateTo({
url: `/pages/login/workjoinsuccess`
});
break;
case 1:
common_vendor.index.navigateTo({
url: `/pages/login/workjoin`
});
break;
case 2:
common_vendor.index.navigateTo({
url: `/pages/login/special?no=true`
});
break;
}
};
return (_ctx, _cache) => {
return {
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) => {
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)
});
}),
f: common_vendor.o(change),
g: common_vendor.o(exitshowopen),
h: 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