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

60 lines
1.8 KiB
JavaScript
Raw Normal View History

2025-05-26 08:59:24 +08:00
"use strict";
const common_vendor = require("../../common/vendor.js");
2025-05-26 16:48:12 +08:00
const common_assets = require("../../common/assets.js");
2025-05-26 08:59:24 +08:00
const compontent_useWeChatAuth = require("../../compontent/useWeChatAuth.js");
const _sfc_main = {
__name: "index",
setup(__props) {
2025-05-26 16:48:12 +08:00
const isTarget = common_vendor.ref(false);
const isFadingOut = common_vendor.ref(false);
const {
login
} = compontent_useWeChatAuth.useWeChatAuth();
let timerId = null;
const loginIt = () => {
if (timerId) {
clearTimeout(timerId);
}
if (!isTarget.value) {
isFadingOut.value = true;
timerId = setTimeout(() => {
isFadingOut.value = false;
}, 1e3);
} else {
login();
}
};
const yanzhengma = () => {
if (timerId) {
clearTimeout(timerId);
}
if (!isTarget.value) {
isFadingOut.value = true;
timerId = setTimeout(() => {
isFadingOut.value = false;
}, 1e3);
} else {
common_vendor.index.navigateTo({
url: "/pages/index/phonebumber"
});
}
2025-05-26 08:59:24 +08:00
};
return (_ctx, _cache) => {
2025-05-26 16:48:12 +08:00
return {
a: common_assets._imports_0,
b: common_assets._imports_1,
c: common_assets._imports_2,
d: isFadingOut.value,
e: common_vendor.n(isTarget.value ? "radio-circle-target" : "radio-circle"),
f: common_vendor.o(($event) => isTarget.value = !isTarget.value),
g: common_vendor.o(($event) => isTarget.value = !isTarget.value),
h: common_vendor.o(loginIt),
i: common_vendor.o(yanzhengma)
};
2025-05-26 08:59:24 +08:00
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-1cf27b2a"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/index.js.map