From 1ad91c1c9a535c710ce8cb5e5569296f637e537c Mon Sep 17 00:00:00 2001 From: wangsongsole Date: Thu, 29 Feb 2024 17:56:51 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=AA=20optimize:=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E4=BD=93=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- orderDetails/cardOrder.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/orderDetails/cardOrder.html b/orderDetails/cardOrder.html index b6c08a2..45f410d 100644 --- a/orderDetails/cardOrder.html +++ b/orderDetails/cardOrder.html @@ -31,7 +31,7 @@ class="bottom-img"> -
+

卡号

@@ -77,6 +77,7 @@ const toast = ref(false); const clr = ref(null); const goodsCount = ref(0); + const loading = ref(true); onMounted(() => { goodsCount.value = Number(sessionStorage.getItem('goodsCount')) || 0; @@ -85,8 +86,10 @@ /* 获取详情 */ function getInfo () { + loading.value = false; const orderNumber = sessionStorage.getItem('orderNumber'); req.axiosGet(`/key/order/detail/${orderNumber}`).then(res => { + loading.value = true; if (res.code == 200) { const { product_name, status, show_url, card_number, card_password, use_coupon } = res.data; goods.value = { product_name, time: res.data.goods.end_time, status, show_url, card_number, card_password, card_show: res.data.goods.card_show, use_coupon }; @@ -137,7 +140,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')