{"remainingRequest":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\reform-fvue\\src\\views\\MobileAuthSelf.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\MobileAuthSelf.vue","mtime":1692906122272},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport dd from 'gdt-jsapi';\nimport { Loading } from 'element-ui';\nexport default {\n name: 'jumping',\n data: function data() {\n var checkAccount = function checkAccount(rule, value, callback) {\n if (!value) {\n return callback(new Error('请输入账号'));\n }\n\n if (/^[a-zA-Z0-9_-]{2,20}$/.test(value)) {\n return callback();\n } else {\n return callback(new Error('账号格式不符合规范'));\n }\n };\n\n return {\n loading: null,\n loginLoading: false,\n login: {\n account: '',\n password: ''\n },\n params: {\n account: '',\n openid: ''\n },\n rules: {\n account: [{\n validator: checkAccount,\n trigger: 'blur'\n }, {\n required: true,\n message: '请输入账号',\n trigger: 'blur'\n }],\n password: [{\n required: true,\n message: '请输入密码',\n trigger: 'blur'\n }]\n },\n msg: '',\n binding: false,\n code: '',\n type: '',\n res: null\n };\n },\n mounted: function mounted() {\n var _this = this;\n\n this.openFullScreen();\n dd.ready(function () {\n dd.getAuthCode({}).then(function (result) {\n _this.res = result;\n _this.type = '获取code';\n var code;\n\n if (result.code) {\n _this.code = result.code;\n code = result.code;\n\n _this.ykzLogin(code);\n }\n });\n });\n },\n methods: {\n ykzLogin: function ykzLogin(code) {\n var _this2 = this;\n\n this.$store.dispatch('login/loginByYKZ', code).then(function (user) {\n _this2.res = user;\n _this2.type = 'code登录';\n\n if (user.state === undefined) {\n if (user.loginStatus) {\n _this2.$store.dispatch('login/getAllDict');\n\n _this2.$router.push('/DistrictReformMobile');\n } else {\n _this2.binding = true;\n _this2.params = {\n account: user.account,\n openid: user.openid\n };\n }\n } else if (user.state === false) {\n _this2.msg = user.message;\n\n _this2.showMsg();\n }\n });\n },\n showMsg: function showMsg() {\n if (this.loading) this.loading.close();\n },\n openFullScreen: function openFullScreen() {\n this.loading = Loading.service({\n lock: true,\n text: '改革报表加载中......',\n spinner: 'el-icon-loading',\n background: 'rgba(255, 255, 255, 0.6)'\n });\n },\n onSubmit: function onSubmit(values) {\n this.handleLogin();\n },\n handleLogin: function handleLogin() {\n var _this3 = this;\n\n this.loginLoading = true;\n\n if (!this.params.account || !this.params.openid) {\n this.$message.warning('愉快政验证已失效,请重新验证!');\n return;\n }\n\n var data = {\n loginData: this.login,\n ykzData: {\n ykzAccount: this.params.account,\n ykzAccountId: this.params.openid\n }\n };\n this.$store.dispatch('login/bindingYKZ', data).then(function (user) {\n console.log(user);\n _this3.res = user;\n _this3.type = '绑定';\n\n if (user.loginStatus && user.loginStatus == true) {\n //获取前台页面\n _this3.$store.dispatch('login/getAllDict');\n\n _this3.$router.push({\n path: \"/MajorProjectsMobile\"\n });\n } else if (user.loginStatus == false) {\n _this3.msg = user.message ? user.message : '登录失败,请重新验证!';\n\n _this3.$message.warning(msg);\n }\n }).catch(function (msg) {\n console.log(msg);\n\n _this3.$message.warning(msg);\n\n _this3.loginLoading = false;\n });\n }\n },\n beforeDestroy: function beforeDestroy() {\n if (this.loading) this.loading.close();\n }\n};",null]}