完成登录的基本流程

This commit is contained in:
2025-04-24 11:19:57 +08:00
parent 2ce4777910
commit 94b03b98a8
84 changed files with 1458 additions and 548 deletions

View File

@ -105,11 +105,11 @@
/******/
/******/
/******/ // mini-css-extract-plugin CSS loading
/******/ var cssChunks = {"components/mplogin-popup/mplogin-popup":1,"components/uview-ui/components/u-button/u-button":1,"components/uview-ui/components/u-checkbox/u-checkbox":1,"components/uview-ui/components/u-image/u-image":1,"components/uview-ui/components/u-icon/u-icon":1,"components/uview-ui/components/u-form-item/u-form-item":1,"components/uview-ui/components/u-input/u-input":1,"components/uview-ui/components/u-form/u-form":1,"components/uview-ui/components/u-verification-code/u-verification-code":1,"components/uview-ui/components/u-parse/u-parse":1,"components/uview-ui/components/u-popup/u-popup":1,"components/uview-ui/components/u-parse/libs/trees":1,"components/uview-ui/components/u-mask/u-mask":1};
/******/ var cssChunks = {"components/mobile-login/mobile-login":1,"components/mplogin/mplogin":1,"components/uview-ui/components/u-button/u-button":1,"components/uview-ui/components/u-checkbox/u-checkbox":1,"components/uview-ui/components/u-image/u-image":1,"components/uview-ui/components/u-icon/u-icon":1,"components/uview-ui/components/u-form-item/u-form-item":1,"components/uview-ui/components/u-input/u-input":1,"components/uview-ui/components/u-form/u-form":1,"components/uview-ui/components/u-verification-code/u-verification-code":1,"components/uview-ui/components/u-parse/u-parse":1,"components/uview-ui/components/u-popup/u-popup":1,"components/uview-ui/components/u-parse/libs/trees":1,"components/uview-ui/components/u-mask/u-mask":1};
/******/ if(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);
/******/ else if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {
/******/ promises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) {
/******/ var href = "" + ({"components/mplogin-popup/mplogin-popup":"components/mplogin-popup/mplogin-popup","components/uview-ui/components/u-button/u-button":"components/uview-ui/components/u-button/u-button","components/uview-ui/components/u-checkbox/u-checkbox":"components/uview-ui/components/u-checkbox/u-checkbox","components/uview-ui/components/u-image/u-image":"components/uview-ui/components/u-image/u-image","components/uview-ui/components/u-icon/u-icon":"components/uview-ui/components/u-icon/u-icon","components/uview-ui/components/u-form-item/u-form-item":"components/uview-ui/components/u-form-item/u-form-item","components/uview-ui/components/u-input/u-input":"components/uview-ui/components/u-input/u-input","components/uview-ui/components/u-form/u-form":"components/uview-ui/components/u-form/u-form","components/uview-ui/components/u-verification-code/u-verification-code":"components/uview-ui/components/u-verification-code/u-verification-code","components/uview-ui/components/u-parse/u-parse":"components/uview-ui/components/u-parse/u-parse","components/uview-ui/components/u-popup/u-popup":"components/uview-ui/components/u-popup/u-popup","components/uview-ui/components/u-parse/libs/trees":"components/uview-ui/components/u-parse/libs/trees","components/uview-ui/components/u-mask/u-mask":"components/uview-ui/components/u-mask/u-mask"}[chunkId]||chunkId) + ".acss";
/******/ var href = "" + ({"components/mobile-login/mobile-login":"components/mobile-login/mobile-login","components/mplogin/mplogin":"components/mplogin/mplogin","components/uview-ui/components/u-button/u-button":"components/uview-ui/components/u-button/u-button","components/uview-ui/components/u-checkbox/u-checkbox":"components/uview-ui/components/u-checkbox/u-checkbox","components/uview-ui/components/u-image/u-image":"components/uview-ui/components/u-image/u-image","components/uview-ui/components/u-icon/u-icon":"components/uview-ui/components/u-icon/u-icon","components/uview-ui/components/u-form-item/u-form-item":"components/uview-ui/components/u-form-item/u-form-item","components/uview-ui/components/u-input/u-input":"components/uview-ui/components/u-input/u-input","components/uview-ui/components/u-form/u-form":"components/uview-ui/components/u-form/u-form","components/uview-ui/components/u-verification-code/u-verification-code":"components/uview-ui/components/u-verification-code/u-verification-code","components/uview-ui/components/u-parse/u-parse":"components/uview-ui/components/u-parse/u-parse","components/uview-ui/components/u-popup/u-popup":"components/uview-ui/components/u-popup/u-popup","components/uview-ui/components/u-parse/libs/trees":"components/uview-ui/components/u-parse/libs/trees","components/uview-ui/components/u-mask/u-mask":"components/uview-ui/components/u-mask/u-mask"}[chunkId]||chunkId) + ".acss";
/******/ var fullhref = __webpack_require__.p + href;
/******/ var existingLinkTags = document.getElementsByTagName("link");
/******/ for(var i = 0; i < existingLinkTags.length; i++) {

View File

@ -12499,6 +12499,7 @@ service.interceptors.response.use( /*#__PURE__*/function () {
});
} else if (code == -1) {
_store.default.commit("LOGOUT");
(0, _login.wxMnpLogin)();
}
}
return _context.abrupt("return", Promise.resolve(response.data));
@ -14039,6 +14040,7 @@ exports.getServerProto = getServerProto;
exports.getService = getService;
exports.getShareMnQrcode = getShareMnQrcode;
exports.getWechatConfig = getWechatConfig;
exports.mobileLogin = mobileLogin;
exports.opLogin = opLogin;
exports.prepay = prepay;
exports.register = register;
@ -14212,6 +14214,13 @@ function getShareMnQrcode(params) {
});
}
// 小程序一键登录
function mobileLogin(data) {
return _request.default.post("account/mobileLogin", _objectSpread(_objectSpread({}, data), {}, {
client: _tools.client
}));
}
/***/ }),
/* 45 */
/*!******************************************************!*\
@ -16428,7 +16437,21 @@ exports.default = _default;
/* 153 */,
/* 154 */,
/* 155 */,
/* 156 */
/* 156 */,
/* 157 */,
/* 158 */,
/* 159 */,
/* 160 */,
/* 161 */,
/* 162 */,
/* 163 */,
/* 164 */,
/* 165 */,
/* 166 */,
/* 167 */,
/* 168 */,
/* 169 */,
/* 170 */
/*!*****************************************************************************!*\
!*** D:/Hbuilder/Project/jianbing/components/uview-ui/libs/util/emitter.js ***!
\*****************************************************************************/
@ -16496,7 +16519,7 @@ var _default = {
exports.default = _default;
/***/ }),
/* 157 */
/* 171 */
/*!*************************************************************************************!*\
!*** D:/Hbuilder/Project/jianbing/components/uview-ui/libs/util/async-validator.js ***!
\*************************************************************************************/
@ -17674,10 +17697,10 @@ Schema.warning = warning;
Schema.messages = messages;
var _default = Schema;
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/node-libs-browser/mock/process.js */ 158)))
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/node-libs-browser/mock/process.js */ 172)))
/***/ }),
/* 158 */
/* 172 */
/*!********************************************************!*\
!*** ./node_modules/node-libs-browser/mock/process.js ***!
\********************************************************/
@ -17708,7 +17731,7 @@ exports.binding = function (name) {
var path;
exports.cwd = function () { return cwd };
exports.chdir = function (dir) {
if (!path) path = __webpack_require__(/*! path */ 159);
if (!path) path = __webpack_require__(/*! path */ 173);
cwd = path.resolve(dir, cwd);
};
})();
@ -17721,7 +17744,7 @@ exports.features = {};
/***/ }),
/* 159 */
/* 173 */
/*!***********************************************!*\
!*** ./node_modules/path-browserify/index.js ***!
\***********************************************/
@ -18031,23 +18054,9 @@ var substr = 'ab'.substr(-1) === 'b'
}
;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../node-libs-browser/mock/process.js */ 158)))
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../node-libs-browser/mock/process.js */ 172)))
/***/ }),
/* 160 */,
/* 161 */,
/* 162 */,
/* 163 */,
/* 164 */,
/* 165 */,
/* 166 */,
/* 167 */,
/* 168 */,
/* 169 */,
/* 170 */,
/* 171 */,
/* 172 */,
/* 173 */,
/* 174 */,
/* 175 */,
/* 176 */,
@ -18055,7 +18064,21 @@ var substr = 'ab'.substr(-1) === 'b'
/* 178 */,
/* 179 */,
/* 180 */,
/* 181 */
/* 181 */,
/* 182 */,
/* 183 */,
/* 184 */,
/* 185 */,
/* 186 */,
/* 187 */,
/* 188 */,
/* 189 */,
/* 190 */,
/* 191 */,
/* 192 */,
/* 193 */,
/* 194 */,
/* 195 */
/*!************************************************************************************************!*\
!*** D:/Hbuilder/Project/jianbing/components/uview-ui/components/u-parse/libs/MpHtmlParser.js ***!
\************************************************************************************************/
@ -18069,9 +18092,9 @@ var substr = 'ab'.substr(-1) === 'b'
* @author JinYufeng
* @listens MIT
*/
var cfg = __webpack_require__(/*! ./config.js */ 182),
var cfg = __webpack_require__(/*! ./config.js */ 196),
blankChar = cfg.blankChar,
CssHandler = __webpack_require__(/*! ./CssHandler.js */ 183),
CssHandler = __webpack_require__(/*! ./CssHandler.js */ 197),
windowWidth = uni.getSystemInfoSync().windowWidth;
var emoji;
function MpHtmlParser(data) {
@ -18634,7 +18657,7 @@ module.exports = MpHtmlParser;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-alipay/dist/index.js */ 1)["default"]))
/***/ }),
/* 182 */
/* 196 */
/*!******************************************************************************************!*\
!*** D:/Hbuilder/Project/jianbing/components/uview-ui/components/u-parse/libs/config.js ***!
\******************************************************************************************/
@ -18708,14 +18731,14 @@ function makeMap(str) {
module.exports = cfg;
/***/ }),
/* 183 */
/* 197 */
/*!**********************************************************************************************!*\
!*** D:/Hbuilder/Project/jianbing/components/uview-ui/components/u-parse/libs/CssHandler.js ***!
\**********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var cfg = __webpack_require__(/*! ./config.js */ 182),
var cfg = __webpack_require__(/*! ./config.js */ 196),
isLetter = function isLetter(c) {
return c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z';
};