From 0e2a055fddc5677a7e7fefe2024636472edfb41c Mon Sep 17 00:00:00 2001
From: hucan <951870319@qq.com>
Date: Fri, 25 Jul 2025 17:26:04 +0800
Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E5=80=92=E8=AE=A1=E6=97=B6=202?=
=?UTF-8?q?=E3=80=81=E5=8F=96=E6=B6=88=E9=94=81=E5=AE=9A?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
cli-traffic.html | 74 ++++++++++++++++++++++++++++++++++++++++++++++--
1 file changed, 72 insertions(+), 2 deletions(-)
diff --git a/cli-traffic.html b/cli-traffic.html
index 72b0a3d..8621925 100644
--- a/cli-traffic.html
+++ b/cli-traffic.html
@@ -393,6 +393,7 @@
Phone
验证码
状态
+ 过期时间
操作
@@ -414,6 +415,16 @@
已使用
过期
+
+
+
+ {{ Math.floor((new Date( data[indextr].expireTime) - Date.now()) / 1000) || 0 }} 秒
+
+
+
-
+ 取消
+
删除
@@ -477,8 +491,12 @@
{{formatDate(data[indextr].expireTime)}}
+ 取消
+
this.cancelSms(row)
+ });
+ },
+ cancelSms(row){
+ this.showLoading();
+
+ let data = JSON.stringify({
+ id:row.id});
+ fetch(requestApi + "/sms-phone/cancel", {
+ headers: {
+ Authorization: `Bearer ${this.token}`,
+ "Content-Type": "application/json",
+ Accept: "application/json",
+ },
+ method: "PUT",
+ body: data,
+ })
+ .then((res) => res.json())
+ .then((response) => {
+ if (response.code === 200) {
+ this.$vs.notify({
+ title: "提示",
+ color: "success",
+ text: "取消成功",
+ position: "top-right",
+ });
+
+ this.getMyBalance();
+ this.getSmsList();
+ } else {
+ this.$vs.notify({
+ title: "提示",
+ color: "danger",
+ text: response.msg,
+ position: "top-right",
+ });
+ }
+ })
+ .catch((error) => {
+ console.log(error);
+ })
+ .finally(() => {
+ this.hiddenLoading();
+ });
+ },
},
});