(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[24],{

/***/ "./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&":
/*!*********************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./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& ***!
  \*********************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
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\n\n\n//\n//\n//\n//\n\n\n// import cookie from 'js-cookie'\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                  if (_this.$route.query.appraisalId) {\n                    _this.$router.replace({\n                      name: 'signaturePage',\n                      query: {\n                        projectCode: _this.$route.query.projectCode,\n                        appraisalId: _this.$route.query.appraisalId\n                      }\n                    });\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");

/***/ }),

/***/ "./node_modules/cache-loader/dist/cjs.js?{\"cacheDirectory\":\"node_modules/.cache/vue-loader\",\"cacheIdentifier\":\"74db150f-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&":
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"74db150f-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& ***!
  \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
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:%2274db150f-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");

/***/ }),

/***/ "./src/views/login/index.vue":
/*!***********************************!*\
  !*** ./src/views/login/index.vue ***!
  \***********************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
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?");

/***/ }),

/***/ "./src/views/login/index.vue?vue&type=script&lang=js&":
/*!************************************************************!*\
  !*** ./src/views/login/index.vue?vue&type=script&lang=js& ***!
  \************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
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?");

/***/ }),

/***/ "./src/views/login/index.vue?vue&type=template&id=37dfd6fc&scoped=true&":
/*!******************************************************************************!*\
  !*** ./src/views/login/index.vue?vue&type=template&id=37dfd6fc&scoped=true& ***!
  \******************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_cache_loader_dist_cjs_js_cacheDirectory_node_modules_cache_vue_loader_cacheIdentifier_74db150f_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\":\"74db150f-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\\\":\\\"74db150f-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_74db150f_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_74db150f_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?");

/***/ })

}]);