2 lines
8.2 KiB
JavaScript
2 lines
8.2 KiB
JavaScript
|
|
webpackJsonp([25],{"/v73":function(t,e,o){var a=o("ahH9");"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);o("FIqI")("7c064258",a,!0,{})},"1cHr":function(t,e,o){"use strict";function a(t){o("/v73")}Object.defineProperty(e,"__esModule",{value:!0});var i=o("6Jh3");o.n(i);for(var n in i)"default"!==n&&function(t){o.d(e,t,function(){return i[t]})}(n);var r=o("oDXz"),s=o.n(r),c=o("GpnT"),d=o("C7Lr"),l=a,p=d(s.a,c.a,!1,l,"data-v-5a85fcd9",null);e.default=p.exports},"6Jh3":function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=o("EuEE");e.default={name:"register",components:{},data:function(){return{mobile:"",code:"",value:"",time:60,warn:!0,text:"获取验证码",timer:"",paas:""}},watch:{time:function(){0===this.time&&(clearInterval(this.timer),this.time=60,this.text="重新发送")},mobile:function(){/^1(3|4|5|7|8)\d{9}$/.test(this.mobile)?this.warn=!1:this.warn=!0}},methods:{getCode:function(){var t=this,e={mobile:this.mobile};this.$http.post("/official/sms/register",e).then(function(e){e.data;(0,a.$toastSuccess)("发送成功"),t.timer=setInterval(function(){t.time--},1e3)}).catch(function(t){console.log(t)})},register:function(){var t=this,e={mobile:this.mobile,code:this.code,paas:localStorage.getItem("paas")};this.$http.post("/official/login/mobile",e).then(function(e){var o=e.data;localStorage.setItem("ACCESS_TOKEN",o.token),o.user&&o.user.type?t.$router.push({name:"home"}):t.$router.push({name:"personalData"})}).catch(function(t){console.log(t)})}},mounted:function(){console.log(this.$store.state.route),console.log(this.$wechat)}}},GpnT:function(t,e,o){"use strict";var a=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"wrapper text-center",attrs:{id:"register"}},[o("div",{staticClass:"center"}),t._v(" "),o("div",{staticStyle:{position:"relative"}},[o("input",{directives:[{name:"model",rawName:"v-model",value:t.mobile,expression:"mobile"}],staticClass:"font30 colorff mobile",attrs:{type:"number",placeholder:"手机号"},domProps:{value:t.mobile},on:{input:function(e){e.target.composing||(t.mobile=e.target.value)}}}),t._v(" "),o("img",{staticClass:"icon",attrs:{src:"http://images.ufutx.com/201903/28/8026e39a4bd864b41293b4276203026d.png",alt:"icon"}}),t._v(" "),o("img",{directives:[{name:"show",rawName:"v-show",value:t.mobile,expression:"mobile"}],staticClass:"del_icon",attrs:{src:"http://images.ufutx.com/201903/28/f04cd2fd382dbd6da45260e825ff61ef.png",alt:"icon"},on:{click:function(e){t.mobile=""}}}),t._v(" "),o("img",{directives:[{name:"show",rawName:"v-show",value:t.warn&&t.mobile,expression:"warn && mobile"}],staticClass:"del_icon",staticStyle:{right:"12px"},attrs:{src:"http://images.ufutx.com/201903/28/458109eca8206129719b768be914382f.png",alt:"icon"}})]),t._v(" "),o("div",{staticStyle:{position:"relative"}},[o("input",{directives:[{name:"model",rawName:"v-model",value:t.code,expression:"code"}],staticClass:"font30 colorff code",attrs:{type:"number",placeholder:"验证码"},domProps:{value:t.code},on:{input:function(e){e.target.composing||(t.code=e.target.value)}}}),t._v(" "),o("img",{staticClass:"icon",staticStyle:{top:"7.2vw"},attrs:{src:"http://images.ufutx.com/201903/28/0d60138223b3bf6ca002682946adacf6.png",alt:"icon"}}),t._v(" "),60==t.time?o("p",{staticClass:"getCode font30",on:{click:t.getCode}},[t._v(t._s(t.text))]):o("p",{staticClass:"getCode font28"},[t._v(t._s(t.time)+" 秒后重试")])]),t._v(" "),o("button",{staticClass:"colorff button text-center",on:{click:t.register}},[t._v("立即登录")]),t._v(" "),o("p",{staticClass:"font26 protocol"},[o("span",{staticStyle:{color:"#9a9a9a"}},[t._v("\n 点击立即登录默认您同意\n ")]),t._v(" "),o("span",{staticStyle:{color:"#cadefc","text-decoration":"underline"}},[o("router-link",{staticStyle:{color:"#cadefc","text-decoration":"none"},attrs:{to:"protocol"}},[t._v("《福恋注册协议》")])],1)])])},i=[],n={render:a,staticRenderFns:i};e.a=n},ahH9:function(t,e,o){e=t.exports=o("UTlt")(!0),e.push([t.i,'\nbody .wrapper[data-v-5a85fcd9]{width:100%;height:100vh;back
|
||
|
|
//# sourceMappingURL=25.2e679f950883cf724dd2.js.map
|