zs 2 роки тому
батько
коміт
7e8e861fde
3 змінених файлів з 60 додано та 84 видалено
  1. 24 34
      pages/news/mess.less
  2. 19 23
      pages/news/mess.wxml
  3. 17 27
      pages/news/mess.wxss

+ 24 - 34
pages/news/mess.less

@@ -57,43 +57,30 @@
                 .list {
                     background-color: #ffffff;
                     border-bottom: 1px solid #cccccc;
-                    padding: 2vw 0;
-                    display: flex;
-                    flex-direction: column;
-
-                    .info {
-                        display: flex;
-                        flex-direction: row;
-                        margin: 0 0 2vw 0;
-
-                        .list_2 {
-                            padding: 0 0 0 2vw;
-
-                            .name {
-                                font-size: 18px;
-                                font-weight: bold;
-                                margin: 0 0 1vw 0;
-                                overflow: hidden;
-                                text-overflow: ellipsis;
-                                -webkit-line-clamp: 2;
-                                word-break: break-all;
-                                display: -webkit-box;
-                                -webkit-box-orient: vertical;
+                    width: 96vw;
+                    padding: 2vw;
+
+                    .name {
+                        font-size: 18px;
+                        margin: 0 0 1vw 0;
+                        font-weight: bold;
+                    }
+
+                    .other {
+                        margin: 0 0 1vw 0;
+
+                        .other_1 {
+                            margin: 0 0 1vw 0;
+                            font-size: 15px;
+
+                            text {
+                                color: #000000;
                             }
 
-                            .other {
-                                .other_1 {
-                                    margin: 0 0 1vw 0;
-                                    color: #000000a6;
-                                    font-size: 15px;
-                                    overflow: hidden;
-                                    text-overflow: ellipsis;
-                                    -webkit-line-clamp: 4;
-                                    word-break: break-all;
-                                    display: -webkit-box;
-                                    -webkit-box-orient: vertical;
-                                }
+                            text:nth-child(1) {
+                                color: #858585;
                             }
+
                         }
                     }
 
@@ -105,7 +92,10 @@
                             font-size: 14px;
                         }
                     }
+                }
 
+                .list:last-child {
+                    border-bottom: none;
                 }
             }
         }

+ 19 - 23
pages/news/mess.wxml

@@ -12,29 +12,25 @@
             <scroll-view scroll-y="true" class="scroll-view">
                 <view class="list-scroll-view">
                     <view class="list" wx:for="{{list}}" wx:key="item">
-                        <view class="info">
-                            <view class="list_2">
-                                <view class="other">
-                                    <view class="name">
-                                        <text>{{item.title||'暂无'}}</text>
-                                    </view>
-                                    <view class="other_1">
-                                        <text>资讯类型:</text>
-                                        <text>{{typeList[item.type].label}}</text>
-                                    </view>
-                                    <view class="other_1">
-                                        <text>信息来源:</text>
-                                        <text>{{item.origin||'暂无'}}</text>
-                                    </view>
-                                    <view class="other_1">
-                                        <text>发布时间:</text>
-                                        <text>{{item.create_time||'暂无'}}</text>
-                                    </view>
-                                    <view class="other_1">
-                                        <text>是否公开:</text>
-                                        <text>{{item.is_show=='0'?'公开':'不公开'}}</text>
-                                    </view>
-                                </view>
+                        <view class="name">
+                            {{item.title||'暂无'}}
+                        </view>
+                        <view class="other">
+                            <view class="other_1">
+                                <text>资讯类型:</text>
+                                <text>{{typeList[item.type].label}}</text>
+                            </view>
+                            <view class="other_1">
+                                <text>信息来源:</text>
+                                <text>{{item.origin||'暂无'}}</text>
+                            </view>
+                            <view class="other_1">
+                                <text>发布时间:</text>
+                                <text>{{item.create_time||'暂无'}}</text>
+                            </view>
+                            <view class="other_1">
+                                <text>是否公开:</text>
+                                <text>{{item.is_show=='0'?'公开':'不公开'}}</text>
                             </view>
                         </view>
                         <view class="btn">

+ 17 - 27
pages/news/mess.wxss

@@ -49,39 +49,26 @@
 .main .two .scroll-view .list-scroll-view .list {
   background-color: #ffffff;
   border-bottom: 1px solid #cccccc;
-  padding: 2vw 0;
-  display: flex;
-  flex-direction: column;
-}
-.main .two .scroll-view .list-scroll-view .list .info {
-  display: flex;
-  flex-direction: row;
-  margin: 0 0 2vw 0;
-}
-.main .two .scroll-view .list-scroll-view .list .info .list_2 {
-  padding: 0 0 0 2vw;
+  width: 96vw;
+  padding: 2vw;
 }
-.main .two .scroll-view .list-scroll-view .list .info .list_2 .name {
+.main .two .scroll-view .list-scroll-view .list .name {
   font-size: 18px;
+  margin: 0 0 1vw 0;
   font-weight: bold;
+}
+.main .two .scroll-view .list-scroll-view .list .other {
   margin: 0 0 1vw 0;
-  overflow: hidden;
-  text-overflow: ellipsis;
-  -webkit-line-clamp: 2;
-  word-break: break-all;
-  display: -webkit-box;
-  -webkit-box-orient: vertical;
-}
-.main .two .scroll-view .list-scroll-view .list .info .list_2 .other .other_1 {
+}
+.main .two .scroll-view .list-scroll-view .list .other .other_1 {
   margin: 0 0 1vw 0;
-  color: #000000a6;
   font-size: 15px;
-  overflow: hidden;
-  text-overflow: ellipsis;
-  -webkit-line-clamp: 4;
-  word-break: break-all;
-  display: -webkit-box;
-  -webkit-box-orient: vertical;
+}
+.main .two .scroll-view .list-scroll-view .list .other .other_1 text {
+  color: #000000;
+}
+.main .two .scroll-view .list-scroll-view .list .other .other_1 text:nth-child(1) {
+  color: #858585;
 }
 .main .two .scroll-view .list-scroll-view .list .btn {
   text-align: center;
@@ -90,3 +77,6 @@
   margin: 0 2vw;
   font-size: 14px;
 }
+.main .two .scroll-view .list-scroll-view .list:last-child {
+  border-bottom: none;
+}