Quellcode durchsuchen

feat: 照片更换

2912631854@qq.com vor 5 Monaten
Ursprung
Commit
6361008a20
1 geänderte Dateien mit 6 neuen und 3 gelöschten Zeilen
  1. 6 3
      pages/home/details.vue

+ 6 - 3
pages/home/details.vue

@@ -11,7 +11,7 @@
 			</view>
 			<view v-if="list.length>0" class="t_item" v-for="(item,index) in list" :key="index">
 				<view class="b_grey b_rb">
-					{{item.houseBaseName}}{{item.houseBaseName}}{{item.houseBaseName}}{{item.houseBaseName}}{{item.houseBaseName}}
+					{{item.houseBaseName}}
 				</view>
 				<view class="b_rb" :class="(index==list.length-1||index==list.length-2)?'b_grey':''">{{item.totalNums}}
 				</view>
@@ -49,7 +49,7 @@
 					dateDay: this.item.dateDay
 				}).then(res => {
 					if (res.data.code === 0) {
-						if (res.data.data.length > 6 || res.data.data.length == 6) {
+						if (res.data.data.length > 6 && res.data.data.length == 6) {
 							this.list = res.data.data.splice(0, res.data.data.length - 3);
 							console.log('000000', this.list);
 							let totalNums = this.list.reduce((cur, pre) => cur + pre.totalNums, 0);
@@ -125,8 +125,10 @@
 <style scoped lang="less">
 	.page {
 		background: #F9FAFC;
+		box-sizing: border-box;
 
 		.table {
+			box-sizing: border-box;
 			width: 100%;
 			border-top: 1rpx solid #D1D1D1;
 			border-left: 1rpx solid #D1D1D1;
@@ -158,7 +160,8 @@
 
 				&>view {
 					width: 25%;
-					height: 160rpx;
+					// height: 160rpx;
+					min-height: 160rpx;
 					display: flex;
 					align-items: center;
 					justify-content: center;