完善用户登录
This commit is contained in:
@ -104,13 +104,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 */ 116))
|
||||
},
|
||||
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 */ 130))
|
||||
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 */ 137))
|
||||
},
|
||||
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 */ 123))
|
||||
},
|
||||
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 */ 137))
|
||||
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 */ 130))
|
||||
},
|
||||
}
|
||||
} catch (e) {
|
||||
@ -244,28 +244,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;
|
||||
@ -284,7 +279,7 @@ var _default = {
|
||||
title: msg
|
||||
});
|
||||
}
|
||||
case 27:
|
||||
case 22:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user