feat: 我的店铺进度条
This commit is contained in:
@@ -82,16 +82,6 @@
|
||||
return num.toFixed(2);
|
||||
};
|
||||
|
||||
const resolveProgress = (status) => {
|
||||
const s = Number(status);
|
||||
if (s === 0) return 25;
|
||||
if (s === 10) return 50;
|
||||
if (s === 20) return 75;
|
||||
if (s === 30) return 100;
|
||||
if (s === 40) return 0;
|
||||
return 0;
|
||||
};
|
||||
|
||||
const mapOrderToRecord = (order) => {
|
||||
const items = Array.isArray(order?.items) ? order.items : [];
|
||||
const firstItem = items[0] || {};
|
||||
@@ -107,7 +97,7 @@
|
||||
id: order?.id,
|
||||
title: titleText,
|
||||
statusText,
|
||||
progress: resolveProgress(order?.status),
|
||||
progress: 80,
|
||||
qty,
|
||||
time: timeText,
|
||||
total: totalYuan,
|
||||
|
||||
Reference in New Issue
Block a user