完善用户登录

This commit is contained in:
2025-04-23 11:32:01 +08:00
parent 95b7c69ddb
commit 2ce4777910
80 changed files with 3379 additions and 214 deletions

View File

@ -101,28 +101,23 @@ var _default = {
avatarUrl = _yield$getUserInfo$us.avatarUrl;
nickName = _yield$getUserInfo$us.nickName;
gender = _yield$getUserInfo$us.gender;
_context.t0 = console;
_context.next = 14;
return (0, _login.getUserInfo)();
case 14:
_context.t1 = _context.sent;
_context.t0.log.call(_context.t0, _context.t1);
uni.showLoading({
title: '登录中',
mask: true
});
_context.next = 19;
_context.next = 14;
return (0, _login.getWxCode)();
case 19:
case 14:
wxCode = _context.sent;
_context.next = 22;
_context.next = 17;
return (0, _app.authLogin)({
code: wxCode,
nickname: nickName || '',
//支付宝小程序没有直接获取昵称
headimgurl: avatarUrl
headimgurl: avatarUrl,
client: _tools.client
});
case 22:
case 17:
_yield$authLogin = _context.sent;
code = _yield$authLogin.code;
data = _yield$authLogin.data;
@ -141,7 +136,7 @@ var _default = {
title: msg
});
}
case 27:
case 22:
case "end":
return _context.stop();
}
@ -351,13 +346,13 @@ try {
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-image/u-image */ "components/uview-ui/components/u-image/u-image").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-image/u-image.vue */ 120))
},
uIcon: function () {
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-icon/u-icon */ "components/uview-ui/components/u-icon/u-icon").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-icon/u-icon.vue */ 134))
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-icon/u-icon */ "components/uview-ui/components/u-icon/u-icon").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-icon/u-icon.vue */ 141))
},
uButton: function () {
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-button/u-button */ "components/uview-ui/components/u-button/u-button").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-button/u-button.vue */ 127))
},
uCheckbox: function () {
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-checkbox/u-checkbox */ "components/uview-ui/components/u-checkbox/u-checkbox").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-checkbox/u-checkbox.vue */ 141))
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-checkbox/u-checkbox */ "components/uview-ui/components/u-checkbox/u-checkbox").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-checkbox/u-checkbox.vue */ 134))
},
}
} catch (e) {