diff --git a/pages/order/aftersale/apply.vue b/pages/order/aftersale/apply.vue index c193cd8..c0cdce1 100644 --- a/pages/order/aftersale/apply.vue +++ b/pages/order/aftersale/apply.vue @@ -194,12 +194,15 @@ const way = formData.way === '20' ? 2 : 1; const applyReason = String(formData.applyReason); const applyDescription = String(formData.applyDescription || ''); - // applyPicUrls:数组 → 逗号拼接字符串(按用户最新给的示例) - let applyPicUrls = ''; + // applyPicUrls:类型应该是数组或 null(用户最新要求);有值传数组,没值传 null(不传空字符串) + let applyPicUrls = null; if (Array.isArray(formData.applyPicUrls)) { - applyPicUrls = formData.applyPicUrls.filter(Boolean).join(','); + const list = formData.applyPicUrls.filter(Boolean); + applyPicUrls = list.length ? list : null; } else if (formData.applyPicUrls) { - applyPicUrls = String(formData.applyPicUrls); + applyPicUrls = [String(formData.applyPicUrls)]; + } else { + applyPicUrls = null; } // 选择要提交的订单项列表