| 12 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/login/login"],{129:function(e,n,t){"use strict";(function(e,n){var o=t(4);t(26);o(t(25));var s=o(t(130));e.__webpack_require_UNI_MP_PLUGIN__=t,n(s.default)}).call(this,t(1)["default"],t(2)["createPage"])},130:function(e,n,t){"use strict";t.r(n);var o=t(131),s=t(133);for(var u in s)["default"].indexOf(u)<0&&function(e){t.d(n,e,(function(){return s[e]}))}(u);t(135);var r,a=t(32),c=Object(a["default"])(s["default"],o["render"],o["staticRenderFns"],!1,null,null,null,!1,o["components"],r);c.options.__file="pages/login/login.vue",n["default"]=c.exports},131:function(e,n,t){"use strict";t.r(n);var o=t(132);t.d(n,"render",(function(){return o["render"]})),t.d(n,"staticRenderFns",(function(){return o["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return o["recyclableRender"]})),t.d(n,"components",(function(){return o["components"]}))},132:function(e,n,t){"use strict";var o;t.r(n),t.d(n,"render",(function(){return s})),t.d(n,"staticRenderFns",(function(){return r})),t.d(n,"recyclableRender",(function(){return u})),t.d(n,"components",(function(){return o}));try{o={uIcon:function(){return t.e("uview-ui/components/u-icon/u-icon").then(t.bind(null,1128))},uInput:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-input/u-input")]).then(t.bind(null,1192))},uCheckboxGroup:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-checkbox-group/u-checkbox-group")]).then(t.bind(null,1200))},uCheckbox:function(){return t.e("uview-ui/components/u-checkbox/u-checkbox").then(t.bind(null,1207))},uModal:function(){return t.e("uview-ui/components/u-modal/u-modal").then(t.bind(null,1171))},uLineProgress:function(){return t.e("uview-ui/components/u-line-progress/u-line-progress").then(t.bind(null,1214))}}}catch(a){if(-1===a.message.indexOf("Cannot find module")||-1===a.message.indexOf(".vue"))throw a;console.error(a.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var s=function(){var e=this,n=e.$createElement;e._self._c},u=!1,r=[];s._withStripped=!0},133:function(e,n,t){"use strict";t.r(n);var o=t(134),s=t.n(o);for(var u in o)["default"].indexOf(u)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(u);n["default"]=s.a},134:function(e,n,t){"use strict";(function(e){var o=t(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var s=o(t(41)),u=o(t(43)),r={data:function(){return{checked:!1,formdata:{username:"",passwold:""},setbgtf:!1,setTF:!1,value:"http://8.136.98.49:8002",httparr:["http://8.136.98.49:8002","http://114.115.147.140:8002"],arrowtf:!1,showA:!1,contentA:"",isShow:!1,percentNum:0,passvalue:!1}},onLoad:function(){var n=this;e.getStorage({key:"user_pass",success:function(e){e.data?(n.formdata.passwold=e.data,n.checked=!0):n.checked=!1}}),e.getStorage({key:"user_name",success:function(e){n.formdata.username=e.data}}),e.getStorage({key:"http",success:function(e){n.value=e.data}}),this.getEquipList()},onShow:function(){},methods:{getEquipList:function(){var e=this;return(0,u.default)(s.default.mark((function n(){var t;return s.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,e.$myRequest({url:"/api/api_gateway?method=home.homes.app_version_record",data:{ret:"first"}});case 2:t=n.sent,console.log(t),e.appName=t[0].app_name;case 5:case"end":return n.stop()}}),n)})))()},formSubmit:function(){var n=this;return(0,u.default)(s.default.mark((function t(){var o,u;return s.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,n.$myRequest({url:"/api/api_gateway?method=user.login.login_user",data:{username:n.formdata.username,password:n.formdata.passwold}});case 2:o=t.sent,console.log(o.session_key),u=o.session_key,e.setStorage({key:"session_key",data:u,success:function(){e.switchTab({url:"../index/index"})}});case 6:case"end":return t.stop()}}),t)})))()},passwoldddata:function(){this.formdata.passwold=this.formdata.passwold.replace(/[\u4E00-\u9FA5]/g,"")},rempass:function(n){this.passvalue=n.value,n.value&&e.setStorage({key:"user_pass",data:this.formdata.passwold,success:function(){console.log("success")}})},blur:function(n){e.setStorage({key:"user_name",data:n,success:function(){console.log("success")}})},logoTime:function(){this.setTF=!0},set:function(){this.setbgtf=!0},sethttp:function(){var n=this;e.setStorage({key:"http",data:this.value,success:function(){n.setbgtf=!1,e.showToast({title:"修改成功",icon:"none"}),n.getEquipList()}})},arrow:function(){this.arrowtf=!this.arrowtf},denglu:function(){this.passvalue?e.setStorage({key:"user_pass",data:this.formdata.passwold,success:function(){console.log("success")}}):e.removeStorage({key:"user_pass",success:function(){console.log("success")}})}}};n.default=r}).call(this,t(2)["default"])},135:function(e,n,t){"use strict";t.r(n);var o=t(136),s=t.n(o);for(var u in o)["default"].indexOf(u)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(u);n["default"]=s.a},136:function(e,n,t){}},[[129,"common/runtime","common/vendor"]]]);
- //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/login/login.js.map
|