achao há 1 ano atrás
pai
commit
fa9f5036b8
100 ficheiros alterados com 27 adições e 4940 exclusões
  1. 1 1
      public/static/aduitprint.html
  2. 1 1
      public/static/collectionContractRecordPrint.html
  3. 1 1
      public/static/inspection.html
  4. 1 1
      public/static/inspectionnew.html
  5. 1 1
      public/static/outInspectionPrint.html
  6. 1 1
      public/static/outWeightPrint.html
  7. 1 1
      public/static/payprint.html
  8. 14 30
      public/static/payprint1.html
  9. 1 1
      public/static/payprint1A5.html
  10. 1 1
      public/static/payprint2.html
  11. 1 1
      public/static/payprint3.html
  12. 1 1
      public/static/print.html
  13. 1 1
      public/static/printdry.html
  14. 1 1
      public/static/tradeServicesPrint.html
  15. 0 17
      public/static/unimall-admin/.babelrc
  16. 0 3
      public/static/unimall-admin/.eslintignore
  17. 0 185
      public/static/unimall-admin/.eslintrc.js
  18. 0 10
      public/static/unimall-admin/.postcssrc.js
  19. 0 67
      public/static/unimall-admin/build/build.js
  20. 0 64
      public/static/unimall-admin/build/check-versions.js
  21. BIN
      public/static/unimall-admin/build/logo.png
  22. 0 108
      public/static/unimall-admin/build/utils.js
  23. 0 5
      public/static/unimall-admin/build/vue-loader.conf.js
  24. 0 107
      public/static/unimall-admin/build/webpack.base.conf.js
  25. 0 98
      public/static/unimall-admin/build/webpack.dev.conf.js
  26. 0 188
      public/static/unimall-admin/build/webpack.prod.conf.js
  27. 0 6
      public/static/unimall-admin/config/dep.env.js
  28. 0 8
      public/static/unimall-admin/config/dev.env.js
  29. 0 88
      public/static/unimall-admin/config/index.js
  30. 0 6
      public/static/unimall-admin/config/prod.env.js
  31. BIN
      public/static/unimall-admin/favicon.ico
  32. 0 18
      public/static/unimall-admin/index.html
  33. 0 18
      public/static/unimall-admin/src/App.vue
  34. 0 55
      public/static/unimall-admin/src/api/admin.js
  35. 0 23
      public/static/unimall-admin/src/api/appraise.js
  36. 0 73
      public/static/unimall-admin/src/api/card/cardClassifyInfo.js
  37. 0 73
      public/static/unimall-admin/src/api/card/cardHolderInfo.js
  38. 0 73
      public/static/unimall-admin/src/api/card/cardManagementInfo.js
  39. 0 73
      public/static/unimall-admin/src/api/card/certificateManagementInfo.js
  40. 0 73
      public/static/unimall-admin/src/api/card/circleCardInfo.js
  41. 0 86
      public/static/unimall-admin/src/api/card/circleManagementInfo.js
  42. 0 87
      public/static/unimall-admin/src/api/card/commonUserInfo.js
  43. 0 73
      public/static/unimall-admin/src/api/card/info.js
  44. 0 73
      public/static/unimall-admin/src/api/card/personalHomepageInfo.js
  45. 0 66
      public/static/unimall-admin/src/api/category.js
  46. 0 58
      public/static/unimall-admin/src/api/coupon.js
  47. 0 11
      public/static/unimall-admin/src/api/dashboard.js
  48. 0 47
      public/static/unimall-admin/src/api/freight.js
  49. 0 79
      public/static/unimall-admin/src/api/goods.js
  50. 0 46
      public/static/unimall-admin/src/api/group_shop.js
  51. 0 48
      public/static/unimall-admin/src/api/log/logininfor.js
  52. 0 48
      public/static/unimall-admin/src/api/log/operlog.js
  53. 0 50
      public/static/unimall-admin/src/api/login.js
  54. 0 73
      public/static/unimall-admin/src/api/market/address.js
  55. 0 73
      public/static/unimall-admin/src/api/market/advertisement.js
  56. 0 73
      public/static/unimall-admin/src/api/market/case.js
  57. 0 74
      public/static/unimall-admin/src/api/market/circle.js
  58. 0 73
      public/static/unimall-admin/src/api/market/orderDetail.js
  59. 0 73
      public/static/unimall-admin/src/api/market/orderInfo.js
  60. 0 73
      public/static/unimall-admin/src/api/market/prodectInfo.js
  61. 0 73
      public/static/unimall-admin/src/api/market/shopInfo.js
  62. 0 24
      public/static/unimall-admin/src/api/merchant.js
  63. 0 91
      public/static/unimall-admin/src/api/merchantad.js
  64. 0 24
      public/static/unimall-admin/src/api/monitor/online.js
  65. 0 12
      public/static/unimall-admin/src/api/monitor/server.js
  66. 0 56
      public/static/unimall-admin/src/api/order.js
  67. 0 12
      public/static/unimall-admin/src/api/profile.js
  68. 0 47
      public/static/unimall-admin/src/api/recommend.js
  69. 0 78
      public/static/unimall-admin/src/api/role.js
  70. 0 11
      public/static/unimall-admin/src/api/storage.js
  71. 0 74
      public/static/unimall-admin/src/api/sys/dict/data.js
  72. 0 72
      public/static/unimall-admin/src/api/sys/dict/type.js
  73. 0 93
      public/static/unimall-admin/src/api/tool/gen.js
  74. 0 73
      public/static/unimall-admin/src/api/tourism/dishClassifyInfo.js
  75. 0 73
      public/static/unimall-admin/src/api/tourism/foodDishesInfo.js
  76. 0 73
      public/static/unimall-admin/src/api/tourism/foodGroupDetailInfo.js
  77. 0 73
      public/static/unimall-admin/src/api/tourism/foodGroupInfo.js
  78. 0 73
      public/static/unimall-admin/src/api/tourism/foodGroupOrdeInfo.js
  79. 0 73
      public/static/unimall-admin/src/api/tourism/foodInfo.js
  80. 0 73
      public/static/unimall-admin/src/api/tourism/homestayDetailInfo.js
  81. 0 73
      public/static/unimall-admin/src/api/tourism/homestayInfo.js
  82. 0 73
      public/static/unimall-admin/src/api/tourism/productManagement.js
  83. 0 58
      public/static/unimall-admin/src/api/user.js
  84. BIN
      public/static/unimall-admin/src/assets/401_images/401.gif
  85. BIN
      public/static/unimall-admin/src/assets/404_images/404.png
  86. BIN
      public/static/unimall-admin/src/assets/404_images/404_cloud.png
  87. BIN
      public/static/unimall-admin/src/assets/avatar.png
  88. BIN
      public/static/unimall-admin/src/assets/custom-theme/fonts/element-icons.ttf
  89. BIN
      public/static/unimall-admin/src/assets/custom-theme/fonts/element-icons.woff
  90. 0 0
      public/static/unimall-admin/src/assets/custom-theme/index.css
  91. 0 116
      public/static/unimall-admin/src/components/BackToTop/index.vue
  92. 0 63
      public/static/unimall-admin/src/components/Breadcrumb/index.vue
  93. 0 59
      public/static/unimall-admin/src/components/Hamburger/index.vue
  94. 0 40
      public/static/unimall-admin/src/components/LangSelect/index.vue
  95. 0 102
      public/static/unimall-admin/src/components/Pagination/index.vue
  96. 0 78
      public/static/unimall-admin/src/components/Screenfull/index.vue
  97. 0 92
      public/static/unimall-admin/src/components/ScrollPane/index.vue
  98. 0 55
      public/static/unimall-admin/src/components/SizeSelect/index.vue
  99. 0 43
      public/static/unimall-admin/src/components/SvgIcon/index.vue
  100. 0 144
      public/static/unimall-admin/src/components/ThemePicker/index.vue

+ 1 - 1
public/static/aduitprint.html

@@ -115,7 +115,7 @@
    }
 </style>
 <body>
-    <div id="app">
+    <div id="app" v-cloak>
         <div class="center">
         <div class="wrap" v-for="item in printData">
           <div v-if="item.printType==1" class="number">费用审核-请款</div>

+ 1 - 1
public/static/collectionContractRecordPrint.html

@@ -195,7 +195,7 @@
     </style>
   </head>
   <body>
-    <div id="app">
+    <div id="app" v-cloak>
       <div v-for="(item,index) in customerList1" :key="index">
         <div class="content">
           <div class="sfcard part3" v-if="isShowPrintType1">

+ 1 - 1
public/static/inspection.html

@@ -134,7 +134,7 @@
     </style>
   </head>
   <body>
-    <div id="app">
+    <div id="app" v-cloak>
       <div class="content" v-if="bigContent">
         <div>
 

+ 1 - 1
public/static/inspectionnew.html

@@ -129,7 +129,7 @@
     </style>
   </head>
   <body>
-    <div id="app">
+    <div id="app" v-cloak>
       <div class="content" v-if="bigContent">
         <div>
 

+ 1 - 1
public/static/outInspectionPrint.html

@@ -129,7 +129,7 @@
     </style>
   </head>
   <body>
-    <div id="app">
+    <div id="app" v-cloak>
       <div class="content" v-if="bigContent">
         <div>
 

+ 1 - 1
public/static/outWeightPrint.html

@@ -125,7 +125,7 @@
 </head>
 
 <body>
-    <div id="app">
+    <div id="app" v-cloak>
         <div v-if="bigContent">
             <div class="title">出库检斤单</div>
             <div class="title_top">

+ 1 - 1
public/static/payprint.html

@@ -203,7 +203,7 @@
     </style>
   </head>
   <body>
-    <div id="app">
+    <div id="app" v-cloak>
       <div v-if="selectPrint">
         <div v-for="(item,index) in printData1" :key="index">
           <div class="content">

+ 14 - 30
public/static/payprint1.html

@@ -41,7 +41,7 @@
         
         .bottom-row1 {
             display: flex;
-            justify-content: space-between;
+            justify-content: space-around;
             margin: 20px 0;
         }
         
@@ -212,7 +212,7 @@
 </head>
 
 <body>
-    <div id="app">
+    <div id="app" v-cloak>
         <div v-if="selectPrint">
             <div v-for="(item,index) in printData1" :key="index">
                 <div class="content">
@@ -223,7 +223,7 @@
                         <img :src="printData1[index].codeUrl" class="paymentScreenshot" />
                     </div> -->
                     <div class="center" v-if="isShowPrintType3">
-                        <div class="header1">{{ printData1[index].compName}}结算凭证</div>
+                        <div class="header1">{{ printData1[index].compName}}粮食收购检斤结算单</div>
                         <div class="line"></div>
                         <div class="line"></div>
                         <div class="header">
@@ -396,7 +396,7 @@
                                 </td>
                                 <td class="col ">{{ printData1[index].carNo}}</td>
                                 <td class="col " colspan="4">
-                                    {{ printData1[index].remarks}}
+                                    质权所有人: 中国建设银行深圳分行
                                 </td>
                             </tr>
                             <tr class="row">
@@ -617,7 +617,7 @@
                 <img :src="printData.paymentScreenshot" class="paymentScreenshot" />
             </div> -->
             <div class="center part1" v-if="isShowPrintType3&&!isShowPrintType6" :class="printData.extra2? 'simple2':!selectPrint? 'simple':''">
-                <div class="header1">{{ printData.compName}}结算凭证</div>
+                <div class="header1">{{ printData.compName}}粮食收购检斤结算单</div>
                 <div class="line"></div>
                 <div class="line"></div>
                 <div class="header">
@@ -793,7 +793,7 @@
                             {{ printData.qualityInspectionManagement.natureOfGrainPurchase}}
                         </td>
                         <td class="col ">{{ printData.carNo}}</td>
-                        <td class="col " colspan="4">{{ printData.remarks}}</td>
+                        <td class="col " colspan="4">质权所有人: 中国建设银行深圳分行</td>
                     </tr>
                     <tr class="row">
                         <td class="col col-bgc">实付金额</td>
@@ -810,35 +810,19 @@
                 <div class="bottom">
                     <div class="bottom-row1">
                         <div>
-                            质检:{{ printData.qualityInspectionManagement.qualityInspector}}
+                            质检:{{ printData.qualityInspectionManagement.qualityInspector}}
                         </div>
                         <div>
-                            检:{{ printData.weighingManagement.secretaryWeigher}}
+                            检斤员:{{ printData.weighingManagement.secretaryWeigher}}
                         </div>
-                        <div>皮检:{{ printData.weighingManagement.skinInspector}}</div>
-                        <div>结算:{{ printData.settlementClerk}}</div>
-                        <div>付款:{{ printData.cashier}}</div>
-                        <div>复点:{{ }}</div>
-                        <div></div>
-                    </div>
-                    <div class="bottom-row2">
-                        <!-- <div class="left">
-               <img src="../../../../public/img/add.png" alt="" />
-             </div> -->
-                        <div class="config">收货单位签名或盖章</div>
-                        <div class="">客户签名</div>
+                        <div>监管方:</div>
+                        <div>仓储方:</div>
                     </div>
-                    <!-- <div class="bottom-row3">扫一扫</div> -->
-                    <!-- <div class="bottom-row4">
-             <el-button type="primary">关闭</el-button>
-              <el-button type="primary" @click="printSmall">打印小票</el-button>
-              <el-button type="primary" @click="printBig">打印单据</el-button>
-           </div> -->
                 </div>
             </div>
 
             <div class="center part1" v-if="isShowPrintType3&&printData.extra2||isShowPrintType6" :class="printData.extra2? 'simple2':!selectPrint? 'simple':''">
-                <div class="header1">{{ print_company_name_ew}}结算凭证</div>
+                <div class="header1">{{ print_company_name_ew}}粮食收购检斤结算单</div>
                 <div class="line"></div>
                 <div class="line"></div>
                 <div class="header">
@@ -1003,7 +987,7 @@
                             {{ printData.qualityInspectionManagement.natureOfGrainPurchase}}
                         </td>
                         <td class="col ">{{ printData.carNo}}</td>
-                        <td class="col " colspan="4">{{ printData.remarks}}</td>
+                        <td class="col " colspan="4">质权所有人: 中国建设银行深圳分行</td>
                     </tr>
                     <tr class="row">
                         <td class="col col-bgc">实付金额</td>
@@ -1193,7 +1177,7 @@
         <div class="small-content" v-if="smallContent">
             <div class="small-title">
                 <div>
-                    {{printData.compName}}结算凭证
+                    {{printData.compName}}粮食收购检斤结算单
                 </div>
                 <img class="small-img" src="../img/add.png" alt="" />
             </div>
@@ -1593,7 +1577,7 @@
                 this.bigContent = false
             }
             if (this.printData.compName == undefined) this.printData.compName = ''
-            document.title = this.printData.compName + '结算凭证'
+            document.title = this.printData.compName + '粮食收购检斤结算单'
             window.print()
                 // sessionStorage.removeItem('selectPrint_selectPrintList');
                 // sessionStorage.removeItem('selectPrint_selectCustomerList');

+ 1 - 1
public/static/payprint1A5.html

@@ -198,7 +198,7 @@
 </head>
 
 <body>
-    <div id="app">
+    <div id="app" v-cloak>
         <div v-if="selectPrint">
             <div v-for="(item,index) in printData1" :key="index">
                 <div class="content">

+ 1 - 1
public/static/payprint2.html

@@ -198,7 +198,7 @@
 </head>
 
 <body>
-    <div id="app">
+    <div id="app" v-cloak>
         <div v-if="selectPrint">
             <div v-for="(item,index) in printData1" :key="index">
                 <div class="content">

+ 1 - 1
public/static/payprint3.html

@@ -199,7 +199,7 @@
 </head>
 
 <body>
-    <div id="app">
+    <div id="app" v-cloak>
         <div v-if="selectPrint">
             <div v-for="(item,index) in printData1" :key="index">
                 <div class="content">

+ 1 - 1
public/static/print.html

@@ -149,7 +149,7 @@
   </head>
 
   <body>
-    <div id="app">
+    <div id="app" v-cloak>
       <div class="content"  v-if="type == 1"><!--容重打印-->
         <div class="title">
           <div class="name">{{name}}{{name != '大豆'? '价格对照表(按容重)' : '价格对照表(按蛋白)'}}</div>

+ 1 - 1
public/static/printdry.html

@@ -147,7 +147,7 @@
 </head>
 
 <body>
-    <div id="app">
+    <div id="app" v-cloak>
             <div class="content"  v-if="isShowPrintType3&&!isShowPrintType6">
               <!-- <div class="title">{{item.customer}}</div> -->
               <div class="title">入库检斤单</div>

+ 1 - 1
public/static/tradeServicesPrint.html

@@ -90,7 +90,7 @@
     </style>
   </head>
   <body>
-    <div id="app">
+    <div id="app" v-cloak>
       <div v-for="(item,index) in printData">
         <div class="center">
           <div class="title">磅码单</div>

+ 0 - 17
public/static/unimall-admin/.babelrc

@@ -1,17 +0,0 @@
-{
-  "presets": [
-    ["env", {
-      "modules": false,
-      "targets": {
-        "browsers": ["> 1%", "last 2 versions", "not ie <= 8"]
-      }
-    }],
-    "stage-2"
-  ],
-  "plugins": ["transform-vue-jsx", "transform-runtime"],
-  "env": {
-    "development":{
-      "plugins": ["dynamic-import-node"]
-    }
-  }
-}

+ 0 - 3
public/static/unimall-admin/.eslintignore

@@ -1,3 +0,0 @@
-build/*.js
-config/*.js
-src/assets

+ 0 - 185
public/static/unimall-admin/.eslintrc.js

@@ -1,185 +0,0 @@
-module.exports = {
-  root: true,
-  parserOptions: {
-    parser: 'babel-eslint',
-    sourceType: 'module'
-  },
-  env: {
-    browser: true,
-    node: true,
-    es6: true,
-  },
-  extends: ['plugin:vue/recommended', 'eslint:recommended'],
-
-  // add your custom rules here
-  //it is base on https://github.com/vuejs/eslint-config-vue
-  rules: {
-    "indent": ["off", 0],
-    "vue/max-attributes-per-line": [2, {
-      "singleline": 10,
-      "multiline": {
-        "max": 1,
-        "allowFirstLine": false
-      }
-    }],
-    "vue/name-property-casing": ["error", "PascalCase"],
-    'accessor-pairs': 2,
-    'arrow-spacing': [2, {
-      'before': true,
-      'after': true
-    }],
-    'block-spacing': [2, 'always'],
-    'brace-style': "off",
-    'camelcase': [0, {
-      'properties': 'always'
-    }],
-    'comma-dangle': [2, 'never'],
-    'comma-spacing': [2, {
-      'before': false,
-      'after': true
-    }],
-    'comma-style': [2, 'last'],
-    'constructor-super': 2,
-    'curly': [2, 'multi-line'],
-    'dot-location': [2, 'property'],
-    'eol-last': 2,
-    'eqeqeq': "off",
-    'generator-star-spacing': [2, {
-      'before': true,
-      'after': true
-    }],
-    'handle-callback-err': [2, '^(err|error)$'],
-    'indent': [2, 2, {
-      'SwitchCase': 1
-    }],
-    'jsx-quotes': [2, 'prefer-single'],
-    'key-spacing': [2, {
-      'beforeColon': false,
-      'afterColon': true
-    }],
-    'keyword-spacing': [2, {
-      'before': true,
-      'after': true
-    }],
-    'new-cap': "off",
-    'new-parens': 2,
-    'no-array-constructor': 2,
-    'no-caller': "off",
-    'no-console': 'off',
-    'no-class-assign': 2,
-    'no-cond-assign': "off",
-    'no-const-assign': 2,
-    'no-constant-condition': "off",
-    'no-control-regex': 0,
-    'no-delete-var': 2,
-    'no-dupe-args': 2,
-    'no-dupe-class-members': 2,
-    'no-dupe-keys': 2,
-    'no-duplicate-case': 2,
-    'no-empty': "off",
-    'no-empty-character-class': "off",
-    'no-empty-pattern': "off",
-    'no-eval': "off",
-    'no-ex-assign': 2,
-    'no-extend-native': 2,
-    'no-extra-bind': 2,
-    'no-extra-boolean-cast': 2,
-    'no-extra-parens': [2, 'functions'],
-    'no-fallthrough': "off",
-    'no-floating-decimal': 2,
-    'no-func-assign': "off",
-    'no-implied-eval': 2,
-    'no-inner-declarations': "off",
-    'no-invalid-regexp': 2,
-    'no-irregular-whitespace': 2,
-    'no-iterator': 2,
-    'no-label-var': 2,
-    'no-labels': [2, {
-      'allowLoop': false,
-      'allowSwitch': false
-    }],
-    'no-lone-blocks': 2,
-    'no-mixed-spaces-and-tabs': 2,
-    'no-multi-spaces': 2,
-    'no-multi-str': 2,
-    'no-multiple-empty-lines': [2, {
-      'max': 1
-    }],
-    'no-native-reassign': 2,
-    'no-negated-in-lhs': 2,
-    'no-new-object': 2,
-    'no-new-require': 2,
-    'no-new-symbol': 2,
-    'no-new-wrappers': 2,
-    'no-obj-calls': 2,
-    'no-octal': 2,
-    'no-octal-escape': 2,
-    'no-path-concat': 2,
-    'no-proto': 2,
-    'no-redeclare': "off",
-    'no-regex-spaces': 2,
-    'no-return-assign': "off",
-    'no-self-assign': 2,
-    'no-self-compare': 2,
-    'no-sequences': "off",
-    'no-shadow-restricted-names': 2,
-    'no-spaced-func': 2,
-    'no-sparse-arrays': 2,
-    'no-this-before-super': 2,
-    'no-throw-literal': "off",
-    'no-trailing-spaces': 2,
-    'no-undef': "off",
-    'no-undef-init': "off",
-    'no-unexpected-multiline': "off",
-    'no-unmodified-loop-condition': "off",
-    'no-unneeded-ternary': "off",
-    'no-unreachable': "off",
-    'no-unsafe-finally': 2,
-    'no-unused-vars': [2, {
-      'vars': 'all',
-      'args': 'none'
-    }],
-    'no-useless-call': 2,
-    'no-useless-computed-key': 2,
-    'no-useless-constructor': 2,
-    'no-useless-escape': 0,
-    'no-whitespace-before-property': 2,
-    'no-with': 2,
-    "no-tabs":"off",
-    'one-var': "off",
-    'operator-linebreak': [2, 'after', {
-      'overrides': {
-        '?': 'before',
-        ':': 'before'
-      }
-    }],
-    'padded-blocks': [2, 'never'],
-    'quotes': [2, 'single', {
-      'avoidEscape': true,
-      'allowTemplateLiterals': true
-    }],
-    'semi': [2, 'never'],
-    'semi-spacing': [2, {
-      'before': false,
-      'after': true
-    }],
-    'space-before-blocks': [2, 'always'],
-    'space-before-function-paren':  0,
-    'spaced-comment': [2, 'always', {
-      'markers': ['global', 'globals', 'eslint', 'eslint-disable', '*package', '!', ',']
-    }],
-    'template-curly-spacing': [2, 'never'],
-    'use-isnan': 2,
-    'valid-typeof': 2,
-    'wrap-iife': [2, 'any'],
-    'yield-star-spacing': [2, 'both'],
-    'yoda': [2, 'never'],
-    'prefer-const': 2,
-    'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
-    'object-curly-spacing': [2, 'always', {
-      objectsInObjects: false
-    }],
-    'array-bracket-spacing': [2, 'never'],
-    "no-unused-vars": "off",
-  }
-}

+ 0 - 10
public/static/unimall-admin/.postcssrc.js

@@ -1,10 +0,0 @@
-// https://github.com/michael-ciniawsky/postcss-load-config
-
-module.exports = {
-  "plugins": {
-    "postcss-import": {},
-    "postcss-url": {},
-    // to edit target browsers: use "browserslist" field in package.json
-    "autoprefixer": {}
-  }
-}

+ 0 - 67
public/static/unimall-admin/build/build.js

@@ -1,67 +0,0 @@
-'use strict'
-require('./check-versions')()
-
-const ora = require('ora')
-const rm = require('rimraf')
-const path = require('path')
-const chalk = require('chalk')
-const webpack = require('webpack')
-const config = require('../config')
-const webpackConfig = require('./webpack.prod.conf')
-var connect = require('connect')
-var serveStatic = require('serve-static')
-
-const spinner = ora(
-  'building for ' + process.env.env_config + ' environment...'
-)
-spinner.start()
-
-rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => {
-  if (err) throw err
-  webpack(webpackConfig, (err, stats) => {
-    spinner.stop()
-    if (err) throw err
-    process.stdout.write(
-      stats.toString({
-        colors: true,
-        modules: false,
-        children: false,
-        chunks: false,
-        chunkModules: false
-      }) + '\n\n'
-    )
-
-    if (stats.hasErrors()) {
-      console.log(chalk.red(' Build failed with errors.\n'))
-      process.exit(1)
-    }
-
-    console.log(chalk.cyan(' Build complete.\n'))
-    console.log(
-      chalk.yellow(
-        ' Tip: built files are meant to be served over an HTTP server.\n' +
-          " Opening index.html over file:// won't work.\n"
-      )
-    )
-
-    if (process.env.npm_config_preview) {
-      const port = 9526
-      const host = 'http://localhost:' + port
-      const basePath = config.build.assetsPublicPath
-      const app = connect()
-
-      app.use(
-        basePath,
-        serveStatic('./dist', {
-          index: ['index.html', '/']
-        })
-      )
-
-      app.listen(port, function() {
-        console.log(
-          chalk.green(`> Listening at  http://localhost:${port}${basePath}`)
-        )
-      })
-    }
-  })
-})

+ 0 - 64
public/static/unimall-admin/build/check-versions.js

@@ -1,64 +0,0 @@
-'use strict'
-const chalk = require('chalk')
-const semver = require('semver')
-const packageConfig = require('../package.json')
-const shell = require('shelljs')
-
-function exec(cmd) {
-  return require('child_process')
-    .execSync(cmd)
-    .toString()
-    .trim()
-}
-
-const versionRequirements = [
-  {
-    name: 'node',
-    currentVersion: semver.clean(process.version),
-    versionRequirement: packageConfig.engines.node
-  }
-]
-
-if (shell.which('npm')) {
-  versionRequirements.push({
-    name: 'npm',
-    currentVersion: exec('npm --version'),
-    versionRequirement: packageConfig.engines.npm
-  })
-}
-
-module.exports = function() {
-  const warnings = []
-
-  for (let i = 0; i < versionRequirements.length; i++) {
-    const mod = versionRequirements[i]
-
-    if (!semver.satisfies(mod.currentVersion, mod.versionRequirement)) {
-      warnings.push(
-        mod.name +
-          ': ' +
-          chalk.red(mod.currentVersion) +
-          ' should be ' +
-          chalk.green(mod.versionRequirement)
-      )
-    }
-  }
-
-  if (warnings.length) {
-    console.log('')
-    console.log(
-      chalk.yellow(
-        'To use this template, you must update following to modules:'
-      )
-    )
-    console.log()
-
-    for (let i = 0; i < warnings.length; i++) {
-      const warning = warnings[i]
-      console.log('  ' + warning)
-    }
-
-    console.log()
-    process.exit(1)
-  }
-}

BIN
public/static/unimall-admin/build/logo.png


+ 0 - 108
public/static/unimall-admin/build/utils.js

@@ -1,108 +0,0 @@
-'use strict'
-const path = require('path')
-const config = require('../config')
-const MiniCssExtractPlugin = require('mini-css-extract-plugin')
-const packageConfig = require('../package.json')
-
-exports.assetsPath = function(_path) {
-  const assetsSubDirectory =
-    process.env.NODE_ENV === 'production'
-      ? config.build.assetsSubDirectory
-      : config.dev.assetsSubDirectory
-
-  return path.posix.join(assetsSubDirectory, _path)
-}
-
-exports.cssLoaders = function(options) {
-  options = options || {}
-
-  const cssLoader = {
-    loader: 'css-loader',
-    options: {
-      sourceMap: options.sourceMap
-    }
-  }
-
-  const postcssLoader = {
-    loader: 'postcss-loader',
-    options: {
-      sourceMap: options.sourceMap
-    }
-  }
-
-  // generate loader string to be used with extract text plugin
-  function generateLoaders(loader, loaderOptions) {
-    const loaders = []
-
-    // Extract CSS when that option is specified
-    // (which is the case during production build)
-    if (options.extract) {
-      loaders.push(MiniCssExtractPlugin.loader)
-    } else {
-      loaders.push('vue-style-loader')
-    }
-
-    loaders.push(cssLoader)
-
-    if (options.usePostCSS) {
-      loaders.push(postcssLoader)
-    }
-
-    if (loader) {
-      loaders.push({
-        loader: loader + '-loader',
-        options: Object.assign({}, loaderOptions, {
-          sourceMap: options.sourceMap
-        })
-      })
-    }
-
-    return loaders
-  }
-  // https://vue-loader.vuejs.org/en/configurations/extract-css.html
-  return {
-    css: generateLoaders(),
-    postcss: generateLoaders(),
-    less: generateLoaders('less'),
-    sass: generateLoaders('sass', {
-      indentedSyntax: true
-    }),
-    scss: generateLoaders('sass'),
-    stylus: generateLoaders('stylus'),
-    styl: generateLoaders('stylus')
-  }
-}
-
-// Generate loaders for standalone style files (outside of .vue)
-exports.styleLoaders = function(options) {
-  const output = []
-  const loaders = exports.cssLoaders(options)
-
-  for (const extension in loaders) {
-    const loader = loaders[extension]
-    output.push({
-      test: new RegExp('\\.' + extension + '$'),
-      use: loader
-    })
-  }
-
-  return output
-}
-
-exports.createNotifierCallback = () => {
-  const notifier = require('node-notifier')
-
-  return (severity, errors) => {
-    if (severity !== 'error') return
-
-    const error = errors[0]
-    const filename = error.file && error.file.split('!').pop()
-
-    notifier.notify({
-      title: packageConfig.name,
-      message: severity + ': ' + error.name,
-      subtitle: filename || '',
-      icon: path.join(__dirname, 'logo.png')
-    })
-  }
-}

+ 0 - 5
public/static/unimall-admin/build/vue-loader.conf.js

@@ -1,5 +0,0 @@
-'use strict'
-
-module.exports = {
-  //You can set the vue-loader configuration by yourself.
-}

+ 0 - 107
public/static/unimall-admin/build/webpack.base.conf.js

@@ -1,107 +0,0 @@
-'use strict'
-const path = require('path')
-const utils = require('./utils')
-const config = require('../config')
-const { VueLoaderPlugin } = require('vue-loader')
-const vueLoaderConfig = require('./vue-loader.conf')
-
-function resolve(dir) {
-  return path.join(__dirname, '..', dir)
-}
-
-const createLintingRule = () => ({
-  test: /\.(js|vue)$/,
-  loader: 'eslint-loader',
-  enforce: 'pre',
-  include: [resolve('src'), resolve('test')],
-  options: {
-    formatter: require('eslint-friendly-formatter'),
-    emitWarning: !config.dev.showEslintErrorsInOverlay
-  }
-})
-
-module.exports = {
-  context: path.resolve(__dirname, '../'),
-  entry: {
-    app: './src/main.js'
-  },
-  output: {
-    path: config.build.assetsRoot,
-    filename: '[name].js',
-    publicPath:
-      process.env.NODE_ENV === 'production'
-        ? config.build.assetsPublicPath
-        : config.dev.assetsPublicPath
-  },
-  resolve: {
-    extensions: ['.js', '.vue', '.json'],
-    alias: {
-      '@': resolve('src')
-    }
-  },
-  module: {
-    rules: [
-      ...(config.dev.useEslint ? [createLintingRule()] : []),
-      {
-        test: /\.vue$/,
-        loader: 'vue-loader',
-        options: vueLoaderConfig
-      },
-      {
-        test: /\.js$/,
-        loader: 'babel-loader?cacheDirectory',
-        include: [
-          resolve('src'),
-          resolve('test'),
-          resolve('node_modules/webpack-dev-server/client')
-        ]
-      },
-      {
-        test: /\.svg$/,
-        loader: 'svg-sprite-loader',
-        include: [resolve('src/icons')],
-        options: {
-          symbolId: 'icon-[name]'
-        }
-      },
-      {
-        test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
-        loader: 'url-loader',
-        exclude: [resolve('src/icons')],
-        options: {
-          limit: 10000,
-          name: utils.assetsPath('img/[name].[hash:7].[ext]')
-        }
-      },
-      {
-        test: /\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/,
-        loader: 'url-loader',
-        options: {
-          limit: 10000,
-          name: utils.assetsPath('media/[name].[hash:7].[ext]')
-        }
-      },
-      {
-        test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
-        loader: 'url-loader',
-        options: {
-          limit: 10000,
-          name: utils.assetsPath('fonts/[name].[hash:7].[ext]')
-        }
-      }
-    ]
-  },
-  plugins: [new VueLoaderPlugin()],
-  node: {
-    // prevent webpack from injecting useless setImmediate polyfill because Vue
-    // source contains it (although only uses it if it's native).
-    setImmediate: false,
-    // prevent webpack from injecting mocks to Node native modules
-    // that does not make sense for the client
-    dgram: 'empty',
-    fs: 'empty',
-    net: 'empty',
-    tls: 'empty',
-    child_process: 'empty'
-  }
-}

+ 0 - 98
public/static/unimall-admin/build/webpack.dev.conf.js

@@ -1,98 +0,0 @@
-'use strict'
-const path = require('path')
-const utils = require('./utils')
-const webpack = require('webpack')
-const config = require('../config')
-const merge = require('webpack-merge')
-const baseWebpackConfig = require('./webpack.base.conf')
-const HtmlWebpackPlugin = require('html-webpack-plugin')
-const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin')
-const portfinder = require('portfinder')
-
-function resolve(dir) {
-  return path.join(__dirname, '..', dir)
-}
-
-const HOST = process.env.HOST
-const PORT = process.env.PORT && Number(process.env.PORT)
-
-const devWebpackConfig = merge(baseWebpackConfig, {
-  mode: 'development',
-  module: {
-    rules: utils.styleLoaders({
-      sourceMap: config.dev.cssSourceMap,
-      usePostCSS: true
-    })
-  },
-  // cheap-module-eval-source-map is faster for development
-  devtool: config.dev.devtool,
-
-  // these devServer options should be customized in /config/index.js
-  devServer: {
-    clientLogLevel: 'warning',
-    historyApiFallback: true,
-    hot: true,
-    compress: true,
-    host: HOST || config.dev.host,
-    port: PORT || config.dev.port,
-    open: config.dev.autoOpenBrowser,
-    overlay: config.dev.errorOverlay
-      ? { warnings: false, errors: true }
-      : false,
-    publicPath: config.dev.assetsPublicPath,
-    proxy: config.dev.proxyTable,
-    quiet: true, // necessary for FriendlyErrorsPlugin
-    watchOptions: {
-      poll: config.dev.poll
-    }
-  },
-  plugins: [
-    new webpack.DefinePlugin({
-      'process.env': require('../config/dev.env')
-    }),
-    new webpack.HotModuleReplacementPlugin(),
-    // https://github.com/ampedandwired/html-webpack-plugin
-    new HtmlWebpackPlugin({
-      filename: 'index.html',
-      template: 'index.html',
-      inject: true,
-      favicon: resolve('favicon.ico'),
-      title: 'vue-element-admin',
-      templateParameters: {
-        BASE_URL: config.dev.assetsPublicPath + config.dev.assetsSubDirectory,
-      },
-    }),
-  ]
-})
-
-module.exports = new Promise((resolve, reject) => {
-  portfinder.basePort = process.env.PORT || config.dev.port
-  portfinder.getPort((err, port) => {
-    if (err) {
-      reject(err)
-    } else {
-      // publish the new Port, necessary for e2e tests
-      process.env.PORT = port
-      // add port to devServer config
-      devWebpackConfig.devServer.port = port
-
-      // Add FriendlyErrorsPlugin
-      devWebpackConfig.plugins.push(
-        new FriendlyErrorsPlugin({
-          compilationSuccessInfo: {
-            messages: [
-              `Your application is running here: http://${
-                devWebpackConfig.devServer.host
-              }:${port}`
-            ]
-          },
-          onErrors: config.dev.notifyOnErrors
-            ? utils.createNotifierCallback()
-            : undefined
-        })
-      )
-
-      resolve(devWebpackConfig)
-    }
-  })
-})

+ 0 - 188
public/static/unimall-admin/build/webpack.prod.conf.js

@@ -1,188 +0,0 @@
-'use strict'
-const path = require('path')
-const utils = require('./utils')
-const webpack = require('webpack')
-const config = require('../config')
-const merge = require('webpack-merge')
-const baseWebpackConfig = require('./webpack.base.conf')
-const CopyWebpackPlugin = require('copy-webpack-plugin')
-const HtmlWebpackPlugin = require('html-webpack-plugin')
-const ScriptExtHtmlWebpackPlugin = require('script-ext-html-webpack-plugin')
-const MiniCssExtractPlugin = require('mini-css-extract-plugin')
-const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin')
-const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
-
-function resolve(dir) {
-  return path.join(__dirname, '..', dir)
-}
-
-const env = require('../config/' + process.env.env_config + '.env')
-
-// For NamedChunksPlugin
-const seen = new Set()
-const nameLength = 4
-
-const webpackConfig = merge(baseWebpackConfig, {
-  mode: 'production',
-  module: {
-    rules: utils.styleLoaders({
-      sourceMap: config.build.productionSourceMap,
-      extract: true,
-      usePostCSS: true
-    })
-  },
-  devtool: config.build.productionSourceMap ? config.build.devtool : false,
-  output: {
-    path: config.build.assetsRoot,
-    filename: utils.assetsPath('js/[name].[chunkhash:8].js'),
-    chunkFilename: utils.assetsPath('js/[name].[chunkhash:8].js')
-  },
-  plugins: [
-    // http://vuejs.github.io/vue-loader/en/workflow/production.html
-    new webpack.DefinePlugin({
-      'process.env': env
-    }),
-    // extract css into its own file
-    new MiniCssExtractPlugin({
-      filename: utils.assetsPath('css/[name].[contenthash:8].css'),
-      chunkFilename: utils.assetsPath('css/[name].[contenthash:8].css')
-    }),
-    // generate dist index.html with correct asset hash for caching.
-    // you can customize output by editing /index.html
-    // see https://github.com/ampedandwired/html-webpack-plugin
-    new HtmlWebpackPlugin({
-      filename: config.build.index,
-      template: 'index.html',
-      inject: true,
-      favicon: resolve('favicon.ico'),
-      title: 'vue-element-admin',
-      templateParameters: {
-        BASE_URL: config.build.assetsPublicPath + config.build.assetsSubDirectory,
-      },
-      minify: {
-        removeComments: true,
-        collapseWhitespace: true,
-        removeAttributeQuotes: true
-        // more options:
-        // https://github.com/kangax/html-minifier#options-quick-reference
-      }
-      // default sort mode uses toposort which cannot handle cyclic deps
-      // in certain cases, and in webpack 4, chunk order in HTML doesn't
-      // matter anyway
-    }),
-    new ScriptExtHtmlWebpackPlugin({
-      //`runtime` must same as runtimeChunk name. default is `runtime`
-      inline: /runtime\..*\.js$/
-    }),
-    // keep chunk.id stable when chunk has no name
-    new webpack.NamedChunksPlugin(chunk => {
-      if (chunk.name) {
-        return chunk.name
-      }
-      const modules = Array.from(chunk.modulesIterable)
-      if (modules.length > 1) {
-        const hash = require('hash-sum')
-        const joinedHash = hash(modules.map(m => m.id).join('_'))
-        let len = nameLength
-        while (seen.has(joinedHash.substr(0, len))) len++
-        seen.add(joinedHash.substr(0, len))
-        return `chunk-${joinedHash.substr(0, len)}`
-      } else {
-        return modules[0].id
-      }
-    }),
-    // keep module.id stable when vender modules does not change
-    new webpack.HashedModuleIdsPlugin(),
-    // copy custom static assets
-    new CopyWebpackPlugin([
-      {
-        from: path.resolve(__dirname, '../static'),
-        to: config.build.assetsSubDirectory,
-        ignore: ['.*']
-      }
-    ])
-  ],
-  optimization: {
-    splitChunks: {
-      chunks: 'all',
-      cacheGroups: {
-        libs: {
-          name: 'chunk-libs',
-          test: /[\\/]node_modules[\\/]/,
-          priority: 10,
-          chunks: 'initial' // 只打包初始时依赖的第三方
-        },
-        elementUI: {
-          name: 'chunk-elementUI', // 单独将 elementUI 拆包
-          priority: 20, // 权重要大于 libs 和 app 不然会被打包进 libs 或者 app
-          test: /[\\/]node_modules[\\/]element-ui[\\/]/
-        },
-        commons: {
-          name: 'chunk-commons',
-          test: resolve('src/components'), // 可自定义拓展你的规则
-          minChunks: 3, // 最小公用次数
-          priority: 5,
-          reuseExistingChunk: true
-        }
-      }
-    },
-    runtimeChunk: 'single',
-    minimizer: [
-      new UglifyJsPlugin({
-        uglifyOptions: {
-          mangle: {
-            safari10: true
-          }
-        },
-        sourceMap: config.build.productionSourceMap,
-        cache: true,
-        parallel: true
-      }),
-      // Compress extracted CSS. We are using this plugin so that possible
-      // duplicated CSS from different components can be deduped.
-      new OptimizeCSSAssetsPlugin()
-    ]
-  }
-})
-
-if (config.build.productionGzip) {
-  const CompressionWebpackPlugin = require('compression-webpack-plugin')
-
-  webpackConfig.plugins.push(
-    new CompressionWebpackPlugin({
-      asset: '[path].gz[query]',
-      algorithm: 'gzip',
-      test: new RegExp(
-        '\\.(' + config.build.productionGzipExtensions.join('|') + ')$'
-      ),
-      threshold: 10240,
-      minRatio: 0.8
-    })
-  )
-}
-
-if (config.build.generateAnalyzerReport || config.build.bundleAnalyzerReport) {
-  const BundleAnalyzerPlugin = require('webpack-bundle-analyzer')
-    .BundleAnalyzerPlugin
-
-  if (config.build.bundleAnalyzerReport) {
-    webpackConfig.plugins.push(
-      new BundleAnalyzerPlugin({
-        analyzerPort: 8080,
-        generateStatsFile: false
-      })
-    )
-  }
-
-  if (config.build.generateAnalyzerReport) {
-    webpackConfig.plugins.push(
-      new BundleAnalyzerPlugin({
-        analyzerMode: 'static',
-        reportFilename: 'bundle-report.html',
-        openAnalyzer: false
-      })
-    )
-  }
-}
-
-module.exports = webpackConfig

+ 0 - 6
public/static/unimall-admin/config/dep.env.js

@@ -1,6 +0,0 @@
-module.exports = {
-	NODE_ENV: '"production"',
-  ENV_CONFIG: '"dep"',
-  HOST: '"http://localhost:8081"',
-  BASE_API: '"http://localhost:8081/m.api"'
-}

+ 0 - 8
public/static/unimall-admin/config/dev.env.js

@@ -1,8 +0,0 @@
-module.exports = {
-    NODE_ENV: '"development"',
-    ENV_CONFIG: '"dev"',
-    HOST: '"http://192.168.110.138:8183"',
-    BASE_API: '"http://192.168.110.138:8183/m.api"'
-    // HOST: '"https://cardapi.eliangeyun.com"',
-    // BASE_API: '"https://cardapi.eliangeyun.com/m.api"'
-}

+ 0 - 88
public/static/unimall-admin/config/index.js

@@ -1,88 +0,0 @@
-'use strict'
-// Template version: 1.2.6
-// see http://vuejs-templates.github.io/webpack for documentation.
-
-const path = require('path')
-
-module.exports = {
-    dev: {
-        // Paths
-        assetsSubDirectory: 'static',
-        assetsPublicPath: '/',
-        proxyTable: {},
-
-        // Various Dev Server settings
-
-        // can be overwritten by process.env.HOST
-        // if you want dev by ip, please set host: '0.0.0.0'
-        host: '192.168.110.138',
-        port: 9527, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
-        autoOpenBrowser: true,
-        errorOverlay: true,
-        notifyOnErrors: false,
-        poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-
-
-        // Use Eslint Loader?
-        // If true, your code will be linted during bundling and
-        // linting errors and warnings will be shown in the console.
-        useEslint: false,
-        // If true, eslint errors and warnings will also be shown in the error overlay
-        // in the browser.
-        showEslintErrorsInOverlay: false,
-
-        /**
-         * Source Maps
-         */
-
-        // https://webpack.js.org/configuration/devtool/#development
-        devtool: 'source-map',
-
-        // CSS Sourcemaps off by default because relative paths are "buggy"
-        // with this option, according to the CSS-Loader README
-        // (https://github.com/webpack/css-loader#sourcemaps)
-        // In our experience, they generally work as expected,
-        // just be aware of this issue when enabling this option.
-        cssSourceMap: false
-    },
-
-    build: {
-        // Template for index.html
-        index: path.resolve(__dirname, '../dist/index.html'),
-
-        // Paths
-        assetsRoot: path.resolve(__dirname, '../dist'),
-        assetsSubDirectory: 'static',
-
-        /**
-         * You can set by youself according to actual condition
-         * You will need to set this if you plan to deploy your site under a sub path,
-         * for example GitHub pages. If you plan to deploy your site to https://foo.github.io/bar/,
-         * then assetsPublicPath should be set to "/bar/".
-         * In most cases please use '/' !!!
-         */
-        assetsPublicPath: '/',
-
-        /**
-         * Source Maps
-         */
-        productionSourceMap: false,
-        // https://webpack.js.org/configuration/devtool/#production
-        devtool: 'source-map',
-
-        // Gzip off by default as many popular static hosts such as
-        // Surge or Netlify already gzip all static assets for you.
-        // Before setting to `true`, make sure to:
-        // npm install --save-dev compression-webpack-plugin
-        productionGzip: false,
-        productionGzipExtensions: ['js', 'css'],
-
-        // Run the build command with an extra argument to
-        // View the bundle analyzer report after build finishes:
-        // `npm run build:prod --report`
-        // Set to `true` or `false` to always turn it on or off
-        bundleAnalyzerReport: process.env.npm_config_report || false,
-
-        // `npm run build:prod --generate_report`
-        generateAnalyzerReport: process.env.npm_config_generate_report || false
-    }
-}

+ 0 - 6
public/static/unimall-admin/config/prod.env.js

@@ -1,6 +0,0 @@
-module.exports = {
-	NODE_ENV: '"production"',
-  	ENV_CONFIG: '"prod"',
-    HOST: '"https://cardapi.eliangeyun.com"',
-    BASE_API: '"https://cardapi.eliangeyun.com/m.api"'
-}

BIN
public/static/unimall-admin/favicon.ico


+ 0 - 18
public/static/unimall-admin/index.html

@@ -1,18 +0,0 @@
-<!DOCTYPE html>
-<html>
-
-<head>
-    <meta charset="utf-8">
-    <meta name="renderer" content="webkit">
-    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
-    <title>名片后台管理</title>
-</head>
-
-<body>
-    <script src=<%=BASE_URL %>/tinymce4.7.5/tinymce.min.js >
-    </script>
-    <div id="app"></div>
-    <!-- built files will be auto injected -->
-</body>
-
-</html>

+ 0 - 18
public/static/unimall-admin/src/App.vue

@@ -1,18 +0,0 @@
-<template>
-  <div id="app">
-    <router-view/>
-  </div>
-</template>
-
-<script>
-export default{
-  name: 'App'
-}
-</script>
-<style>
-.el-upload--picture-card,.el-upload-list--picture-card .el-upload-list__item{
-  width: 70px;
-  height: 70px;
-  line-height: 70px;
-}
-</style>

+ 0 - 55
public/static/unimall-admin/src/api/admin.js

@@ -1,55 +0,0 @@
-import request from '@/utils/request'
-import Qs from 'qs'
-
-export function listAdmin(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin',
-      _mt: 'list',
-      ...query
-    }
-  })
-}
-
-export function createAdmin(data) {
-  return request({
-    method: 'post',
-    data: Qs.stringify({
-      _gp: 'admin',
-      _mt: 'create',
-      adminDTO: JSON.stringify(data)
-    })
-  })
-}
-
-export function readminAdmin(data) {
-  return request({
-    url: '/admin/readmin',
-    method: 'get',
-    data
-  })
-}
-
-export function updateAdmin(data) {
-  return request({
-    method: 'post',
-    data: Qs.stringify({
-      _gp: 'admin',
-      _mt: 'update',
-      adminDTO: JSON.stringify(data)
-    })
-  })
-}
-
-export function deleteAdmin(id) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin',
-      _mt: 'delete',
-      id: id
-    }
-  })
-}
-

+ 0 - 23
public/static/unimall-admin/src/api/appraise.js

@@ -1,23 +0,0 @@
-import request from '@/utils/request'
-
-export function listAppraise(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.appraise',
-      _mt: 'getAppraiseList',
-      ...query
-    }
-  })
-}
-
-export function deleteAppraise(data) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.appraise',
-      _mt: 'deleteAppraise',
-      ...data
-    }
-  })
-}

+ 0 - 73
public/static/unimall-admin/src/api/card/cardClassifyInfo.js

@@ -1,73 +0,0 @@
-import request from '@/utils/request'
-
-// 查询名片分类列表
-export function listCardClassifyInfo(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.unimall.cardClassifyInfo',
-      _mt: 'list',
-      ...query
-    }
-  })
-}
-
-// 查询名片分类详细
-export function getCardClassifyInfo(id) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.unimall.cardClassifyInfo',
-      _mt: 'get',
-      id: id
-    }
-  })
-}
-
-// 新增名片分类
-export function addCardClassifyInfo(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.unimall.cardClassifyInfo',
-      _mt: 'add',
-      cardClassifyInfo: data
-    }
-  })
-}
-
-// 修改名片分类
-export function updateCardClassifyInfo(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.unimall.cardClassifyInfo',
-      _mt: 'update',
-      cardClassifyInfo: data
-    }
-  })
-}
-
-// 删除名片分类
-export function delCardClassifyInfo(id) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.unimall.cardClassifyInfo',
-      _mt: 'delete',
-      id: id
-    }
-  })
-}
-
-// 导出名片分类
-export function exportCardClassifyInfo(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.unimall.cardClassifyInfo',
-      _mt: 'export',
-      ...query
-    }
-  })
-}

+ 0 - 73
public/static/unimall-admin/src/api/card/cardHolderInfo.js

@@ -1,73 +0,0 @@
-import request from '@/utils/request'
-
-// 查询名片夹列表
-export function listCardHolderInfo(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.unimall.cardHolderInfo',
-      _mt: 'list',
-      ...query
-    }
-  })
-}
-
-// 查询名片夹详细
-export function getCardHolderInfo(id) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.unimall.cardHolderInfo',
-      _mt: 'get',
-      id: id
-    }
-  })
-}
-
-// 新增名片夹
-export function addCardHolderInfo(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.unimall.cardHolderInfo',
-      _mt: 'add',
-      cardHolderInfo: data
-    }
-  })
-}
-
-// 修改名片夹
-export function updateCardHolderInfo(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.unimall.cardHolderInfo',
-      _mt: 'update',
-      cardHolderInfo: data
-    }
-  })
-}
-
-// 删除名片夹
-export function delCardHolderInfo(id) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.unimall.cardHolderInfo',
-      _mt: 'delete',
-      id: id
-    }
-  })
-}
-
-// 导出名片夹
-export function exportCardHolderInfo(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.unimall.cardHolderInfo',
-      _mt: 'export',
-      ...query
-    }
-  })
-}

+ 0 - 73
public/static/unimall-admin/src/api/card/cardManagementInfo.js

@@ -1,73 +0,0 @@
-import request from '@/utils/request'
-
-// 查询名片管理列表
-export function listCardManagementInfo(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.unimall.cardManagementInfo',
-      _mt: 'list',
-      ...query
-    }
-  })
-}
-
-// 查询名片管理详细
-export function getCardManagementInfo(id) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.unimall.cardManagementInfo',
-      _mt: 'get',
-      id: id
-    }
-  })
-}
-
-// 新增名片管理
-export function addCardManagementInfo(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.unimall.cardManagementInfo',
-      _mt: 'add',
-      cardManagementInfo: data
-    }
-  })
-}
-
-// 修改名片管理
-export function updateCardManagementInfo(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.unimall.cardManagementInfo',
-      _mt: 'update',
-      cardManagementInfo: data
-    }
-  })
-}
-
-// 删除名片管理
-export function delCardManagementInfo(id) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.unimall.cardManagementInfo',
-      _mt: 'delete',
-      id: id
-    }
-  })
-}
-
-// 导出名片管理
-export function exportCardManagementInfo(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.unimall.cardManagementInfo',
-      _mt: 'export',
-      ...query
-    }
-  })
-}

+ 0 - 73
public/static/unimall-admin/src/api/card/certificateManagementInfo.js

@@ -1,73 +0,0 @@
-import request from '@/utils/request'
-
-// 查询证件管理列表
-export function listCertificateManagementInfo(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.unimall.certificateManagementInfo',
-      _mt: 'list',
-      ...query
-    }
-  })
-}
-
-// 查询证件管理详细
-export function getCertificateManagementInfo(id) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.unimall.certificateManagementInfo',
-      _mt: 'get',
-      id: id
-    }
-  })
-}
-
-// 新增证件管理
-export function addCertificateManagementInfo(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.unimall.certificateManagementInfo',
-      _mt: 'add',
-      certificateManagementInfo: data
-    }
-  })
-}
-
-// 修改证件管理
-export function updateCertificateManagementInfo(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.unimall.certificateManagementInfo',
-      _mt: 'update',
-      certificateManagementInfo: data
-    }
-  })
-}
-
-// 删除证件管理
-export function delCertificateManagementInfo(id) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.unimall.certificateManagementInfo',
-      _mt: 'delete',
-      id: id
-    }
-  })
-}
-
-// 导出证件管理
-export function exportCertificateManagementInfo(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.unimall.certificateManagementInfo',
-      _mt: 'export',
-      ...query
-    }
-  })
-}

+ 0 - 73
public/static/unimall-admin/src/api/card/circleCardInfo.js

@@ -1,73 +0,0 @@
-import request from '@/utils/request'
-
-// 查询圈子个人关系列表
-export function listCircleCardInfo(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.unimall.circleCardInfo',
-      _mt: 'list',
-      ...query
-    }
-  })
-}
-
-// 查询圈子个人关系详细
-export function getCircleCardInfo(comId) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.unimall.circleCardInfo',
-      _mt: 'get',
-      comId: comId
-    }
-  })
-}
-
-// 新增圈子个人关系
-export function addCircleCardInfo(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.unimall.circleCardInfo',
-      _mt: 'add',
-      circleCardInfo: data
-    }
-  })
-}
-
-// 修改圈子个人关系
-export function updateCircleCardInfo(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.unimall.circleCardInfo',
-      _mt: 'update',
-      circleCardInfo: data
-    }
-  })
-}
-
-// 删除圈子个人关系
-export function delCircleCardInfo(comId) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.unimall.circleCardInfo',
-      _mt: 'delete',
-      comId: comId
-    }
-  })
-}
-
-// 导出圈子个人关系
-export function exportCircleCardInfo(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.unimall.circleCardInfo',
-      _mt: 'export',
-      ...query
-    }
-  })
-}

+ 0 - 86
public/static/unimall-admin/src/api/card/circleManagementInfo.js

@@ -1,86 +0,0 @@
-import request from '@/utils/request'
-
-// 查询圈子管理列表
-export function listCircleManagementInfo(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.unimall.circleManagementInfo',
-      _mt: 'list',
-      ...query
-    }
-  })
-}
-
-// 查询圈子管理详细
-export function getCircleManagementInfo(id) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.unimall.circleManagementInfo',
-      _mt: 'get',
-      id: id
-    }
-  })
-}
-
-// 新增圈子管理
-export function addCircleManagementInfo(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.unimall.circleManagementInfo',
-      _mt: 'add',
-      circleManagementInfo: data
-    }
-  })
-}
-
-// 修改圈子管理
-export function updateCircleManagementInfo(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.unimall.circleManagementInfo',
-      _mt: 'update',
-      circleManagementInfo: data
-    }
-  })
-}
-
-// 删除圈子管理
-export function delCircleManagementInfo(id) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.unimall.circleManagementInfo',
-      _mt: 'delete',
-      id: id
-    }
-  })
-}
-
-// 导出圈子管理
-export function exportCircleManagementInfo(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.unimall.circleManagementInfo',
-      _mt: 'export',
-      ...query
-    }
-  })
-}
-
-// 审核
-
-export function circleManagementInfoHandle(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.unimall.circleManagementInfo',
-      _mt: 'handle',
-      circleManagementInfo: data
-    }
-  })
-}

+ 0 - 87
public/static/unimall-admin/src/api/card/commonUserInfo.js

@@ -1,87 +0,0 @@
-import request from '@/utils/request'
-import Qs from 'qs'
-// 查询用户管理列表
-export function listCommonUserInfo(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.unimall.commonUserInfo',
-      _mt: 'list',
-      ...query
-    }
-  })
-}
-
-// 查询用户管理详细
-export function getCommonUserInfo(id) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.unimall.commonUserInfo',
-      _mt: 'get',
-      id: id
-    }
-  })
-}
-
-// 新增用户管理
-export function addCommonUserInfo(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.unimall.commonUserInfo',
-      _mt: 'add',
-      commonUserInfo: data
-    }
-  })
-}
-
-// 发送消息
-export function userSendMsg(query) {
-  return request({
-    method: 'post',
-    data: Qs.stringify({
-      _gp: 'admin.unimall.cardNewsInfo',
-      _mt: 'add',
-      cardNewsInfo: JSON.stringify(query)
-    })
-  })
-}
-
-
-
-// 修改用户管理
-export function updateCommonUserInfo(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.unimall.commonUserInfo',
-      _mt: 'update',
-      commonUserInfo: data
-    }
-  })
-}
-
-// 删除用户管理
-export function delCommonUserInfo(id) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.unimall.commonUserInfo',
-      _mt: 'delete',
-      id: id
-    }
-  })
-}
-
-// 导出用户管理
-export function exportCommonUserInfo(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.unimall.commonUserInfo',
-      _mt: 'export',
-      ...query
-    }
-  })
-}

+ 0 - 73
public/static/unimall-admin/src/api/card/info.js

@@ -1,73 +0,0 @@
-import request from '@/utils/request'
-
-// 查询名片交换列表
-export function listInfo(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.unimall.cardNewsInfo',
-      _mt: 'list',
-      ...query
-    }
-  })
-}
-
-// 查询名片交换详细
-export function getInfo(id) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.unimall.cardExchangeInfo',
-      _mt: 'get',
-      id: id
-    }
-  })
-}
-
-// 新增名片交换
-export function addInfo(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.unimall.cardExchangeInfo',
-      _mt: 'add',
-      cardExchangeInfo: data
-    }
-  })
-}
-
-// 修改名片交换
-export function updateInfo(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.unimall.cardExchangeInfo',
-      _mt: 'update',
-      cardExchangeInfo: data
-    }
-  })
-}
-
-// 删除名片交换
-export function delInfo(id) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.unimall.cardExchangeInfo',
-      _mt: 'delete',
-      id: id
-    }
-  })
-}
-
-// 导出名片交换
-export function exportInfo(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.unimall.cardExchangeInfo',
-      _mt: 'export',
-      ...query
-    }
-  })
-}

+ 0 - 73
public/static/unimall-admin/src/api/card/personalHomepageInfo.js

@@ -1,73 +0,0 @@
-import request from '@/utils/request'
-
-// 查询个人主页列表
-export function listPersonalHomepageInfo(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.unimall.personalHomepageInfo',
-      _mt: 'list',
-      ...query
-    }
-  })
-}
-
-// 查询个人主页详细
-export function getPersonalHomepageInfo(id) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.unimall.personalHomepageInfo',
-      _mt: 'get',
-      id: id
-    }
-  })
-}
-
-// 新增个人主页
-export function addPersonalHomepageInfo(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.unimall.personalHomepageInfo',
-      _mt: 'add',
-      personalHomepageInfo: data
-    }
-  })
-}
-
-// 修改个人主页
-export function updatePersonalHomepageInfo(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.unimall.personalHomepageInfo',
-      _mt: 'update',
-      personalHomepageInfo: data
-    }
-  })
-}
-
-// 删除个人主页
-export function delPersonalHomepageInfo(id) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.unimall.personalHomepageInfo',
-      _mt: 'delete',
-      id: id
-    }
-  })
-}
-
-// 导出个人主页
-export function exportPersonalHomepageInfo(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.unimall.personalHomepageInfo',
-      _mt: 'export',
-      ...query
-    }
-  })
-}

+ 0 - 66
public/static/unimall-admin/src/api/category.js

@@ -1,66 +0,0 @@
-import request from '@/utils/request'
-import Qs from 'qs'
-
-export function categorySecondLevelTree() {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.category',
-      _mt: 'categorySecondLevelTree'
-    }
-  })
-}
-
-export function categoryTree() {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.category',
-      _mt: 'categoryTree'
-    }
-  })
-}
-
-export function listCategory(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.category',
-      _mt: 'queryCategory',
-      ...query
-    }
-  })
-}
-
-export function createCategory(data) {
-  return request({
-    method: 'post',
-    data: Qs.stringify({
-      _gp: 'admin.category',
-      _mt: 'addCategory',
-      ...data
-    })
-  })
-}
-
-export function updateCategory(data) {
-  return request({
-    method: 'post',
-    data: Qs.stringify({
-      _gp: 'admin.category',
-      _mt: 'updateCategory',
-      ...data
-    })
-  })
-}
-
-export function deleteCategory(id) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.category',
-      _mt: 'deleteCategory',
-      id: id
-    }
-  })
-}

+ 0 - 58
public/static/unimall-admin/src/api/coupon.js

@@ -1,58 +0,0 @@
-import request from '@/utils/request'
-import Qs from 'qs'
-
-export function listCoupon(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.coupon',
-      _mt: 'queryCouponByTitle',
-      ...query
-    }
-  })
-}
-
-export function createCoupon(data) {
-  return request({
-    method: 'post',
-    data: Qs.stringify({
-      _gp: 'admin.coupon',
-      _mt: 'addCoupon',
-      ...data
-    })
-  })
-}
-
-export function updateCoupon(data) {
-  return request({
-    method: 'post',
-    data: Qs.stringify({
-      _gp: 'admin.coupon',
-      _mt: 'updateCoupon',
-      ...data
-    })
-  })
-}
-
-export function activeCoupon(data) {
-  return request({
-    method: 'post',
-    data: Qs.stringify({
-      _gp: 'admin.coupon',
-      _mt: 'updateCouponStatus',
-      ...data
-    })
-  })
-}
-
-export function deleteCoupon(data) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.coupon',
-      _mt: 'deleteCoupon',
-      ...data
-    }
-  })
-}
-

+ 0 - 11
public/static/unimall-admin/src/api/dashboard.js

@@ -1,11 +0,0 @@
-import request from '@/utils/request'
-
-export function info() {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.dashboard',
-      _mt: 'integral'
-    }
-  })
-}

+ 0 - 47
public/static/unimall-admin/src/api/freight.js

@@ -1,47 +0,0 @@
-import request from '@/utils/request'
-import Qs from 'qs'
-
-export function listFreight(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.freight',
-      _mt: 'getAllFreightTemplate'
-    }
-  })
-}
-
-export function createFreight(query) {
-  return request({
-    method: 'post',
-    data: Qs.stringify({
-      _gp: 'admin.freight',
-      _mt: 'addFreightTemplate',
-      ...query,
-      freightTemplateCarriageDOList: JSON.stringify(query.freightTemplateCarriageDOList)
-    })
-  })
-}
-
-export function deleteFreight(query) {
-  return request({
-    method: 'post',
-    data: Qs.stringify({
-      _gp: 'admin.freight',
-      _mt: 'deleteFreightTemplate',
-      templateId: query
-    })
-  })
-}
-
-export function updateFreight(query) {
-  return request({
-    method: 'post',
-    data: Qs.stringify({
-      _gp: 'admin.freight',
-      _mt: 'updateFreightTemplate',
-      ...query,
-      freightTemplateCarriageDOList: JSON.stringify(query.freightTemplateCarriageDOList)
-    })
-  })
-}

+ 0 - 79
public/static/unimall-admin/src/api/goods.js

@@ -1,79 +0,0 @@
-import request from '@/utils/request'
-import Qs from 'qs'
-
-export function spuTree() {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.goods',
-      _mt: 'getSpuBigTree'
-    }
-  })
-}
-
-export function listGoods(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.goods',
-      _mt: 'list',
-      ...query
-    }
-  })
-}
-
-export function editGoods(data) {
-  return request({
-    method: 'post',
-    data: Qs.stringify({
-      _gp: 'admin.goods',
-      _mt: 'edit',
-      spuDTO: JSON.stringify(data)
-    })
-  })
-}
-
-export function deleteGoods(id) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.goods',
-      _mt: 'delete',
-      spuId: id
-    }
-  })
-}
-
-export function createGoods(data) {
-  return request({
-    method: 'post',
-    data: Qs.stringify({
-      _gp: 'admin.goods',
-      _mt: 'create',
-      spuDTO: JSON.stringify(data)
-    })
-  })
-}
-
-export function detailGoods(id) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.goods',
-      _mt: 'detail',
-      spuId: id
-    }
-  })
-}
-
-export function freezeOrActivtion(id, status) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.goods',
-      _mt: 'freezeOrActivation',
-      spuId: id,
-      status: status
-    }
-  })
-}

+ 0 - 46
public/static/unimall-admin/src/api/group_shop.js

@@ -1,46 +0,0 @@
-import request from '@/utils/request'
-import Qs from 'qs'
-
-export function queryGroupShop(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.groupShop',
-      _mt: 'queryGroupShop',
-      ...query
-    }
-  })
-}
-
-export function editGroupShop(data) {
-  return request({
-    method: 'post',
-    data: Qs.stringify({
-      _gp: 'admin.groupShop',
-      _mt: 'editGroupShopSpu',
-      ...data
-    })
-  })
-}
-
-export function deleteGroupShop(id) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.groupShop',
-      _mt: 'deleteGroupShopSpu',
-      id: id
-    }
-  })
-}
-
-export function createGroupShop(data) {
-  return request({
-    method: 'post',
-    data: Qs.stringify({
-      _gp: 'admin.groupShop',
-      _mt: 'addGroupShopSpu',
-      ...data
-    })
-  })
-}

+ 0 - 48
public/static/unimall-admin/src/api/log/logininfor.js

@@ -1,48 +0,0 @@
-import request from '@/utils/request'
-
-// 查询登录日志列表
-export function list(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.log.logininfor',
-      _mt: 'list',
-      ...query
-    }
-  })
-}
-
-// 删除登录日志
-export function delLogininfor(infoId) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.log.logininfor',
-      _mt: 'delete',
-      infoIds: infoId
-    }
-  })
-}
-
-// 清空登录日志
-export function cleanLogininfor() {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.log.logininfor',
-      _mt: 'clean'
-    }
-  })
-}
-
-// 导出登录日志
-export function exportLogininfor(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.log.logininfor',
-      _mt: 'export',
-      ...query
-    }
-  })
-}

+ 0 - 48
public/static/unimall-admin/src/api/log/operlog.js

@@ -1,48 +0,0 @@
-import request from '@/utils/request'
-
-// 查询操作日志列表
-export function list(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.log.operlog',
-      _mt: 'list',
-      ...query
-    }
-  })
-}
-
-// 删除操作日志
-export function delOperlog(operIds) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.log.operlog',
-      _mt: 'delete',
-      operIds: operIds
-    }
-  })
-}
-
-// 清空操作日志
-export function cleanOperlog() {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.log.operlog',
-      _mt: 'clean'
-    }
-  })
-}
-
-// 导出操作日志
-export function exportOperlog(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.log.operlog',
-      _mt: 'export',
-      ...query
-    }
-  })
-}

+ 0 - 50
public/static/unimall-admin/src/api/login.js

@@ -1,50 +0,0 @@
-import request from '@/utils/request'
-import Qs from 'qs'
-
-export function loginByUsername(username, password, verifyCode) {
-  const data = {
-    username,
-    password,
-    verifyCode
-  }
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin',
-      _mt: 'login',
-      ...data
-    }
-  })
-}
-
-export function sendMsg(data) {
-  return request({
-    method: 'post',
-    data: Qs.stringify({
-      _gp: 'admin',
-      _mt: 'sendLoginMsg',
-      ...data
-    })
-  })
-}
-
-export function logout() {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin',
-      _mt: 'logout'
-    }
-  })
-}
-
-export function getUserInfo() {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin',
-      _mt: 'info'
-    }
-  })
-}
-

+ 0 - 73
public/static/unimall-admin/src/api/market/address.js

@@ -1,73 +0,0 @@
-import request from '@/utils/request'
-
-// 查询收货地址列表
-export function listAddress(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.unimall.marketReceivingAddress',
-      _mt: 'list',
-      ...query
-    }
-  })
-}
-
-// 查询收货地址详细
-export function getAddress(id) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.unimall.marketReceivingAddress',
-      _mt: 'get',
-      id: id
-    }
-  })
-}
-
-// 新增收货地址
-export function addAddress(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.unimall.marketReceivingAddress',
-      _mt: 'add',
-      marketReceivingAddress: data
-    }
-  })
-}
-
-// 修改收货地址
-export function updateAddress(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.unimall.marketReceivingAddress',
-      _mt: 'update',
-      marketReceivingAddress: data
-    }
-  })
-}
-
-// 删除收货地址
-export function delAddress(id) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.unimall.marketReceivingAddress',
-      _mt: 'delete',
-      id: id
-    }
-  })
-}
-
-// 导出收货地址
-export function exportAddress(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.unimall.marketReceivingAddress',
-      _mt: 'export',
-      ...query
-    }
-  })
-}

+ 0 - 73
public/static/unimall-admin/src/api/market/advertisement.js

@@ -1,73 +0,0 @@
-import request from '@/utils/request'
-
-// 查询广告信息列表
-export function listAdvertisement(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.market.marketAdvertisementInfo',
-      _mt: 'list',
-      ...query
-    }
-  })
-}
-
-// 查询广告信息详细
-export function getAdvertisement(id) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.market.marketAdvertisementInfo',
-      _mt: 'get',
-      id: id
-    }
-  })
-}
-
-// 新增广告信息
-export function addAdvertisement(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.market.marketAdvertisementInfo',
-      _mt: 'add',
-      marketAdvertisementInfo: data
-    }
-  })
-}
-
-// 修改广告信息
-export function updateAdvertisement(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.market.marketAdvertisementInfo',
-      _mt: 'update',
-      marketAdvertisementInfo: data
-    }
-  })
-}
-
-// 删除广告信息
-export function delAdvertisement(id) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.market.marketAdvertisementInfo',
-      _mt: 'delete',
-      id: id
-    }
-  })
-}
-
-// 导出广告信息
-export function exportAdvertisement(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.market.marketAdvertisementInfo',
-      _mt: 'export',
-      ...query
-    }
-  })
-}

+ 0 - 73
public/static/unimall-admin/src/api/market/case.js

@@ -1,73 +0,0 @@
-import request from '@/utils/request'
-
-// 查询关注列表
-export function listCase(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.unimall.marketCase',
-      _mt: 'list',
-      ...query
-    }
-  })
-}
-
-// 查询关注详细
-export function getCase(id) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.unimall.marketCase',
-      _mt: 'get',
-      id: id
-    }
-  })
-}
-
-// 新增关注
-export function addCase(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.unimall.marketCase',
-      _mt: 'add',
-      marketCase: data
-    }
-  })
-}
-
-// 修改关注
-export function updateCase(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.unimall.marketCase',
-      _mt: 'update',
-      marketCase: data
-    }
-  })
-}
-
-// 删除关注
-export function delCase(id) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.unimall.marketCase',
-      _mt: 'delete',
-      id: id
-    }
-  })
-}
-
-// 导出关注
-export function exportCase(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.unimall.marketCase',
-      _mt: 'export',
-      ...query
-    }
-  })
-}

+ 0 - 74
public/static/unimall-admin/src/api/market/circle.js

@@ -1,74 +0,0 @@
-import request from '@/utils/request'
-import Qs from 'qs'
-
-// 查询生鲜圈列表
-export function listCircle(query) {
-    return request({
-        method: 'get',
-        params: {
-            _gp: 'admin.market.marketCircleInfo',
-            _mt: 'list',
-            ...query
-        }
-    })
-}
-
-// 查询生鲜圈详细
-export function getCircle(id) {
-    return request({
-        method: 'get',
-        params: {
-            _gp: 'admin.market.marketCircleInfo',
-            _mt: 'get',
-            id: id
-        }
-    })
-}
-
-// 新增生鲜圈
-export function addCircle(data) {
-    return request({
-        method: 'post',
-        data: Qs.stringify({
-            _gp: 'admin.market.marketCircleInfo',
-            _mt: 'add',
-            marketCircleInfo: JSON.stringify(data)
-        })
-    })
-}
-
-// 修改生鲜圈
-export function updateCircle(data) {
-    return request({
-        method: 'post',
-        data: Qs.stringify({
-            _gp: 'admin.market.marketCircleInfo',
-            _mt: 'update',
-            marketCircleInfo: JSON.stringify(data)
-        })
-    })
-}
-
-// 删除生鲜圈
-export function delCircle(id) {
-    return request({
-        method: 'post',
-        params: {
-            _gp: 'admin.market.marketCircleInfo',
-            _mt: 'delete',
-            id: id
-        }
-    })
-}
-
-// 导出生鲜圈
-export function exportCircle(query) {
-    return request({
-        method: 'get',
-        params: {
-            _gp: 'admin.market.marketCircleInfo',
-            _mt: 'export',
-            ...query
-        }
-    })
-}

+ 0 - 73
public/static/unimall-admin/src/api/market/orderDetail.js

@@ -1,73 +0,0 @@
-import request from '@/utils/request'
-
-// 查询订单详情列表
-export function listOrderDetail(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.unimall.marketOrderDetail',
-      _mt: 'list',
-      ...query
-    }
-  })
-}
-
-// 查询订单详情详细
-export function getOrderDetail(id) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.unimall.marketOrderDetail',
-      _mt: 'get',
-      id: id
-    }
-  })
-}
-
-// 新增订单详情
-export function addOrderDetail(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.unimall.marketOrderDetail',
-      _mt: 'add',
-      marketOrderDetail: data
-    }
-  })
-}
-
-// 修改订单详情
-export function updateOrderDetail(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.unimall.marketOrderDetail',
-      _mt: 'update',
-      marketOrderDetail: data
-    }
-  })
-}
-
-// 删除订单详情
-export function delOrderDetail(id) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.unimall.marketOrderDetail',
-      _mt: 'delete',
-      id: id
-    }
-  })
-}
-
-// 导出订单详情
-export function exportOrderDetail(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.unimall.marketOrderDetail',
-      _mt: 'export',
-      ...query
-    }
-  })
-}

+ 0 - 73
public/static/unimall-admin/src/api/market/orderInfo.js

@@ -1,73 +0,0 @@
-import request from '@/utils/request'
-
-// 查询订单信息列表
-export function listOrderInfo(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.unimall.marketOrderInfo',
-      _mt: 'list',
-      ...query
-    }
-  })
-}
-
-// 查询订单信息详细
-export function getOrderInfo(id) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.unimall.marketOrderInfo',
-      _mt: 'get',
-      id: id
-    }
-  })
-}
-
-// 新增订单信息
-export function addOrderInfo(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.unimall.marketOrderInfo',
-      _mt: 'add',
-      marketOrderInfo: data
-    }
-  })
-}
-
-// 修改订单信息
-export function updateOrderInfo(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.unimall.marketOrderInfo',
-      _mt: 'update',
-      marketOrderInfo: data
-    }
-  })
-}
-
-// 删除订单信息
-export function delOrderInfo(id) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.unimall.marketOrderInfo',
-      _mt: 'delete',
-      id: id
-    }
-  })
-}
-
-// 导出订单信息
-export function exportOrderInfo(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.unimall.marketOrderInfo',
-      _mt: 'export',
-      ...query
-    }
-  })
-}

+ 0 - 73
public/static/unimall-admin/src/api/market/prodectInfo.js

@@ -1,73 +0,0 @@
-import request from '@/utils/request'
-
-// 查询商品信息列表
-export function listProdectInfo(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.unimall.marketProdectInfo',
-      _mt: 'list',
-      ...query
-    }
-  })
-}
-
-// 查询商品信息详细
-export function getProdectInfo(id) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.unimall.marketProdectInfo',
-      _mt: 'get',
-      id: id
-    }
-  })
-}
-
-// 新增商品信息
-export function addProdectInfo(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.unimall.marketProdectInfo',
-      _mt: 'add',
-      marketProdectInfo: data
-    }
-  })
-}
-
-// 修改商品信息
-export function updateProdectInfo(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.unimall.marketProdectInfo',
-      _mt: 'update',
-      marketProdectInfo: data
-    }
-  })
-}
-
-// 删除商品信息
-export function delProdectInfo(id) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.unimall.marketProdectInfo',
-      _mt: 'delete',
-      id: id
-    }
-  })
-}
-
-// 导出商品信息
-export function exportProdectInfo(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.unimall.marketProdectInfo',
-      _mt: 'export',
-      ...query
-    }
-  })
-}

+ 0 - 73
public/static/unimall-admin/src/api/market/shopInfo.js

@@ -1,73 +0,0 @@
-import request from '@/utils/request'
-
-// 查询商店信息列表
-export function listShopInfo(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.unimall.marketShopInfo',
-      _mt: 'list',
-      ...query
-    }
-  })
-}
-
-// 查询商店信息详细
-export function getShopInfo(id) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.unimall.marketShopInfo',
-      _mt: 'get',
-      id: id
-    }
-  })
-}
-
-// 新增商店信息
-export function addShopInfo(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.unimall.marketShopInfo',
-      _mt: 'add',
-      marketShopInfo: data
-    }
-  })
-}
-
-// 修改商店信息
-export function updateShopInfo(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.unimall.marketShopInfo',
-      _mt: 'update',
-      marketShopInfo: data
-    }
-  })
-}
-
-// 删除商店信息
-export function delShopInfo(id) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.unimall.marketShopInfo',
-      _mt: 'delete',
-      id: id
-    }
-  })
-}
-
-// 导出商店信息
-export function exportShopInfo(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.unimall.marketShopInfo',
-      _mt: 'export',
-      ...query
-    }
-  })
-}

+ 0 - 24
public/static/unimall-admin/src/api/merchant.js

@@ -1,24 +0,0 @@
-import request from '@/utils/request'
-import Qs from 'qs'
-
-export function listMerchant(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.merchant',
-      _mt: 'getMerchant',
-      ...query
-    }
-  })
-}
-
-export function updateMerchant(data) {
-  return request({
-    method: 'post',
-    data: Qs.stringify({
-      _gp: 'admin.merchant',
-      _mt: 'updateMerchant',
-      ...data
-    })
-  })
-}

+ 0 - 91
public/static/unimall-admin/src/api/merchantad.js

@@ -1,91 +0,0 @@
-import request from '@/utils/request'
-import Qs from 'qs'
-
-export function listAd(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.advertisement',
-      _mt: 'queryAdvertisement',
-      ...query
-    }
-  })
-}
-
-export function createAd(data) {
-  return request({
-    method: 'post',
-    data: Qs.stringify({
-      _gp: 'admin.advertisement',
-      _mt: 'addAdvertisement',
-      ...data
-    })
-  })
-}
-
-// export function readAd(data) {
-//   return request({
-//     url: '/ad/read',
-//     method: 'get',
-//     data
-//   })
-// }
-
-export function updateAd(data) {
-  return request({
-    method: 'post',
-    data: Qs.stringify({
-      _gp: 'admin.advertisement',
-      _mt: 'updateAdvertisement',
-      ...data,
-      adId: data.id
-    })
-  })
-}
-
-export function deleteAd(id, adType) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.advertisement',
-      _mt: 'deleteAdvertisement',
-      adId: id,
-      adType: adType
-    }
-  })
-}
-
-export function getImageColor(canvas, img) {
-  canvas.width = img.width
-  canvas.height = img.height
-
-  var context = canvas.getContext('2d')
-
-  context.drawImage(img, 0, 0)
-
-  // 获取像素数据
-  var data = context.getImageData(0, 0, img.width, img.height).data
-
-  var r, g, b
-  r = g = b = 0
-  // 取所有像素的平均值
-  for (var row = 0; row < img.height; row++) {
-    for (var col = 0; col < img.width; col++) {
-      r += data[((img.width * row) + col) * 4]
-      g += data[((img.width * row) + col) * 4 + 1]
-      b += data[((img.width * row) + col) * 4 + 2]
-    }
-  }
-  // 求取平均值
-  r /= (img.width * img.height)
-  g /= (img.width * img.height)
-  b /= (img.width * img.height)
-
-  // 将最终的值取整
-  r = Math.round(r)
-  g = Math.round(g)
-  b = Math.round(b)
-
-  return 'rgb(' + r + ',' + g + ',' + b + ')'
-}
-

+ 0 - 24
public/static/unimall-admin/src/api/monitor/online.js

@@ -1,24 +0,0 @@
-import request from '@/utils/request'
-
-// 查询在线用户列表
-export function list() {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.monitor.online',
-      _mt: 'list'
-    }
-  })
-}
-
-// 强退用户
-export function forceLogout(tokenId) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.monitor.online',
-      _mt: 'forceLogout',
-      tokenId: tokenId
-    }
-  })
-}

+ 0 - 12
public/static/unimall-admin/src/api/monitor/server.js

@@ -1,12 +0,0 @@
-import request from '@/utils/request'
-
-// 查询服务器详细
-export function getServer() {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.monitor.server',
-      _mt: 'getInfo'
-    }
-  })
-}

+ 0 - 56
public/static/unimall-admin/src/api/order.js

@@ -1,56 +0,0 @@
-import request from '@/utils/request'
-
-export function listOrder(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.order',
-      _mt: 'list',
-      ...query
-    }
-  })
-}
-
-export function detailOrder(orderId) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.order',
-      _mt: 'detail',
-      orderId
-    }
-  })
-}
-
-export function shipOrder(shipForm) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.order',
-      _mt: 'ship',
-      ...shipForm
-    }
-  })
-}
-
-export function refundOrder(refundForm) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.order',
-      _mt: 'refund',
-      ...refundForm
-    }
-  })
-}
-
-export function getExcelInfo(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.order',
-      _mt: 'queryToExcel',
-      ...data
-    }
-  })
-}

+ 0 - 12
public/static/unimall-admin/src/api/profile.js

@@ -1,12 +0,0 @@
-import request from '@/utils/request'
-
-export function changePassword(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin',
-      _mt: 'newPassword',
-      ...data
-    }
-  })
-}

+ 0 - 47
public/static/unimall-admin/src/api/recommend.js

@@ -1,47 +0,0 @@
-import request from '@/utils/request'
-import Qs from 'qs'
-
-export function listRecommend(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.recommend',
-      _mt: 'queryRecommendByType',
-      ...query
-    }
-  })
-}
-
-export function createRecommend(data) {
-  return request({
-    method: 'post',
-    data: Qs.stringify({
-      _gp: 'admin.recommend',
-      _mt: 'addRecommend',
-      ...data
-    })
-  })
-}
-
-export function updateRecommend(data) {
-  return request({
-    method: 'post',
-    data: Qs.stringify({
-      _gp: 'admin.advertisement',
-      _mt: 'addAdvertisement',
-      ...data
-    })
-  })
-}
-
-export function deleteRecommend(id, recommendType) {
-  return request({
-    method: 'post',
-    data: Qs.stringify({
-      _gp: 'admin.recommend',
-      _mt: 'deleteRecommend',
-      id: id,
-      recommendType: recommendType
-    })
-  })
-}

+ 0 - 78
public/static/unimall-admin/src/api/role.js

@@ -1,78 +0,0 @@
-import request from '@/utils/request'
-import Qs from 'qs'
-
-export function listRole(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.role',
-      _mt: 'list',
-      ...query
-    }
-  })
-}
-
-export function createRole(data) {
-  return request({
-    method: 'post',
-    data: Qs.stringify({
-      _gp: 'admin.role',
-      _mt: 'create',
-      role: JSON.stringify(data)
-    })
-  })
-}
-
-export function updateRole(data) {
-  return request({
-    method: 'post',
-    data: Qs.stringify({
-      _gp: 'admin.role',
-      _mt: 'update',
-      role: JSON.stringify(data)
-    })
-  })
-}
-
-export function deleteRole(id) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.role',
-      _mt: 'delete',
-      roleId: id
-    }
-  })
-}
-
-export function getPermission(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.role',
-      _mt: 'permissionList',
-      ...query
-    }
-  })
-}
-
-export function updatePermission(data) {
-  return request({
-    method: 'post',
-    data: Qs.stringify({
-      _gp: 'admin.role',
-      _mt: 'permissionSet',
-      roleSetPermissionDTO: JSON.stringify(data)
-    })
-  })
-}
-
-export function roleOptions(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.role',
-      _mt: 'options'
-    }
-  })
-}

+ 0 - 11
public/static/unimall-admin/src/api/storage.js

@@ -1,11 +0,0 @@
-import request from '@/utils/request'
-const uploadPath = process.env.HOST + '/upload/admin'
-export { uploadPath }
-
-export function createStorage(data) {
-  return request({
-    url: uploadPath,
-    method: 'post',
-    data
-  })
-}

+ 0 - 74
public/static/unimall-admin/src/api/sys/dict/data.js

@@ -1,74 +0,0 @@
-import request from '@/utils/request'
-
-// 查询字典数据列表
-export function listData(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.dictData',
-      _mt: 'list',
-      ...query
-    }
-  })
-}
-
-// 查询字典数据详细
-export function getData(dictCode) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.dictData',
-      _mt: 'get',
-      dictCode: dictCode
-    }
-  })
-}
-
-// 根据字典类型查询字典数据信息
-export function getDicts(dictType) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.dictData',
-      _mt: 'selectDictDataByType',
-      dictType: dictType
-    }
-  })
-}
-
-// 新增字典数据
-export function addData(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.dictData',
-      _mt: 'add',
-      dictData: data
-    }
-  })
-}
-
-// 修改字典数据
-export function updateData(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.dictData',
-      _mt: 'update',
-      dictData: data
-    }
-  })
-}
-
-// 删除字典数据
-export function delData(dictCodes) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.dictData',
-      _mt: 'delete',
-      dictCodes: dictCodes
-    }
-  })
-}
-

+ 0 - 72
public/static/unimall-admin/src/api/sys/dict/type.js

@@ -1,72 +0,0 @@
-import request from '@/utils/request'
-
-// 查询字典类型列表
-export function listType(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.dictType',
-      _mt: 'list',
-      ...query
-    }
-  })
-}
-
-// 查询字典类型详细
-export function getType(dictId) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.dictType',
-      _mt: 'get',
-      dictId: dictId
-    }
-  })
-}
-
-// 新增字典类型
-export function addType(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.dictType',
-      _mt: 'add',
-      dictType: JSON.stringify(data)
-    }
-  })
-}
-
-// 修改字典类型
-export function updateType(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.dictType',
-      _mt: 'update',
-      dictType: JSON.stringify(data)
-    }
-  })
-}
-
-// 删除字典类型
-export function delType(dictIds) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.dictType',
-      _mt: 'delete',
-      dictIds: dictIds
-    }
-  })
-}
-
-// 获取字典选择框列表
-export function optionselect() {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.dictType',
-      _mt: 'optionselect'
-    }
-  })
-}

+ 0 - 93
public/static/unimall-admin/src/api/tool/gen.js

@@ -1,93 +0,0 @@
-import request from '@/utils/request'
-
-// 查询生成表数据
-export function listTable(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.tools.gen',
-      _mt: 'list',
-      ...query
-    }
-  })
-}
-// 查询db数据库列表
-export function listDbTable(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.tools.gen',
-      _mt: 'getDbList',
-      ...query
-    }
-  })
-}
-
-// 查询表详细信息
-export function getGenTable(tableId) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.tools.gen',
-      _mt: 'get',
-      id: tableId
-    }
-  })
-}
-
-// 修改代码生成信息
-export function updateGenTable(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.tools.gen',
-      _mt: 'update',
-      genTable: data
-    }
-  })
-}
-// 修改代码生成字段信息
-export function updateGenTableColumns(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.tools.gen',
-      _mt: 'updateColumn',
-      genTableColumn: data
-    }
-  })
-}
-// 导入表
-export function importTable(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.tools.gen',
-      _mt: 'importTableSave',
-      ...data
-    }
-  })
-}
-// 预览生成代码
-export function previewTable(tableId) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.tools.gen',
-      _mt: 'preview',
-      tableId: tableId
-    }
-  })
-}
-// 删除表数据
-export function delTable(tableIds) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.tools.gen',
-      _mt: 'delete',
-      tableIds: tableIds
-    }
-  })
-}
-

+ 0 - 73
public/static/unimall-admin/src/api/tourism/dishClassifyInfo.js

@@ -1,73 +0,0 @@
-import request from '@/utils/request'
-
-// 查询菜品分类列表
-export function listDishClassifyInfo(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.tourism.dishClassifyInfo',
-      _mt: 'list',
-      ...query
-    }
-  })
-}
-
-// 查询菜品分类详细
-export function getDishClassifyInfo(id) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.tourism.dishClassifyInfo',
-      _mt: 'get',
-      id: id
-    }
-  })
-}
-
-// 新增菜品分类
-export function addDishClassifyInfo(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.tourism.dishClassifyInfo',
-      _mt: 'add',
-      dishClassifyInfo: data
-    }
-  })
-}
-
-// 修改菜品分类
-export function updateDishClassifyInfo(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.tourism.dishClassifyInfo',
-      _mt: 'update',
-      dishClassifyInfo: data
-    }
-  })
-}
-
-// 删除菜品分类
-export function delDishClassifyInfo(id) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.tourism.dishClassifyInfo',
-      _mt: 'delete',
-      id: id
-    }
-  })
-}
-
-// 导出菜品分类
-export function exportDishClassifyInfo(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.tourism.dishClassifyInfo',
-      _mt: 'export',
-      ...query
-    }
-  })
-}

+ 0 - 73
public/static/unimall-admin/src/api/tourism/foodDishesInfo.js

@@ -1,73 +0,0 @@
-import request from '@/utils/request'
-
-// 查询餐饮菜品信息列表
-export function listFoodDishesInfo(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.tourism.foodDishesInfo',
-      _mt: 'list',
-      ...query
-    }
-  })
-}
-
-// 查询餐饮菜品信息详细
-export function getFoodDishesInfo(id) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.tourism.foodDishesInfo',
-      _mt: 'get',
-      id: id
-    }
-  })
-}
-
-// 新增餐饮菜品信息
-export function addFoodDishesInfo(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.tourism.foodDishesInfo',
-      _mt: 'add',
-      foodDishesInfo: data
-    }
-  })
-}
-
-// 修改餐饮菜品信息
-export function updateFoodDishesInfo(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.tourism.foodDishesInfo',
-      _mt: 'update',
-      foodDishesInfo: data
-    }
-  })
-}
-
-// 删除餐饮菜品信息
-export function delFoodDishesInfo(id) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.tourism.foodDishesInfo',
-      _mt: 'delete',
-      id: id
-    }
-  })
-}
-
-// 导出餐饮菜品信息
-export function exportFoodDishesInfo(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.tourism.foodDishesInfo',
-      _mt: 'export',
-      ...query
-    }
-  })
-}

+ 0 - 73
public/static/unimall-admin/src/api/tourism/foodGroupDetailInfo.js

@@ -1,73 +0,0 @@
-import request from '@/utils/request'
-
-// 查询餐饮团购详细信息列表
-export function listFoodGroupDetailInfo(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.tourism.foodGroupDetailInfo',
-      _mt: 'list',
-      ...query
-    }
-  })
-}
-
-// 查询餐饮团购详细信息详细
-export function getFoodGroupDetailInfo(id) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.tourism.foodGroupDetailInfo',
-      _mt: 'get',
-      id: id
-    }
-  })
-}
-
-// 新增餐饮团购详细信息
-export function addFoodGroupDetailInfo(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.tourism.foodGroupDetailInfo',
-      _mt: 'add',
-      foodGroupDetailInfo: data
-    }
-  })
-}
-
-// 修改餐饮团购详细信息
-export function updateFoodGroupDetailInfo(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.tourism.foodGroupDetailInfo',
-      _mt: 'update',
-      foodGroupDetailInfo: data
-    }
-  })
-}
-
-// 删除餐饮团购详细信息
-export function delFoodGroupDetailInfo(id) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.tourism.foodGroupDetailInfo',
-      _mt: 'delete',
-      id: id
-    }
-  })
-}
-
-// 导出餐饮团购详细信息
-export function exportFoodGroupDetailInfo(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.tourism.foodGroupDetailInfo',
-      _mt: 'export',
-      ...query
-    }
-  })
-}

+ 0 - 73
public/static/unimall-admin/src/api/tourism/foodGroupInfo.js

@@ -1,73 +0,0 @@
-import request from '@/utils/request'
-
-// 查询餐饮团购信息列表
-export function listFoodGroupInfo(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.tourism.foodGroupInfo',
-      _mt: 'list',
-      ...query
-    }
-  })
-}
-
-// 查询餐饮团购信息详细
-export function getFoodGroupInfo(id) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.tourism.foodGroupInfo',
-      _mt: 'get',
-      id: id
-    }
-  })
-}
-
-// 新增餐饮团购信息
-export function addFoodGroupInfo(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.tourism.foodGroupInfo',
-      _mt: 'add',
-      foodGroupInfo: data
-    }
-  })
-}
-
-// 修改餐饮团购信息
-export function updateFoodGroupInfo(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.tourism.foodGroupInfo',
-      _mt: 'update',
-      foodGroupInfo: data
-    }
-  })
-}
-
-// 删除餐饮团购信息
-export function delFoodGroupInfo(id) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.tourism.foodGroupInfo',
-      _mt: 'delete',
-      id: id
-    }
-  })
-}
-
-// 导出餐饮团购信息
-export function exportFoodGroupInfo(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.tourism.foodGroupInfo',
-      _mt: 'export',
-      ...query
-    }
-  })
-}

+ 0 - 73
public/static/unimall-admin/src/api/tourism/foodGroupOrdeInfo.js

@@ -1,73 +0,0 @@
-import request from '@/utils/request'
-
-// 查询餐饮团购订单信息列表
-export function listFoodGroupOrdeInfo(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.tourism.foodGroupOrderInfo',
-      _mt: 'list',
-      ...query
-    }
-  })
-}
-
-// 查询餐饮团购订单信息详细
-export function getFoodGroupOrdeInfo(id) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.tourism.foodGroupOrderInfo',
-      _mt: 'get',
-      id: id
-    }
-  })
-}
-
-// 新增餐饮团购订单信息
-export function addFoodGroupOrdeInfo(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.tourism.foodGroupOrderInfo',
-      _mt: 'add',
-      foodGroupOrderInfo: data
-    }
-  })
-}
-
-// 修改餐饮团购订单信息
-export function updateFoodGroupOrdeInfo(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.tourism.foodGroupOrderInfo',
-      _mt: 'update',
-      foodGroupOrderInfo: data
-    }
-  })
-}
-
-// 删除餐饮团购订单信息
-export function delFoodGroupOrdeInfo(id) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.tourism.foodGroupOrderInfo',
-      _mt: 'delete',
-      id: id
-    }
-  })
-}
-
-// 导出餐饮团购订单信息
-export function exportFoodGroupOrdeInfo(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.tourism.foodGroupOrderInfo',
-      _mt: 'export',
-      ...query
-    }
-  })
-}

+ 0 - 73
public/static/unimall-admin/src/api/tourism/foodInfo.js

@@ -1,73 +0,0 @@
-import request from '@/utils/request'
-
-// 查询餐饮入驻信息列表
-export function listFoodInfo(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.tourism.foodInfo',
-      _mt: 'list',
-      ...query
-    }
-  })
-}
-
-// 查询餐饮入驻信息详细
-export function getFoodInfo(id) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.tourism.foodInfo',
-      _mt: 'get',
-      id: id
-    }
-  })
-}
-
-// 新增餐饮入驻信息
-export function addFoodInfo(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.tourism.foodInfo',
-      _mt: 'add',
-      foodInfo: data
-    }
-  })
-}
-
-// 修改餐饮入驻信息
-export function updateFoodInfo(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.tourism.foodInfo',
-      _mt: 'update',
-      foodInfo: data
-    }
-  })
-}
-
-// 删除餐饮入驻信息
-export function delFoodInfo(id) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.tourism.foodInfo',
-      _mt: 'delete',
-      id: id
-    }
-  })
-}
-
-// 导出餐饮入驻信息
-export function exportFoodInfo(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.tourism.foodInfo',
-      _mt: 'export',
-      ...query
-    }
-  })
-}

+ 0 - 73
public/static/unimall-admin/src/api/tourism/homestayDetailInfo.js

@@ -1,73 +0,0 @@
-import request from '@/utils/request'
-
-// 查询民宿详细信息列表
-export function listHomestayDetailInfo(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.tourism.homestayDetailInfo',
-      _mt: 'list',
-      ...query
-    }
-  })
-}
-
-// 查询民宿详细信息详细
-export function getHomestayDetailInfo(id) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.tourism.homestayDetailInfo',
-      _mt: 'get',
-      id: id
-    }
-  })
-}
-
-// 新增民宿详细信息
-export function addHomestayDetailInfo(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.tourism.homestayDetailInfo',
-      _mt: 'add',
-      homestayDetailInfo: data
-    }
-  })
-}
-
-// 修改民宿详细信息
-export function updateHomestayDetailInfo(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.tourism.homestayDetailInfo',
-      _mt: 'update',
-      homestayDetailInfo: data
-    }
-  })
-}
-
-// 删除民宿详细信息
-export function delHomestayDetailInfo(id) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.tourism.homestayDetailInfo',
-      _mt: 'delete',
-      id: id
-    }
-  })
-}
-
-// 导出民宿详细信息
-export function exportHomestayDetailInfo(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.tourism.homestayDetailInfo',
-      _mt: 'export',
-      ...query
-    }
-  })
-}

+ 0 - 73
public/static/unimall-admin/src/api/tourism/homestayInfo.js

@@ -1,73 +0,0 @@
-import request from '@/utils/request'
-
-// 查询民宿入驻信息列表
-export function listHomestayInfo(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.tourism.homestayInfo',
-      _mt: 'list',
-      ...query
-    }
-  })
-}
-
-// 查询民宿入驻信息详细
-export function getHomestayInfo(id) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.tourism.homestayInfo',
-      _mt: 'get',
-      id: id
-    }
-  })
-}
-
-// 新增民宿入驻信息
-export function addHomestayInfo(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.tourism.homestayInfo',
-      _mt: 'add',
-      homestayInfo: data
-    }
-  })
-}
-
-// 修改民宿入驻信息
-export function updateHomestayInfo(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.tourism.homestayInfo',
-      _mt: 'update',
-      homestayInfo: data
-    }
-  })
-}
-
-// 删除民宿入驻信息
-export function delHomestayInfo(id) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.tourism.homestayInfo',
-      _mt: 'delete',
-      id: id
-    }
-  })
-}
-
-// 导出民宿入驻信息
-export function exportHomestayInfo(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.tourism.homestayInfo',
-      _mt: 'export',
-      ...query
-    }
-  })
-}

+ 0 - 73
public/static/unimall-admin/src/api/tourism/productManagement.js

@@ -1,73 +0,0 @@
-import request from '@/utils/request'
-
-// 查询生活服务信息列表
-export function listProductManagement(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.tourism.productManagement',
-      _mt: 'list',
-      ...query
-    }
-  })
-}
-
-// 查询生活服务信息详细
-export function getProductManagement(id) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.tourism.productManagement',
-      _mt: 'get',
-      id: id
-    }
-  })
-}
-
-// 新增生活服务信息
-export function addProductManagement(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.tourism.productManagement',
-      _mt: 'add',
-      productManagement: data
-    }
-  })
-}
-
-// 修改生活服务信息
-export function updateProductManagement(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.tourism.productManagement',
-      _mt: 'update',
-      productManagement: data
-    }
-  })
-}
-
-// 删除生活服务信息
-export function delProductManagement(id) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.tourism.productManagement',
-      _mt: 'delete',
-      id: id
-    }
-  })
-}
-
-// 导出生活服务信息
-export function exportProductManagement(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.tourism.productManagement',
-      _mt: 'export',
-      ...query
-    }
-  })
-}

+ 0 - 58
public/static/unimall-admin/src/api/user.js

@@ -1,58 +0,0 @@
-import request from '@/utils/request'
-
-export function fetchList(query) {
-  return request({
-    method: 'get',
-    params: {
-      _gp: 'admin.user',
-      _mt: 'getUser',
-      ...query
-    }
-  })
-}
-
-export function activeUser(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.user',
-      _mt: 'updateStatus',
-      userId: data.id,
-      status: data.status
-    }
-  })
-}
-
-export function createUser(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.user',
-      _mt: 'addUser',
-      user: JSON.stringify(data)
-    }
-  })
-}
-
-export function updateUser(data) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.user',
-      _mt: 'updateUser',
-      user: JSON.stringify(data)
-    }
-  })
-}
-
-export function deleteUser(id, nickname) {
-  return request({
-    method: 'post',
-    params: {
-      _gp: 'admin.user',
-      _mt: 'deleteUser',
-      id: id,
-      nickname: nickname
-    }
-  })
-}

BIN
public/static/unimall-admin/src/assets/401_images/401.gif


BIN
public/static/unimall-admin/src/assets/404_images/404.png


BIN
public/static/unimall-admin/src/assets/404_images/404_cloud.png


BIN
public/static/unimall-admin/src/assets/avatar.png


BIN
public/static/unimall-admin/src/assets/custom-theme/fonts/element-icons.ttf


BIN
public/static/unimall-admin/src/assets/custom-theme/fonts/element-icons.woff


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
public/static/unimall-admin/src/assets/custom-theme/index.css


+ 0 - 116
public/static/unimall-admin/src/components/BackToTop/index.vue

@@ -1,116 +0,0 @@
-<template>
-  <transition :name="transitionName">
-    <div v-show="visible" :style="customStyle" class="back-to-ceiling" @click="backToTop">
-      <svg width="16" height="16" viewBox="0 0 17 17" xmlns="http://www.w3.org/2000/svg" class="Icon Icon--backToTopArrow" aria-hidden="true" style="height: 16px; width: 16px;">
-        <title>回到顶部</title>
-        <g>
-          <path d="M12.036 15.59c0 .55-.453.995-.997.995H5.032c-.55 0-.997-.445-.997-.996V8.584H1.03c-1.1 0-1.36-.633-.578-1.416L7.33.29c.39-.39 1.026-.385 1.412 0l6.878 6.88c.782.78.523 1.415-.58 1.415h-3.004v7.004z" fill-rule="evenodd"/>
-        </g>
-      </svg>
-    </div>
-  </transition>
-</template>
-
-<script>
-export default {
-  name: 'BackToTop',
-  props: {
-    visibilityHeight: {
-      type: Number,
-      default: 400
-    },
-    backPosition: {
-      type: Number,
-      default: 0
-    },
-    customStyle: {
-      type: Object,
-      default: function() {
-        return {
-          right: '50px',
-          bottom: '50px',
-          width: '40px',
-          height: '40px',
-          'border-radius': '4px',
-          'line-height': '45px',
-          background: '#e7eaf1'
-        }
-      }
-    },
-    transitionName: {
-      type: String,
-      default: 'fade'
-    }
-  },
-  data() {
-    return {
-      visible: false,
-      interval: null,
-      isMoving: false
-    }
-  },
-  mounted() {
-    window.addEventListener('scroll', this.handleScroll)
-  },
-  beforeDestroy() {
-    window.removeEventListener('scroll', this.handleScroll)
-    if (this.interval) {
-      clearInterval(this.interval)
-    }
-  },
-  methods: {
-    handleScroll() {
-      this.visible = window.pageYOffset > this.visibilityHeight
-    },
-    backToTop() {
-      if (this.isMoving) return
-      const start = window.pageYOffset
-      let i = 0
-      this.isMoving = true
-      this.interval = setInterval(() => {
-        const next = Math.floor(this.easeInOutQuad(10 * i, start, -start, 500))
-        if (next <= this.backPosition) {
-          window.scrollTo(0, this.backPosition)
-          clearInterval(this.interval)
-          this.isMoving = false
-        } else {
-          window.scrollTo(0, next)
-        }
-        i++
-      }, 16.7)
-    },
-    easeInOutQuad(t, b, c, d) {
-      if ((t /= d / 2) < 1) return c / 2 * t * t + b
-      return -c / 2 * (--t * (t - 2) - 1) + b
-    }
-  }
-}
-</script>
-
-<style scoped>
-  .back-to-ceiling {
-    position: fixed;
-    display: inline-block;
-    text-align: center;
-    cursor: pointer;
-  }
-
-  .back-to-ceiling:hover {
-    background: #d5dbe7;
-  }
-
-  .fade-enter-active,
-  .fade-leave-active {
-    transition: opacity .5s;
-  }
-
-  .fade-enter,
-  .fade-leave-to {
-    opacity: 0
-  }
-
-  .back-to-ceiling .Icon {
-    fill: #9aaabf;
-    background: none;
-  }
-</style>

+ 0 - 63
public/static/unimall-admin/src/components/Breadcrumb/index.vue

@@ -1,63 +0,0 @@
-<template>
-  <el-breadcrumb class="app-breadcrumb" separator="/">
-    <transition-group name="breadcrumb">
-      <el-breadcrumb-item v-for="(item,index) in levelList" v-if="item.meta.title" :key="item.path">
-        <span v-if="item.redirect==='noredirect'||index==levelList.length-1" class="no-redirect">{{ generateTitle(item.meta.title) }}</span>
-        <router-link v-else :to="item.redirect||item.path">{{ generateTitle(item.meta.title) }}</router-link>
-      </el-breadcrumb-item>
-    </transition-group>
-  </el-breadcrumb>
-</template>
-
-<script>
-import { generateTitle } from '@/utils/i18n'
-import pathToRegexp from 'path-to-regexp'
-
-export default {
-  data() {
-    return {
-      levelList: null
-    }
-  },
-  watch: {
-    $route() {
-      this.getBreadcrumb()
-    }
-  },
-  created() {
-    this.getBreadcrumb()
-  },
-  methods: {
-    generateTitle,
-    getBreadcrumb() {
-      const { params } = this.$route
-      let matched = this.$route.matched.filter(item => {
-        if (item.name) {
-          // To solve this problem https://github.com/PanJiaChen/vue-element-admin/issues/561
-          var toPath = pathToRegexp.compile(item.path)
-          item.path = toPath(params)
-          return true
-        }
-      })
-      const first = matched[0]
-      if (first && first.name.trim().toLocaleLowerCase() !== 'Dashboard'.toLocaleLowerCase()) {
-        matched = [{ path: '/dashboard', meta: { title: 'dashboard' }}].concat(matched)
-      }
-      this.levelList = matched
-    }
-  }
-}
-</script>
-
-<style rel="stylesheet/scss" lang="scss" scoped>
-  .app-breadcrumb.el-breadcrumb {
-    display: inline-block;
-    font-size: 14px;
-    line-height: 50px;
-    margin-left: 10px;
-    .no-redirect {
-      color: #97a8be;
-      cursor: text;
-    }
-  }
-</style>

+ 0 - 59
public/static/unimall-admin/src/components/Hamburger/index.vue

@@ -1,59 +0,0 @@
-<template>
-  <div>
-    <svg
-      :class="{'is-active':isActive}"
-      t="1492500959545"
-      class="hamburger"
-      style=""
-      viewBox="0 0 1024 1024"
-      version="1.1"
-      xmlns="http://www.w3.org/2000/svg"
-      p-id="1691"
-      xmlns:xlink="http://www.w3.org/1999/xlink"
-      width="64"
-      height="64"
-      @click="toggleClick">
-      <path
-        d="M966.8023 568.849776 57.196677 568.849776c-31.397081 0-56.850799-25.452695-56.850799-56.850799l0 0c0-31.397081 25.452695-56.849776 56.850799-56.849776l909.605623 0c31.397081 0 56.849776 25.452695 56.849776 56.849776l0 0C1023.653099 543.397081 998.200404 568.849776 966.8023 568.849776z"
-        p-id="1692"/>
-      <path
-        d="M966.8023 881.527125 57.196677 881.527125c-31.397081 0-56.850799-25.452695-56.850799-56.849776l0 0c0-31.397081 25.452695-56.849776 56.850799-56.849776l909.605623 0c31.397081 0 56.849776 25.452695 56.849776 56.849776l0 0C1023.653099 856.07443 998.200404 881.527125 966.8023 881.527125z"
-        p-id="1693"/>
-      <path
-        d="M966.8023 256.17345 57.196677 256.17345c-31.397081 0-56.850799-25.452695-56.850799-56.849776l0 0c0-31.397081 25.452695-56.850799 56.850799-56.850799l909.605623 0c31.397081 0 56.849776 25.452695 56.849776 56.850799l0 0C1023.653099 230.720755 998.200404 256.17345 966.8023 256.17345z"
-        p-id="1694"/>
-    </svg>
-  </div>
-</template>
-
-<script>
-export default {
-  name: 'Hamburger',
-  props: {
-    isActive: {
-      type: Boolean,
-      default: false
-    },
-    toggleClick: {
-      type: Function,
-      default: null
-    }
-  }
-}
-</script>
-
-<style scoped>
-.hamburger {
-  display: inline-block;
-  cursor: pointer;
-  width: 20px;
-  height: 20px;
-  transform: rotate(90deg);
-  transition: .38s;
-  transform-origin: 50% 50%;
-}
-
-.hamburger.is-active {
-  transform: rotate(0deg);
-}
-</style>

+ 0 - 40
public/static/unimall-admin/src/components/LangSelect/index.vue

@@ -1,40 +0,0 @@
-<template>
-  <el-dropdown trigger="click" class="international" @command="handleSetLanguage">
-    <div>
-      <svg-icon class-name="international-icon" icon-class="language" />
-    </div>
-    <el-dropdown-menu slot="dropdown">
-      <el-dropdown-item :disabled="language==='zh'" command="zh">中文</el-dropdown-item>
-      <el-dropdown-item :disabled="language==='en'" command="en">English</el-dropdown-item>
-    </el-dropdown-menu>
-  </el-dropdown>
-</template>
-
-<script>
-export default {
-  computed: {
-    language() {
-      return this.$store.getters.language
-    }
-  },
-  methods: {
-    handleSetLanguage(lang) {
-      this.$i18n.locale = lang
-      this.$store.dispatch('setLanguage', lang)
-      this.$message({
-        message: 'Switch Language Success',
-        type: 'success'
-      })
-    }
-  }
-}
-</script>
-
-<style scoped>
-.international-icon {
-  font-size: 20px;
-  cursor: pointer;
-  vertical-align: -5px!important;
-}
-</style>
-

+ 0 - 102
public/static/unimall-admin/src/components/Pagination/index.vue

@@ -1,102 +0,0 @@
-<template>
-  <div :class="{'hidden':hidden}" class="pagination-container">
-    <el-pagination
-      :background="background"
-      :current-page.sync="currentPage"
-      :page-size.sync="pageSize"
-      :layout="layout"
-      :total="total"
-      v-bind="$attrs"
-      @size-change="handleSizeChange"
-      @current-change="handleCurrentChange"/>
-  </div>
-</template>
-
-<script>
-import { scrollTo } from '@/utils/scrollTo'
-
-export default {
-  name: 'Pagination',
-  props: {
-    total: {
-      required: true,
-      type: Number
-    },
-    page: {
-      type: Number,
-      default: 1
-    },
-    limit: {
-      type: Number,
-      default: 20
-    },
-    pageSizes: {
-      type: Array,
-      default() {
-        return [10, 20, 30, 50]
-      }
-    },
-    layout: {
-      type: String,
-      default: 'total, sizes, prev, pager, next, jumper'
-    },
-    background: {
-      type: Boolean,
-      default: true
-    },
-    autoScroll: {
-      type: Boolean,
-      default: true
-    },
-    hidden: {
-      type: Boolean,
-      default: false
-    }
-  },
-  computed: {
-    currentPage: {
-      get() {
-        return this.page
-      },
-      set(val) {
-        this.$emit('update:page', val)
-      }
-    },
-    pageSize: {
-      get() {
-        return this.limit
-      },
-      set(val) {
-        this.$emit('update:limit', val)
-      }
-    }
-  },
-  methods: {
-    handleSizeChange(val) {
-      this.$emit('pagination', { page: this.currentPage, limit: val })
-      if (this.autoScroll) {
-        scrollTo(0, 800)
-      }
-    },
-    handleCurrentChange(val) {
-      this.$emit('pagination', { page: val, limit: this.pageSize })
-      if (this.autoScroll) {
-        scrollTo(0, 800)
-      }
-    }
-  }
-}
-</script>
-
-<style scoped>
-.pagination-container {
-  background: #fff;
-  padding: 32px 16px;
-}
-.pagination-container.hidden {
-  display: none;
-}
-.pagination-container {
-    text-align: right;
-}
-</style>

+ 0 - 78
public/static/unimall-admin/src/components/Screenfull/index.vue

@@ -1,78 +0,0 @@
-<template>
-  <div>
-    <svg
-      t="1508738709248"
-      class="screenfull-svg"
-      viewBox="0 0 1024 1024"
-      version="1.1"
-      xmlns="http://www.w3.org/2000/svg"
-      p-id="2069"
-      xmlns:xlink="http://www.w3.org/1999/xlink"
-      width="32"
-      height="32"
-      @click="click">
-      <path
-        d="M333.493443 428.647617 428.322206 333.832158 262.572184 168.045297 366.707916 64.444754 64.09683 64.444754 63.853283 366.570793 167.283957 262.460644Z"
-        p-id="2070"/>
-      <path
-        d="M854.845439 760.133334 688.61037 593.95864 593.805144 688.764889 759.554142 854.56096 655.44604 958.161503 958.055079 958.161503 958.274066 656.035464Z"
-        p-id="2071"/>
-      <path
-        d="M688.535669 428.550403 854.31025 262.801405 957.935352 366.921787 957.935352 64.34754 655.809313 64.081481 759.919463 167.535691 593.70793 333.731874Z"
-        p-id="2072"/>
-      <path
-        d="M333.590658 594.033341 167.8171 759.804852 64.218604 655.67219 64.218604 958.270996 366.342596 958.502263 262.234493 855.071589 428.421466 688.86108Z"
-        p-id="2073"/>
-    </svg>
-  </div>
-</template>
-
-<script>
-import screenfull from 'screenfull'
-
-export default {
-  name: 'Screenfull',
-  props: {
-    width: {
-      type: Number,
-      default: 22
-    },
-    height: {
-      type: Number,
-      default: 22
-    },
-    fill: {
-      type: String,
-      default: '#48576a'
-    }
-  },
-  data() {
-    return {
-      isFullscreen: false
-    }
-  },
-  methods: {
-    click() {
-      if (!screenfull.enabled) {
-        this.$message({
-          message: 'you browser can not work',
-          type: 'warning'
-        })
-        return false
-      }
-      screenfull.toggle()
-    }
-  }
-}
-</script>
-
-<style scoped>
-.screenfull-svg {
-  display: inline-block;
-  cursor: pointer;
-  fill: #5a5e66;;
-  width: 20px;
-  height: 20px;
-  vertical-align: 10px;
-}
-</style>

+ 0 - 92
public/static/unimall-admin/src/components/ScrollPane/index.vue

@@ -1,92 +0,0 @@
-<template>
-  <el-scrollbar ref="scrollContainer" :vertical="false" class="scroll-container" @wheel.native.prevent="handleScroll">
-    <slot/>
-  </el-scrollbar>
-</template>
-
-<script>
-const tagAndTagSpacing = 4 // tagAndTagSpacing
-
-export default {
-  name: 'ScrollPane',
-  data() {
-    return {
-      left: 0
-    }
-  },
-  methods: {
-    handleScroll(e) {
-      const eventDelta = e.wheelDelta || -e.deltaY * 40
-      const $scrollWrapper = this.$refs.scrollContainer.$refs.wrap
-      $scrollWrapper.scrollLeft = $scrollWrapper.scrollLeft + eventDelta / 4
-    },
-    moveToTarget(currentTag) {
-      const $container = this.$refs.scrollContainer.$el
-      const $containerWidth = $container.offsetWidth
-      const $scrollWrapper = this.$refs.scrollContainer.$refs.wrap
-      const tagList = this.$parent.$refs.tag
-
-      let firstTag = null
-      let lastTag = null
-      let prevTag = null
-      let nextTag = null
-
-      // find first tag and last tag
-      if (tagList.length > 0) {
-        firstTag = tagList[0]
-        lastTag = tagList[tagList.length - 1]
-      }
-
-      // find preTag and nextTag
-      for (let i = 0; i < tagList.length; i++) {
-        if (tagList[i] === currentTag) {
-          if (i === 0) {
-            nextTag = tagList[i].length > 1 && tagList[i + 1]
-          } else if (i === tagList.length - 1) {
-            prevTag = tagList[i].length > 1 && tagList[i - 1]
-          } else {
-            prevTag = tagList[i - 1]
-            nextTag = tagList[i + 1]
-          }
-          break
-        }
-      }
-
-      if (firstTag === currentTag) {
-        $scrollWrapper.scrollLeft = 0
-      } else if (lastTag === currentTag) {
-        $scrollWrapper.scrollLeft = $scrollWrapper.scrollWidth - $containerWidth
-      } else {
-        // the tag's offsetLeft after of nextTag
-        const afterNextTagOffsetLeft = nextTag.$el.offsetLeft + nextTag.$el.offsetWidth + tagAndTagSpacing
-
-        // the tag's offsetLeft before of prevTag
-        const beforePrevTagOffsetLeft = prevTag.$el.offsetLeft - tagAndTagSpacing
-
-        if (afterNextTagOffsetLeft > $scrollWrapper.scrollLeft + $containerWidth) {
-          $scrollWrapper.scrollLeft = afterNextTagOffsetLeft - $containerWidth
-        } else if (beforePrevTagOffsetLeft < $scrollWrapper.scrollLeft) {
-          $scrollWrapper.scrollLeft = beforePrevTagOffsetLeft
-        }
-      }
-    }
-  }
-}
-</script>
-
-<style rel="stylesheet/scss" lang="scss" scoped>
-.scroll-container {
-  white-space: nowrap;
-  position: relative;
-  overflow: hidden;
-  width: 100%;
-  /deep/ {
-    .el-scrollbar__bar {
-      bottom: 0px;
-    }
-    .el-scrollbar__wrap {
-      height: 49px;
-    }
-  }
-}
-</style>

+ 0 - 55
public/static/unimall-admin/src/components/SizeSelect/index.vue

@@ -1,55 +0,0 @@
-<template>
-  <el-dropdown trigger="click" @command="handleSetSize">
-    <div>
-      <svg-icon class-name="size-icon" icon-class="size" />
-    </div>
-    <el-dropdown-menu slot="dropdown">
-      <el-dropdown-item :disabled="size==='medium'" command="medium">Medium</el-dropdown-item>
-      <el-dropdown-item :disabled="size==='small'" command="small">Small</el-dropdown-item>
-      <el-dropdown-item :disabled="size==='mini'" command="mini">Mini</el-dropdown-item>
-    </el-dropdown-menu>
-  </el-dropdown>
-</template>
-
-<script>
-export default {
-  computed: {
-    size() {
-      return this.$store.getters.size
-    }
-  },
-  methods: {
-    handleSetSize(size) {
-      this.$ELEMENT.size = size
-      this.$store.dispatch('setSize', size)
-      this.refreshView()
-      this.$message({
-        message: 'Switch Size Success',
-        type: 'success'
-      })
-    },
-    refreshView() {
-      // In order to make the cached page re-rendered
-      this.$store.dispatch('delAllCachedViews', this.$route)
-
-      const { fullPath } = this.$route
-
-      this.$nextTick(() => {
-        this.$router.replace({
-          path: '/redirect' + fullPath
-        })
-      })
-    }
-  }
-
-}
-</script>
-
-<style scoped>
-.size-icon {
-  font-size: 20px;
-  cursor: pointer;
-  vertical-align: -4px!important;
-}
-</style>
-

+ 0 - 43
public/static/unimall-admin/src/components/SvgIcon/index.vue

@@ -1,43 +0,0 @@
-<template>
-  <svg :class="svgClass" aria-hidden="true">
-    <use :xlink:href="iconName"/>
-  </svg>
-</template>
-
-<script>
-export default {
-  name: 'SvgIcon',
-  props: {
-    iconClass: {
-      type: String,
-      required: true
-    },
-    className: {
-      type: String,
-      default: ''
-    }
-  },
-  computed: {
-    iconName() {
-      return `#icon-${this.iconClass}`
-    },
-    svgClass() {
-      if (this.className) {
-        return 'svg-icon ' + this.className
-      } else {
-        return 'svg-icon'
-      }
-    }
-  }
-}
-</script>
-
-<style scoped>
-.svg-icon {
-  width: 1em;
-  height: 1em;
-  vertical-align: -0.15em;
-  fill: currentColor;
-  overflow: hidden;
-}
-</style>

+ 0 - 144
public/static/unimall-admin/src/components/ThemePicker/index.vue

@@ -1,144 +0,0 @@
-<template>
-  <el-color-picker
-    v-model="theme"
-    class="theme-picker"
-    popper-class="theme-picker-dropdown"/>
-</template>
-
-<script>
-
-const version = require('element-ui/package.json').version // element-ui version from node_modules
-const ORIGINAL_THEME = '#409EFF' // default color
-
-export default {
-  data() {
-    return {
-      chalk: '', // content of theme-chalk css
-      theme: ORIGINAL_THEME
-    }
-  },
-  watch: {
-    theme(val, oldVal) {
-      if (typeof val !== 'string') return
-      const themeCluster = this.getThemeCluster(val.replace('#', ''))
-      const originalCluster = this.getThemeCluster(oldVal.replace('#', ''))
-      console.log(themeCluster, originalCluster)
-      const getHandler = (variable, id) => {
-        return () => {
-          const originalCluster = this.getThemeCluster(ORIGINAL_THEME.replace('#', ''))
-          const newStyle = this.updateStyle(this[variable], originalCluster, themeCluster)
-
-          let styleTag = document.getElementById(id)
-          if (!styleTag) {
-            styleTag = document.createElement('style')
-            styleTag.setAttribute('id', id)
-            document.head.appendChild(styleTag)
-          }
-          styleTag.innerText = newStyle
-        }
-      }
-
-      const chalkHandler = getHandler('chalk', 'chalk-style')
-
-      if (!this.chalk) {
-        const url = `https://unpkg.com/element-ui@${version}/lib/theme-chalk/index.css`
-        this.getCSSString(url, chalkHandler, 'chalk')
-      } else {
-        chalkHandler()
-      }
-
-      const styles = [].slice.call(document.querySelectorAll('style'))
-        .filter(style => {
-          const text = style.innerText
-          return new RegExp(oldVal, 'i').test(text) && !/Chalk Variables/.test(text)
-        })
-      styles.forEach(style => {
-        const { innerText } = style
-        if (typeof innerText !== 'string') return
-        style.innerText = this.updateStyle(innerText, originalCluster, themeCluster)
-      })
-      this.$message({
-        message: '换肤成功',
-        type: 'success'
-      })
-    }
-  },
-
-  methods: {
-    updateStyle(style, oldCluster, newCluster) {
-      let newStyle = style
-      oldCluster.forEach((color, index) => {
-        newStyle = newStyle.replace(new RegExp(color, 'ig'), newCluster[index])
-      })
-      return newStyle
-    },
-
-    getCSSString(url, callback, variable) {
-      const xhr = new XMLHttpRequest()
-      xhr.onreadystatechange = () => {
-        if (xhr.readyState === 4 && xhr.status === 200) {
-          this[variable] = xhr.responseText.replace(/@font-face{[^}]+}/, '')
-          callback()
-        }
-      }
-      xhr.open('GET', url)
-      xhr.send()
-    },
-
-    getThemeCluster(theme) {
-      const tintColor = (color, tint) => {
-        let red = parseInt(color.slice(0, 2), 16)
-        let green = parseInt(color.slice(2, 4), 16)
-        let blue = parseInt(color.slice(4, 6), 16)
-
-        if (tint === 0) { // when primary color is in its rgb space
-          return [red, green, blue].join(',')
-        } else {
-          red += Math.round(tint * (255 - red))
-          green += Math.round(tint * (255 - green))
-          blue += Math.round(tint * (255 - blue))
-
-          red = red.toString(16)
-          green = green.toString(16)
-          blue = blue.toString(16)
-
-          return `#${red}${green}${blue}`
-        }
-      }
-
-      const shadeColor = (color, shade) => {
-        let red = parseInt(color.slice(0, 2), 16)
-        let green = parseInt(color.slice(2, 4), 16)
-        let blue = parseInt(color.slice(4, 6), 16)
-
-        red = Math.round((1 - shade) * red)
-        green = Math.round((1 - shade) * green)
-        blue = Math.round((1 - shade) * blue)
-
-        red = red.toString(16)
-        green = green.toString(16)
-        blue = blue.toString(16)
-
-        return `#${red}${green}${blue}`
-      }
-
-      const clusters = [theme]
-      for (let i = 0; i <= 9; i++) {
-        clusters.push(tintColor(theme, Number((i / 10).toFixed(2))))
-      }
-      clusters.push(shadeColor(theme, 0.1))
-      return clusters
-    }
-  }
-}
-</script>
-
-<style>
-.theme-picker .el-color-picker__trigger {
-  vertical-align: middle;
-}
-
-.theme-picker-dropdown .el-color-dropdown__link-btn {
-  display: none;
-}
-</style>

Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff