pages-public-forget.119c97a6.js 6.1 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-public-forget"],{"0bb2":function(t,n,i){"use strict";var e=i("e899"),o=i.n(e);o.a},"16a9":function(t,n,i){"use strict";i.r(n);var e=i("d610"),o=i.n(e);for(var a in e)"default"!==a&&function(t){i.d(n,t,(function(){return e[t]}))}(a);n["default"]=o.a},"47af":function(t,n,i){"use strict";i.r(n);var e=i("6c4b"),o=i("16a9");for(var a in o)"default"!==a&&function(t){i.d(n,t,(function(){return o[t]}))}(a);i("0bb2");var c,u=i("f0c5"),r=Object(u["a"])(o["default"],e["b"],e["c"],!1,null,"0c604026",null,!1,e["a"],c);n["default"]=r.exports},"6c4b":function(t,n,i){"use strict";var e;i.d(n,"b",(function(){return o})),i.d(n,"c",(function(){return a})),i.d(n,"a",(function(){return e}));var o=function(){var t=this,n=t.$createElement,i=t._self._c||n;return i("v-uni-view",{staticClass:"container"},[i("v-uni-view",{staticClass:"container_text"},[i("v-uni-image",{staticClass:"banner-img",attrs:{src:"/static/img/img01.png",mode:" scaleToFill"}})],1),i("v-uni-view",{staticClass:"loginTitle"},[i("v-uni-text",[t._v("手机号登录")])],1),i("v-uni-view",{staticClass:"login_text"},[i("v-uni-view",{staticClass:"login_input flex"},[i("v-uni-view",{staticClass:"login_img"},[i("v-uni-image",{attrs:{src:"/static/icon/img03.png"}})],1),i("v-uni-view",{staticClass:"login_name"},[i("v-uni-input",{staticClass:"uni-input",attrs:{focus:!0,placeholder:"请输入手机号"},model:{value:t.phone,callback:function(n){t.phone=n},expression:"phone"}})],1)],1),i("v-uni-view",{staticClass:"login_input flex"},[i("v-uni-view",{staticClass:"login_img"},[i("v-uni-image",{attrs:{src:"/static/icon/img06.png"}})],1),i("v-uni-view",{staticClass:"login_name flex"},[i("v-uni-input",{staticClass:"uni-input width",attrs:{focus:!0,placeholder:"请输入验证码"},model:{value:t.code,callback:function(n){t.code=n},expression:"code"}}),i("v-uni-view",{staticClass:"code",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.verification.apply(void 0,arguments)}}},[t._v(t._s(0==t.countDown?"验证码":t.countDown))])],1)],1),i("v-uni-view",[i("v-uni-button",{staticClass:"uni-button uni-button-green",attrs:{type:"green"},on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.register.apply(void 0,arguments)}}},[t._v("登录")])],1)],1)],1)},a=[]},bcd7:function(t,n,i){"use strict";var e=i("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.login=a,n.register=c,n.verify=u,n.getUserInfo=r,n.loginMobile=l,n.bangding=s;var o=e(i("0e39"));function a(t){return(0,o.default)({url:"/api/login",method:"post",data:t})}function c(t){return(0,o.default)({url:"/api/register",method:"post",data:t})}function u(t){return(0,o.default)({url:"/api/register/verify",method:"post",data:t})}function r(t){return(0,o.default)({url:"/api/userinfo",method:"get",data:t})}function l(t){return(0,o.default)({url:"/api/login/mobile",method:"post",data:t})}function s(t){return(0,o.default)({url:"/api/binding",method:"POST",data:t})}},ca3d:function(t,n,i){var e=i("24fb");n=e(!1),n.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/uni-page-body[data-v-0c604026]{height:100%}.container[data-v-0c604026]{width:100%;height:100%;background-size:100%}.container_text[data-v-0c604026]{width:100%;height:%?500?%;top:%?0?%}.container_text .banner-img[data-v-0c604026]{width:100%;height:100%}.login_text[data-v-0c604026]{margin:auto %?30?%;position:relative;padding:%?100?% %?102?%;background-color:#fff;margin-top:%?-180?%;border-radius:%?20?%}.login_text .login_input[data-v-0c604026]{border-bottom:1px solid #f0f0f0;margin-bottom:%?65?%}.login_text .login_input .login_img uni-image[data-v-0c604026]{height:%?35?%;width:%?29?%;margin-right:%?20?%}.login_text .login_input .uni-input[data-v-0c604026]{text-align:left;width:%?470?%;font-size:%?28?%!important}.login_text .login_input .login_name[data-v-0c604026]{color:#333}.login_text .login_input .login_name .width[data-v-0c604026]{width:%?325?%!important}.login_text .login_input .login_name .code[data-v-0c604026]{color:#5dbc7c;font-size:%?23?%;border-left:1px solid #eee;width:%?150?%;flex-shrink:0;text-align:center}.login_text .uni-button-green[data-v-0c604026]{color:#fff;background-color:#5dbc7c;margin:%?40?% %?10?%;border-radius:%?50?%}.login_text .uni-button[data-v-0c604026]{height:%?85?%;line-height:%?85?%}.loginTitle[data-v-0c604026]{position:absolute;top:%?250?%;width:100%;text-align:center;color:#fff;font-size:%?40?%}uni-button[data-v-0c604026]{height:%?80?%!important;line-height:%?80?%!important}',""]),t.exports=n},d610:function(t,n,i){"use strict";var e=i("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=e(i("5530")),a=i("26cb"),c=i("bcd7"),u={data:function(){return{phone:"",code:"",time:"",countDown:0}},onLoad:function(){},watch:{countDown:function(t){0==t&&clearInterval(this.time)}},methods:(0,o.default)((0,o.default)({},(0,a.mapMutations)("user",["setUserInfo","login"])),{},{register:function(){var t=this;""!=t.phone?/(^1[3|4|5|7|8][0-9]{9}$)/.test(this.phone)?""!=t.code?(0,c.loginMobile)({phone:t.phone,captcha:t.code}).then((function(n){uni.setStorageSync("token",n.data.token),(0,c.getUserInfo)({}).then((function(n){t.login(),t.setUserInfo(n.data),uni.switchTab({url:"/pages/index/index"})}))})).catch((function(t){console.log(t)})):t.$api.msg("请输入验证码"):t.$api.msg("请输入正确的手机号"):t.$api.msg("请输入电话号码")},verification:function(){var t=this;if(""!=this.phone){if(!(this.phone.length<11))return!(t.countDown>0)&&(t.countDown=60,t.time=setInterval((function(){t.countDown--}),1e3),void(0,c.verify)({phone:t.phone,type:"login"}).then((function(t){t.data})).catch((function(t){console.log(t)})));this.$api.msg("请输入正确的手机号")}else this.$api.msg("请输入电话号码")},login:function(){uni.navigateTo({url:"/pages/public/login"})}})};n.default=u},e899:function(t,n,i){var e=i("ca3d");"string"===typeof e&&(e=[[t.i,e,""]]),e.locals&&(t.exports=e.locals);var o=i("4f06").default;o("ad657d08",e,!0,{sourceMap:!1,shadowMode:!1})}}]);