1 line
7.5 KiB
JavaScript
1 line
7.5 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-login-wechat"],{"18f2":function(t,e,n){var i=n("f60d");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("aef0fd14",i,!0,{sourceMap:!1,shadowMode:!1})},"3a63":function(t,e,n){"use strict";var i,a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"page_login"},[n("v-uni-view",{staticClass:"head"},[n("v-uni-view",{staticClass:"head_inner_title"},[t._v("爱客办公")]),n("v-uni-view",{staticClass:"head_inner_description"},[t._v("Gdoo Office")])],1),n("v-uni-view",{staticClass:"login_form"},[n("v-uni-view",{staticClass:"input"},[n("v-uni-view",{staticClass:"img"},[n("span",{staticClass:"iconfont icon-icon_signal"})]),n("v-uni-input",{attrs:{type:"text",placeholder:"请输入账号"},model:{value:t.username,callback:function(e){t.username=e},expression:"username"}})],1),n("v-uni-view",{staticClass:"line"}),n("v-uni-view",{staticClass:"input"},[n("v-uni-view",{staticClass:"img"},[n("span",{staticClass:"iconfont icon-icon_shield"})]),n("v-uni-input",{attrs:{type:"password",placeholder:"请输入密码"},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}})],1)],1),n("v-uni-button",{staticClass:"submit",attrs:{type:"primary"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.register.apply(void 0,arguments)}}},[t._v("绑定")]),n("v-uni-view",{staticClass:"quick_login_line"},[n("v-uni-text",{staticClass:"text"},[t._v("爱客ERP")])],1)],1)},r=[];n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return i}))},"616f":function(t,e,n){"use strict";n.r(e);var i=n("e350"),a=n.n(i);for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=a.a},"6c14":function(t,e,n){var i=n("f4f7");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("2543ac6e",i,!0,{sourceMap:!1,shadowMode:!1})},8778:function(t,e,n){"use strict";var i=n("6c14"),a=n.n(i);a.a},"87e3":function(t,e,n){"use strict";var i=n("18f2"),a=n.n(i);a.a},e350:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{username:"",password:""}},methods:{register:function(){var e=this,n=uni.getStorageSync("openid");""!=n?""!=e.username?""!=e.password?e.$api.post("wap/wechat/login",{openid:n,username:e.username,password:e.password}).then((function(t){t.status?(uni.setStorageSync("access",t.data.access),uni.setStorageSync("token",t.data.token),uni.setStorageSync("user",t.data.user),uni.switchTab({url:"/pages/tabbar/notice"})):uni.showToast({title:t.data})})).catch((function(e){t("log",e," at pages/login/wechat.vue:77")})):uni.showToast({title:"密码不能为空。"}):uni.showToast({title:"帐号不能为空。"}):uni.showToast({title:"Openid不能为空。"})}}};e.default=n}).call(this,n("0de9")["log"])},f187:function(t,e,n){"use strict";n.r(e);var i=n("3a63"),a=n("616f");for(var r in a)"default"!==r&&function(t){n.d(e,t,(function(){return a[t]}))}(r);n("87e3"),n("8778");var o,s=n("f0c5"),c=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"0d2f90a6",null,!1,i["a"],o);e["default"]=c.exports},f4f7:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.page_login[data-v-0d2f90a6]{padding:%?10?%}.head[data-v-0d2f90a6]{\r\n /*\r\n\tdisplay: flex;\r\n\talign-items: center;\r\n\tjustify-content: center;\r\n\t*/text-align:center;padding-top:%?100?%;padding-bottom:%?100?%}.head .head_inner_title[data-v-0d2f90a6]{text-align:center;font-size:%?50?%;color:#007aff}.head .head_inner_description[data-v-0d2f90a6]{margin-top:%?5?%;text-align:center;font-size:%?20?%;color:#666}.head .head_bg[data-v-0d2f90a6]{border:1px solid #8f8f8f;-webkit-border-radius:%?50?%;border-radius:%?50?%;width:%?100?%;height:%?100?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.head .head_bg .head_inner_bg[data-v-0d2f90a6]{-webkit-border-radius:%?40?%;border-radius:%?40?%;width:%?80?%;height:%?80?%;line-height:%?80?%;font-size:%?30?%;display:-webkit-box;display:-webkit-flex;display:flex;background-color:#f8f8f8;-webkit-box-align:end;-webkit-align-items:flex-end;align-items:flex-end;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;overflow:hidden}.login_form[data-v-0d2f90a6]{display:-webkit-box;display:-webkit-flex;display:flex;margin:%?40?%;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;border:1px solid #d6d6d6;-webkit-border-radius:%?10?%;border-radius:%?10?%;background-color:#fff}.login_form .line[data-v-0d2f90a6]{width:100%;height:1px;background-color:#d6d6d6}.login_form .input[data-v-0d2f90a6]{width:100%;max-height:45px;display:-webkit-box;display:-webkit-flex;display:flex;padding:%?3?%;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.login_form .input .img[data-v-0d2f90a6]{min-width:40px;min-height:40px;margin:5px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.login_form .input .img .iconfont[data-v-0d2f90a6]{font-size:%?45?%;color:#999}.login_form .input uni-input[data-v-0d2f90a6]{outline:none;height:30px;width:100%}.login_form .input uni-input[data-v-0d2f90a6]:focus{outline:none}.submit[data-v-0d2f90a6]{margin-top:30px;margin-left:20px;margin-right:20px;color:#fff}.quick_login_line[data-v-0d2f90a6]{\r\n /*\r\n\tmargin-top: 40px;\r\n\tdisplay: flex;\r\n\tflex-direction: row;\r\n\talign-items: center;\r\n\tjustify-content: center;\r\n\t*/position:absolute;bottom:%?30?%;left:50%;-webkit-transform:translate(-50%);transform:translate(-50%)}.quick_login_line .text[data-v-0d2f90a6]{text-align:center;font-size:13px;color:#aaa;margin:2px}',""]),t.exports=e},f60d:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,"uni-page-body[data-v-0d2f90a6]{height:auto;min-height:100%;background-color:#f5f6f8;font-size:14px}body.?%PAGE?%[data-v-0d2f90a6]{background-color:#f5f6f8}",""]),t.exports=e}}]); |