yijianjun 1 week ago
parent
commit
5590ad87fa
1 changed files with 9 additions and 4 deletions
  1. 9 4
      mer_uniapp/pages/what_to_eat_today/index/index.vue

+ 9 - 4
mer_uniapp/pages/what_to_eat_today/index/index.vue

@@ -23,7 +23,7 @@
 					class="m-close" />
 				<view class="goods-items">
 					<view class="g-item" v-for="ite in productList" :key="ite">
-						<img :src="ite.image" alt="" style="height: 230rpx;width: 230rpx;" />
+						<img :src="ite.image" alt="" style="height: 210rpx;width: 210rpx;" />
 						<view class="g-title">
 							{{ite.name||'-'}}
 						</view>
@@ -220,8 +220,8 @@
 
 	.model-container {
 		position: relative;
-		width: 712rpx;
-		height: 654rpx;
+		width: 632rpx;
+		height: 604rpx;
 		background-color: #fff;
 		border-radius: 23rpx;
 		padding-top: 96rpx;
@@ -240,7 +240,7 @@
 	}
 
 	.g-item {
-		padding: 38.46rpx;
+		padding: 28.46rpx;
 		background: linear-gradient(180deg, #FFF9F1 0%, #FFFFFF 100%);
 		border-radius: 8rpx;
 		border: 2rpx solid;
@@ -248,12 +248,17 @@
 	}
 
 	.g-title {
+		max-width: 210rpx;
 		margin-top: 19rpx;
 		font-family: PingFangSC, PingFang SC;
 		font-size: 27rpx;
 		color: #141414;
 		line-height: 38rpx;
 		text-align: center;
+		 white-space: nowrap; /* 不换行 */
+		    overflow: hidden; /* 隐藏超出的内容 */
+		    text-overflow: ellipsis; /* 用省略号表示被隐藏的部分 */
+
 	}
 
 	.g-price {