优化代码
This commit is contained in:
@@ -33,6 +33,12 @@ const _sfc_main = {
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
// 邮箱或者账号登录
|
||||
loginWithEmailOrAccount() {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/loginWithEmailOrAccount/loginWithEmailOrAccount"
|
||||
});
|
||||
},
|
||||
// 返回首页
|
||||
Return() {
|
||||
common_vendor.index.reLaunch({
|
||||
@@ -108,7 +114,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
a: common_vendor.o((...args) => $options.Return && $options.Return(...args)),
|
||||
b: $data.userInfo.avatarUrl,
|
||||
c: common_vendor.t($data.userInfo.nickName),
|
||||
d: common_vendor.o((...args) => $options.getPhoneNumber && $options.getPhoneNumber(...args))
|
||||
d: common_vendor.o((...args) => $options.getPhoneNumber && $options.getPhoneNumber(...args)),
|
||||
e: common_vendor.o((...args) => $options.loginWithEmailOrAccount && $options.loginWithEmailOrAccount(...args))
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
||||
|
||||
Reference in New Issue
Block a user