"use strict"; const common_vendor = require("../../common/vendor.js"); const common_assets = require("../../common/assets.js"); const compontent_useWeChatAuth = require("../../compontent/useWeChatAuth.js"); if (!Array) { const _component_transition = common_vendor.resolveComponent("transition"); _component_transition(); } const _sfc_main = { __name: "index", setup(__props) { const isTarget = common_vendor.ref(false); const isFadingOut = common_vendor.ref(false); const { login } = compontent_useWeChatAuth.useWeChatAuth(); const maskColor = common_vendor.ref("rgba(0, 0, 0, 0.5)"); function closeModal() { isFadingOut.value = false; } const loginIt = () => { if (!isTarget.value) { isFadingOut.value = true; } else { login(); } }; const jumpToPro = () => { common_vendor.index.navigateTo({ url: "/pages/login/protocol" }); }; const ceshi = () => { common_vendor.index.navigateTo({ url: "/pages/index/index" }); }; const ceshiscan = () => { common_vendor.index.navigateTo({ url: "/pages/selectunit/map" }); }; return (_ctx, _cache) => { return common_vendor.e({ a: common_assets._imports_0, b: common_vendor.o(ceshi), c: common_assets._imports_1, d: common_assets._imports_2, e: common_vendor.o(ceshiscan), f: common_vendor.n(isTarget.value ? "radio-circle-target" : "radio-circle"), g: common_vendor.o(($event) => isTarget.value = !isTarget.value), h: common_vendor.o(($event) => isTarget.value = !isTarget.value), i: common_vendor.o(jumpToPro), j: common_vendor.o(($event) => isTarget.value = !isTarget.value), k: common_vendor.o(loginIt), l: isFadingOut.value }, isFadingOut.value ? { m: common_vendor.o(closeModal), n: maskColor.value } : {}, { o: common_vendor.p({ name: "fade" }), p: isFadingOut.value }, isFadingOut.value ? { q: common_vendor.o(jumpToPro), r: common_vendor.o(closeModal), s: common_vendor.o(($event) => { closeModal(); isTarget.value = true; }) } : {}, { t: common_vendor.p({ name: "slide-up" }) }); }; } }; const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-d08ef7d4"]]); wx.createPage(MiniProgramPage); //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/login/index.js.map