From 795de5ff622b9de4670277ebbb58f81b825897c7 Mon Sep 17 00:00:00 2001 From: 15233722133 <15233722133@163.com> Date: Fri, 12 Jun 2026 09:51:42 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=BF=9B=E5=BA=A6=E6=9D=A1=E7=99=BE?= =?UTF-8?q?=E5=88=86=E6=AF=94=E4=BF=9D=E7=95=99=E4=B8=A4=E4=BD=8D=E5=B0=8F?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 6 +++--- pages/index/components/aistore_tab2.vue | 6 +++++- pages/index/listRecord.vue | 8 +++++++- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/.env b/.env index 79b33c8..103caf2 100644 --- a/.env +++ b/.env @@ -15,15 +15,15 @@ SHOPRO_VERSION=v2.4.1 #SHOPRO_DEV_BASE_URL=http://192.168.101.58:48090 # 服务器 -SHOPRO_DEV_BASE_URL=http://www.qflyqzy.net:48090 +# SHOPRO_DEV_BASE_URL=http://www.qflyqzy.net:48090 #SHOPRO_DEV_BASE_URL=https://www.qflyqzy.net/yg-api # 伟伟 -# SHOPRO_DEV_BASE_URL=http://192.168.1.7:48080 +# SHOPRO_DEV_BASE_URL=http://192.168.3.1:48090 # 测试环境 -# SHOPRO_DEV_BASE_URL=https://yougoutest.api.riananyoumu.com +SHOPRO_DEV_BASE_URL=https://yougoutest.api.riananyoumu.com # 本地 # SHOPRO_DEV_BASE_URL=http://8.136.55.200:48090 diff --git a/pages/index/components/aistore_tab2.vue b/pages/index/components/aistore_tab2.vue index 670b17e..20fa610 100644 --- a/pages/index/components/aistore_tab2.vue +++ b/pages/index/components/aistore_tab2.vue @@ -18,7 +18,7 @@ class="progress" :style="{ width: `${calcProgressPercent(v)}%` }" > - {{ Math.round(calcProgressPercent(v)) }}% + {{ formatProgressPercent(v) }}% { + return calcProgressPercent(item).toFixed(2); + }; + const toListRecord = (item) => { const skuId = item?.skuId ?? ''; const url = diff --git a/pages/index/listRecord.vue b/pages/index/listRecord.vue index 2c6b65b..8b60bce 100644 --- a/pages/index/listRecord.vue +++ b/pages/index/listRecord.vue @@ -18,7 +18,7 @@ - {{ Math.round(Number(item.progress) || 0) }}% + {{ formatPercent(item.progress) }}% @@ -78,6 +78,12 @@ return num.toFixed(2); }; + const formatPercent = (value) => { + const num = Number(value); + if (!Number.isFinite(num)) return '0.00'; + return num.toFixed(2); + }; + const mapOrderToRecord = (order) => { const items = Array.isArray(order?.items) ? order.items : []; const firstItem = items[0] || {};