diff --git a/pages/articleList/index.less b/pages/articleList/index.less index 07e5328..30d4986 100644 --- a/pages/articleList/index.less +++ b/pages/articleList/index.less @@ -153,14 +153,13 @@ border-radius: 30rpx; margin-bottom: 10rpx; } .box_6 { - width: 654rpx; margin-top: 16rpx; flex-direction: row; display: flex; justify-content: space-between; } .text_6 { - width: 470rpx; + flex: auto; height: 132rpx; overflow-wrap: break-word; color: rgba(96,98,102,1); @@ -177,12 +176,19 @@ border-radius: 30rpx; -webkit-box-orient: vertical; } .box_7 { + flex: none; border-radius: 16rpx; - background-image: url(https://lanhu-dds-backend.oss-cn-beijing.aliyuncs.com/merge_image/imgs/370df45eeaff4baaae26de82cabfb553_mergeImage.png); width: 140rpx; height: 140rpx; display: flex; flex-direction: column; + overflow: hidden; + margin-left: 20rpx; + + image{ + width: 140rpx; + height: 140rpx; + } } // 加载状态和分页提示样式 diff --git a/pages/articleList/index.wxml b/pages/articleList/index.wxml index f4f58be..b435591 100644 --- a/pages/articleList/index.wxml +++ b/pages/articleList/index.wxml @@ -13,7 +13,9 @@ {{item.title}} {{item.contentText}} - + + + diff --git a/pages/home/index.less b/pages/home/index.less index 52811f2..9063148 100644 --- a/pages/home/index.less +++ b/pages/home/index.less @@ -168,13 +168,30 @@ margin-top: 20rpx; font-size: 28rpx; color: #606266; - line-height: 44rpx; - display: -webkit-box; - -webkit-box-orient: vertical; - -webkit-line-clamp: 3; - overflow: hidden; - word-break: break-word; - + display: flex; + .text{ + height: 132rpx; + flex: auto; + line-height: 44rpx; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 3; + overflow: hidden; + word-break: break-word; + } + .cover-image{ + flex: none; + border-radius: 16rpx; + width: 140rpx; + height: 140rpx; + margin-left: 12rpx; + flex-direction: column; + overflow: hidden; + image{ + width: 140rpx; + height: 140rpx; + } + } } } @@ -373,8 +390,9 @@ position: absolute; right: 0rpx; top: -10rpx; + display: flex; align-items: center; - + justify-content: center; // transform: translateY(-50%); z-index: 1; .text_23 { diff --git a/pages/home/index.wxml b/pages/home/index.wxml index fd95f83..ff866d3 100644 --- a/pages/home/index.wxml +++ b/pages/home/index.wxml @@ -84,7 +84,12 @@ {{item.title}} - {{item.contentText}} + + {{item.contentText}} + + + +