From 69cc3923c831ef5ecb3ca8f88999bb04f6c01e0f Mon Sep 17 00:00:00 2001 From: liweiliang <838882374@qq.com> Date: Thu, 29 Jun 2023 17:00:14 +0800 Subject: [PATCH 1/7] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/user/coin.js | 53 +++++ src/views/user/coin/index.vue | 405 ++++++++++++++++++++++++++++++++++ 2 files changed, 458 insertions(+) create mode 100644 src/api/user/coin.js create mode 100644 src/views/user/coin/index.vue diff --git a/src/api/user/coin.js b/src/api/user/coin.js new file mode 100644 index 0000000..9a3d833 --- /dev/null +++ b/src/api/user/coin.js @@ -0,0 +1,53 @@ +import request from '@/utils/request' + +// 查询币种配置列表 +export function listCoin(query) { + return request({ + url: '/user/coin/list', + method: 'get', + params: query + }) +} + +// 查询币种配置详细 +export function getCoin(id) { + return request({ + url: '/user/coin/' + id, + method: 'get' + }) +} + +// 新增币种配置 +export function addCoin(data) { + return request({ + url: '/user/coin', + method: 'post', + data: data + }) +} + +// 修改币种配置 +export function updateCoin(data) { + return request({ + url: '/user/coin', + method: 'put', + data: data + }) +} + +// 删除币种配置 +export function delCoin(id) { + return request({ + url: '/user/coin/' + id, + method: 'delete' + }) +} + +// 导出币种配置 +export function exportCoin(query) { + return request({ + url: '/user/coin/export', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/src/views/user/coin/index.vue b/src/views/user/coin/index.vue new file mode 100644 index 0000000..7178e12 --- /dev/null +++ b/src/views/user/coin/index.vue @@ -0,0 +1,405 @@ + + + From 544ef0c3a3c4d911f91d8d99c8bde26cb0090c3f Mon Sep 17 00:00:00 2001 From: yyc <1477138655@qq.com> Date: Thu, 29 Jun 2023 17:17:54 +0800 Subject: [PATCH 2/7] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=B0=B7=E6=AD=8C?= =?UTF-8?q?=E9=AA=8C=E8=AF=81=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/login.vue | 11 ++++---- src/views/user/coin/index.vue | 49 +++++++++++++++++---------------- src/views/user/wallet/index.vue | 20 ++++++++++++-- 3 files changed, 47 insertions(+), 33 deletions(-) diff --git a/src/views/login.vue b/src/views/login.vue index 95cff50..b6fbaa3 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -27,15 +27,14 @@ -
- -
+ + + 记住密码 @@ -104,7 +103,7 @@ export default { } }, created() { - this.getCode(); + // this.getCode(); this.getCookie(); }, methods: { diff --git a/src/views/user/coin/index.vue b/src/views/user/coin/index.vue index 7178e12..2a9fab6 100644 --- a/src/views/user/coin/index.vue +++ b/src/views/user/coin/index.vue @@ -45,28 +45,28 @@ v-hasPermi="['user:coin:add']" >新增 --> - - 修改 - - - 删除 - + + + + + + + + + + + + + + + + + + + + + + --> - + @@ -315,7 +315,7 @@ export default { sort: null, cnyRate: null, usdRate: null, - status: '0', + status:'1', withdrawScale: null, withdrawThreshold: null }; @@ -351,6 +351,7 @@ export default { this.form = response.data; this.open = true; this.title = "修改币种配置"; + this.form.status=response.data.status+""; }); }, /** 提交按钮 */ diff --git a/src/views/user/wallet/index.vue b/src/views/user/wallet/index.vue index e122faa..69b0a84 100644 --- a/src/views/user/wallet/index.vue +++ b/src/views/user/wallet/index.vue @@ -1,7 +1,7 @@