You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
17KB

  1. (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[22],{
  2. /***/ "./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js?!./src/views/login/index.vue?vue&type=script&lang=js&":
  3. /*!*********************************************************************************************************************************************************************************************************************************************************************************!*\
  4. !*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/views/login/index.vue?vue&type=script&lang=js& ***!
  5. \*********************************************************************************************************************************************************************************************************************************************************************************/
  6. /*! exports provided: default */
  7. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8. "use strict";
  9. eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"./node_modules/core-js/modules/es.regexp.exec.js\");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.string.replace.js */ \"./node_modules/core-js/modules/es.string.replace.js\");\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var mand_mobile_components_toast__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! mand-mobile/components/toast */ \"./node_modules/mand-mobile/components/toast/index.js\");\n/* harmony import */ var gdt_jsapi__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! gdt-jsapi */ \"./node_modules/gdt-jsapi/es/index.js\");\n/* harmony import */ var _apis__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/apis */ \"./src/apis.js\");\n/* harmony import */ var js_cookie__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! js-cookie */ \"./node_modules/js-cookie/src/js.cookie.js\");\n/* harmony import */ var js_cookie__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(js_cookie__WEBPACK_IMPORTED_MODULE_5__);\n\n\n\n//\n//\n//\n//\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'login',\n data: function data() {\n return {};\n },\n mounted: function mounted() {\n this.login();\n },\n methods: {\n login: function login() {\n var _this = this;\n\n gdt_jsapi__WEBPACK_IMPORTED_MODULE_3__[\"default\"].getAuthCode({}).then(function (result) {\n if (result) {\n console.log('result: ', result);\n\n mand_mobile_components_toast__WEBPACK_IMPORTED_MODULE_2__[\"default\"].loading('登录中...');\n\n _apis__WEBPACK_IMPORTED_MODULE_4__[\"default\"].authLogin({\n credential: result.code,\n identifier: '',\n loginType: 'DING_MD_LOGIN'\n }).then(function () {\n setTimeout(function () {\n mand_mobile_components_toast__WEBPACK_IMPORTED_MODULE_2__[\"default\"].hide();\n\n _apis__WEBPACK_IMPORTED_MODULE_4__[\"default\"].currentUserInfo().then(function (data) {\n _this.$store.dispatch('setUserInfo', data.data);\n\n mand_mobile_components_toast__WEBPACK_IMPORTED_MODULE_2__[\"default\"].succeed('登录成功!');\n\n setTimeout(function () {\n var toUrl = localStorage.getItem('toUrl');\n\n if (toUrl) {\n _this.$router.replace(toUrl);\n } else {\n _this.$router.replace({\n name: 'home'\n });\n }\n }, 1000);\n });\n }, 1500);\n });\n }\n }).catch(function (err) {\n console.log('err: ', err);\n });\n },\n oldLogin: function oldLogin() {\n var _this2 = this;\n\n var login_type = true ? 2 : undefined;\n gdt_jsapi__WEBPACK_IMPORTED_MODULE_3__[\"default\"].getAuthCode({}).then(function (result) {\n if (result) {\n console.log('result: ', result);\n\n mand_mobile_components_toast__WEBPACK_IMPORTED_MODULE_2__[\"default\"].loading('登录中...');\n\n _apis__WEBPACK_IMPORTED_MODULE_4__[\"default\"].autoLogin({\n code: result.code,\n login_type: login_type,\n tenant_id: 'ac411c8a5bb646c0a1d4087178529670'\n }).then(function (res) {\n console.log(res);\n\n if (res.token) {\n setTimeout(function () {\n mand_mobile_components_toast__WEBPACK_IMPORTED_MODULE_2__[\"default\"].hide();\n\n _this2.$store.dispatch('setUserInfo', res);\n\n mand_mobile_components_toast__WEBPACK_IMPORTED_MODULE_2__[\"default\"].succeed('登录成功!');\n\n setTimeout(function () {\n var toUrl = localStorage.getItem('toUrl');\n\n if (toUrl) {\n _this2.$router.replace(toUrl);\n } else {\n _this2.$router.replace({\n name: 'home'\n });\n }\n }, 1000);\n }, 1500);\n }\n });\n }\n }).catch(function (err) {\n console.log('err: ', err);\n });\n },\n toLogin: function toLogin() {\n _apis__WEBPACK_IMPORTED_MODULE_4__[\"default\"].authLogin({\n credential: '12',\n identifier: '15759292883',\n loginType: 'PHONE_VERIFICATION_CODE_LOGIN'\n });\n }\n } // beforeRouteEnter(to, from, next) {\n // if (!cookie.get('token')) {\n // next()\n // } else {\n // let toUrl = localStorage.getItem('toUrl')\n // if (toUrl) {\n // next({ path: toUrl, replace: true })\n // } else {\n // next({ name: 'home', replace: true })\n // }\n // }\n // }\n\n});\n\n//# sourceURL=webpack:///./src/views/login/index.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options");
  10. /***/ }),
  11. /***/ "./node_modules/cache-loader/dist/cjs.js?{\"cacheDirectory\":\"node_modules/.cache/vue-loader\",\"cacheIdentifier\":\"f3ffc7fa-vue-loader-template\"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js?!./src/views/login/index.vue?vue&type=template&id=37dfd6fc&scoped=true&":
  12. /*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  13. !*** ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f3ffc7fa-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/views/login/index.vue?vue&type=template&id=37dfd6fc&scoped=true& ***!
  14. \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
  15. /*! exports provided: render, staticRenderFns */
  16. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17. "use strict";
  18. eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"div\")\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/views/login/index.vue?./node_modules/cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%22f3ffc7fa-vue-loader-template%22%7D!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options");
  19. /***/ }),
  20. /***/ "./src/views/login/index.vue":
  21. /*!***********************************!*\
  22. !*** ./src/views/login/index.vue ***!
  23. \***********************************/
  24. /*! exports provided: default */
  25. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  26. "use strict";
  27. eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _index_vue_vue_type_template_id_37dfd6fc_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.vue?vue&type=template&id=37dfd6fc&scoped=true& */ \"./src/views/login/index.vue?vue&type=template&id=37dfd6fc&scoped=true&\");\n/* harmony import */ var _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.vue?vue&type=script&lang=js& */ \"./src/views/login/index.vue?vue&type=script&lang=js&\");\n/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_cli_service_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\");\n\n\n\n\n\n/* normalize component */\n\nvar component = Object(_node_modules_vue_cli_service_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(\n _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _index_vue_vue_type_template_id_37dfd6fc_scoped_true___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _index_vue_vue_type_template_id_37dfd6fc_scoped_true___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"],\n false,\n null,\n \"37dfd6fc\",\n null\n \n)\n\n/* hot reload */\nif (false) { var api; }\ncomponent.options.__file = \"src/views/login/index.vue\"\n/* harmony default export */ __webpack_exports__[\"default\"] = (component.exports);\n\n//# sourceURL=webpack:///./src/views/login/index.vue?");
  28. /***/ }),
  29. /***/ "./src/views/login/index.vue?vue&type=script&lang=js&":
  30. /*!************************************************************!*\
  31. !*** ./src/views/login/index.vue?vue&type=script&lang=js& ***!
  32. \************************************************************/
  33. /*! exports provided: default */
  34. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  35. "use strict";
  36. eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_cache_loader_dist_cjs_js_ref_12_0_node_modules_babel_loader_lib_index_js_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_cli_service_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/babel-loader/lib!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./index.vue?vue&type=script&lang=js& */ \"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js?!./src/views/login/index.vue?vue&type=script&lang=js&\");\n/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__[\"default\"] = (_node_modules_cache_loader_dist_cjs_js_ref_12_0_node_modules_babel_loader_lib_index_js_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_cli_service_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[\"default\"]); \n\n//# sourceURL=webpack:///./src/views/login/index.vue?");
  37. /***/ }),
  38. /***/ "./src/views/login/index.vue?vue&type=template&id=37dfd6fc&scoped=true&":
  39. /*!******************************************************************************!*\
  40. !*** ./src/views/login/index.vue?vue&type=template&id=37dfd6fc&scoped=true& ***!
  41. \******************************************************************************/
  42. /*! exports provided: render, staticRenderFns */
  43. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44. "use strict";
  45. eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_cache_loader_dist_cjs_js_cacheDirectory_node_modules_cache_vue_loader_cacheIdentifier_f3ffc7fa_vue_loader_template_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_cli_service_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_37dfd6fc_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/cache-loader/dist/cjs.js?{\"cacheDirectory\":\"node_modules/.cache/vue-loader\",\"cacheIdentifier\":\"f3ffc7fa-vue-loader-template\"}!../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./index.vue?vue&type=template&id=37dfd6fc&scoped=true& */ \"./node_modules/cache-loader/dist/cjs.js?{\\\"cacheDirectory\\\":\\\"node_modules/.cache/vue-loader\\\",\\\"cacheIdentifier\\\":\\\"f3ffc7fa-vue-loader-template\\\"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js?!./src/views/login/index.vue?vue&type=template&id=37dfd6fc&scoped=true&\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return _node_modules_cache_loader_dist_cjs_js_cacheDirectory_node_modules_cache_vue_loader_cacheIdentifier_f3ffc7fa_vue_loader_template_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_cli_service_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_37dfd6fc_scoped_true___WEBPACK_IMPORTED_MODULE_0__[\"render\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return _node_modules_cache_loader_dist_cjs_js_cacheDirectory_node_modules_cache_vue_loader_cacheIdentifier_f3ffc7fa_vue_loader_template_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_cli_service_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_37dfd6fc_scoped_true___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack:///./src/views/login/index.vue?");
  46. /***/ })
  47. }]);