lrf 1 سال پیش
والد
کامیت
11827ae81a
57فایلهای تغییر یافته به همراه32287 افزوده شده و 107 حذف شده
  1. 3 1
      .env
  2. 2 0
      .env.dev
  3. 1 1
      .gitignore
  4. 32176 0
      package-lock.json
  5. 1 1
      src/store/module/dev/dictData.js
  6. 2 2
      src/store/module/dev/dictIndex.js
  7. 2 2
      src/store/module/dev/menus.js
  8. 2 2
      src/store/module/dev/role.js
  9. 2 2
      src/store/module/group/goodsConfig.js
  10. 2 2
      src/store/module/group/group.js
  11. 2 2
      src/store/module/group/groupAfterSale.js
  12. 2 2
      src/store/module/group/groupOrder.js
  13. 2 2
      src/store/module/group/groupTransport.js
  14. 2 2
      src/store/module/group/salesTransport.js
  15. 2 2
      src/store/module/message/chatRecord.js
  16. 2 2
      src/store/module/message/room.js
  17. 2 2
      src/store/module/shop/afterSale.js
  18. 2 2
      src/store/module/shop/getTransportInfo.js
  19. 2 2
      src/store/module/shop/giveCoupon.js
  20. 2 2
      src/store/module/shop/goods.js
  21. 2 2
      src/store/module/shop/goodsRate.js
  22. 2 2
      src/store/module/shop/goodsSpec.js
  23. 2 2
      src/store/module/shop/selfShop.js
  24. 2 2
      src/store/module/shop/serviceContact.js
  25. 2 2
      src/store/module/shop/shop.js
  26. 2 2
      src/store/module/shop/shopNotice.js
  27. 2 2
      src/store/module/statistics/getBill.js
  28. 2 2
      src/store/module/statistics/outBill.js
  29. 2 2
      src/store/module/statistics/sellTotal.js
  30. 2 2
      src/store/module/statistics/shopCashOut.js
  31. 2 2
      src/store/module/statistics/shopInBill.js
  32. 2 2
      src/store/module/statistics/todo.js
  33. 2 2
      src/store/module/system/actTags.js
  34. 2 2
      src/store/module/system/admin.js
  35. 2 2
      src/store/module/system/banner.js
  36. 2 2
      src/store/module/system/config.js
  37. 2 2
      src/store/module/system/goodsJoinAct.js
  38. 2 2
      src/store/module/system/goodsSet.js
  39. 2 2
      src/store/module/system/goodsTags.js
  40. 2 2
      src/store/module/system/indexModule.js
  41. 2 2
      src/store/module/system/platformAct.js
  42. 2 2
      src/store/module/trade/cashOut.js
  43. 2 2
      src/store/module/trade/coupon.js
  44. 2 2
      src/store/module/trade/order.js
  45. 2 2
      src/store/module/trade/orderDetail.js
  46. 2 2
      src/store/module/trade/sot.js
  47. 2 2
      src/store/module/trade/viewOrder.js
  48. 2 2
      src/store/module/user/action.js
  49. 2 2
      src/store/module/user/address.js
  50. 2 2
      src/store/module/user/cashBack.js
  51. 2 2
      src/store/module/user/msgList.js
  52. 2 2
      src/store/module/user/notice.js
  53. 2 2
      src/store/module/user/userleader.js
  54. 2 2
      src/store/module/user/users.js
  55. 2 2
      src/store/module/zr/zrGoods.js
  56. 2 2
      src/store/module/zr/zrOrder.js
  57. 2 2
      src/store/module/zr/zrSot.js

+ 3 - 1
.env

@@ -1,5 +1,7 @@
 VUE_APP_AXIOS_BASE_URL = ''
-VUE_APP_ROUTER="shoppingAdmin"
+VUE_APP_ROUTER="shoppingTwoAdmin"
+VUE_APP_BRANCH="Two";
+VUE_APP_BRANCH_ROUTER="two";
 VUE_APP_HOST="https://broadcast.waityou24.cn"
 VUE_APP_PAGE_SIZE=50
 

+ 2 - 0
.env.dev

@@ -1,2 +1,4 @@
 VUE_APP_AXIOS_BASE_URL = '/dev'
 VUE_APP_ROUTER="shoppingAdminDev"
+VUE_APP_BRANCH="Two";
+VUE_APP_BRANCH_ROUTER="two";

+ 1 - 1
.gitignore

@@ -1,6 +1,6 @@
 .DS_Store
 node_modules
-shoppingAdmin
+shoppingTwoAdmin
 /dist
 
 

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 32176 - 0
package-lock.json


+ 1 - 1
src/store/module/dev/dictData.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/v1/api/dictData',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/v1/api/dictData`,
 };
 
 const state = () => ({});

+ 2 - 2
src/store/module/dev/dictIndex.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/v1/api/dictIndex',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/v1/api/dictIndex`,
 };
 
 const state = () => ({});
@@ -27,7 +27,7 @@ const actions = {
     return res;
   },
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },

+ 2 - 2
src/store/module/dev/menus.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/v1/api/menus',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/v1/api/menus`,
 };
 
 const state = () => ({});
@@ -27,7 +27,7 @@ const actions = {
     return res;
   },
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },

+ 2 - 2
src/store/module/dev/role.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/v1/api/role',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/v1/api/role`,
 };
 
 const state = () => ({});
@@ -27,7 +27,7 @@ const actions = {
     return res;
   },
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },

+ 2 - 2
src/store/module/group/goodsConfig.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/group/v1/api/goodsConfig',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/group/v1/api/goodsConfig`,
 };
 
 const state = () => ({});
@@ -28,7 +28,7 @@ const actions = {
   },
 
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },

+ 2 - 2
src/store/module/group/group.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/group/v1/api/group',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/group/v1/api/group`,
 };
 
 const state = () => ({});
@@ -28,7 +28,7 @@ const actions = {
   },
 
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },

+ 2 - 2
src/store/module/group/groupAfterSale.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/group/v1/api/groupAfterSale',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/group/v1/api/groupAfterSale`,
 };
 
 const state = () => ({});
@@ -28,7 +28,7 @@ const actions = {
   },
 
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },

+ 2 - 2
src/store/module/group/groupOrder.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/group/v1/api/groupOrder',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/group/v1/api/groupOrder`,
 };
 
 const state = () => ({});
@@ -28,7 +28,7 @@ const actions = {
   },
 
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },

+ 2 - 2
src/store/module/group/groupTransport.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/group/v1/api/orderOthers/transport',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/group/v1/api/orderOthers/transport`,
 };
 
 const state = () => ({});
@@ -27,7 +27,7 @@ const actions = {
     return res;
   },
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },

+ 2 - 2
src/store/module/group/salesTransport.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/group/v1/api/orderOthers/afterSale/transport',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/group/v1/api/orderOthers/afterSale/transport`,
 };
 
 const state = () => ({});
@@ -27,7 +27,7 @@ const actions = {
     return res;
   },
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },

+ 2 - 2
src/store/module/message/chatRecord.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/chat/v1/api/chatRecord',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/chat/v1/api/chatRecord`,
 };
 
 const state = () => ({});
@@ -31,7 +31,7 @@ const actions = {
     return res;
   },
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },

+ 2 - 2
src/store/module/message/room.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/chat/v1/api/room',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/chat/v1/api/room`,
 };
 
 const state = () => ({});
@@ -27,7 +27,7 @@ const actions = {
     return res;
   },
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },

+ 2 - 2
src/store/module/shop/afterSale.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/v1/api/afterSale',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/v1/api/afterSale`,
 };
 
 const state = () => ({});
@@ -31,7 +31,7 @@ const actions = {
     return res;
   },
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },

+ 2 - 2
src/store/module/shop/getTransportInfo.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/v1/api/afterSale/getTransportInfo',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/v1/api/afterSale/getTransportInfo`,
 };
 
 const state = () => ({});
@@ -27,7 +27,7 @@ const actions = {
     return res;
   },
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },

+ 2 - 2
src/store/module/shop/giveCoupon.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/v1/api/userCoupon/giveCoupon',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/v1/api/userCoupon/giveCoupon`,
 };
 
 const state = () => ({});
@@ -27,7 +27,7 @@ const actions = {
     return res;
   },
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },

+ 2 - 2
src/store/module/shop/goods.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/v1/api/goods',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/v1/api/goods`,
 };
 
 const state = () => ({});
@@ -31,7 +31,7 @@ const actions = {
     return res;
   },
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },

+ 2 - 2
src/store/module/shop/goodsRate.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/v1/api/goodsRate',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/v1/api/goodsRate`,
 };
 
 const state = () => ({});
@@ -27,7 +27,7 @@ const actions = {
     return res;
   },
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },

+ 2 - 2
src/store/module/shop/goodsSpec.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/v1/api/goodsSpec',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/v1/api/goodsSpec`,
 };
 
 const state = () => ({});
@@ -27,7 +27,7 @@ const actions = {
     return res;
   },
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },

+ 2 - 2
src/store/module/shop/selfShop.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/v1/api/selfShop',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/v1/api/selfShop`,
 };
 
 const state = () => ({});
@@ -23,7 +23,7 @@ const actions = {
     return res;
   },
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },

+ 2 - 2
src/store/module/shop/serviceContact.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/v1/api/serviceContact',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/v1/api/serviceContact`,
 };
 
 const state = () => ({});
@@ -27,7 +27,7 @@ const actions = {
     return res;
   },
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },

+ 2 - 2
src/store/module/shop/shop.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/v1/api/shop',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/v1/api/shop`,
 };
 
 const state = () => ({});
@@ -27,7 +27,7 @@ const actions = {
     return res;
   },
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },

+ 2 - 2
src/store/module/shop/shopNotice.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/v1/api/shopNotice',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/v1/api/shopNotice`,
 };
 
 const state = () => ({});
@@ -39,7 +39,7 @@ const actions = {
     return res;
   },
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },

+ 2 - 2
src/store/module/statistics/getBill.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/v1/api/statistics/bill/getBill',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/v1/api/statistics/bill/getBill`,
 };
 
 const state = () => ({});
@@ -27,7 +27,7 @@ const actions = {
     return res;
   },
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },

+ 2 - 2
src/store/module/statistics/outBill.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/v1/api/statistics/bill/outBill',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/v1/api/statistics/bill/outBill`,
 };
 
 const state = () => ({});
@@ -27,7 +27,7 @@ const actions = {
     return res;
   },
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },

+ 2 - 2
src/store/module/statistics/sellTotal.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/v1/api/statistics/admin/sellTotal',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/v1/api/statistics/admin/sellTotal`,
 };
 
 const state = () => ({});
@@ -27,7 +27,7 @@ const actions = {
     return res;
   },
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },

+ 2 - 2
src/store/module/statistics/shopCashOut.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/v1/api/shopCashOut',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/v1/api/shopCashOut`,
 };
 
 const state = () => ({});
@@ -27,7 +27,7 @@ const actions = {
     return res;
   },
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },

+ 2 - 2
src/store/module/statistics/shopInBill.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/v1/api/shopInBill',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/v1/api/shopInBill`,
 };
 
 const state = () => ({});
@@ -31,7 +31,7 @@ const actions = {
     return res;
   },
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },

+ 2 - 2
src/store/module/statistics/todo.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/v1/api/statistics/admin/todo',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/v1/api/statistics/admin/todo`,
 };
 
 const state = () => ({});
@@ -27,7 +27,7 @@ const actions = {
     return res;
   },
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },

+ 2 - 2
src/store/module/system/actTags.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/v1/api/actTags',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/v1/api/actTags`,
 };
 
 const state = () => ({});
@@ -27,7 +27,7 @@ const actions = {
     return res;
   },
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },

+ 2 - 2
src/store/module/system/admin.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/v1/api/admin',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/v1/api/admin`,
 };
 
 const state = () => ({});
@@ -35,7 +35,7 @@ const actions = {
     return res;
   },
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },

+ 2 - 2
src/store/module/system/banner.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/v1/api/banner',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/v1/api/banner`,
 };
 
 const state = () => ({});
@@ -27,7 +27,7 @@ const actions = {
     return res;
   },
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },

+ 2 - 2
src/store/module/system/config.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/v1/api/config',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/v1/api/config`,
 };
 
 const state = () => ({});
@@ -27,7 +27,7 @@ const actions = {
     return res;
   },
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },

+ 2 - 2
src/store/module/system/goodsJoinAct.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/v1/api/goodsJoinAct',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/v1/api/goodsJoinAct`,
 };
 
 const state = () => ({});
@@ -27,7 +27,7 @@ const actions = {
     return res;
   },
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },

+ 2 - 2
src/store/module/system/goodsSet.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/v1/api/goodsSet',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/v1/api/goodsSet`,
 };
 
 const state = () => ({});
@@ -27,7 +27,7 @@ const actions = {
     return res;
   },
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },

+ 2 - 2
src/store/module/system/goodsTags.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/v1/api/goodsTags',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/v1/api/goodsTags`,
 };
 
 const state = () => ({});
@@ -27,7 +27,7 @@ const actions = {
     return res;
   },
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },

+ 2 - 2
src/store/module/system/indexModule.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/v1/api/indexModule',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/v1/api/indexModule`,
 };
 
 const state = () => ({});
@@ -27,7 +27,7 @@ const actions = {
     return res;
   },
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },

+ 2 - 2
src/store/module/system/platformAct.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/v1/api/platformAct',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/v1/api/platformAct`,
 };
 
 const state = () => ({});
@@ -27,7 +27,7 @@ const actions = {
     return res;
   },
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },

+ 2 - 2
src/store/module/trade/cashOut.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/v1/api/cashOut',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/v1/api/cashOut`,
 };
 
 const state = () => ({});
@@ -27,7 +27,7 @@ const actions = {
     return res;
   },
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },

+ 2 - 2
src/store/module/trade/coupon.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/v1/api/coupon',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/v1/api/coupon`,
 };
 
 const state = () => ({});
@@ -27,7 +27,7 @@ const actions = {
     return res;
   },
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },

+ 2 - 2
src/store/module/trade/order.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/v1/api/order',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/v1/api/order`,
 };
 
 const state = () => ({});
@@ -35,7 +35,7 @@ const actions = {
     return res;
   },
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },

+ 2 - 2
src/store/module/trade/orderDetail.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/v1/api/orderDetail',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/v1/api/orderDetail`,
 };
 
 const state = () => ({});
@@ -27,7 +27,7 @@ const actions = {
     return res;
   },
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },

+ 2 - 2
src/store/module/trade/sot.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/v1/api/orderDetail/sot',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/v1/api/orderDetail/sot`,
 };
 
 const state = () => ({});
@@ -27,7 +27,7 @@ const actions = {
     return res;
   },
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },

+ 2 - 2
src/store/module/trade/viewOrder.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/v1/api/viewOrder',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/v1/api/viewOrder`,
 };
 
 const state = () => ({});
@@ -36,7 +36,7 @@ const actions = {
   //   return res;
   // },
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },

+ 2 - 2
src/store/module/user/action.js

@@ -2,7 +2,7 @@ import Vue from 'vue';
 import Vuex from 'vuex';
 Vue.use(Vuex);
 const api = {
-  url: '/point/v1/api/admin',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/v1/api/admin`,
 };
 
 const state = () => ({});
@@ -13,7 +13,7 @@ const actions = {
     try {
       const res = await this.$axios.$post(`${api.url}/login`, payload);
       if (res.errcode === 0) {
-        sessionStorage.setItem('user', res.data);
+        sessionStorage.setItem(`user`, res.data);
       }
       return res;
     } catch (error) {

+ 2 - 2
src/store/module/user/address.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/v1/api/address',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/v1/api/address`,
 };
 
 const state = () => ({});
@@ -27,7 +27,7 @@ const actions = {
     return res;
   },
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },

+ 2 - 2
src/store/module/user/cashBack.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/v1/api/cashBack',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/v1/api/cashBack`,
 };
 
 const state = () => ({});
@@ -35,7 +35,7 @@ const actions = {
     return res;
   },
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },

+ 2 - 2
src/store/module/user/msgList.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/v1/api/notice/msgList',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/v1/api/notice/msgList`,
 };
 
 const state = () => ({});
@@ -27,7 +27,7 @@ const actions = {
     return res;
   },
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },

+ 2 - 2
src/store/module/user/notice.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/v1/api/notice',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/v1/api/notice`,
 };
 
 const state = () => ({});
@@ -27,7 +27,7 @@ const actions = {
     return res;
   },
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },

+ 2 - 2
src/store/module/user/userleader.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/v1/api/userleader',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/v1/api/userleader`,
 };
 
 const state = () => ({});
@@ -27,7 +27,7 @@ const actions = {
     return res;
   },
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },

+ 2 - 2
src/store/module/user/users.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/v1/api/user',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/v1/api/user`,
 };
 
 const state = () => ({});
@@ -27,7 +27,7 @@ const actions = {
     return res;
   },
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },

+ 2 - 2
src/store/module/zr/zrGoods.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/zr/v1/api/zrGoods',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/zr/v1/api/zrGoods`,
 };
 
 const state = () => ({});
@@ -27,7 +27,7 @@ const actions = {
     return res;
   },
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },

+ 2 - 2
src/store/module/zr/zrOrder.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/zr/v1/api/zrOrder',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/zr/v1/api/zrOrder`,
 };
 
 const state = () => ({});
@@ -27,7 +27,7 @@ const actions = {
     return res;
   },
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },

+ 2 - 2
src/store/module/zr/zrSot.js

@@ -3,7 +3,7 @@ import Vuex from 'vuex';
 const _ = require('lodash');
 Vue.use(Vuex);
 const api = {
-  url: '/point/zr/v1/api/zrOrder/sot',
+  url: `/point/${process.env.VUE_APP_BRANCH_ROUTER}/zr/v1/api/zrOrder/sot`,
 };
 
 const state = () => ({});
@@ -27,7 +27,7 @@ const actions = {
     return res;
   },
   async update({ commit }, payload) {
-    const id = _.get(payload, 'id', _.get(payload, '_id'));
+    const id = _.get(payload, `id`, _.get(payload, `_id`));
     const res = await this.$axios.$post(`${api.url}/${id}`, payload);
     return res;
   },