| 1234567 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-login-index"],{"26cb":function(t,e,n){"use strict";(function(e){var n="undefined"!==typeof window?window:"undefined"!==typeof e?e:{},i=n.__VUE_DEVTOOLS_GLOBAL_HOOK__;function r(t,e){if(void 0===e&&(e=[]),null===t||"object"!==typeof t)return t;var n=function(t,e){return t.filter(e)[0]}(e,(function(e){return e.original===t}));if(n)return n.copy;var i=Array.isArray(t)?[]:{};return e.push({original:t,copy:i}),Object.keys(t).forEach((function(n){i[n]=r(t[n],e)})),i}function o(t,e){Object.keys(t).forEach((function(n){return e(t[n],n)}))}function a(t){return null!==t&&"object"===typeof t}var s=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"===typeof n?n():n)||{}},c={namespaced:{configurable:!0}};c.namespaced.get=function(){return!!this._rawModule.namespaced},s.prototype.addChild=function(t,e){this._children[t]=e},s.prototype.removeChild=function(t){delete this._children[t]},s.prototype.getChild=function(t){return this._children[t]},s.prototype.hasChild=function(t){return t in this._children},s.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},s.prototype.forEachChild=function(t){o(this._children,t)},s.prototype.forEachGetter=function(t){this._rawModule.getters&&o(this._rawModule.getters,t)},s.prototype.forEachAction=function(t){this._rawModule.actions&&o(this._rawModule.actions,t)},s.prototype.forEachMutation=function(t){this._rawModule.mutations&&o(this._rawModule.mutations,t)},Object.defineProperties(s.prototype,c);var u=function(t){this.register([],t,!1)};u.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},u.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,n){return e=e.getChild(n),t+(e.namespaced?n+"/":"")}),"")},u.prototype.update=function(t){(function t(e,n,i){0;if(n.update(i),i.modules)for(var r in i.modules){if(!n.getChild(r))return void 0;t(e.concat(r),n.getChild(r),i.modules[r])}})([],this.root,t)},u.prototype.register=function(t,e,n){var i=this;void 0===n&&(n=!0);var r=new s(e,n);if(0===t.length)this.root=r;else{var a=this.get(t.slice(0,-1));a.addChild(t[t.length-1],r)}e.modules&&o(e.modules,(function(e,r){i.register(t.concat(r),e,n)}))},u.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1],i=e.getChild(n);i&&i.runtime&&e.removeChild(n)},u.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];return!!e&&e.hasChild(n)};var l;var f=function(t){var e=this;void 0===t&&(t={}),!l&&"undefined"!==typeof window&&window.Vue&&y(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var r=t.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new u(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new l,this._makeLocalGettersCache=Object.create(null);var o=this,a=this.dispatch,s=this.commit;this.dispatch=function(t,e){return a.call(o,t,e)},this.commit=function(t,e,n){return s.call(o,t,e,n)},this.strict=r;var c=this._modules.root.state;m(this,c,[],this._modules.root),v(this,c),n.forEach((function(t){return t(e)}));var f=void 0!==t.devtools?t.devtools:l.config.devtools;f&&function(t){i&&(t._devtoolHook=i,i.emit("vuex:init",t),i.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){i.emit("vuex:mutation",t,e)}),{prepend:!0}),t.subscribeAction((function(t,e){i.emit("vuex:action",t,e)}),{prepend:!0}))}(this)},d={state:{configurable:!0}};function p(t,e,n){return e.indexOf(t)<0&&(n&&n.prepend?e.unshift(t):e.push(t)),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function h(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;m(t,n,[],t._modules.root,!0),v(t,n,e)}function v(t,e,n){var i=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var r=t._wrappedGetters,a={};o(r,(function(e,n){a[n]=function(t,e){return function(){return t(e)}}(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})}));var s=l.config.silent;l.config.silent=!0,t._vm=new l({data:{$$state:e},computed:a}),l.config.silent=s,t.strict&&function(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(t),i&&(n&&t._withCommit((function(){i._data.$$state=null})),l.nextTick((function(){return i.$destroy()})))}function m(t,e,n,i,r){var o=!n.length,a=t._modules.getNamespace(n);if(i.namespaced&&(t._modulesNamespaceMap[a],t._modulesNamespaceMap[a]=i),!o&&!r){var s=g(e,n.slice(0,-1)),c=n[n.length-1];t._withCommit((function(){l.set(s,c,i.state)}))}var u=i.context=function(t,e,n){var i=""===e,r={dispatch:i?t.dispatch:function(n,i,r){var o=b(n,i,r),a=o.payload,s=o.options,c=o.type;return s&&s.root||(c=e+c),t.dispatch(c,a)},commit:i?t.commit:function(n,i,r){var o=b(n,i,r),a=o.payload,s=o.options,c=o.type;s&&s.root||(c=e+c),t.commit(c,a,s)}};return Object.defineProperties(r,{getters:{get:i?function(){return t.getters}:function(){return function(t,e){if(!t._makeLocalGettersCache[e]){var n={},i=e.length;Object.keys(t.getters).forEach((function(r){if(r.slice(0,i)===e){var o=r.slice(i);Object.defineProperty(n,o,{get:function(){return t.getters[r]},enumerable:!0})}})),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}(t,e)}},state:{get:function(){return g(t.state,n)}}}),r}(t,a,n);i.forEachMutation((function(e,n){var i=a+n;(function(t,e,n,i){var r=t._mutations[e]||(t._mutations[e]=[]);r.push((function(e){n.call(t,i.state,e)}))})(t,i,e,u)})),i.forEachAction((function(e,n){var i=e.root?n:a+n,r=e.handler||e;(function(t,e,n,i){var r=t._actions[e]||(t._actions[e]=[]);r.push((function(e){var r=n.call(t,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:t.getters,rootState:t.state},e);return function(t){return t&&"function"===typeof t.then}(r)||(r=Promise.resolve(r)),t._devtoolHook?r.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):r}))})(t,i,r,u)})),i.forEachGetter((function(e,n){var i=a+n;(function(t,e,n,i){if(t._wrappedGetters[e])return void 0;t._wrappedGetters[e]=function(t){return n(i.state,i.getters,t.state,t.getters)}})(t,i,e,u)})),i.forEachChild((function(i,o){m(t,e,n.concat(o),i,r)}))}function g(t,e){return e.reduce((function(t,e){return t[e]}),t)}function b(t,e,n){return a(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function y(t){l&&t===l||(l=t,
- /*!
- * vuex v3.6.2
- * (c) 2021 Evan You
- * @license MIT
- */
- function(t){var e=Number(t.version.split(".")[0]);if(e>=2)t.mixin({beforeCreate:i});else{var n=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[i].concat(t.init):i,n.call(this,t)}}function i(){var t=this.$options;t.store?this.$store="function"===typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(l))}d.state.get=function(){return this._vm._data.$$state},d.state.set=function(t){0},f.prototype.commit=function(t,e,n){var i=this,r=b(t,e,n),o=r.type,a=r.payload,s=(r.options,{type:o,payload:a}),c=this._mutations[o];c&&(this._withCommit((function(){c.forEach((function(t){t(a)}))})),this._subscribers.slice().forEach((function(t){return t(s,i.state)})))},f.prototype.dispatch=function(t,e){var n=this,i=b(t,e),r=i.type,o=i.payload,a={type:r,payload:o},s=this._actions[r];if(s){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(a,n.state)}))}catch(u){0}var c=s.length>1?Promise.all(s.map((function(t){return t(o)}))):s[0](o);return new Promise((function(t,e){c.then((function(e){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(a,n.state)}))}catch(u){0}t(e)}),(function(t){try{n._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(a,n.state,t)}))}catch(u){0}e(t)}))}))}},f.prototype.subscribe=function(t,e){return p(t,this._subscribers,e)},f.prototype.subscribeAction=function(t,e){var n="function"===typeof t?{before:t}:t;return p(n,this._actionSubscribers,e)},f.prototype.watch=function(t,e,n){var i=this;return this._watcherVM.$watch((function(){return t(i.state,i.getters)}),e,n)},f.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},f.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"===typeof t&&(t=[t]),this._modules.register(t,e),m(this,this.state,t,this._modules.get(t),n.preserveState),v(this,this.state)},f.prototype.unregisterModule=function(t){var e=this;"string"===typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=g(e.state,t.slice(0,-1));l.delete(n,t[t.length-1])})),h(this)},f.prototype.hasModule=function(t){return"string"===typeof t&&(t=[t]),this._modules.isRegistered(t)},f.prototype[[104,111,116,85,112,100,97,116,101].map((function(t){return String.fromCharCode(t)})).join("")]=function(t){this._modules.update(t),h(this,!0)},f.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(f.prototype,d);var _=M((function(t,e){var n={};return k(e).forEach((function(e){var i=e.key,r=e.val;n[i]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var i=O(this.$store,"mapState",t);if(!i)return;e=i.context.state,n=i.context.getters}return"function"===typeof r?r.call(this,e,n):e[r]},n[i].vuex=!0})),n})),w=M((function(t,e){var n={};return k(e).forEach((function(e){var i=e.key,r=e.val;n[i]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var i=this.$store.commit;if(t){var o=O(this.$store,"mapMutations",t);if(!o)return;i=o.context.commit}return"function"===typeof r?r.apply(this,[i].concat(e)):i.apply(this.$store,[r].concat(e))}})),n})),x=M((function(t,e){var n={};return k(e).forEach((function(e){var i=e.key,r=e.val;r=t+r,n[i]=function(){if(!t||O(this.$store,"mapGetters",t))return this.$store.getters[r]},n[i].vuex=!0})),n})),C=M((function(t,e){var n={};return k(e).forEach((function(e){var i=e.key,r=e.val;n[i]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var i=this.$store.dispatch;if(t){var o=O(this.$store,"mapActions",t);if(!o)return;i=o.context.dispatch}return"function"===typeof r?r.apply(this,[i].concat(e)):i.apply(this.$store,[r].concat(e))}})),n}));function k(t){return function(t){return Array.isArray(t)||a(t)}(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function M(t){return function(e,n){return"string"!==typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function O(t,e,n){var i=t._modulesNamespaceMap[n];return i}function $(t,e,n){var i=n?t.groupCollapsed:t.group;try{i.call(t,e)}catch(r){t.log(e)}}function j(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function E(){var t=new Date;return" @ "+S(t.getHours(),2)+":"+S(t.getMinutes(),2)+":"+S(t.getSeconds(),2)+"."+S(t.getMilliseconds(),3)}function S(t,e){return function(t,e){return new Array(e+1).join(t)}("0",e-t.toString().length)+t}var A={Store:f,install:y,version:"3.6.2",mapState:_,mapMutations:w,mapGetters:x,mapActions:C,createNamespacedHelpers:function(t){return{mapState:_.bind(null,t),mapGetters:x.bind(null,t),mapMutations:w.bind(null,t),mapActions:C.bind(null,t)}},createLogger:function(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var n=t.filter;void 0===n&&(n=function(t,e,n){return!0});var i=t.transformer;void 0===i&&(i=function(t){return t});var o=t.mutationTransformer;void 0===o&&(o=function(t){return t});var a=t.actionFilter;void 0===a&&(a=function(t,e){return!0});var s=t.actionTransformer;void 0===s&&(s=function(t){return t});var c=t.logMutations;void 0===c&&(c=!0);var u=t.logActions;void 0===u&&(u=!0);var l=t.logger;return void 0===l&&(l=console),function(t){var f=r(t.state);"undefined"!==typeof l&&(c&&t.subscribe((function(t,a){var s=r(a);if(n(t,f,s)){var c=E(),u=o(t),d="mutation "+t.type+c;$(l,d,e),l.log("%c prev state","color: #9E9E9E; font-weight: bold",i(f)),l.log("%c mutation","color: #03A9F4; font-weight: bold",u),l.log("%c next state","color: #4CAF50; font-weight: bold",i(s)),j(l)}f=s})),u&&t.subscribeAction((function(t,n){if(a(t,n)){var i=E(),r=s(t),o="action "+t.type+i;$(l,o,e),l.log("%c action","color: #03A9F4; font-weight: bold",r),j(l)}})))}}};t.exports=A}).call(this,n("c8ba"))},"3b8a":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var i={uniEasyinput:n("b2d5").default},r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"content"},[n("v-uni-view",{staticClass:"head"},[n("v-uni-text",[t._v("登录")])],1),n("v-uni-view",{staticClass:"login-wrap"},[n("v-uni-view",{staticClass:"username item"},[n("v-uni-image",{staticClass:"icon",attrs:{src:"/static/login/phone.png",mode:"widthFix"}}),n("uni-easyinput",{staticClass:"login_input",attrs:{inputBorder:!1,type:"text",placeholder:"请输入账号"},model:{value:t.username,callback:function(e){t.username=e},expression:"username"}})],1),n("v-uni-view",{staticClass:"password item"},[n("v-uni-image",{staticClass:"icon",attrs:{src:"/static/login/pwd.png",mode:"widthFix"}}),n("uni-easyinput",{staticClass:"login_input",attrs:{inputBorder:!1,type:"password",placeholder:"请输入密码"},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}})],1),n("v-uni-view",{staticClass:"tip"},[n("v-uni-label",[n("v-uni-checkbox",{staticClass:"check",staticStyle:{transform:"scale(0.7)"},attrs:{value:"cb",checked:"true"}}),n("v-uni-text",[t._v("我已阅读并同意《用户协议》和《隐私政策》,且已明确知晓平台仅限企业内部用户使用。")])],1)],1),n("v-uni-button",{staticClass:"submit-BT",attrs:{type:"primary"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.loginSubmit.apply(void 0,arguments)}}},[t._v("登录")])],1)],1)},o=[]},5517:function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("498a");var r=i(n("a5ea")),o=n("5512"),a=n("89ed"),s={data:function(){return{username:"",password:""}},onLoad:function(t){var e=t.username,n=t.password;e&&(this.username=e,this.password=n),(0,a.getToken)()&&uni.reLaunch({url:"/pages/index/index"})},methods:{loginSubmit:function(){var t=this.username.trim(),e=this.password.trim();t.length<1?uni.showToast({title:"请填写账号",icon:"error"}):e.length<1?uni.showToast({title:"请填写密码",icon:"error"}):(0,o.login)({username:t,password:e}).then((function(t){var e=t.data.accessToken;(0,a.setToken)(e),uni.setStorageSync("accountInfo",t.data.user),uni.setStorageSync("isLogin",!0),r.default.commit("setToken",e),uni.reLaunch({url:"/pages/index/index"})})).catch((function(t){uni.showToast({icon:"none",title:t.msg||"登录失败!"})}))}}};e.default=s},"7d5e":function(t,e,n){"use strict";n.r(e);var i=n("3b8a"),r=n("b8cd");for(var o in r)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);n("9af5");var a=n("f0c5"),s=Object(a["a"])(r["default"],i["b"],i["c"],!1,null,"1909b864",null,!1,i["a"],void 0);e["default"]=s.exports},"84bd":function(t,e,n){var i=n("9201");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("4f06").default;r("61ba3cdc",i,!0,{sourceMap:!1,shadowMode:!1})},9201: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/* 文章场景相关 */.content[data-v-1909b864]{height:100vh;background-color:#f5f6f8}.content .head[data-v-1909b864]{font-size:%?50?%;text-align:center;padding:%?40?% 0;letter-spacing:%?2?%}.content .login-wrap[data-v-1909b864]{width:90%;margin:%?50?% auto 0;box-sizing:border-box;padding:%?20?%;border-radius:%?8?%}.content .login-wrap .item[data-v-1909b864]{display:flex;justify-content:flex-start;align-items:center;height:%?100?%;font-size:%?32?%;line-height:%?100?%;background-color:#fff;border-radius:%?60?%;margin-top:%?40?%;padding-left:%?30?%;box-sizing:border-box}.content .login-wrap .item .icon[data-v-1909b864]{width:%?48?%}.content .login-wrap .item uni-input[data-v-1909b864]{font-size:%?32?%;height:%?100?%;border:0}.content .login-wrap .item .login_input[data-v-1909b864]{width:%?580?%;border:none}.content .login-wrap .tip[data-v-1909b864]{padding:%?48?% 0 0 %?56?%;font-size:%?28?%;color:#323233;position:relative}.content .login-wrap .tip .check[data-v-1909b864]{position:absolute;left:%?8?%;top:%?44?%}.content .login-wrap .submit-BT[data-v-1909b864]{height:%?88?%;line-height:%?88?%;border-radius:%?50?%;margin-top:%?50?%;background-color:#2a5bee;padding:0}',""]),t.exports=e},"9af5":function(t,e,n){"use strict";var i=n("84bd"),r=n.n(i);r.a},a5ea:function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("e143")),o=i(n("26cb"));r.default.use(o.default);var a=new o.default.Store({state:{access_token:"",jpush:null},mutations:{setToken:function(t,e){t.access_token=e},initJpush:function(t,e){t.jpush=e}}}),s=a;e.default=s},b8cd:function(t,e,n){"use strict";n.r(e);var i=n("5517"),r=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=r.a}}]);
|