1 |
- {"version":3,"sources":["webpack:///./src/assets/circle.png","webpack:///./src/views/login.vue?dd9c","webpack:///./src/assets/circle-active.png","webpack:///./node_modules/core-js/modules/es6.function.name.js","webpack:///./src/assets/icon-139.png","webpack:///./src/views/login.vue","webpack:///src/views/login.vue","webpack:///./src/views/login.vue?2e0e","webpack:///./src/views/login.vue?dab3","webpack:///./src/assets/return.png"],"names":["module","exports","dP","f","FProto","Function","prototype","nameRE","NAME","configurable","get","this","match","e","render","_vm","_c","_self","staticClass","on","$event","showPhonePrefix","attrs","require","$router","back","class","active","params","account_type","_v","stopPropagation","staticStyle","_s","phone_pre","directives","name","rawName","value","account","expression","domProps","target","composing","$set","_l","phonePrefix","item","index","key","code","title","type","indexOf","_k","keyCode","submit","model","callback","$$v","countDown","sendSms","_e","selected","push","staticRenderFns","components","data","facility_type","facility_code","loading","mounted","getUniqueCode","methods","getPhonePrefix","ExpediteService","LoginService","then","Toast","setTimeout","localStorage","getCode","window","console","location","finally","email","phone","reqMap","countDownFn","fn","component"],"mappings":"mGAAAA,EAAOC,QAAU,soC,oCCAjB,W,qBCAAD,EAAOC,QAAU,8tC,uBCAjB,IAAIC,EAAK,EAAQ,QAAgBC,EAC7BC,EAASC,SAASC,UAClBC,EAAS,wBACTC,EAAO,OAGXA,KAAQJ,GAAU,EAAQ,SAAqBF,EAAGE,EAAQI,EAAM,CAC9DC,cAAc,EACdC,IAAK,WACH,IACE,OAAQ,GAAKC,MAAMC,MAAML,GAAQ,GACjC,MAAOM,GACP,MAAO,Q,mBCZbb,EAAOC,QAAU,sS,iECAba,EAAS,WAAkB,IAAIC,EAAIJ,KAAKK,EAAGD,EAAIE,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,OAAOC,GAAG,CAAC,MAAQ,SAASC,GAAQL,EAAIM,iBAAkB,KAAS,CAACL,EAAG,MAAM,CAACE,YAAY,UAAU,CAACF,EAAG,MAAM,CAACE,YAAY,aAAaI,MAAM,CAAC,IAAMC,EAAQ,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BAGAsD,2CACA,wBACA,gBACAV,sBAIAW,uBAAA,WACA,KACA,eACA,QACA,gBACAV,uBAAA,oBAEAW,OCzR+U,I,wBCQ3UC,EAAY,eACd,EACA7E,EACAmD,GACA,EACA,KACA,WACA,MAIa,aAAA0B,E,4BCnBf3F,EAAOC,QAAU,s7B","file":"js/chunk-c3b51cc4.34ae2a17.js","sourcesContent":["module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAAwlJREFUWEfNmE1oE0EUx/9vt7GLKB5WJYIIVQ8qoiBYRUtBET30JhhaPBVNNlM09KJ48uBJ9FKiZLKJ0ovSEsGbB0UUpIofKCiiPRQKIhjUHESR1CH7ZMpG0tjapI1l5jpv3vzmvXkfM4QmRz6f76hUKkcAdAHYyswbAKwM1Xwnog8A3gMYs237bjwen2xmC2pEuFAo2KVS6RiAUwD2AWhoHQAG8ATAVdd1b8Viscp8+82rOJfLHapUKlcAbKlaAcAdAA8AvFZKTUaj0W96rlgsropEIh0AdgI4CKCnxnrjtm2fTiQS9/8FNSfQ8PCwUy6Xh4gowcxaboKILhLRiOd5P+c7qZ73fX85M/cx8zkAm4mImTnnOM5gf39/eTYdswKl0+k1kUhEW2E3gLJlWecBDHmepxoBqZfxfT8CYDAIggsAHAAvlFI9qVTqS73sX0AhzKPQRZ+Y+ejAwMDThYDUr8lkMnuJ6DaAdQDGlVLd9VAzgEI3aRhtmTfhKT62AqaqI51Orw+tv0NbynGc7lr3zQCSUmYBeAA+KaU6U6lUS2HqoJ6HlvKFEMnq3B8gHU1BENxj5ilmPtAqN81l3dB9D4mo3bKsw9XomwYK88xbfW8syzrred7lVrppLl2+758JguCSvk+u627XeWoaSErZC2BEh7ZlWdsWGk3NHkJHXxAE73RKANAnhBitAo0B2E9EJ5PJ5PVmFS9GPpvNnmDmawAeCyG6KJPJbCSiCQA/LMuKNpr0FgNRu1YnzyAIigBWtLW1baJsNptkZglgVAjR16qNmtEjpdTXpZeIhAa6wczHASSEEPlmFLVKVkoZB5Ajopsa6CUz7wKwRwihc8OSDyllJ4BnRPSKpJS6nqxWSq2drbYsBV1Yrj4D+KqBdNVtd123PRaL/VoKgPo9CoXCslKpNAVgykggs1xm3KU2MezNSozGlY6w2ptTXI1sP4xr0LSVjGphq6ncqCZfQxn3DNJQRj0Ua95N5jylq1BGfTbU9ivGfMfUQhn1YVXf3enap5++/+tL7zfuJypjTGintwAAAABJRU5ErkJggg==\"","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./login.vue?vue&type=style&index=0&id=0b49fb9e&prod&scoped=true&lang=css&\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAA0tJREFUWEfNmEtoE0EYx//fpq+kLfVQr4JPLHgS9KClpCgbRa8FH3dtQcWDhaQIxYMmiIpYwcfZotKT2FK6PtCS9lLsQQQDWl94sj0opdmkTfaT2e22m1ezk00hc5z95vt+O99rZgiSQ72qb6eMEWJQJwgdxLyNQa1CDYEXmegXGJ8JHM9gRXsT2/JNxgS5Ee7pYd+/3XoPDFwA+JBp291ggKah4H7bF//IyAhlyy0rqzgU1o8yskMA7S2nbOPvnCD4Lk7E/K83kisJFBzkpobl1F2wcd4biHM1MYgeLzc0XX53jVLF9BYFOh5Z3Gqwb4zBB6oHs66JQDMKZU+MR1vn8/UXAAmYLHyTYPboojK/QpTwIduVD5UDJNzUmNYnN2tnCneDZtKN/i6n+3KA1Ij+sLox48LhpDzSov5eW3INyMom1gAum3kuzEiIEBNItbPPNG7WmZ36J2Bz44YZC4pCz8F8kAFHwlCibc6/T9QpE0gdSJ6CwU8lfktelOh7RqHut9f9P4ODXNeQTn4E0LGmSKHT2o3AMwsokoyD+bC8FZcrHDD2CjW89BLASUcxmNJigU46Ev67w4f6rxLtwCXFmtiPjE8Jip2xZ0IDejcbPAFwvUMZZ7Gyi0LhpV4GHshacSlfAHMsrAcN8CjAzUWKYh+p4eQTgM+6NCAjJgVjKaZhUiPJD2DeX2iJ7wHKNMCXAIgOLzMqgBE8NCtcNs9Ae641eq/FAkExZzbZdPKFiH2XRJXBWEG8IFyWArgxz9iUFmvutOckoCqGWXVZuhQQQNyvRVtuSUB5hDFjKF3CZeZHJhj9E7GW2y6gSsAYowAKsqmU6y2XlQxq11BVgbGSjGZdpP2GO7Unv+hZdUZuZxzVephC4VQvI1umMBaH8ut6+/jNwG9boTcYM8v6JFpHIZQzFrzCALBah1CqhpNxwE1zLQ5VBRgRQFZzNYGkjh/ETLjyKhq4I9ZWBwaA8/hRyQGNgTEw/hDRmSKF1WVRt8U40TbXvH5AE9M1dYS1OWvqkG830pq6Bgmomroo2q6rqat0TiM1Hxv4XPXuahU+NjhzdjX7hrzf2Tw+xzihPD1YEU2DqvhglV/hxLWpDvVq+Sc9JZ5BSvpJ7z8dYRRfFYgXpwAAAABJRU5ErkJggg==\"","var dP = require('./_object-dp').f;\nvar FProto = Function.prototype;\nvar nameRE = /^\\s*function ([^ (]*)/;\nvar NAME = 'name';\n\n// 19.2.4.2 name\nNAME in FProto || require('./_descriptors') && dP(FProto, NAME, {\n configurable: true,\n get: function () {\n try {\n return ('' + this).match(nameRE)[1];\n } catch (e) {\n return '';\n }\n }\n});\n","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAAXNSR0IArs4c6QAAAINJREFUKFOdkTEOg0AMBHd5yp2/g9JGFFQUfAlRoihtinzHfoovAikRhEukO5eWx7trE4XFwnnUASJycff2nxrJp6o+NoUQQgdgAdD8gBxAb2a3jyURGdx9ykBOclTVeV12yJCBDsMnYG3sIOw3v61mrxRjvKaUaGb370x1Zy15XrHCCzAhLw1xxleTAAAAAElFTkSuQmCC\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"wrap\",on:{\"click\":function($event){_vm.showPhonePrefix = false}}},[_c('div',{staticClass:\"header\"},[_c('img',{staticClass:\"return-img\",attrs:{\"src\":require(\"../assets/return.png\")},on:{\"click\":function($event){return _vm.$router.back()}}})]),_c('ul',{staticClass:\"tab-list\"},[_c('li',{class:{ active: _vm.params.account_type === 2 },on:{\"click\":function($event){_vm.params.account_type = 2}}},[_vm._v(\"\\n 手机登录\\n \")]),_c('li',{class:{ active: _vm.params.account_type === 1 },on:{\"click\":function($event){_vm.params.account_type = 1}}},[_vm._v(\"\\n 邮箱登录\\n \")])]),_c('div',{staticClass:\"form-box\"},[(_vm.params.account_type === 2)?_c('div',[_c('div',{staticClass:\"form-row\"},[_c('div',{staticClass:\"form-row-box\",on:{\"click\":function($event){$event.stopPropagation();_vm.showPhonePrefix = true}}},[_c('span',[_c('span',{staticStyle:{\"font-size\":\"10px\"}},[_vm._v(\"+\")]),_vm._v(_vm._s(_vm.params.phone_pre))]),_c('img',{attrs:{\"src\":require(\"../assets/icon-139.png\"),\"alt\":\"\"}})]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.params.account),expression:\"params.account\"}],staticClass:\"input\",attrs:{\"type\":\"text\",\"placeholder\":\"请输入手机号码\"},domProps:{\"value\":(_vm.params.account)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.params, \"account\", $event.target.value)}}}),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showPhonePrefix),expression:\"showPhonePrefix\"}],staticClass:\"form-window\"},_vm._l((_vm.phonePrefix),function(item,index){return _c('div',{key:index,staticClass:\"form-window-row\",on:{\"click\":function($event){$event.stopPropagation();_vm.params.phone_pre = item.code;\n _vm.showPhonePrefix = false;}}},[_c('span',[_vm._v(_vm._s(item.name || item.title))]),_c('span',[_vm._v(\"+\"+_vm._s(item.code))])])}),0)]),_c('div',{staticClass:\"form-row\"},[_c('van-field',{staticClass:\"input\",attrs:{\"maxlength\":\"6\",\"type\":\"digit\",\"placeholder\":\"请输入验证码\"},on:{\"keydown\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.submit()}},model:{value:(_vm.params.code),callback:function ($$v) {_vm.$set(_vm.params, \"code\", $$v)},expression:\"params.code\"}}),(_vm.countDown <= 0)?_c('button',{staticClass:\"get-btn\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.sendSms()}}},[_vm._v(\"\\n 获取验证码\\n \")]):_c('button',{staticClass:\"get-btn\",attrs:{\"type\":\"button\"}},[_vm._v(\"\\n \"+_vm._s(_vm.countDown)+\"秒后重发\\n \")])],1)]):_vm._e(),(_vm.params.account_type === 1)?_c('div',[_c('div',{staticClass:\"form-row\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.params.account),expression:\"params.account\"}],staticClass:\"input\",attrs:{\"type\":\"text\",\"placeholder\":\"请输入邮箱账号\"},domProps:{\"value\":(_vm.params.account)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.params, \"account\", $event.target.value)}}})]),_c('div',{staticClass:\"form-row\"},[_c('van-field',{staticClass:\"input\",attrs:{\"maxlength\":\"6\",\"type\":\"digit\",\"placeholder\":\"请输入邮箱验证码\"},on:{\"keydown\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.submit()}},model:{value:(_vm.params.code),callback:function ($$v) {_vm.$set(_vm.params, \"code\", $$v)},expression:\"params.code\"}}),(_vm.countDown <= 0)?_c('button',{staticClass:\"get-btn\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.sendSms()}}},[_vm._v(\"\\n 获取验证码\\n \")]):_c('button',{staticClass:\"get-btn\",attrs:{\"type\":\"button\"}},[_vm._v(\"\\n \"+_vm._s(_vm.countDown)+\"秒后重发\\n \")])],1)]):_vm._e(),_c('div',{staticClass:\"bottom-row\"},[_c('a',{attrs:{\"href\":\"javascript:void(0)\"},on:{\"click\":function($event){_vm.selected = !_vm.selected}}},[(_vm.selected)?_c('img',{staticClass:\"circle-img\",attrs:{\"src\":require(\"../assets/circle-active.png\")}}):_c('img',{staticClass:\"circle-img\",attrs:{\"src\":require(\"../assets/circle.png\")}})]),_vm._v(\"\\n 我已阅读并同意\\n \"),_c('span',{staticClass:\"blue\"},[_c('span',{on:{\"click\":function($event){return _vm.$router.push('/agreement?configKey=agreement')}}},[_vm._v(\"《用户协议》\")]),_vm._v(\"\\n 、\\n \"),_c('span',{on:{\"click\":function($event){return _vm.$router.push('/agreement?configKey=privacy')}}},[_vm._v(\"《隐私政策》\")])])]),_c('div',{staticClass:\"btn-box\"},[_c('button',{attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.submit()}}},[_vm._v(\"登录\")])])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!-- 登录 -->\r\n<template>\r\n <div class=\"wrap\" @click=\"showPhonePrefix = false\">\r\n <div class=\"header\">\r\n <img\r\n src=\"../assets/return.png\"\r\n class=\"return-img\"\r\n @click=\"$router.back()\"\r\n />\r\n </div>\r\n\r\n <ul class=\"tab-list\">\r\n <li\r\n :class=\"{ active: params.account_type === 2 }\"\r\n @click=\"params.account_type = 2\"\r\n >\r\n 手机登录\r\n </li>\r\n <li\r\n :class=\"{ active: params.account_type === 1 }\"\r\n @click=\"params.account_type = 1\"\r\n >\r\n 邮箱登录\r\n </li>\r\n </ul>\r\n\r\n <div class=\"form-box\">\r\n <!-- 个人登录 -->\r\n <div v-if=\"params.account_type === 2\">\r\n <div class=\"form-row\">\r\n <div class=\"form-row-box\" @click.stop=\"showPhonePrefix = true\">\r\n <span\r\n ><span style=\"font-size: 10px\">+</span\r\n >{{ params.phone_pre }}</span\r\n >\r\n <img src=\"../assets/icon-139.png\" alt=\"\" />\r\n </div>\r\n <input\r\n type=\"text\"\r\n v-model=\"params.account\"\r\n placeholder=\"请输入手机号码\"\r\n class=\"input\"\r\n />\r\n\r\n <div class=\"form-window\" v-show=\"showPhonePrefix\">\r\n <div\r\n class=\"form-window-row\"\r\n v-for=\"(item, index) in phonePrefix\"\r\n :key=\"index\"\r\n @click.stop=\"\r\n params.phone_pre = item.code;\r\n showPhonePrefix = false;\r\n \"\r\n >\r\n <span>{{ item.name || item.title }}</span>\r\n <span>+{{ item.code }}</span>\r\n </div>\r\n </div>\r\n <!-- <normal-box :show=\"phonePrefix.length === 0\"/> -->\r\n </div>\r\n\r\n <div class=\"form-row\">\r\n <van-field\r\n class=\"input\"\r\n v-model=\"params.code\"\r\n maxlength=\"6\"\r\n type=\"digit\"\r\n placeholder=\"请输入验证码\"\r\n @keydown.enter=\"submit()\"\r\n />\r\n <button\r\n v-if=\"countDown <= 0\"\r\n @click=\"sendSms()\"\r\n type=\"button\"\r\n class=\"get-btn\"\r\n >\r\n 获取验证码\r\n </button>\r\n <button v-else type=\"button\" class=\"get-btn\">\r\n {{ countDown }}秒后重发\r\n </button>\r\n </div>\r\n </div>\r\n <!-- 个人登录 -->\r\n\r\n <!-- 企业登录 -->\r\n <div v-if=\"params.account_type === 1\">\r\n <div class=\"form-row\">\r\n <input\r\n type=\"text\"\r\n v-model=\"params.account\"\r\n placeholder=\"请输入邮箱账号\"\r\n class=\"input\"\r\n />\r\n </div>\r\n\r\n <div class=\"form-row\">\r\n <van-field\r\n class=\"input\"\r\n v-model=\"params.code\"\r\n maxlength=\"6\"\r\n type=\"digit\"\r\n placeholder=\"请输入邮箱验证码\"\r\n @keydown.enter=\"submit()\"\r\n />\r\n <button\r\n v-if=\"countDown <= 0\"\r\n @click=\"sendSms()\"\r\n type=\"button\"\r\n class=\"get-btn\"\r\n >\r\n 获取验证码\r\n </button>\r\n <button v-else type=\"button\" class=\"get-btn\">\r\n {{ countDown }}秒后重发\r\n </button>\r\n </div>\r\n </div>\r\n <!-- 企业登录 -->\r\n\r\n <div class=\"bottom-row\">\r\n <a href=\"javascript:void(0)\" @click=\"selected = !selected\">\r\n <img\r\n class=\"circle-img\"\r\n v-if=\"selected\"\r\n src=\"../assets/circle-active.png\"\r\n />\r\n <img class=\"circle-img\" v-else src=\"../assets/circle.png\" />\r\n </a>\r\n 我已阅读并同意\r\n <span class=\"blue\">\r\n <span @click=\"$router.push('/agreement?configKey=agreement')\"\r\n >《用户协议》</span\r\n >\r\n 、\r\n <span @click=\"$router.push('/agreement?configKey=privacy')\"\r\n >《隐私政策》</span\r\n >\r\n </span>\r\n </div>\r\n\r\n <div class=\"btn-box\">\r\n <button type=\"button\" @click=\"submit()\">登录</button>\r\n </div>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport { ExpediteService, LoginService } from \"@/common/service\";\r\nimport { Toast } from \"vant\";\r\nimport {\r\n getFacilityType,\r\n getUniqueCode,\r\n isWeChatOpen,\r\n validatorFun,\r\n} from \"@/common/util\";\r\nimport { appid, getCode } from \"@/common/wxjssdk.util\";\r\n\r\nexport default {\r\n name: \"login\",\r\n components: {},\r\n data() {\r\n return {\r\n selected: false, // 协议\r\n\r\n params: {\r\n account_type: 2, // 账号类型 1 企业 2 个人\r\n account: \"\", // 账号\r\n phone_pre: \"86\", // 手机号前缀\r\n code: \"\", // 验证码\r\n facility_type: \"\", // 设备类型 1 安卓手机设备 2 ios手机设备 3 安卓ipad 4 iosipad 5 pc电脑设备号 - 修改为 H5\r\n facility_code: \"\", // 设备号, 此处用的浏览器指纹\r\n },\r\n\r\n countDown: 0,\r\n loading: false,\r\n\r\n showPhonePrefix: false,\r\n phonePrefix: [],\r\n };\r\n },\r\n mounted() {\r\n // this.params.facility_type = getFacilityType();\r\n this.params.facility_type = 5;\r\n getUniqueCode().then(\r\n (facility_code) => (this.params.facility_code = facility_code)\r\n );\r\n this.getPhonePrefix();\r\n },\r\n methods: {\r\n getPhonePrefix() {\r\n ExpediteService.getPhonePrefix().then((res) => {\r\n this.phonePrefix = res.data;\r\n });\r\n },\r\n submit() {\r\n if (this.loading) return;\r\n this.loading = true;\r\n const params = this.params;\r\n const errList = validatorFun(params, [\r\n [\"account\", [\"notNull\", \"请输入账户\"]],\r\n [\"code\", [\"notNull\", \"请输入验证码\"]],\r\n ]);\r\n if (errList.length > 0) {\r\n this.loading = false;\r\n return Toast(errList[0].errMsg);\r\n }\r\n if (!this.selected) {\r\n this.loading = false;\r\n return Toast(\"请阅读并同意《用户协议》、《用户隐私》\");\r\n }\r\n LoginService.unifiedLogin(params)\r\n .then(({ msg, data }) => {\r\n this.params.code = \"\";\r\n Toast(msg);\r\n setTimeout(() => {\r\n localStorage.setItem(\"token\", data.token);\r\n if (!data.phone) {\r\n this.$router.push(\"/bind-mobile-phone-number\");\r\n } else {\r\n if (isWeChatOpen()) {\r\n getCode();\r\n } else {\r\n if (localStorage.getItem(\"APP_OPEN\") === \"ios\") {\r\n try {\r\n window.webkit.messageHandlers.h5LoginEvent.postMessage(\r\n data\r\n );\r\n } catch (e) {\r\n console.error(e);\r\n }\r\n }\r\n if (this.$route.params.from_path === \"/member\") {\r\n this.$router.back();\r\n } else {\r\n location.href = \"/\";\r\n }\r\n // this.$router.push('/');\r\n }\r\n }\r\n }, 1000);\r\n })\r\n .finally(() => setTimeout(() => (this.loading = false), 1000));\r\n },\r\n // 发送验证码\r\n sendSms() {\r\n const params = this.params;\r\n const errList = validatorFun(params, [\r\n [\"account\", [\"notNull\", \"请输入账户\"]],\r\n ]);\r\n if (errList.length > 0) {\r\n return Toast(errList[0].errMsg);\r\n }\r\n const reqMap = {\r\n 1: ExpediteService.emailSms,\r\n 2: ExpediteService.sendSms,\r\n };\r\n const reqParamsMap = {\r\n 1: {\r\n email: params.account,\r\n },\r\n 2: {\r\n phone: params.account,\r\n phone_pre: params.phone_pre,\r\n },\r\n };\r\n reqMap[params.account_type](reqParamsMap[params.account_type]).then(\r\n ({ msg }) => {\r\n this.countDownFn();\r\n Toast(msg);\r\n }\r\n );\r\n },\r\n countDownFn() {\r\n let num = 60;\r\n const fn = () => {\r\n if (num === 0) return;\r\n this.countDown = --num;\r\n setTimeout(() => fn(), 1000);\r\n };\r\n fn();\r\n },\r\n },\r\n};\r\n</script>\r\n\r\n<style scoped>\r\n.wrap {\r\n width: 100%;\r\n display: flex;\r\n flex-direction: column;\r\n padding: 129px 30px 30px;\r\n box-sizing: border-box;\r\n}\r\n\r\n.tab-list {\r\n width: 100%;\r\n white-space: nowrap;\r\n margin-bottom: 70px;\r\n}\r\n\r\n.tab-list > li {\r\n display: inline-block;\r\n color: #333333;\r\n font-size: 16px;\r\n margin-right: 26px;\r\n}\r\n\r\n.tab-list > li:last-child {\r\n margin-right: 0;\r\n}\r\n\r\n.tab-list > li.active {\r\n font-weight: bold;\r\n color: #222222;\r\n font-size: 28px;\r\n}\r\n\r\n.form-box {\r\n width: 100%;\r\n display: flex;\r\n flex-direction: column;\r\n}\r\n\r\n.form-row {\r\n width: 100%;\r\n height: 48px;\r\n display: flex;\r\n align-items: center;\r\n background-color: #f5f6f7;\r\n border-radius: 100px;\r\n margin-bottom: 20px;\r\n padding: 0 20px;\r\n box-sizing: border-box;\r\n position: relative;\r\n}\r\n\r\n.input {\r\n flex: 1;\r\n font-size: 14px;\r\n background: none;\r\n padding: 0;\r\n border: none;\r\n}\r\n\r\n.input::placeholder,\r\n.input >>> input::placeholder {\r\n color: #9c9c9c !important;\r\n}\r\n\r\n.input::after {\r\n display: none;\r\n}\r\n\r\n.get-btn {\r\n color: #2a63f3;\r\n font-size: 14px;\r\n}\r\n\r\n.bottom-row {\r\n width: 100%;\r\n display: flex;\r\n align-items: center;\r\n margin-top: 60px;\r\n color: #9c9c9c;\r\n font-size: 12px;\r\n}\r\n\r\n.circle-img {\r\n width: 12px;\r\n margin-right: 6px;\r\n}\r\n\r\n.blue {\r\n color: #2a63f3;\r\n}\r\n\r\n.btn-box {\r\n width: 100%;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n padding: 15px 0;\r\n}\r\n\r\n.btn-box > button {\r\n width: 100%;\r\n height: 48px;\r\n line-height: 48px;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n color: #ffffff;\r\n font-size: 20px;\r\n font-weight: bold;\r\n border-radius: 100px;\r\n background-color: #2a63f3;\r\n}\r\n\r\n/* 头部样式 */\r\n.header {\r\n width: 100%;\r\n height: 44px;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n position: fixed;\r\n top: 0;\r\n left: 0;\r\n background-color: #ffffff;\r\n z-index: 999;\r\n}\r\n\r\n.return-img {\r\n position: absolute;\r\n left: 15px;\r\n top: 50%;\r\n transform: translate(0, -50%);\r\n width: 20px;\r\n}\r\n.form-row-box {\r\n display: flex;\r\n align-items: center;\r\n color: #222222;\r\n font-size: 14px;\r\n font-weight: bold;\r\n margin-right: 12px;\r\n}\r\n\r\n.form-row-box > span {\r\n display: flex;\r\n align-items: center;\r\n}\r\n\r\n.form-row-box > img {\r\n width: 6px;\r\n margin-left: 4px;\r\n}\r\n\r\n.form-window {\r\n position: absolute;\r\n top: 62px;\r\n left: 0;\r\n background-color: #f5f6f7;\r\n border-radius: 18px;\r\n width: 100%;\r\n height: 40vh;\r\n overflow: auto;\r\n padding: 21px 14px;\r\n box-sizing: border-box;\r\n z-index: 99;\r\n}\r\n\r\n.form-window-row {\r\n width: 100%;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n font-size: 15px;\r\n color: #222222;\r\n margin-bottom: 18px;\r\n}\r\n\r\n.form-window-row:last-child {\r\n margin-bottom: 0;\r\n}\r\n</style>\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./login.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./login.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./login.vue?vue&type=template&id=0b49fb9e&scoped=true&\"\nimport script from \"./login.vue?vue&type=script&lang=js&\"\nexport * from \"./login.vue?vue&type=script&lang=js&\"\nimport style0 from \"./login.vue?vue&type=style&index=0&id=0b49fb9e&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"0b49fb9e\",\n null\n \n)\n\nexport default component.exports","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAm5JREFUWEft2MnLTlEYAPDfZx4yK8WCWLBgwQIbSobIkMiwYiMbJX+JWLFRSmJBUoYyLCjDQoREQgghikQiQ4/OW8eXvPfe976fV31ne8+9z+8+59xzn3O6dHjr6nCfXmCrI9RTGeyH2XiEl2XQPQEci5MJ+AlLcKkost3AcTiH6RloN3Z0AnACzmNqhvmBFTj1r4ETE25KBvmObdhbFBf92jHEgYrMBbLRvmEL9pfBtQM4LeHGZ5Cv2ITDZXF1A2fgLOLDaLQv2IhjVXB1AmfhDMZkkM9YW+aD+NNL1DEH5+I0RmYBPmJ1WmKqJu/Xfa0C5+MEhmWKD2kpudiSLN3cCnARjmNIBnmHZbhaB66VDC7HEQzKIG/Tb+x6XbiqwDU4hAEZ5BUW43aduCrA9TiIqE4a7TliuO/VjSsLjA8hSqV8zj3BQjxsB64scDRiKPPs3UzZe9MJwDBEmbSz2/J0JyFLFaJFX6jKMrMdu7oh76ehflY0cNF+VYDx7K3Ygz5ZoCjnYz4+Lhq8SL+qwHj2ZuxD3yzQ04R8UCR4kT6tAOP5G3AA/bNgL9KcvFsE0KxPq8B4fhQFUesNzIK9Tgv3rWaAZtfrAEaM+P8exeAsYPz6luJaM8TfrtcFjBjxgUTxMDQL+D7hr1RF1gkMw7xUfg3PQFF+rcSFKsi6gWGYkwrYURkoNuwxV2NLUKq1AxiAmWkLEKcKjRZbgHUpw4WR7QIGIE4T4lSh+yZqAS4XFbYTGIY4VYg9cpwyNFrHHH00QJMTchLidGFVOkwqlMR2Z7CBGIHYJsTf5UYhWerUU8Aypt/69gIrp+5/GeKfiUBcKeCBb1YAAAAASUVORK5CYII=\""],"sourceRoot":""}
|