12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0b743292"],{"3b54":function(t,n,e){"use strict";e.r(n);e("57e7"),e("7f7f");var o=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()}}})]),t._m(0),n("div",{staticClass:"form-box"},[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.phone,expression:"params.phone"}],staticClass:"input",attrs:{type:"text",placeholder:"请输入手机号码"},domProps:{value:t.params.phone},on:{input:function(n){n.target.composing||t.$set(t.params,"phone",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,o){return n("div",{key:o,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))])])})),n("normal-box",{attrs:{show:0===t.phonePrefix.length}})],2)]),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("button",{staticClass:"get-btn",attrs:{type:"button"}},[t._v(t._s(t.countDown)+"秒后重发")])],1),n("div",{staticClass:"btn-box"},[n("button",{attrs:{type:"button"},on:{click:function(n){return t.submit()}}},[t._v("立即绑定")])])])])},a=[function(){var t=this,n=t._self._c;return n("ul",{staticClass:"tab-list"},[n("li",{staticClass:"active"},[t._v("\n 企业用户请绑定手机号\n ")])])}],i=e("f523"),s=e("325c"),r=e("d399"),c=e("cc9d"),u=e("c1ca"),f={name:"",components:{NormalBox:c["a"]},data:function(){return{params:{phone:"",phone_pre:"86",code:""},countDown:0,loading:!1,showPhonePrefix:!1,phonePrefix:[]}},mounted:function(){this.getPhonePrefix()},methods:{getPhonePrefix:function(){var t=this;i["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(s["p"])(n,[["phone",["notNull","请输入手机号码"]],["code",["notNull","请输入验证码"]]]);if(e.length>0)return this.loading=!1,Object(r["a"])(e[0].errMsg);i["v"].modifyPhone(n).then((function(n){var e=n.msg;n.data;t.params.code="",Object(r["a"])(e),setTimeout((function(){Object(s["m"])()?Object(u["a"])():location.href="/"}),1e3)})).finally((function(){return setTimeout((function(){return t.loading=!1}),1e3)}))}},sendSms:function(){var t=this,n=this.params,e=Object(s["p"])(n,[["account",["notNull","请输入账户"]]]);if(e.length>0)return Object(r["a"])(e[0].errMsg);i["i"].sendSms({phone:n.account,phone_pre:n.phone_pre}).then((function(n){var e=n.msg;t.countDownFn(),Object(r["a"])(e)}))},countDownFn:function(){var t=this,n=60,e=function e(){0!==n&&(t.countDown=--n,setTimeout((function(){return e()}),1e3))};e()}}},l=f,h=(e("c5d9"),e("2877")),p=Object(h["a"])(l,o,a,!1,null,"89876878",null);n["default"]=p.exports},"7a17":function(t,n,e){},"7f7f":function(t,n,e){var o=e("86cc").f,a=Function.prototype,i=/^\s*function ([^ (]*)/,s="name";s in a||e("9e1e")&&o(a,s,{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(t){return""}}})},c5cc:function(t,n){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAAXNSR0IArs4c6QAAAINJREFUKFOdkTEOg0AMBHd5yp2/g9JGFFQUfAlRoihtinzHfoovAikRhEukO5eWx7trE4XFwnnUASJycff2nxrJp6o+NoUQQgdgAdD8gBxAb2a3jyURGdx9ykBOclTVeV12yJCBDsMnYG3sIOw3v61mrxRjvKaUaGb370x1Zy15XrHCCzAhLw1xxleTAAAAAElFTkSuQmCC"},c5d9:function(t,n,e){"use strict";e("7a17")},cc9d:function(t,n,e){"use strict";var o=function(){var t=this,n=t._self._c;return t.show?n("div",{staticClass:"normal-box-small"},[t.hideImg?n("img",{attrs:{src:e("e18b")}}):t._e(),t._v("\n "+t._s(t.text)+"\n")]):t._e()},a=[],i={name:"normal-box",props:{show:{default:!1},text:{default:"暂无数据"},hideImg:{default:!0}}},s=i,r=(e("da0b"),e("2877")),c=Object(r["a"])(s,o,a,!1,null,"51f5bfbc",null);n["a"]=c.exports},da0b:function(t,n,e){"use strict";e("fd44")},e18b:function(t,n,e){t.exports=e.p+"img/normal.bfd5e89f.png"},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="},fd44:function(t,n,e){}}]);
- //# sourceMappingURL=chunk-0b743292.f5890044.js.map
|