1 line
4.1 KiB
JavaScript
1 line
4.1 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-log-log-log"],{"144b":function(t,i,e){t.exports=e.p+"static/img/submit.b43d6dad.png"},"1f97":function(t,i,e){"use strict";var n;e.d(i,"b",(function(){return a})),e.d(i,"c",(function(){return o})),e.d(i,"a",(function(){return n}));var a=function(){var t=this,i=t.$createElement,n=t._self._c||i;return n("v-uni-view",{staticClass:"body"},[n("v-uni-view",{staticClass:"middle-box"},[n("v-uni-view",{staticClass:"middle"},[n("v-uni-view",{staticClass:"index-titl"},[t._v("绿能管理中心")]),n("v-uni-view",{staticClass:"index-text"},[t._v("请输入后台为您配置的账号和密码")])],1),n("v-uni-view",{staticClass:"middle-btm"},[n("v-uni-view",{staticClass:"btm-text"},[t._v("账号")]),n("v-uni-image",{staticClass:"my-icon",attrs:{src:e("dd76").replace(/^\./,""),mode:""}}),n("v-uni-input",{staticClass:"uni-input",attrs:{type:"text",focus:!0,placeholder:"请输入账号"},model:{value:t.loginname,callback:function(i){t.loginname=i},expression:"loginname"}}),n("v-uni-view",{staticClass:"btm-text"},[t._v("密码")]),n("v-uni-image",{staticClass:"submit-icon",attrs:{src:e("144b").replace(/^\./,""),mode:""}}),n("v-uni-input",{staticClass:"uni-input",attrs:{type:"password",focus:!0,placeholder:"请输入密码"},model:{value:t.password,callback:function(i){t.password=i},expression:"password"}})],1),n("v-uni-view",{staticClass:"btn-row"},[n("v-uni-button",{staticClass:"primary",attrs:{type:"primary"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.bindLogin.apply(void 0,arguments)}}},[t._v("登录")])],1)],1)],1)},o=[]},"33d3":function(t,i,e){"use strict";e.r(i);var n=e("c9f4"),a=e.n(n);for(var o in n)"default"!==o&&function(t){e.d(i,t,(function(){return n[t]}))}(o);i["default"]=a.a},3837:function(t,i,e){var n=e("24fb");i=n(!1),i.push([t.i,"uni-page-body[data-v-7c6efe96]{width:100%;height:100%;background-color:#61cad7}.body[data-v-7c6efe96]{position:relative;top:50%;margin-top:-200px}\r\n/* input内图标 */.middle-btm[data-v-7c6efe96]{position:relative}.my-icon[data-v-7c6efe96],.submit-icon[data-v-7c6efe96]{width:22px;height:22px;position:absolute;top:48px;margin-left:15px\n}.submit-icon[data-v-7c6efe96]{position:absolute;top:152px}.middle-box[data-v-7c6efe96]{width:80%;background-color:#fff;width:500px;margin:0 auto;padding:%?28?% 0 %?28?% %?40?%}.middle[data-v-7c6efe96]{margin-bottom:40px}.index-titl[data-v-7c6efe96]{color:#61cad7;font-size:30px}.index-text[data-v-7c6efe96]{color:#999;font-size:18px;\r\n\t/* font-weight: bold; */margin-top:9px}.uni-input[data-v-7c6efe96]{min-height:50px;border:2px solid #999;width:80%;margin-bottom:20px;padding-left:45px}.btm-text[data-v-7c6efe96]{font-size:20px;color:#666;font-weight:700;margin-bottom:5px}.btn-row[data-v-7c6efe96]{width:90%;margin-top:30px}.primary[data-v-7c6efe96]{min-height:50px;background:#61cad7}body.?%PAGE?%[data-v-7c6efe96]{background-color:#61cad7}",""]),t.exports=i},ba5a:function(t,i,e){var n=e("3837");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=e("4f06").default;a("199a2aba",n,!0,{sourceMap:!1,shadowMode:!1})},c9f4:function(t,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n={data:function(){return{loginname:"",password:"",hotel_id:""}},methods:{bindLogin:function(){var t=this,i=this.loginname,e=this.password;""!=i.length?""!=e.length?t.$get("v1/equipment/register/entlogin",{loginname:t.loginname,password:t.password}).then((function(t){200==t.code&&(uni.setStorageSync("hotel_id",t.data.hotel_id),uni.showToast({success:function(){uni.navigateTo({url:"../../index/index"})}}))})):uni.showToast({title:"请填写密码",icon:"none"}):uni.showToast({title:"请填写用户名",icon:"none"})}}};i.default=n},cbf2:function(t,i,e){"use strict";var n=e("ba5a"),a=e.n(n);a.a},dd76:function(t,i,e){t.exports=e.p+"static/img/my.e65c6993.png"},e8b7:function(t,i,e){"use strict";e.r(i);var n=e("1f97"),a=e("33d3");for(var o in a)"default"!==o&&function(t){e.d(i,t,(function(){return a[t]}))}(o);e("cbf2");var s,c=e("f0c5"),d=Object(c["a"])(a["default"],n["b"],n["c"],!1,null,"7c6efe96",null,!1,n["a"],s);i["default"]=d.exports}}]); |