guo 3 years ago
parent
commit
5f79f2626a
1 changed files with 10 additions and 2 deletions
  1. 10 2
      pages/index/addCar.vue

+ 10 - 2
pages/index/addCar.vue

@@ -16,7 +16,7 @@
 			<view class="mesView" @click="goCarModel()">
 				<view class="leftTitle">车型</view>
 				<view class="carModBtn noSelectColor" v-if="!carModelInfo.value">请选择车型</view>
-				<view class="carModBtn selectColor" v-else>{{carModelInfo.value}}</view>
+				<view class="carModBtn selectColor carMod" v-else>{{carModelInfo.value}}</view>
 				<image src="../../static/img/rightArrow.png" class="rightArrow"></image>
 			</view>
 
@@ -395,7 +395,15 @@
 		color: #333333;
 
 	}
-
+	.carMod{
+		text-overflow: -o-ellipsis-lastline;
+		  overflow: hidden;
+		  text-overflow: ellipsis;
+		  display: -webkit-box;
+		  -webkit-line-clamp: 2;
+		  line-clamp: 2;
+		  -webkit-box-orient: vertical;
+	}
 	.rightArrow {
 		margin-right: 28rpx;
 		width: 14rpx;