Commit cd284914ef356aa18c00fa29be4d1d795d47ce52
1 parent
ea639db0
feat(Order): 临时隐藏某些预存账号的余额
Showing
1 changed file
with
20 additions
and
1 deletions
src/pages/Prepaid/index.tsx
... | ... | @@ -327,8 +327,27 @@ const PrepaidPage = () => { |
327 | 327 | const res = await postCanrdApiUserList({ |
328 | 328 | data: { ...params }, |
329 | 329 | }); |
330 | + const data = res?.data?.data || []; | |
331 | + const targetPhones = [ | |
332 | + '18550286106', | |
333 | + '15286038815', | |
334 | + '15202597163', | |
335 | + '13267086260', | |
336 | + '15900392469', | |
337 | + '13529047645', | |
338 | + ]; | |
339 | + | |
340 | + const processedData = data.map((item) => { | |
341 | + if (targetPhones.includes(item.phone)) { | |
342 | + return { | |
343 | + ...item, | |
344 | + nowMoney: '****', | |
345 | + }; | |
346 | + } | |
347 | + return item; | |
348 | + }); | |
330 | 349 | return { |
331 | - data: res?.data?.data || [], | |
350 | + data: processedData, | |
332 | 351 | total: res?.data?.total || 0, |
333 | 352 | }; |
334 | 353 | }} | ... | ... |