twt il y a 5 mois
Parent
commit
f669524d0b

+ 15 - 5
pages/index/index.vue

@@ -224,9 +224,9 @@
 						</view>
 						<view class="goodsRight">
 							<view class="goodsRtop">
-								<view style="display: flex;">
-									<view class="isRecommend" v-if="item.isRecommend==1">适配</view>
-									<view class="goodsName">{{item.title}}</view>
+								<view class="bygoodsNameBox">
+									<span class="isRecommend" v-if="item.isRecommend==1">适配</span>
+									<span class="bygoodsName">{{item.title}}</span>
 								</view>
 								
 								<view class="goodsMs">{{item.showContent}}</view>
@@ -1863,12 +1863,21 @@
 .qiehuanBox{
 	min-height: 600rpx;
 }
-.byBox .goodsName{
+
+.byBox .bygoodsNameBox{
+	text-overflow: -o-ellipsis-lastline;
+	overflow: hidden;				
+	text-overflow: ellipsis;		
+	display: -webkit-box;			
+	-webkit-line-clamp: 2;		
+	line-clamp: 2;					
+	-webkit-box-orient: vertical;
+}
+.bygoodsName{
 	font-weight: 600;
 	font-size: 28rpx;
 	color: #222222;
 	line-height: 40rpx;
-	
 }
 .goodsRight{
 	padding-left: 24rpx;
@@ -2448,4 +2457,5 @@ margin-top: 10rpx;
 		-webkit-box-orient: vertical;
 		
 	}
+	
 </style>

+ 4 - 0
pages/subPack/maintain.vue

@@ -405,6 +405,9 @@
 			},
 			goSubmit(){
 				if(this.itemDefault){
+					if(this.itemDefault.content){
+						this.itemDefault.content=this.itemDefault.content.replace(/\<img/gi, '<img style="max-width:100% !important;height:auto" ');
+					}
 					this.itemDefault.goodsnum=this.goodsnum
 					this.itemDefault.goodsname=this.lineItem.title
 					this.itemDefault.itemId=this.lineItem.id
@@ -463,6 +466,7 @@
 							this.itemDefault.goodsname=this.lineItem.title
 							this.totalPrice=d.money
 							this.qdNum=1
+							this.itemDefault.mainImgUrl=this.lineItem.mainImgUrl
 						}
 					})
 					

+ 11 - 1
pages/subPack/maintainItem.vue

@@ -843,10 +843,11 @@ color: #666E80;
 	-webkit-box-orient: vertical;
 }
 .tkNameBox{
-	padding-left: 24rpx;width: 500rpx;
+	padding-left: 24rpx;width: 496rpx;
 }
 .chahao{
 	width: 22rpx;height: 22rpx;padding-top: 10rpx;
+	padding-left: 4rpx;
 }
 .buyLine{
 	display: flex;justify-content: space-between;
@@ -936,6 +937,15 @@ color: #666E80;
 .mealBox img{
 	width: 100%;
 }
+.mealBox image{
+	width: 100%;
+}
+.goodsDetail image{
+		width: 100%;
+}
+.goodsDetail img{
+		width: 100%;
+}
 .hjt{
 	width: 12rpx;height: 24rpx;
 	margin-top: 8rpx;margin-left: 10rpx;

+ 6 - 1
pages/subPack/maintainSubmit.vue

@@ -378,5 +378,10 @@ border-radius: 16rpx;
 	color: #110B01;
 	margin-right: 36rpx;
 }
-
+.mealBox img{
+	width: 100%;
+}
+.mealBox image{
+	width: 100%;
+}
 </style>