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] || {};