lushuncheng 6 years ago
parent
commit
19259f539e
100 changed files with 337 additions and 395 deletions
  1. 10 10
      api/user.js
  2. 6 6
      dist/200.html
  3. 0 1
      dist/_nuxt/02f50ba8965e9b74a064.js
  4. 0 1
      dist/_nuxt/03129cac2ce2ad3bc440.js
  5. 0 1
      dist/_nuxt/085448ee596b54d44246.js
  6. 0 1
      dist/_nuxt/1267a568659d8eeb1c6c.js
  7. 0 1
      dist/_nuxt/20ed2c137bb4620d1328.js
  8. 0 1
      dist/_nuxt/2135d04ff14a379f3a64.js
  9. 0 1
      dist/_nuxt/296ff8d550d69bd231c7.js
  10. 0 1
      dist/_nuxt/39d3f1a82179a1154581.js
  11. 0 1
      dist/_nuxt/3ca06c22dfdf6ac8caed.js
  12. 0 1
      dist/_nuxt/440074ab5bd757b6906f.js
  13. 0 1
      dist/_nuxt/462c59fa7dc297a12e18.js
  14. 0 1
      dist/_nuxt/4d08d0b0d6055297a5a6.js
  15. 0 1
      dist/_nuxt/564c6735f0ae8696c7ca.js
  16. 0 1
      dist/_nuxt/5dbe17b0b5d98efd96c1.js
  17. 0 1
      dist/_nuxt/62ccc9cf8a42e8fdb2e2.js
  18. 0 2
      dist/_nuxt/68f73754f5856d94b1ce.js
  19. 0 1
      dist/_nuxt/69a1ca4ecb15f504e3dc.js
  20. 0 1
      dist/_nuxt/6ca80b6e3e6d6de9ed3c.js
  21. 0 1
      dist/_nuxt/6e3e1b4dd83d0e54fd7e.css
  22. 0 1
      dist/_nuxt/6eed30d6229a2859a049.js
  23. 0 1
      dist/_nuxt/718fbbfc441607d13bf4.js
  24. 0 1
      dist/_nuxt/7197ace2a311281e0572.js
  25. 0 1
      dist/_nuxt/7c59445b7ec59555e930.js
  26. 0 1
      dist/_nuxt/813ecb539cd07ccbac90.js
  27. 0 1
      dist/_nuxt/898cda6756ffc0bcd682.js
  28. 0 1
      dist/_nuxt/89ef92b14346bb719b2a.js
  29. 0 1
      dist/_nuxt/8be594daf6531a2c27ef.js
  30. 0 1
      dist/_nuxt/8d4223a262d33d5cb4a5.css
  31. 46 52
      dist/_nuxt/LICENSES
  32. 0 1
      dist/_nuxt/a2b9cd0e768fdf2aa081.js
  33. 0 1
      dist/_nuxt/ae851831b3d6634134cd.js
  34. 0 1
      dist/_nuxt/b631f22bac8b6c02762f.js
  35. 0 2
      dist/_nuxt/ba50ae7b795b5dd19e4b.js
  36. 0 1
      dist/_nuxt/beaffade5d38ffaacd71.js
  37. 0 1
      dist/_nuxt/c3a58ee228900f87bbf5.js
  38. 0 1
      dist/_nuxt/c76f57ef26c41aa7eecb.js
  39. 0 1
      dist/_nuxt/cdfcd4439479563b4a12.js
  40. 0 1
      dist/_nuxt/ce6d2c55d979aecef086.js
  41. 0 1
      dist/_nuxt/d3f09f2a07fa48e1fbde.js
  42. 0 1
      dist/_nuxt/d459da38246b1d653574.js
  43. 0 1
      dist/_nuxt/d45b83b4d9322ef65081.js
  44. 0 1
      dist/_nuxt/da1ad93ddb3eb93f0865.js
  45. 0 13
      dist/_nuxt/ddbcdb5dd80787ef2382.css
  46. 0 1
      dist/_nuxt/de9360774a90a14f8e4c.js
  47. 0 1
      dist/_nuxt/e06f6bb24b65d2e2d2de.js
  48. 0 1
      dist/_nuxt/e58f437cc6fdb01f501f.js
  49. 0 1
      dist/_nuxt/e6513e658e6f7de54827.js
  50. 0 1
      dist/_nuxt/e9043493262e37713005.js
  51. 0 1
      dist/_nuxt/efb0270bdbc83aa43ac9.js
  52. 0 1
      dist/_nuxt/f8f21e4fa7a4583f5c91.js
  53. 0 1
      dist/_nuxt/fe146ca4de469181d167.js
  54. 0 1
      dist/_nuxt/ff4c98751e25c916b4da.js
  55. 6 6
      dist/index.html
  56. 6 6
      dist/login/index.html
  57. 6 6
      dist/main/404/index.html
  58. 6 6
      dist/main/artificial_order/index.html
  59. 6 6
      dist/main/artificial_orders/index.html
  60. 6 6
      dist/main/balance_change/index.html
  61. 6 6
      dist/main/cats copy/index.html
  62. 6 6
      dist/main/cats/index.html
  63. 6 6
      dist/main/cert_check/index.html
  64. 6 6
      dist/main/cert_edit/index.html
  65. 6 6
      dist/main/cert_pro/index.html
  66. 6 6
      dist/main/cloud_balance/index.html
  67. 6 6
      dist/main/cloud_developer/index.html
  68. 6 6
      dist/main/cloud_job/index.html
  69. 6 6
      dist/main/cloud_order copy/index.html
  70. 6 6
      dist/main/dev_check/index.html
  71. 6 6
      dist/main/dev_check_detail/index.html
  72. 6 6
      dist/main/dev_show/index.html
  73. 6 6
      dist/main/gongmall/index.html
  74. 6 6
      dist/main/group_list/index.html
  75. 6 6
      dist/main/index.html
  76. 6 6
      dist/main/job/index.html
  77. 6 6
      dist/main/jobs/index.html
  78. 6 6
      dist/main/orders/index.html
  79. 6 6
      dist/main/orders_detail/index.html
  80. 6 6
      dist/main/orders_frozen/index.html
  81. 6 6
      dist/main/outsource_bill/index.html
  82. 6 6
      dist/main/present_job_apply/index.html
  83. 6 6
      dist/main/publish_present/index.html
  84. 6 6
      dist/main/solution/index.html
  85. 6 6
      dist/main/solution_detail/index.html
  86. 6 6
      dist/main/user_bills/index.html
  87. 6 6
      dist/main/user_credit_item/index.html
  88. 6 6
      dist/main/user_credit_list/index.html
  89. 6 6
      dist/main/user_credit_setting/index.html
  90. 6 6
      dist/main/vip_manager/index.html
  91. 6 6
      dist/main/vip_order/index.html
  92. 6 6
      dist/main/vip_setting/index.html
  93. 6 6
      dist/main/wage_details/index.html
  94. 6 6
      dist/main/wage_settlement/index.html
  95. 6 6
      dist/main/wait_expend/index.html
  96. 6 6
      dist/main/withdraw/index.html
  97. 6 6
      dist/main/work_bill/index.html
  98. 15 3
      layouts/components/Navbar.vue
  99. 2 1
      middleware/initialize.js
  100. 0 0
      nuxt.config.js

+ 10 - 10
api/user.js

@@ -1,24 +1,24 @@
-import request from '@/utils/request'
+import request from "@/utils/request";
 
 export function login(data) {
   return request({
-    url: '/user/login',
-    method: 'post',
+    url: "/user/login",
+    method: "post",
     data
-  })
+  });
 }
 
 export function getInfo(token) {
   return request({
-    url: '/user/info',
-    method: 'get',
+    url: "/api/user/getInfo",
+    method: "get",
     params: { token }
-  })
+  });
 }
 
 export function logout() {
   return request({
-    url: '/user/logout',
-    method: 'post'
-  })
+    url: "/user/logout",
+    method: "post"
+  });
 }

File diff suppressed because it is too large
+ 6 - 6
dist/200.html


File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/02f50ba8965e9b74a064.js


File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/03129cac2ce2ad3bc440.js


File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/085448ee596b54d44246.js


File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/1267a568659d8eeb1c6c.js


File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/20ed2c137bb4620d1328.js


File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/2135d04ff14a379f3a64.js


File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/296ff8d550d69bd231c7.js


File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/39d3f1a82179a1154581.js


File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/3ca06c22dfdf6ac8caed.js


File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/440074ab5bd757b6906f.js


File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/462c59fa7dc297a12e18.js


+ 0 - 1
dist/_nuxt/4d08d0b0d6055297a5a6.js

@@ -1 +0,0 @@
-(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{378:function(t,n,e){},423:function(t,n,e){"use strict";var r=e(378);e.n(r).a},510:function(t,n,e){"use strict";e.r(n);e(423);var r=e(2),component=Object(r.a)({},function(){this.$createElement;this._self._c;return this._m(0)},[function(){var t=this.$createElement,n=this._self._c||t;return n("section",{attrs:{id:"error-page"}},[n("span",[this._v("页面飞了……")])])}],!1,null,null,null);n.default=component.exports}}]);

File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/564c6735f0ae8696c7ca.js


File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/5dbe17b0b5d98efd96c1.js


File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/62ccc9cf8a42e8fdb2e2.js


File diff suppressed because it is too large
+ 0 - 2
dist/_nuxt/68f73754f5856d94b1ce.js


File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/69a1ca4ecb15f504e3dc.js


File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/6ca80b6e3e6d6de9ed3c.js


File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/6e3e1b4dd83d0e54fd7e.css


File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/6eed30d6229a2859a049.js


File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/718fbbfc441607d13bf4.js


File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/7197ace2a311281e0572.js


File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/7c59445b7ec59555e930.js


File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/813ecb539cd07ccbac90.js


File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/898cda6756ffc0bcd682.js


File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/89ef92b14346bb719b2a.js


File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/8be594daf6531a2c27ef.js


File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/8d4223a262d33d5cb4a5.css


+ 46 - 52
dist/_nuxt/LICENSES

@@ -1,17 +1,20 @@
 /*!
- * Vue.js v2.6.10
- * (c) 2014-2019 Evan You
- * Released under the MIT License.
- */
+  * vue-router v3.1.5
+  * (c) 2020 Evan You
+  * @license MIT
+  */
 
-/**
- * vuex v3.1.1
- * (c) 2019 Evan You
- * @license MIT
+/*!
+ * Fuse.js v3.4.6 - Lightweight fuzzy-search (http://fusejs.io)
+ * 
+ * Copyright (c) 2012-2017 Kirollos Risk (http://kiro.me)
+ * All Rights Reserved. Apache Software License 2.0
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
  */
 
 /*!
- * JavaScript Cookie v2.2.0
+ * JavaScript Cookie v2.2.1
  * https://github.com/js-cookie/js-cookie
  *
  * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
@@ -19,58 +22,56 @@
  */
 
 /*!
-  * vue-router v3.0.6
-  * (c) 2019 Evan You
-  * @license MIT
-  */
+ * Quill Editor v1.2.3
+ * https://quilljs.com/
+ * Copyright (c) 2014, Jason Chen
+ * Copyright (c) 2013, salesforce.com
+ */
 
-/**
- * vue-meta v1.6.0
- * (c) 2019 Declan de Wet & Sébastien Chopin (@Atinux)
- * @license MIT
+/*!
+ * Quill Editor v1.3.7
+ * https://quilljs.com/
+ * Copyright (c) 2014, Jason Chen
+ * Copyright (c) 2013, salesforce.com
  */
 
-/*
-	object-assign
-	(c) Sindre Sorhus
-	@license MIT
-	*/
+/*!
+ * The buffer module from node.js, for the browser.
+ *
+ * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
+ * @license  MIT
+ */
 
 /*!
- * Determine if an object is a Buffer
+ * The buffer module from node.js, for the browser.
  *
- * @author   Feross Aboukhadijeh <https://feross.org>
+ * @author   Feross Aboukhadijeh <http://feross.org>
  * @license  MIT
  */
 
 /*!
- * vue-no-ssr v1.1.1
- * (c) 2018-present egoist <0x142857@gmail.com>
+ * Vue.js v2.6.11
+ * (c) 2014-2019 Evan You
  * Released under the MIT License.
  */
 
 /*!
- * Fuse.js v3.4.5 - Lightweight fuzzy-search (http://fusejs.io)
- * 
- * Copyright (c) 2012-2017 Kirollos Risk (http://kiro.me)
- * All Rights Reserved. Apache Software License 2.0
- * 
- * http://www.apache.org/licenses/LICENSE-2.0
+ * vue-client-only v2.0.0
+ * (c) 2019-present egoist <0x142857@gmail.com>
+ * Released under the MIT License.
  */
 
 /*!
- * The buffer module from node.js, for the browser.
- *
- * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
- * @license  MIT
+ * vue-no-ssr v1.1.1
+ * (c) 2018-present egoist <0x142857@gmail.com>
+ * Released under the MIT License.
  */
 
 /*!
- * Quill Editor v1.2.3
- * https://quilljs.com/
- * Copyright (c) 2014, Jason Chen
- * Copyright (c) 2013, salesforce.com
- */
+* screenfull
+* v4.2.1 - 2019-07-27
+* (c) Sindre Sorhus; MIT License
+*/
 
 /**
  * Checks if an event is supported in the current execution environment.
@@ -87,15 +88,8 @@
  * @license Modernizr 3.0.0pre (Custom Build) | MIT
  */
 
-/*!
-* screenfull
-* v4.2.1 - 2019-07-27
-* (c) Sindre Sorhus; MIT License
-*/
-
-/*!
- * Quill Editor v1.3.6
- * https://quilljs.com/
- * Copyright (c) 2014, Jason Chen
- * Copyright (c) 2013, salesforce.com
+/**
+ * vuex v3.1.2
+ * (c) 2019 Evan You
+ * @license MIT
  */

File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/a2b9cd0e768fdf2aa081.js


File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/ae851831b3d6634134cd.js


File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/b631f22bac8b6c02762f.js


File diff suppressed because it is too large
+ 0 - 2
dist/_nuxt/ba50ae7b795b5dd19e4b.js


File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/beaffade5d38ffaacd71.js


File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/c3a58ee228900f87bbf5.js


File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/c76f57ef26c41aa7eecb.js


File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/cdfcd4439479563b4a12.js


File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/ce6d2c55d979aecef086.js


File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/d3f09f2a07fa48e1fbde.js


File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/d459da38246b1d653574.js


File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/d45b83b4d9322ef65081.js


File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/da1ad93ddb3eb93f0865.js


File diff suppressed because it is too large
+ 0 - 13
dist/_nuxt/ddbcdb5dd80787ef2382.css


File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/de9360774a90a14f8e4c.js


File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/e06f6bb24b65d2e2d2de.js


File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/e58f437cc6fdb01f501f.js


File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/e6513e658e6f7de54827.js


File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/e9043493262e37713005.js


File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/efb0270bdbc83aa43ac9.js


File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/f8f21e4fa7a4583f5c91.js


File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/fe146ca4de469181d167.js


File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/ff4c98751e25c916b4da.js


File diff suppressed because it is too large
+ 6 - 6
dist/index.html


File diff suppressed because it is too large
+ 6 - 6
dist/login/index.html


File diff suppressed because it is too large
+ 6 - 6
dist/main/404/index.html


File diff suppressed because it is too large
+ 6 - 6
dist/main/artificial_order/index.html


File diff suppressed because it is too large
+ 6 - 6
dist/main/artificial_orders/index.html


File diff suppressed because it is too large
+ 6 - 6
dist/main/balance_change/index.html


File diff suppressed because it is too large
+ 6 - 6
dist/main/cats copy/index.html


File diff suppressed because it is too large
+ 6 - 6
dist/main/cats/index.html


File diff suppressed because it is too large
+ 6 - 6
dist/main/cert_check/index.html


File diff suppressed because it is too large
+ 6 - 6
dist/main/cert_edit/index.html


File diff suppressed because it is too large
+ 6 - 6
dist/main/cert_pro/index.html


File diff suppressed because it is too large
+ 6 - 6
dist/main/cloud_balance/index.html


File diff suppressed because it is too large
+ 6 - 6
dist/main/cloud_developer/index.html


File diff suppressed because it is too large
+ 6 - 6
dist/main/cloud_job/index.html


File diff suppressed because it is too large
+ 6 - 6
dist/main/cloud_order copy/index.html


File diff suppressed because it is too large
+ 6 - 6
dist/main/dev_check/index.html


File diff suppressed because it is too large
+ 6 - 6
dist/main/dev_check_detail/index.html


File diff suppressed because it is too large
+ 6 - 6
dist/main/dev_show/index.html


File diff suppressed because it is too large
+ 6 - 6
dist/main/gongmall/index.html


File diff suppressed because it is too large
+ 6 - 6
dist/main/group_list/index.html


File diff suppressed because it is too large
+ 6 - 6
dist/main/index.html


File diff suppressed because it is too large
+ 6 - 6
dist/main/job/index.html


File diff suppressed because it is too large
+ 6 - 6
dist/main/jobs/index.html


File diff suppressed because it is too large
+ 6 - 6
dist/main/orders/index.html


File diff suppressed because it is too large
+ 6 - 6
dist/main/orders_detail/index.html


File diff suppressed because it is too large
+ 6 - 6
dist/main/orders_frozen/index.html


File diff suppressed because it is too large
+ 6 - 6
dist/main/outsource_bill/index.html


File diff suppressed because it is too large
+ 6 - 6
dist/main/present_job_apply/index.html


File diff suppressed because it is too large
+ 6 - 6
dist/main/publish_present/index.html


File diff suppressed because it is too large
+ 6 - 6
dist/main/solution/index.html


File diff suppressed because it is too large
+ 6 - 6
dist/main/solution_detail/index.html


File diff suppressed because it is too large
+ 6 - 6
dist/main/user_bills/index.html


File diff suppressed because it is too large
+ 6 - 6
dist/main/user_credit_item/index.html


File diff suppressed because it is too large
+ 6 - 6
dist/main/user_credit_list/index.html


File diff suppressed because it is too large
+ 6 - 6
dist/main/user_credit_setting/index.html


File diff suppressed because it is too large
+ 6 - 6
dist/main/vip_manager/index.html


File diff suppressed because it is too large
+ 6 - 6
dist/main/vip_order/index.html


File diff suppressed because it is too large
+ 6 - 6
dist/main/vip_setting/index.html


File diff suppressed because it is too large
+ 6 - 6
dist/main/wage_details/index.html


File diff suppressed because it is too large
+ 6 - 6
dist/main/wage_settlement/index.html


File diff suppressed because it is too large
+ 6 - 6
dist/main/wait_expend/index.html


File diff suppressed because it is too large
+ 6 - 6
dist/main/withdraw/index.html


File diff suppressed because it is too large
+ 6 - 6
dist/main/work_bill/index.html


+ 15 - 3
layouts/components/Navbar.vue

@@ -67,16 +67,28 @@ export default {
     SizeSelect,
     Search
   },
+  data() {
+    console.log(this.$store.state);
+    return {
+      avatar: this.$store.state.user.avatar
+    };
+  },
   computed: {
-    ...mapGetters(["sidebar", "avatar", "device"])
+    ...mapGetters(["sidebar", "device"])
   },
   methods: {
     toggleSideBar() {
       this.$store.dispatch("app/toggleSideBar");
     },
     async logout() {
-      await this.$store.dispatch("user/logout");
-      this.$router.push(`/login?redirect=${this.$route.fullPath}`);
+      // await this.$store.dispatch("user/logout");
+      console.log(
+        this.$store.state.domainConfig.siteUrl +
+          `/rooter/quit?next=${this.$route.fullPath}`
+      );
+      window.location.href =
+        this.$store.state.domainConfig.siteUrl +
+        `/rooter/quit?next=${this.$route.fullPath}`;
     }
   }
 };

+ 2 - 1
middleware/initialize.js

@@ -31,7 +31,7 @@ export default function(context) {
   }
   let regx = new RegExp(
     "((?<branch>[a-z0-9_\\-]+)\\.)?(?<env>(www|prod|test|local|test-jishuin|test-rooter|prod-jishuin|prod-rooter|rooter|jishuin))\\.proginn\\.com(\\:(?<port>\\d+))?",
-    "gim"
+    "i"
   );
   console.log(regx);
   console.log(url);
@@ -93,6 +93,7 @@ export default function(context) {
     jishuinUrl = "https://jishuin.proginn.com";
     rooterUrl = "https://rooter.proginn.com";
   }
+  context.store.dispatch("user/getInfo");
   context.store.commit("updateDomainConfig", {
     api: api,
     siteUrl: siteUrl,

+ 0 - 0
nuxt.config.js


Some files were not shown because too many files changed in this diff