feat: 隐藏网店管理进度条

This commit is contained in:
2026-08-10 10:39:17 +08:00
parent dca5f1d18e
commit 50c4a7168f
4 changed files with 37 additions and 2 deletions
+3
View File
@@ -74,6 +74,8 @@
<view class="store-code c_999">编号:{{ row.code || '--' }}</view>
<view class="store-contact c_999 lineOne">联系电话:{{ row.phone || '--' }}</view>
<view class="store-address c_999">{{ row.address || '--' }}</view>
<!-- 销量库存进度条模块:先隐藏,等接口 ready 再打开 -->
<!--
<view class="store-progress">
<view class="store-progress__head flex-center ju-between">
<view class="store-progress__label">销量 / 库存</view>
@@ -86,6 +88,7 @@
></view>
</view>
</view>
-->
</view>
</view>
<view class="store-actions flex-center ju-flex-end">
+9
View File
@@ -372,6 +372,15 @@
}
state.order = data;
// 订单级 refundStatus:0 未退款 / 10 部分退款 / 20 全部退款
// 用户需求:如果是 20(全部退款),不允许再进入申请售后页面 → 直接提示并返回。
const __rStatus = data?.refundStatus === undefined ? data?.refund_status : data?.refundStatus;
if (Number(__rStatus) === 20) {
uni.showToast({ title: '该订单已全部退款,无需再次申请售后', icon: 'none' });
setTimeout(() => uni.navigateBack({ delta: 1 }), 600);
return;
}
// 按itemId精确查找订单项(单品入口),否则默认取第1项(整单入口仅用于商品卡片展示)
// 注意:无论单品还是整单,都只展示 + 计算 + 提交 afterSaleStatus===0 的商品。
const allItems = Array.isArray(data.items) ? data.items : [];