From b2a675e5254f58aeb0927016c717a768b558c0bd Mon Sep 17 00:00:00 2001 From: "0.0" <1092404103.qq.com> Date: Wed, 18 May 2022 18:07:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=9C=E5=93=81=E9=85=8D=E7=BD=AE=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2,=E6=88=91=E7=9A=84=E6=94=B6=E8=97=8F=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wjnft/config.js | 44 +++ src/views/wjnft/config/index.vue | 376 ++++++++++++++++++++++++ src/views/wjnft/mycollection/index.vue | 391 +++++++++++++++---------- 3 files changed, 654 insertions(+), 157 deletions(-) create mode 100644 src/api/wjnft/config.js create mode 100644 src/views/wjnft/config/index.vue diff --git a/src/api/wjnft/config.js b/src/api/wjnft/config.js new file mode 100644 index 0000000..578b33c --- /dev/null +++ b/src/api/wjnft/config.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询我的藏品配置列表 +export function listConfig(query) { + return request({ + url: '/wjnft/config/list', + method: 'get', + params: query + }) +} + +// 查询我的藏品配置详细 +export function getConfig(id) { + return request({ + url: '/wjnft/config/' + id, + method: 'get' + }) +} + +// 新增我的藏品配置 +export function addConfig(data) { + return request({ + url: '/wjnft/config', + method: 'post', + data: data + }) +} + +// 修改我的藏品配置 +export function updateConfig(data) { + return request({ + url: '/wjnft/config', + method: 'put', + data: data + }) +} + +// 删除我的藏品配置 +export function delConfig(id) { + return request({ + url: '/wjnft/config/' + id, + method: 'delete' + }) +} diff --git a/src/views/wjnft/config/index.vue b/src/views/wjnft/config/index.vue new file mode 100644 index 0000000..8f8e153 --- /dev/null +++ b/src/views/wjnft/config/index.vue @@ -0,0 +1,376 @@ + + + diff --git a/src/views/wjnft/mycollection/index.vue b/src/views/wjnft/mycollection/index.vue index 3f15648..c2e71ed 100644 --- a/src/views/wjnft/mycollection/index.vue +++ b/src/views/wjnft/mycollection/index.vue @@ -1,16 +1,29 @@