sakura hai 1 ano
pai
achega
71a94351d2
Modificáronse 2 ficheiros con 5 adicións e 3 borrados
  1. 1 1
      pages/home/home.vue
  2. 4 2
      pages/home/index.scss

+ 1 - 1
pages/home/home.vue

@@ -46,7 +46,7 @@
 			</view>
 			<view class="full-row">
 				<view class="rows" @click="showCity">
-					<view class="column">
+					<view class="column" style="min-width: 40px;">
 						{{activeCity}}
 					</view>
 					<view class="column2">

+ 4 - 2
pages/home/index.scss

@@ -118,8 +118,10 @@
 				  width: 70%;
 				  .rows{
 					  display: flex;
+					      align-items: center;
 					  .column {
-				      flex: 0 0 59px; /* 每列平均分配空间 */
+						margin-right: 10px;
+				      //flex: 0 0 100px; /* 每列平均分配空间 */
 				      display: flex;
 				      flex-direction: column; /* 列内部元素垂直排列 */
 				     
@@ -142,7 +144,7 @@
 				.selected{
 					position: absolute;
 					width: 100px;
-					height: 130px;
+					min-height: 150px;
 					z-index: 999;
 					background-color: #fff;
 					flex: auto;