diff --git a/source/page/Hospital/index.tsx b/source/page/Hospital/index.tsx index c3df05e..d8ba143 100644 --- a/source/page/Hospital/index.tsx +++ b/source/page/Hospital/index.tsx @@ -108,14 +108,23 @@ export class HospitalPage extends mixin<{}, HospitalPageState>() { title={hospital} >
    - {supplies.map(({ name, count, remark }) => ( -
  1. - {name}{' '} - - {count}个 - -
  2. - ))} + {supplies.map(({ name, count, remark }) => { + let n = +count; + let showCount = ''; + if (n === 1) { + showCount = '数量不限'; + } else { + showCount = count + '个'; + } + return ( +
  3. + {name}{' '} + + {showCount} + +
  4. + ); + })}