From 772fbd7b6d354befc168f93a73178e583f1537c8 Mon Sep 17 00:00:00 2001 From: WeiRan <2392355487@qq.com> Date: Sun, 25 Aug 2024 19:56:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/market/myapi.js | 10 +++ src/router/index.js | 14 ++- src/views/market/apitest/index.vue | 131 +++++++++++++++++++++++++++++ src/views/market/myapi/index.vue | 68 +++++++++++++-- src/views/market/product/index.vue | 59 ++++++++----- 5 files changed, 254 insertions(+), 28 deletions(-) create mode 100644 src/api/market/myapi.js create mode 100644 src/views/market/apitest/index.vue diff --git a/src/api/market/myapi.js b/src/api/market/myapi.js new file mode 100644 index 0000000..8bf5624 --- /dev/null +++ b/src/api/market/myapi.js @@ -0,0 +1,10 @@ +import request from "@/utils/request"; + +export function selectmyapiList(data){ + return request({ + url:"/market/myapi/list", + method: "POST", + data: data + }) +} + diff --git a/src/router/index.js b/src/router/index.js index 3d64cd3..718fccc 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -91,7 +91,19 @@ export const constantRoutes = [ meta: {title: '个人中心', icon: 'user'} } ] - } + }, + { + path: '/apitest', + component: Layout, + children: [ + { + path: 'index', + name: 'apitest', + component: () => import('@/views/market/apitest/index.vue'), + meta: { title: 'API文档', icon: 'form' } + } + ] + }, ] // 动态路由,基于用户权限动态去加载 diff --git a/src/views/market/apitest/index.vue b/src/views/market/apitest/index.vue new file mode 100644 index 0000000..331550d --- /dev/null +++ b/src/views/market/apitest/index.vue @@ -0,0 +1,131 @@ + + + + diff --git a/src/views/market/myapi/index.vue b/src/views/market/myapi/index.vue index 183fa39..0bc71cb 100644 --- a/src/views/market/myapi/index.vue +++ b/src/views/market/myapi/index.vue @@ -8,8 +8,7 @@
- - + - + 提交 -
新增数据
+ + + + +
+ + + {{myapi.productName}}} + + + {{myapi.productPrice}}} + + + {{myapi.productContent}}} + + +
+ 测试 +
+
+
+
+
+
+
@@ -35,7 +58,10 @@