login.js
3.04 KB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/login/login"],{"06c1":function(n,e,o){"use strict";(function(n,e){var t=o("47a9");o("06cb");t(o("3240"));var i=t(o("d1a4"));n.__webpack_require_UNI_MP_PLUGIN__=o,e(i.default)}).call(this,o("3223")["default"],o("df3c")["createPage"])},"35b6":function(n,e,o){},"5f35":function(n,e,o){"use strict";o.r(e);var t=o("9ce6"),i=o.n(t);for(var s in t)["default"].indexOf(s)<0&&function(n){o.d(e,n,(function(){return t[n]}))}(s);e["default"]=i.a},"6b78":function(n,e,o){"use strict";o.d(e,"b",(function(){return i})),o.d(e,"c",(function(){return s})),o.d(e,"a",(function(){return t}));var t={uCheckboxGroup:function(){return Promise.all([o.e("common/vendor"),o.e("node-modules/uview-ui/components/u-checkbox-group/u-checkbox-group")]).then(o.bind(null,"a25c"))},uCheckbox:function(){return o.e("node-modules/uview-ui/components/u-checkbox/u-checkbox").then(o.bind(null,"4f0a"))}},i=function(){var n=this.$createElement,e=(this._self._c,this.$imgUrl("/right2.png"));this.$mp.data=Object.assign({},{$root:{m0:e}})},s=[]},"72f7":function(n,e,o){"use strict";var t=o("d4e2"),i=o.n(t);i.a},"9ce6":function(n,e,o){"use strict";(function(n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={data:function(){return{isLogin:!1,isLoginWay:!1,isPassword:!1,denglu:!1,form:{username:"",password:"",rememberMe:!1},ischange:!1,isTrue:!1,num:60,time:null,checked:null,showTong:"",push_clientid:""}},onShow:function(n){console.log(n)},methods:{goLogin:function(){"tongyi"==this.showTong?this.denglu=!0:n.showToast({icon:"none",title:"请阅读并同意隐私政策"})},goRegister:function(){},goyinsi:function(){n.navigateTo({url:"/pages/privacy/privacy"})},register:function(){if(""!=this.form.phone)if(""!=this.form.password){this.$http.sendRequest("/business/login","POST",this.form,2).then((function(e){""==e.data.code?(n.setStorageSync("token",e.data.data.token),n.setStorageSync("shopId",e.data.data.shopId),n.switchTab({url:"/pages/home/home"})):n.showToast({icon:"none",title:e.data.message})}))}else n.showToast({icon:"none",title:"请输入密码"});else n.showToast({icon:"none",title:"请输入账号"})},change:function(){this.ischange=!this.ischange},goHome:function(){n.switchTab({url:"/pages/home/home"})},onLogin:function(){},checkboxGroupChange:function(n){this.showTong=n[0],console.log(this.showTong)}},watch:{form:{handler:function(n,e){this.isLoginWay&&(this.isLogin=!(!n.newPassword||!n.phone)),this.isLoginWay||(this.isLogin=!(!n.password||!n.phone))},deep:!0},num:function(){0==this.num&&(clearInterval(this.time),this.isTrue=!1)}}};e.default=o}).call(this,o("df3c")["default"])},d1a4:function(n,e,o){"use strict";o.r(e);var t=o("6b78"),i=o("5f35");for(var s in i)["default"].indexOf(s)<0&&function(n){o.d(e,n,(function(){return i[n]}))}(s);o("72f7"),o("f794");var c=o("828b"),u=Object(c["a"])(i["default"],t["b"],t["c"],!1,null,"8e989968",null,!1,t["a"],void 0);e["default"]=u.exports},d4e2:function(n,e,o){},f794:function(n,e,o){"use strict";var t=o("35b6"),i=o.n(t);i.a}},[["06c1","common/runtime","common/vendor"]]]);