chunk-c3b51cc4.34ae2a17.js 10 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c3b51cc4"],{"088b":function(t,n){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAAwlJREFUWEfNmE1oE0EUx/9vt7GLKB5WJYIIVQ8qoiBYRUtBET30JhhaPBVNNlM09KJ48uBJ9FKiZLKJ0ovSEsGbB0UUpIofKCiiPRQKIhjUHESR1CH7ZMpG0tjapI1l5jpv3vzmvXkfM4QmRz6f76hUKkcAdAHYyswbAKwM1Xwnog8A3gMYs237bjwen2xmC2pEuFAo2KVS6RiAUwD2AWhoHQAG8ATAVdd1b8Viscp8+82rOJfLHapUKlcAbKlaAcAdAA8AvFZKTUaj0W96rlgsropEIh0AdgI4CKCnxnrjtm2fTiQS9/8FNSfQ8PCwUy6Xh4gowcxaboKILhLRiOd5P+c7qZ73fX85M/cx8zkAm4mImTnnOM5gf39/eTYdswKl0+k1kUhEW2E3gLJlWecBDHmepxoBqZfxfT8CYDAIggsAHAAvlFI9qVTqS73sX0AhzKPQRZ+Y+ejAwMDThYDUr8lkMnuJ6DaAdQDGlVLd9VAzgEI3aRhtmTfhKT62AqaqI51Orw+tv0NbynGc7lr3zQCSUmYBeAA+KaU6U6lUS2HqoJ6HlvKFEMnq3B8gHU1BENxj5ilmPtAqN81l3dB9D4mo3bKsw9XomwYK88xbfW8syzrred7lVrppLl2+758JguCSvk+u627XeWoaSErZC2BEh7ZlWdsWGk3NHkJHXxAE73RKANAnhBitAo0B2E9EJ5PJ5PVmFS9GPpvNnmDmawAeCyG6KJPJbCSiCQA/LMuKNpr0FgNRu1YnzyAIigBWtLW1baJsNptkZglgVAjR16qNmtEjpdTXpZeIhAa6wczHASSEEPlmFLVKVkoZB5Ajopsa6CUz7wKwRwihc8OSDyllJ4BnRPSKpJS6nqxWSq2drbYsBV1Yrj4D+KqBdNVtd123PRaL/VoKgPo9CoXCslKpNAVgykggs1xm3KU2MezNSozGlY6w2ptTXI1sP4xr0LSVjGphq6ncqCZfQxn3DNJQRj0Ua95N5jylq1BGfTbU9ivGfMfUQhn1YVXf3enap5++/+tL7zfuJypjTGintwAAAABJRU5ErkJggg=="},"31df":function(t,n,e){"use strict";e("fa8d")},"7bcf":function(t,n){t.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=="},"7f7f":function(t,n,e){var a=e("86cc").f,o=Function.prototype,s=/^\s*function ([^ (]*)/,c="name";c in o||e("9e1e")&&a(o,c,{configurable:!0,get:function(){try{return(""+this).match(s)[1]}catch(t){return""}}})},c5cc:function(t,n){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAAXNSR0IArs4c6QAAAINJREFUKFOdkTEOg0AMBHd5yp2/g9JGFFQUfAlRoihtinzHfoovAikRhEukO5eWx7trE4XFwnnUASJycff2nxrJp6o+NoUQQgdgAdD8gBxAb2a3jyURGdx9ykBOclTVeV12yJCBDsMnYG3sIOw3v61mrxRjvKaUaGb370x1Zy15XrHCCzAhLw1xxleTAAAAAElFTkSuQmCC"},dd7b:function(t,n,e){"use strict";e.r(n);e("57e7"),e("7f7f");var a=function(){var t=this,n=t._self._c;return n("div",{staticClass:"wrap",on:{click:function(n){t.showPhonePrefix=!1}}},[n("div",{staticClass:"header"},[n("img",{staticClass:"return-img",attrs:{src:e("f5a4")},on:{click:function(n){return t.$router.back()}}})]),n("ul",{staticClass:"tab-list"},[n("li",{class:{active:2===t.params.account_type},on:{click:function(n){t.params.account_type=2}}},[t._v("\n 手机登录\n ")]),n("li",{class:{active:1===t.params.account_type},on:{click:function(n){t.params.account_type=1}}},[t._v("\n 邮箱登录\n ")])]),n("div",{staticClass:"form-box"},[2===t.params.account_type?n("div",[n("div",{staticClass:"form-row"},[n("div",{staticClass:"form-row-box",on:{click:function(n){n.stopPropagation(),t.showPhonePrefix=!0}}},[n("span",[n("span",{staticStyle:{"font-size":"10px"}},[t._v("+")]),t._v(t._s(t.params.phone_pre))]),n("img",{attrs:{src:e("c5cc"),alt:""}})]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.params.account,expression:"params.account"}],staticClass:"input",attrs:{type:"text",placeholder:"请输入手机号码"},domProps:{value:t.params.account},on:{input:function(n){n.target.composing||t.$set(t.params,"account",n.target.value)}}}),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showPhonePrefix,expression:"showPhonePrefix"}],staticClass:"form-window"},t._l(t.phonePrefix,(function(e,a){return n("div",{key:a,staticClass:"form-window-row",on:{click:function(n){n.stopPropagation(),t.params.phone_pre=e.code,t.showPhonePrefix=!1}}},[n("span",[t._v(t._s(e.name||e.title))]),n("span",[t._v("+"+t._s(e.code))])])})),0)]),n("div",{staticClass:"form-row"},[n("van-field",{staticClass:"input",attrs:{maxlength:"6",type:"digit",placeholder:"请输入验证码"},on:{keydown:function(n){return!n.type.indexOf("key")&&t._k(n.keyCode,"enter",13,n.key,"Enter")?null:t.submit()}},model:{value:t.params.code,callback:function(n){t.$set(t.params,"code",n)},expression:"params.code"}}),t.countDown<=0?n("button",{staticClass:"get-btn",attrs:{type:"button"},on:{click:function(n){return t.sendSms()}}},[t._v("\n 获取验证码\n ")]):n("button",{staticClass:"get-btn",attrs:{type:"button"}},[t._v("\n "+t._s(t.countDown)+"秒后重发\n ")])],1)]):t._e(),1===t.params.account_type?n("div",[n("div",{staticClass:"form-row"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.params.account,expression:"params.account"}],staticClass:"input",attrs:{type:"text",placeholder:"请输入邮箱账号"},domProps:{value:t.params.account},on:{input:function(n){n.target.composing||t.$set(t.params,"account",n.target.value)}}})]),n("div",{staticClass:"form-row"},[n("van-field",{staticClass:"input",attrs:{maxlength:"6",type:"digit",placeholder:"请输入邮箱验证码"},on:{keydown:function(n){return!n.type.indexOf("key")&&t._k(n.keyCode,"enter",13,n.key,"Enter")?null:t.submit()}},model:{value:t.params.code,callback:function(n){t.$set(t.params,"code",n)},expression:"params.code"}}),t.countDown<=0?n("button",{staticClass:"get-btn",attrs:{type:"button"},on:{click:function(n){return t.sendSms()}}},[t._v("\n 获取验证码\n ")]):n("button",{staticClass:"get-btn",attrs:{type:"button"}},[t._v("\n "+t._s(t.countDown)+"秒后重发\n ")])],1)]):t._e(),n("div",{staticClass:"bottom-row"},[n("a",{attrs:{href:"javascript:void(0)"},on:{click:function(n){t.selected=!t.selected}}},[t.selected?n("img",{staticClass:"circle-img",attrs:{src:e("7bcf")}}):n("img",{staticClass:"circle-img",attrs:{src:e("088b")}})]),t._v("\n 我已阅读并同意\n "),n("span",{staticClass:"blue"},[n("span",{on:{click:function(n){return t.$router.push("/agreement?configKey=agreement")}}},[t._v("《用户协议》")]),t._v("\n 、\n "),n("span",{on:{click:function(n){return t.$router.push("/agreement?configKey=privacy")}}},[t._v("《隐私政策》")])])]),n("div",{staticClass:"btn-box"},[n("button",{attrs:{type:"button"},on:{click:function(n){return t.submit()}}},[t._v("登录")])])])])},o=[],s=e("f523"),c=e("d399"),i=e("325c"),r=e("c1ca"),A={name:"login",components:{},data:function(){return{selected:!1,params:{account_type:2,account:"",phone_pre:"86",code:"",facility_type:"",facility_code:""},countDown:0,loading:!1,showPhonePrefix:!1,phonePrefix:[]}},mounted:function(){var t=this;this.params.facility_type=5,Object(i["k"])().then((function(n){return t.params.facility_code=n})),this.getPhonePrefix()},methods:{getPhonePrefix:function(){var t=this;s["i"].getPhonePrefix().then((function(n){t.phonePrefix=n.data}))},submit:function(){var t=this;if(!this.loading){this.loading=!0;var n=this.params,e=Object(i["p"])(n,[["account",["notNull","请输入账户"]],["code",["notNull","请输入验证码"]]]);return e.length>0?(this.loading=!1,Object(c["a"])(e[0].errMsg)):this.selected?void s["n"].unifiedLogin(n).then((function(n){var e=n.msg,a=n.data;t.params.code="",Object(c["a"])(e),setTimeout((function(){if(localStorage.setItem("token",a.token),a.phone)if(Object(i["m"])())Object(r["a"])();else{if("ios"===localStorage.getItem("APP_OPEN"))try{window.webkit.messageHandlers.h5LoginEvent.postMessage(a)}catch(n){console.error(n)}"/member"===t.$route.params.from_path?t.$router.back():location.href="/"}else t.$router.push("/bind-mobile-phone-number")}),1e3)})).finally((function(){return setTimeout((function(){return t.loading=!1}),1e3)})):(this.loading=!1,Object(c["a"])("请阅读并同意《用户协议》、《用户隐私》"))}},sendSms:function(){var t=this,n=this.params,e=Object(i["p"])(n,[["account",["notNull","请输入账户"]]]);if(e.length>0)return Object(c["a"])(e[0].errMsg);var a={1:s["i"].emailSms,2:s["i"].sendSms},o={1:{email:n.account},2:{phone:n.account,phone_pre:n.phone_pre}};a[n.account_type](o[n.account_type]).then((function(n){var e=n.msg;t.countDownFn(),Object(c["a"])(e)}))},countDownFn:function(){var t=this,n=60,e=function e(){0!==n&&(t.countDown=--n,setTimeout((function(){return e()}),1e3))};e()}}},u=A,l=(e("31df"),e("2877")),p=Object(l["a"])(u,a,o,!1,null,"0b49fb9e",null);n["default"]=p.exports},f5a4:function(t,n){t.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="},fa8d:function(t,n,e){}}]);
  2. //# sourceMappingURL=chunk-c3b51cc4.34ae2a17.js.map