From d7561a9f9f3c175971e7e8d7a69b1a7748377d99 Mon Sep 17 00:00:00 2001 From: lvxiu_ext Date: Thu, 11 May 2023 11:24:08 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/index.vue | 61 ++++++++++++++++++++++++++++++++++++--------- 1 file changed, 49 insertions(+), 12 deletions(-) diff --git a/src/views/index.vue b/src/views/index.vue index 60eed3e..140bb57 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -10,8 +10,8 @@ - 帐户余额:¥{{ userBalance }} - 本月消费:¥{{ userBalanceMonth }} + 帐户余额:¥{{ NumFilter(userBalance) }} + 本月消费:¥{{ NumFilter(userBalanceMonth) }} 帐户等级:1 @@ -22,24 +22,34 @@ 服务信息 - -
- + +
+ +
-
- +
+ + +
-
- +
+ +
- +
@@ -52,12 +62,12 @@ @@ -71,6 +81,7 @@ import { getCertIndex } from '@/api/cert/index' import { ref } from 'vue'; +const { proxy } = getCurrentInstance(); const modelList = ref([]); const serverUrl = ref(""); const serverUrl2 = ref(""); @@ -89,6 +100,32 @@ function getIndex() { }) } +function handleCopy(id){ + // 获取需要复制的元素以及元素内的文本内容 + const text = id; + // 添加一个input元素放置需要的文本内容 + const input = document.createElement("input"); + input.value = text; + document.body.appendChild(input); + // 选中并复制文本到剪切板 + input.select(); + document.execCommand("copy"); + // 移除input元素 + document.body.removeChild(input); + proxy.$modal.msgSuccess("复制成功"); +} + +function NumFilter (value) { + // 截取当前数据到小数点后两位 + let realVal = parseFloat(value).toFixed(2) + return realVal +} +function NumFilter4 (value) { + // 截取当前数据到小数点后两位 + let realVal = parseFloat(value).toFixed(4) + return realVal +} + getIndex() From 87b6fae4052400ccc05d1f92bdf916e383b6c866 Mon Sep 17 00:00:00 2001 From: lvxiu_ext Date: Thu, 11 May 2023 16:23:51 +0800 Subject: [PATCH 2/6] =?UTF-8?q?=E7=94=A8=E6=88=B7=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E6=96=87=E5=AD=97=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/index.vue | 6 ++++++ src/views/user/doc/index.vue | 2 +- src/views/user/money/index.vue | 15 +++++++++++++-- 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/src/views/index.vue b/src/views/index.vue index 140bb57..9b78434 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -58,6 +58,9 @@ 模型定价
+
+ +
@@ -72,6 +75,9 @@ +
+ +
diff --git a/src/views/user/doc/index.vue b/src/views/user/doc/index.vue index db9760a..5105468 100644 --- a/src/views/user/doc/index.vue +++ b/src/views/user/doc/index.vue @@ -7,7 +7,7 @@
- 请先参考:api2gpt 文档 + 请先参考:api2gpt 文档
diff --git a/src/views/user/money/index.vue b/src/views/user/money/index.vue index 9ba69d5..a8f2168 100644 --- a/src/views/user/money/index.vue +++ b/src/views/user/money/index.vue @@ -3,12 +3,12 @@ 充值金值: - + 充值
- +
@@ -139,6 +139,17 @@ function getList() { }); } +proxy.$notify({ + title: '充值须值', + message: '
1. 充值后不支持退款,建议先小额充值进行测试,平台不限制最低充值金额,请按需充值。
'+ + '
2. 定价页面没写的模型和接口即不支持,不是所有的接口都支持,有特殊需求的朋友要注意。
'+ + '
3. 支付宝充值到账一般为几秒钟到几分钟,但是偶尔也会遇到延迟比较高的情况,如果遇到支付状态长时间没有变化,请点击手动刷新更新状态即可
'+ + '
4. 商务订制等大需求,请联系客服
', + type: 'warning', + dangerouslyUseHTMLString: true, + duration: 0 +}); + getList() From bad64f3469a256b58c5de0062a78f83e8c8c3ec2 Mon Sep 17 00:00:00 2001 From: kelvin Date: Thu, 11 May 2023 18:17:35 +0800 Subject: [PATCH 3/6] bug fix --- src/views/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/index.vue b/src/views/index.vue index 9b78434..99b12c8 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -36,7 +36,7 @@
From fa2b437cd587a522b6f723de9b6c9390ee7a72d4 Mon Sep 17 00:00:00 2001 From: lvxiu_ext Date: Fri, 12 May 2023 13:41:32 +0800 Subject: [PATCH 4/6] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=BD=91=E7=AB=99?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 02f0250..867c35a 100644 --- a/index.html +++ b/index.html @@ -9,6 +9,21 @@ Api2gpt + + +