zhangback
2025-12-17 0c1bc5fee8cef2751633c049e1f431477fb81fdd
1
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/login/index"],{"2ffd":function(e,n,o){"use strict";o.d(n,"b",(function(){return t})),o.d(n,"c",(function(){return r})),o.d(n,"a",(function(){return u}));var u={uTransition:function(){return Promise.all([o.e("common/vendor"),o.e("uni_modules/uview-ui/components/u-transition/u-transition")]).then(o.bind(null,"dd70"))},"u-Form":function(){return Promise.all([o.e("common/vendor"),o.e("uni_modules/uview-ui/components/u--form/u--form")]).then(o.bind(null,"d268"))},uFormItem:function(){return Promise.all([o.e("common/vendor"),o.e("uni_modules/uview-ui/components/u-form-item/u-form-item")]).then(o.bind(null,"4bed"))},"u-Input":function(){return Promise.all([o.e("common/vendor"),o.e("uni_modules/uview-ui/components/u--input/u--input")]).then(o.bind(null,"6aab"))},uIcon:function(){return Promise.all([o.e("common/vendor"),o.e("uni_modules/uview-ui/components/u-icon/u-icon")]).then(o.bind(null,"669e"))},uCheckboxGroup:function(){return Promise.all([o.e("common/vendor"),o.e("uni_modules/uview-ui/components/u-checkbox-group/u-checkbox-group")]).then(o.bind(null,"04a0"))},uCheckbox:function(){return Promise.all([o.e("common/vendor"),o.e("uni_modules/uview-ui/components/u-checkbox/u-checkbox")]).then(o.bind(null,"8747"))},uButton:function(){return Promise.all([o.e("common/vendor"),o.e("uni_modules/uview-ui/components/u-button/u-button")]).then(o.bind(null,"e8a0"))}},t=function(){var e=this.$createElement;this._self._c},r=[]},"3ee0":function(e,n,o){"use strict";var u=o("af59"),t=o.n(u);t.a},"75e9":function(e,n,o){"use strict";o.r(n);var u=o("b5b5"),t=o.n(u);for(var r in u)["default"].indexOf(r)<0&&function(e){o.d(n,e,(function(){return u[e]}))}(r);n["default"]=t.a},"800b":function(e,n,o){"use strict";o.r(n);var u=o("2ffd"),t=o("75e9");for(var r in t)["default"].indexOf(r)<0&&function(e){o.d(n,e,(function(){return t[e]}))}(r);o("3ee0");var s=o("828b"),i=Object(s["a"])(t["default"],u["b"],u["c"],!1,null,"58ed292a",null,!1,u["a"],void 0);n["default"]=i.exports},af59:function(e,n,o){},af6c:function(e,n,o){"use strict";(function(e,n){var u=o("47a9");o("9f54");u(o("3240"));var t=u(o("800b"));e.__webpack_require_UNI_MP_PLUGIN__=o,n(t.default)}).call(this,o("3223")["default"],o("df3c")["createPage"])},b5b5:function(e,n,o){"use strict";(function(e){var u=o("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=o("6f0f"),r=o("3ff0"),s=u(o("8dcb")),i={name:"index",data:function(){return{version:"",title:s.default.title,noFocus:!1,form:{username:"",password:""},rules:{username:{type:"string",required:!0,message:"请填写账户",trigger:["blur","change"]},password:{type:"string",required:!0,message:"请填写密码",trigger:["blur","change"]}},passwordType:"password",passwordIcon:"eye-off",rememberPassword:[]}},onShow:function(){var n=e.getStorageSync("username"),o=e.getStorageSync("password");n&&o?(this.form.username=n,this.form.password=o,this.rememberPassword=["remember"]):this.rememberPassword=[]},methods:{getSubMsg:function(){var n=this;e.requestSubscribeMessage({tmplIds:["C7ybfYRejH-nUxoCZV3p7dXeTc3C1MeCz8RaICQifd8"],success:function(e){n.goToURL()},fail:function(e){n.goToURL()}})},goToURL:function(){setTimeout((function(){e.$u.route("/pages/beReferred/index")}),1e3)},loginSubmit:function(){var n=this,o=this;this.$refs.uForm.validate().then((function(u){u&&(0,t.loginPda)({username:n.form.username,password:(0,r.encryptSm4)(n.form.password),openId:o.car_open_id}).then((function(u){200==u.code&&(o.$u.vuex("sso_user_token","Bearer "+u.token),e.$u.toast("登录成功!"),o.rememberPassword.length>0?(e.setStorageSync("username",o.form.username),e.setStorageSync("password",o.form.password),n.goToURL()):(e.removeStorageSync("username"),e.removeStorageSync("password"),n.goToURL()))}))}))},togglePasswordVisibility:function(){"password"===this.passwordType?(this.passwordType="text",this.noFocus=!0,this.passwordIcon="eye"):(this.passwordType="password",this.noFocus=!1,this.passwordIcon="eye-off")}},onReady:function(){this.$refs.uForm.setRules(this.rules)}};n.default=i}).call(this,o("df3c")["default"])}},[["af6c","common/runtime","common/vendor"]]]);