修复公告详情图片溢出、商品列表样式优化

master
Eratosici 5 years ago
parent 89fc57d707
commit 9fb646357c

@ -1,6 +1,6 @@
.prod-items { .prod-items {
width: 375rpx; width: 360rpx;
float: left; float: left;
background: #fff; background: #fff;
padding-bottom: 20rpx; padding-bottom: 20rpx;

@ -18,3 +18,9 @@
text-justify: inter-ideograph; text-justify: inter-ideograph;
margin-top: 20rpx; margin-top: 20rpx;
} }
.content >>> img {
display: block;
width: 100%;
height: auto;
}

@ -5,7 +5,7 @@
<view class="news-detail"> <view class="news-detail">
<view class="news-detail-title">{{news.title}}</view> <view class="news-detail-title">{{news.title}}</view>
<!-- <view class='news-detail-text'>{{news.content}}</view> --> <!-- <view class='news-detail-text'>{{news.content}}</view> -->
<rich-text :nodes="news.content"></rich-text> <rich-text class="content" :nodes="news.content"></rich-text>
</view> </view>
<!-- </block> --> <!-- </block> -->
</view> </view>

@ -4,6 +4,10 @@ page {
background: #fff; background: #fff;
} }
.container {
margin: 7px;
}
.line-fix { .line-fix {
width: 100%; width: 100%;
height: 2rpx; height: 2rpx;

@ -2,9 +2,9 @@
<!--pages/prod-classify/prod-classify.wxml--> <!--pages/prod-classify/prod-classify.wxml-->
<view class="container"> <view class="container">
<view class="line-fix"></view> <!-- <view class="line-fix"></view>
<view class="tit-background"></view> <view class="tit-background"></view> -->
<view> <view class="prod-list">
<block v-for="(item, index) in prodList" :key="index"> <block v-for="(item, index) in prodList" :key="index">
<prod :item="item"></prod> <prod :item="item"></prod>
</block> </block>

Loading…
Cancel
Save