zhangwf 3 gadi atpakaļ
vecāks
revīzija
52ad0b87f8
1 mainītis faili ar 7 papildinājumiem un 2 dzēšanām
  1. 7 2
      pages/houseDetail/houseDetail.vue

+ 7 - 2
pages/houseDetail/houseDetail.vue

@@ -1,6 +1,6 @@
 <template>
 	<view class="content">
-		<image class="topImg" :src="dataInfo.image" mode="aspectFill"></image>
+		<image class="topImg" :src="dataInfo.projectFocusImage" mode="aspectFill"></image>
 		<view class="sectionA">
 			<view class="topSection">
 				<view class="title">{{dataInfo.name}}</view>
@@ -285,7 +285,12 @@
 				}
 			},
 			priceReload(val) {
-				return parseFloat(val / 10000).toFixed(2) + '万'
+				let money = parseFloat(val / 10000);
+				if(String(money).indexOf('.')>-1){
+					return parseFloat(val / 10000).toFixed(2) + '万'
+				}else{
+					return parseFloat(val / 10000) + '万'
+				}
 			},
 
 			toShareCard(type) {