From 19710039e8a5dfe94c517569edf081f97283bcd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=9F=E6=B5=B7=E6=AC=A3?= Date: Tue, 5 Nov 2019 17:19:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B8=81=E5=B8=81=E4=BA=A4=E6=98=93=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E5=A2=9E=E5=8A=A0=E9=98=B2=E6=8A=96=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/app.js | 33 +++++++++++++++++++++++---------- src/pages/trade.vue | 16 +++++++++++++++- 2 files changed, 38 insertions(+), 11 deletions(-) diff --git a/src/api/app.js b/src/api/app.js index 3c971e8..104bf1b 100644 --- a/src/api/app.js +++ b/src/api/app.js @@ -1,14 +1,27 @@ -export const c2cApi = 'http://192.168.105.16/otc'; //法币 -export const btcApi = 'http://192.168.105.16/btc'; //BTC钱包 -export const eosApi = 'http://192.168.105.16/eos'; //EOS钱包 -export const ethApi = 'http://192.168.105.16/eth'; //ETH钱包 -export const cctApi = 'http://192.168.105.16/cct'; //币币 -export const currencyApi = 'http://192.168.105.16/currency'; //行情 -export const jgimApi = 'http://192.168.105.16/imjg'; //聊天 -export const sysconfApi = 'http://192.168.105.16/sysconf'; //行情 -export const userApi = 'http://192.168.105.16/user'; //用户 +// export const c2cApi = 'http://192.168.105.16/otc'; //法币 +// export const btcApi = 'http://192.168.105.16/btc'; //BTC钱包 +// export const eosApi = 'http://192.168.105.16/eos'; //EOS钱包 +// export const ethApi = 'http://192.168.105.16/eth'; //ETH钱包 +// export const cctApi = 'http://192.168.105.16/cct'; //币币 +// export const currencyApi = 'http://192.168.105.16/currency'; //行情 +// export const jgimApi = 'http://192.168.105.16/imjg'; //聊天 +// export const sysconfApi = 'http://192.168.105.16/sysconf'; //行情 +// export const userApi = 'http://192.168.105.16/user'; //用户 -export const FILE_URL = 'http://192.168.105.16/files/'; //图片地址 +// export const FILE_URL = 'http://192.168.105.16/files/'; //图片地址 + +export const c2cApi = 'http://47.244.223.156/otc'; //法币 +export const cctApi = 'http://47.244.223.156/cct'; //币币 +export const jgimApi = 'http://47.244.223.156/imjg'; //聊天 +export const sysconfApi = 'http://47.244.223.156/sysconf'; //行情 +export const userApi = 'http://47.244.223.156/user'; //用户 + +export const btcApi = 'http://47.244.202.188/btc'; //BTC钱包 +export const eosApi = 'http://47.244.202.188/eos'; //EOS钱包 +export const ethApi = 'http://47.244.202.188/eth'; //ETH钱包 +export const currencyApi = 'http://47.244.202.188/currency'; //行情 + +export const FILE_URL = 'http://47.244.223.156/files/'; //图片地址 // export const c2cApi = 'https://c2c.flamex.io'; //法币 // export const btcApi = 'https://btc.flamex.io'; //BTC钱包 diff --git a/src/pages/trade.vue b/src/pages/trade.vue index 0b4befa..daa2ca4 100644 --- a/src/pages/trade.vue +++ b/src/pages/trade.vue @@ -1326,7 +1326,7 @@ {{ $t('trade.table.header_cancel') }} - {{ + {{ $t('trade.table.header_confirm') }} @@ -1521,6 +1521,7 @@ export default { loading2: false, loading3: false, loading4: false, + tochange: false, }; }, components: { @@ -2638,6 +2639,7 @@ export default { }, //点击密码确定按钮 subPay() { + this.tochange = true; //防止多次点击确认按钮 if (this.num == '1') { this.loading1 = true; } else if (this.num == '2') { @@ -2695,17 +2697,20 @@ export default { this.getFree(); //刷新可用额数据 // 请求后关闭窗口 this.passdialogVisible = false; + this.tochange = false; } else if (res.data.code === 12710) { this.loading1 = false; this.$message.error(res.data.msg); this.inputpassword = ''; // 密码输入框出现,清除缓存 this.passdialogVisible = true; + this.tochange = false; localStorage.removeItem('userpass'); localStorage.removeItem('userdate'); localStorage.removeItem('nowPassNOValue'); } else { this.loading1 = false; + this.tochange = false; this.passdialogVisible = false; this.inputpassword = ''; //清空密码 this.$message.warning(res.data.msg); @@ -2747,17 +2752,20 @@ export default { this.getFree(); //刷新数据 // 请求后关闭窗口 this.passdialogVisible = false; + this.tochange = false; } else if (res.data.code === 12710) { this.loading2 = false; this.$message.error(res.data.msg); this.inputpassword = ''; // 密码输入框出现,清除缓存 this.passdialogVisible = true; + this.tochange = false; localStorage.removeItem('userpass'); localStorage.removeItem('userdate'); localStorage.removeItem('nowPassNOValue'); } else { this.loading2 = false; + this.tochange = false; this.passdialogVisible = false; this.$message.warning(res.data.msg); this.inputpassword = ''; @@ -2797,17 +2805,20 @@ export default { this.getFree(); //刷新数据 // 请求后关闭窗口 this.passdialogVisible = false; + this.tochange = false; } else if (res.data.code === 12710) { this.loading3 = false; this.$message.error(res.data.msg); this.inputpassword = ''; // 密码输入框出现,清除缓存 this.passdialogVisible = true; + this.tochange = false; localStorage.removeItem('userpass'); localStorage.removeItem('userdate'); localStorage.removeItem('nowPassNOValue'); } else { this.loading3 = false; + this.tochange = false; this.passdialogVisible = false; this.$message.warning(res.data.msg); this.inputpassword = ''; @@ -2841,17 +2852,20 @@ export default { this.getFree(); //刷新数据 // 请求后关闭窗口 this.passdialogVisible = false; + this.tochange = false; } else if (res.data.code === 12710) { this.loading4 = false; this.$message.error(res.data.msg); this.inputpassword = ''; // 密码输入框出现,清除缓存 this.passdialogVisible = true; + this.tochange = false; localStorage.removeItem('userpass'); localStorage.removeItem('userdate'); localStorage.removeItem('nowPassNOValue'); } else { this.loading4 = false; + this.tochange = false; this.passdialogVisible = false; this.$message.warning(res.data.msg); this.inputpassword = '';