officialAccount/unpackage/dist/dev/mp-weixin/pages/login/index.js

83 lines
2.5 KiB
JavaScript
Raw Normal View History

2025-05-28 17:36:42 +08:00
"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);
2025-06-03 17:29:22 +08:00
const {
login
} = compontent_useWeChatAuth.useWeChatAuth();
2025-05-28 17:36:42 +08:00
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 {
2025-06-03 17:29:22 +08:00
login();
2025-05-28 17:36:42 +08:00
}
};
const jumpToPro = () => {
common_vendor.index.navigateTo({
url: "/pages/login/protocol"
});
};
2025-06-03 17:29:22 +08:00
const ceshi = () => {
common_vendor.index.navigateTo({
2025-06-11 17:33:34 +08:00
url: "/pages/addjigou/where"
2025-06-03 17:29:22 +08:00
});
};
const ceshiscan = () => {
common_vendor.index.navigateTo({
url: "/pages/selectunit/map"
});
};
2025-05-28 17:36:42 +08:00
return (_ctx, _cache) => {
return common_vendor.e({
a: common_assets._imports_0,
2025-06-03 17:29:22 +08:00
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),
2025-05-28 17:36:42 +08:00
h: common_vendor.o(($event) => isTarget.value = !isTarget.value),
2025-06-03 17:29:22 +08:00
i: common_vendor.o(jumpToPro),
j: common_vendor.o(($event) => isTarget.value = !isTarget.value),
k: common_vendor.o(loginIt),
l: isFadingOut.value
2025-05-28 17:36:42 +08:00
}, isFadingOut.value ? {
2025-06-03 17:29:22 +08:00
m: common_vendor.o(closeModal),
n: maskColor.value
2025-05-28 17:36:42 +08:00
} : {}, {
2025-06-03 17:29:22 +08:00
o: common_vendor.p({
2025-05-28 17:36:42 +08:00
name: "fade"
}),
2025-06-03 17:29:22 +08:00
p: isFadingOut.value
2025-05-28 17:36:42 +08:00
}, isFadingOut.value ? {
2025-06-03 17:29:22 +08:00
q: common_vendor.o(jumpToPro),
r: common_vendor.o(closeModal),
s: common_vendor.o(($event) => {
2025-05-28 17:36:42 +08:00
closeModal();
isTarget.value = true;
})
} : {}, {
2025-06-03 17:29:22 +08:00
t: common_vendor.p({
2025-05-28 17:36:42 +08:00
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