瀏覽代碼

tofixed del

1007395918@qq.com 5 年之前
父節點
當前提交
99d20ca7b1
共有 2 個檔案被更改,包括 2 行新增2 行删除
  1. 1
    1
      src/onlineSelling/components/HouseCard/index.js
  2. 1
    1
      src/onlineSelling/components/HouseGrid/Room.js

+ 1
- 1
src/onlineSelling/components/HouseCard/index.js 查看文件

@@ -22,7 +22,7 @@ export default function HouseCard(props) {
22 22
   const thumb = (buildingImgList || []).length
23 23
   // const thumb = (buildingImgList || []).length ? transferImage((buildingImgList)[0].url) : emptyImg
24 24
   const showDT = dayjs(createDate).format('YYYY/MM/DD')
25
-  const wanY = Number(price).toFixed(2)
25
+  const wanY = Number(price)
26 26
 
27 27
   return (
28 28
     <View className="housecard">

+ 1
- 1
src/onlineSelling/components/HouseGrid/Room.js 查看文件

@@ -12,7 +12,7 @@ export default function Room(props) {
12 12
     }
13 13
   }
14 14
 
15
-  const wanY = Number(price).toFixed(2)
15
+  const wanY = Number(price)
16 16
 
17 17
   return (
18 18
     <HotBlock number={heat + realHeat + 0}>