32 lines
1.2 KiB
JavaScript
32 lines
1.2 KiB
JavaScript
|
"use strict";
|
||
|
const common_vendor = require("../../common/vendor.js");
|
||
|
const compontent_useWeChatAuth = require("../../compontent/useWeChatAuth.js");
|
||
|
const _sfc_main = {
|
||
|
__name: "index",
|
||
|
setup(__props) {
|
||
|
const { login, loading, error } = compontent_useWeChatAuth.useWeChatAuth();
|
||
|
const jump = () => {
|
||
|
common_vendor.index.__f__("log", "at pages/index/index.vue:21", "???");
|
||
|
common_vendor.index.navigateTo({
|
||
|
url: "/pages/index/callback"
|
||
|
});
|
||
|
};
|
||
|
return (_ctx, _cache) => {
|
||
|
return common_vendor.e({
|
||
|
a: common_vendor.t(common_vendor.unref(loading) ? "加载中..." : "微信登录"),
|
||
|
b: common_vendor.unref(loading),
|
||
|
c: common_vendor.o(($event) => common_vendor.unref(login)()),
|
||
|
d: common_vendor.unref(error)
|
||
|
}, common_vendor.unref(error) ? {
|
||
|
e: common_vendor.t(common_vendor.unref(error).message)
|
||
|
} : {}, {
|
||
|
f: common_vendor.o(jump),
|
||
|
g: common_vendor.o((...args) => _ctx.jumpto && _ctx.jumpto(...args))
|
||
|
});
|
||
|
};
|
||
|
}
|
||
|
};
|
||
|
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
|