Browse Source

上传新文件

张晓翠 2 years ago
parent
commit
2ffa5af4f8
1 changed files with 44 additions and 0 deletions
  1. 44 0
      baby-institute-admin-ui-front-master/mock/tag.js

+ 44 - 0
baby-institute-admin-ui-front-master/mock/tag.js

@@ -0,0 +1,44 @@
+export default [
+  {
+    url: '/tag/list\.*',
+    type: 'get',
+    response: config => {
+      const params = config.query
+      // mock error
+      if (!('pageSize' in params)) {
+        return {
+          code: 50008,
+          message: 'Login failed, unable to get user details.'
+        }
+      }
+
+      return {
+        code: 20000,
+        data: {
+          info: {
+            totalNum: 99,
+            usedNum: 24
+          },
+          items: [
+            {
+              tagType: '专家说',
+              usedStatus: '已使用',
+              tagName: 'XXX',
+              usedNum: 15,
+              showStatus: '展示中'
+            }, {
+              tagType: '2专家说',
+              usedStatus: '未使用',
+              tagName: 'XXX',
+              usedNum: 74,
+              showStatus: '展示中'
+            }
+          ],
+          pagination: {
+            total: 14
+          }
+        }
+      }
+    }
+  }
+]