From 6331ce09d135ae65d1d4c67311a2e08f5ea6c94c Mon Sep 17 00:00:00 2001 From: wangsongsole Date: Sat, 2 Mar 2024 02:49:55 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20style:=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- orderDetails/chargerOrder.html | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/orderDetails/chargerOrder.html b/orderDetails/chargerOrder.html index 10f8e60..10734d2 100644 --- a/orderDetails/chargerOrder.html +++ b/orderDetails/chargerOrder.html @@ -14,6 +14,13 @@
+
+
+
+
+
+
+ @@ -55,7 +62,7 @@
重新兑换
-
+
刷新
@@ -82,9 +89,16 @@ }); /* 获取详情 */ - function getInfo () { + function getInfo (isLoading) { const orderNumber = sessionStorage.getItem('orderNumber'); req.axiosGet(`/key/order/detail/${orderNumber}`).then(res => { + if (isLoading) { + loading.value = true; + const clr = setTimeout(() => { + loading.value = false; + clearTimeout(clr); + }, 1000); + } if (res.code == 200) { const { product_name, update_time, status, show_url, account, create_time, use_coupon } = res.data; goods.value = { product_name, update_time, status, show_url, account, create_time, orderNumber, use_coupon }; @@ -136,7 +150,7 @@ history.go(-1); } - return { copyFunction, getInfo, backHandler, toHome, dynamicBanner, goods, toast, goodsCount }; + return { copyFunction, getInfo, backHandler, toHome, dynamicBanner, goods, toast, goodsCount, loading }; } }).mount('#app')