zhangdan 4 år sedan
förälder
incheckning
f7211159bb
1 ändrade filer med 11 tillägg och 5 borttagningar
  1. 11 5
      pages/index/index.vue

+ 11 - 5
pages/index/index.vue

@@ -11,27 +11,27 @@
 			<view class="header-cont">
 				<view class="cont-item">
 					<text v-if="!titleStatus" class="other">{{huishouTotal? huishouTotal/1000 :'0'}}</text>
-					<text>可回收物(L)</text>
+					<text class="header-cont-item-title">可回收物(L)</text>
 					<u-loading :show="titleStatus"></u-loading>
 				</view>
 				<view class="cont-item">
 					<text v-if="!titleStatus" class="other">{{harmTotal ? harmTotal/1000:'0'}}</text>
-					<text>有害收物(L)</text>
+					<text class="header-cont-item-title">有害收物(L)</text>
 					<u-loading :show="titleStatus"></u-loading>
 				</view>
 				<view class="cont-item">
 					<text v-if="!titleStatus" class="other">{{chuyuTotal ? chuyuTotal/1000 :'0'}}</text>
-					<text>厨余垃圾(L)</text>
+					<text class="header-cont-item-title">厨余垃圾(L)</text>
 					<u-loading :show="titleStatus"></u-loading>
 				</view>
 				<view class="cont-item">
 					<text v-if="!titleStatus" class="other">{{otherTotal ? otherTotal/1000 :'0'}}</text>
-					<text>其它垃圾(KG)</text>
+					<text class="header-cont-item-title">其它垃圾(KG)</text>
 					<u-loading :show="titleStatus"></u-loading>
 				</view>
 				<view class="cont-item">
 					<text v-if="!titleStatus" class="other">{{jianzhuTotal ? jianzhuTotal/1000 :'0'}}</text>
-					<text>建筑垃圾(KG)</text>
+					<text class="header-cont-item-title">建筑垃圾(KG)</text>
 					<u-loading :show="titleStatus"></u-loading>
 				</view>
 			</view>
@@ -353,6 +353,10 @@
 						font-weight: 600;
 						font-size: 28upx;
 					}
+					.header-cont-item-title{
+						display: inline-block;
+						margin-top: 10upx;
+					}
 					.item-title{
 						font-family: PingFang SC;
 						font-weight: 400;
@@ -361,6 +365,8 @@
 					}
 				}
 				.other{
+					display: inline-block;
+					margin: 30upx 0 10upx;
 					font-size: 24px;
 					font-weight: normal;
 					color: #FFFFFF;