tanyanfei 3 yıl önce
ebeveyn
işleme
7e833d1ec8

+ 1 - 0
app.wxss

@@ -82,4 +82,5 @@ image{
   text-overflow: ellipsis !important;
   overflow: hidden !important;
   white-space: nowrap !important;
+  padding-right: 20rpx !important;
 }

+ 1 - 1
pages/knowledge/knowledge.wxml

@@ -31,7 +31,7 @@
                   <view class="title"> <rich-text nodes="<div style='overflow:hidden;white-space:nowrap;text-overflow:ellipsis;'>{{item.name}}</div>"></rich-text></view>
                   <view class="ly"> 
                               <text style="float:right;">{{item.publish_time}}</text>
-                              <text>作者:{{item.author}}</text>
+                              <text class="nowrap">作者:{{item.author}}</text>
                               <text class="">发布单位:{{item.journal_name}}</text>
                   </view>
                   

+ 2 - 0
pages/searchList/searchList.wxml

@@ -40,6 +40,7 @@
               <image  src="{{i.img}}"></image>
               <view>
                   <view class="title"> <rich-text nodes="{{i._name}}"></rich-text></view>
+                  <text>作者:{{item.author}}</text>
                   <text class="wrap">{{i.desc}}</text>
               </view>
     </navigator>
@@ -81,6 +82,7 @@
               <image  mode="widthFix" src="{{i.img}}"></image>
               <view>
                   <view class="title">{{i.name}}</view>
+                  <text>作者:{{item.author}}</text>
                   <text class="wrap">{{i.desc}}</text>
               </view>
     </navigator>