caiyuqin 1 месяц назад
Родитель
Сommit
a541b01640
1 измененных файлов с 15 добавлено и 2 удалено
  1. 15 2
      pages/product/details.vue

+ 15 - 2
pages/product/details.vue

@@ -39,7 +39,7 @@
 						</view>
 					</view>
 				</view>
-				<rich-text :nodes="form.richText" v-if="form.richText"></rich-text>
+				<rich-text class="rich_text" :nodes="form.richText" v-if="form.richText"></rich-text>
 
 				<view class="data"  v-if="form.categoryId != '1945013773786701826'">
 					<span class="span">原价</span>{{form.price}}
@@ -327,6 +327,19 @@
 			}
 		}
 
+		.rich_text {
+			display: block;
+			width: 100%;
+			overflow: hidden;
+
+			::v-deep img {
+				display: block;
+				width: 100% !important;
+				max-width: 100% !important;
+				height: auto !important;
+			}
+		}
+
 		.particulars {
 			width: 100%;
 			margin-top: 20rpx;
@@ -424,4 +437,4 @@
 			}
 		}
 	}
-</style>
+</style>