index.js
2.7 KB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/login/index"],{"48fc":function(e,n,u){"use strict";(function(e,n){var o=u("47a9");u("c5a3");o(u("3240"));var t=o(u("f5f3"));e.__webpack_require_UNI_MP_PLUGIN__=u,n(t.default)}).call(this,u("3223")["default"],u("df3c")["createPage"])},"6eb3":function(e,n,u){},"9b5a":function(e,n,u){"use strict";u.r(n);var o=u("a4da"),t=u.n(o);for(var r in o)["default"].indexOf(r)<0&&function(e){u.d(n,e,(function(){return o[e]}))}(r);n["default"]=t.a},a362:function(e,n,u){"use strict";u.d(n,"b",(function(){return t})),u.d(n,"c",(function(){return r})),u.d(n,"a",(function(){return o}));var o={uForm:function(){return Promise.all([u.e("common/vendor"),u.e("uni_modules/uview-ui/components/u-form/u-form")]).then(u.bind(null,"ef6d"))},uFormItem:function(){return Promise.all([u.e("common/vendor"),u.e("uni_modules/uview-ui/components/u-form-item/u-form-item")]).then(u.bind(null,"c7a5"))},uInput:function(){return Promise.all([u.e("common/vendor"),u.e("uni_modules/uview-ui/components/u-input/u-input")]).then(u.bind(null,"8a3a"))},uCheckboxGroup:function(){return Promise.all([u.e("common/vendor"),u.e("uni_modules/uview-ui/components/u-checkbox-group/u-checkbox-group")]).then(u.bind(null,"05cc"))},uCheckbox:function(){return Promise.all([u.e("common/vendor"),u.e("uni_modules/uview-ui/components/u-checkbox/u-checkbox")]).then(u.bind(null,"675e"))}},t=function(){var e=this.$createElement;this._self._c},r=[]},a4da:function(e,n,u){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var u={data:function(){return{logForm:{username:"",password:""},checked:[],logRules:{username:[{required:!0,message:"请填写用户名",trigger:["blur"]},{min:4,max:12,message:"长度在6-12个字符之间",trigger:"change"}],password:[{required:!0,message:"请填写密码",trigger:["blur"]},{min:6,max:16,message:"长度在6-16个字符之间",trigger:["change"]}]}}},onReady:function(){this.$refs.logForm.setRules(this.logRules)},methods:{goReg:function(){e.navigateTo({url:"/pages/register/register"})},submit:function(){var n=this;this.checked.length>0?this.$refs.logForm.validate().then((function(u){u&&n.$store.dispatch("Login",n.logForm).then((function(n){e.switchTab({url:"/pages/home/home"})}))})):e.$u.toast("请勾选用户协议和隐私协议")}}};n.default=u}).call(this,u("df3c")["default"])},c036:function(e,n,u){"use strict";var o=u("6eb3"),t=u.n(o);t.a},f5f3:function(e,n,u){"use strict";u.r(n);var o=u("a362"),t=u("9b5a");for(var r in t)["default"].indexOf(r)<0&&function(e){u.d(n,e,(function(){return t[e]}))}(r);u("c036");var i=u("828b"),c=Object(i["a"])(t["default"],o["b"],o["c"],!1,null,"00bbe6a8",null,!1,o["a"],void 0);n["default"]=c.exports}},[["48fc","common/runtime","common/vendor"]]]);