| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-registLogin-registLogin"],{4445:function(n,e,t){var a=t("24fb");e=a(!1),e.push([n.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/* uni-app 中使用 px 可以实现不同设备下字体大小一致, 并非只能使用 rpx */.login-sendmsg-btn[data-v-50fd549a]{border:1px solid #3688ff!important;background:none!important;color:#3688ff!important;width:100%;height:32px;line-height:32px;font-size:12px!important}.grace-login-three[data-v-50fd549a]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-flex-wrap:nowrap;flex-wrap:nowrap}.grace-login-three uni-view[data-v-50fd549a]{width:50px;height:50px;line-height:50px;font-size:38px;color:#3688ff;text-align:center;margin:%?10?%}.marginTop50[data-v-50fd549a]{margin-top:50px}.marginTop30[data-v-50fd549a]{margin-top:30px}.grace-line-title[data-v-50fd549a]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.grace-line-title > .line[data-v-50fd549a]{width:%?50?%;-webkit-box-flex:1;-webkit-flex:auto;flex:auto;height:1px;background:#f9f9f9}.grace-line-title > .title[data-v-50fd549a]{padding:0 %?80?%;line-height:%?80?%}",""]),n.exports=e},"4a5f":function(n,e,t){var a=t("4445");"string"===typeof a&&(a=[[n.i,a,""]]),a.locals&&(n.exports=a.locals);var i=t("4f06").default;i("1d15dd1a",a,!0,{sourceMap:!1,shadowMode:!1})},"50d8":function(n,e,t){"use strict";var a=t("4a5f"),i=t.n(a);i.a},"55b2":function(n,e,t){"use strict";var a;t.d(e,"b",(function(){return i})),t.d(e,"c",(function(){return r})),t.d(e,"a",(function(){return a}));var i=function(){var n=this,e=n.$createElement,a=n._self._c||e;return a("v-uni-view",{staticClass:"grace-body"},[a("v-uni-view",{staticClass:"marginTop50"},[a("v-uni-image",{staticStyle:{width:"300px","text-align":"center","margin-left":"5%"},attrs:{src:t("7145"),mode:"widthFix"}})],1),a("v-uni-form",{staticClass:"grace-form marginTop30",on:{submit:function(e){arguments[0]=e=n.$handleEvent(e),n.formSubmit.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"grace-items"},[a("v-uni-view",{staticClass:"grace-label grace-center"},[n._v("账号")]),a("v-uni-input",{staticClass:"input",attrs:{name:"username",type:"text",value:n.username,placeholder:"请输入用户名","placeholder-class":"graywords"}})],1),a("v-uni-view",{staticClass:"grace-items grace-noborder"},[a("v-uni-view",{staticClass:"grace-label grace-center"},[n._v("密码")]),a("v-uni-input",{staticClass:"input",attrs:{name:"password",type:"text",value:n.password,password:"true",placeholder:"请输入密码","placeholder-class":"graywords"}})],1),a("v-uni-button",{staticClass:"grace-button marginTop30 grace-border-radius grace-gtbg-blue",attrs:{"form-type":"submit",type:"primary"}},[n._v("登录"),a("v-uni-text",{staticClass:"grace-icons icon-arrow-right"})],1)],1),a("v-uni-view",{staticClass:"grace-text grace-black9 grace-margin-top",staticStyle:{"text-align":"right"}},[a("v-uni-checkbox-group",{on:{change:function(e){arguments[0]=e=n.$handleEvent(e),n.checkboxChange.apply(void 0,arguments)}}},[a("v-uni-label",[a("v-uni-checkbox",{attrs:{value:"remember",checked:"true"}}),n._v("记住密码")],1)],1)],1)],1)},r=[]},7145:function(n,e,t){n.exports=t.p+"static/img/logo.81ee328e.png"},"75af":function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={data:function(){return{username:"",password:"",isChecked:!0}},onLaunch:function(){},onLoad:function(){var n=this;uni.setStorageSync("g_vs","v1.5.1");var e=uni.getStorageSync("g_username2"),t=uni.getStorageSync("g_password");console.log(uni.getStorageSync("g_username2")),n.username=e,n.password=t;n.g_url},methods:{check_version:function(n){console.log("版本数据:",n);if("fail"==n.data.msg)uni.showModal({title:"请求失败",content:msg,showCancel:!1,success:function(n){n.confirm&&console.log("用户点击确定")}});else{var e=n.data.list[0].version;console.log("version",e);var t=uni.getStorageSync("g_vs");console.log("g_vs",t)}},checkboxChange:function(n){var e=n.detail.value;console.log(e),console.log(e.length),1==e.length?this.isChecked=!0:this.isChecked=!1},formSubmit:function(n){var e=this,t=e.g_url;uni.clearStorage(),uni.clearStorageSync();var a=n.detail.value.username,i=n.detail.value.password;uni.request({url:t+"/auth",data:{username:a,password:i},method:"POST",header:{},success:function(n){if(console.log(n),console.log(n.data),200==n.data.code)if("ok"==n.data.msg){var t=n.data.data.token;uni.setStorageSync("g_token",t),console.log("g_token",t),e.ajax("/authdata/GetDataByName",{name:"findByUserPastureName",parammaps:{jwt_username:a}},"POST",(function(n){console.log("获取牧场ID:",n);var e=n.data.list[0].pastureId,t=n.data.list[0].pastureNumber,a=n.data.list[0].employeName,i=n.data.list[0].departmentId,r=n.data.list[0].pastureName,o=n.data.list[0].departmentName;uni.setStorageSync("g_pastureId",e),uni.setStorageSync("g_employeName",a),uni.setStorageSync("g_pastureNum",t),uni.setStorageSync("g_dempmId",i),uni.setStorageSync("g_pastureName",r),uni.setStorageSync("g_dempmName",o)})),e.ajax("/authdata/userinfo",{},"GET",(function(n){console.log("登录人信息:",n);var t=n.data.username,r=n.data.id,o=n.data.empid;if(console.log("登录人信息:",t,o),uni.setStorageSync("g_employeId",o),uni.setStorageSync("g_username",t),uni.setStorageSync("g_userid",r),e.isChecked){var s=i;uni.setStorageSync("g_password",s);var c=a;uni.setStorageSync("g_username2",c)}else uni.setStorageSync("g_password",""),uni.setStorageSync("g_username2","");uni.switchTab({url:"/pages/index/index"})}))}else uni.showToast({title:"登陆失败!"+n.data.data,duration:2e3,icon:"none"});else uni.showToast({title:"登陆失败!"+n.data.data,duration:2e3,icon:"none"})}})}}};e.default=a},"915b":function(n,e,t){"use strict";t.r(e);var a=t("75af"),i=t.n(a);for(var r in a)"default"!==r&&function(n){t.d(e,n,(function(){return a[n]}))}(r);e["default"]=i.a},f667:function(n,e,t){"use strict";t.r(e);var a=t("55b2"),i=t("915b");for(var r in i)"default"!==r&&function(n){t.d(e,n,(function(){return i[n]}))}(r);t("50d8");var o,s=t("f0c5"),c=Object(s["a"])(i["default"],a["b"],a["c"],!1,null,"50fd549a",null,!1,a["a"],o);e["default"]=c.exports}}]);
|