(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/login/login"],{"1c8e":function(e,n,o){},"225d":function(e,n,o){"use strict";var t=o("1c8e"),u=o.n(t);u.a},3741:function(e,n,o){"use strict";(function(e,n){var t=o("4ea4");o("73d2");t(o("66fd"));var u=t(o("d85b"));e.__webpack_require_UNI_MP_PLUGIN__=o,n(u.default)}).call(this,o("bc2e")["default"],o("543d")["createPage"])},"3c76":function(e,n,o){"use strict";(function(e){var t=o("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var u=t(o("b8e9")),i={data:function(){return{userInfo:{name:"",password:""},agree:!1,showProtocol:!1,protocolTitle:"",protocolContent:""}},onLoad:function(){},methods:{checkboxChange:function(e){this.agree=!this.agree},open:function(e){var n=this;0==e?u.default.req({url:"/api/Publics/config_info"},(function(e){1==e.code&&(n.protocolTitle="用户协议",n.protocolContent=e.data.xieyi)})):(n.protocolTitle="隐私政策",n.protocolContent=""),n.showProtocol=!0},toRegister:function(){e.navigateTo({url:"/pages/login/register"})},forget:function(){e.navigateTo({url:"/pages/login/forget"})},login:function(){var n=this;u.default.formCheck(n.userInfo.name,"phone")&&u.default.formCheck(n.userInfo.password,"required")&&(n.agree?u.default.req({url:"/api/Login/login",data:{type:1,phone:n.userInfo.name,password:n.userInfo.password}},(function(o){1==o.code?(u.default.info(o.msg),e.setStorageSync("token",o.data),n.bindId()):0==o.code&&u.default.info(o.msg)})):u.default.info("请先阅读并同意用户协议和隐私协议"))},bindId:function(){u.default.req({url:"/api/User/userinfo"},(function(n){n.data.openid?u.default.jump("/pages/mine/mine",3):e.getSetting({success:function(n){n.authSetting["scope.userInfo"]&&e.login({provider:"weixin",success:function(e){e.code&&u.default.req({url:"/api/Login/bind_openid",data:{code:e.code}},(function(e){1==e.code&&u.default.jump("/pages/mine/mine",3)}))}})}})}))}}};n.default=i}).call(this,o("543d")["default"])},8731:function(e,n,o){"use strict";o.d(n,"b",(function(){return u})),o.d(n,"c",(function(){return i})),o.d(n,"a",(function(){return t}));var t={"u-Form":function(){return Promise.all([o.e("common/vendor"),o.e("node-modules/uview-ui/components/u--form/u--form")]).then(o.bind(null,"2090"))},uFormItem:function(){return Promise.all([o.e("common/vendor"),o.e("node-modules/uview-ui/components/u-form-item/u-form-item")]).then(o.bind(null,"0f61"))},"u-Input":function(){return Promise.all([o.e("common/vendor"),o.e("node-modules/uview-ui/components/u--input/u--input")]).then(o.bind(null,"3ac4"))},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,"a7cf"))},uCheckbox:function(){return Promise.all([o.e("common/vendor"),o.e("node-modules/uview-ui/components/u-checkbox/u-checkbox")]).then(o.bind(null,"bbb6"))},uButton:function(){return Promise.all([o.e("common/vendor"),o.e("node-modules/uview-ui/components/u-button/u-button")]).then(o.bind(null,"7819"))},uModal:function(){return Promise.all([o.e("common/vendor"),o.e("node-modules/uview-ui/components/u-modal/u-modal")]).then(o.bind(null,"5d28"))}},u=function(){var e=this,n=e.$createElement;e._self._c;e._isMounted||(e.e0=function(n){e.showProtocol=!1})},i=[]},d7e9:function(e,n,o){"use strict";o.r(n);var t=o("3c76"),u=o.n(t);for(var i in t)["default"].indexOf(i)<0&&function(e){o.d(n,e,(function(){return t[e]}))}(i);n["default"]=u.a},d85b:function(e,n,o){"use strict";o.r(n);var t=o("8731"),u=o("d7e9");for(var i in u)["default"].indexOf(i)<0&&function(e){o.d(n,e,(function(){return u[e]}))}(i);o("225d");var r=o("f0c5"),c=Object(r["a"])(u["default"],t["b"],t["c"],!1,null,"14665104",null,!1,t["a"],void 0);n["default"]=c.exports}},[["3741","common/runtime","common/vendor"]]]);