Browse Source

用户作品 调整

dongyuan0658 5 năm trước cách đây
mục cha
commit
2a0b80639f
2 tập tin đã thay đổi với 29 bổ sung22 xóa
  1. 7 15
      pages/user/myworks/myworks.wxml
  2. 22 7
      pages/user/myworks/myworks.wxss

+ 7 - 15
pages/user/myworks/myworks.wxml

@@ -30,36 +30,28 @@
         <view class='play-count'>
           <view>{{ wareCards.playAmount || 0 }}</view>
           <view class='border-right'>
-            <view class='play-img'>
-              <image src='../../../static/image/play.png'></image>
-            </view>
+            <image class='play-img' src='../../../static/image/play.png'></image>
             <text>播放量</text>
           </view>
         </view>
         <view class='follow-count'>
           <view class='color'>{{ wareCards.fansAmount || 0 }}</view>
           <view class='border-right'>
-            <view class='play-img'>
-              <image src='../../../static/image/follow.png'></image>
-            </view>
+            <image class='follow-img' src='../../../static/image/follow.png'></image>
             <text>关注</text>
           </view>
         </view>
         <view class='point-count'>
           <view class='color'>{{ wareCards.likeAmount || 0 }}</view>
           <view class='border-right'>
-            <view class='play-img'>
-              <image src='../../../static/image/point.png'></image>
-            </view>
+            <image class='like-img' src='../../../static/image/point.png'></image>
             <text>赞</text>
           </view>
         </view>
         <view class='flower-count'>
           <view class='color'>{{ wareCards.pointAmount || 0 }}</view>
           <view class='border-right'>
-            <view class='play-img'>
-              <image src='../../../static/image/flower.png'></image>
-            </view>
+            <image class='flower-img' src='../../../static/image/flower.png'></image>
             <text>红花</text>
           </view>
         </view>
@@ -74,7 +66,7 @@
         <view class='user-name'>
           <view class='left-detail'>{{ item.user.wechatName }}</view>
           <view class='right-detail'>
-            <view class='play-img'>
+            <view class='plays-img'>
               <image src='../../../static/image/hotPlays.png'></image>
             </view>
             <text class='plays-count'>{{ item.userRead.playAmount || 0 }}</text>
@@ -83,10 +75,10 @@
         <view class='user-name'>
           <view class='left-detail'>{{ format.formatDate(item.userRead.gmtCreated) || 0 }}</view>
           <view class='right-detail'>
-            <view class='point-img'>
+            <view class='likes-img'>
               <image src='../../../static/image/like.png'></image>
             </view>
-            <text class='likes-count'>{{ item.userRead.likeAmount }}</text>
+            <text class='likes-count'>{{ item.userRead.likeAmount || 0 }}</text>
           </view>
         </view>
       </view>

+ 22 - 7
pages/user/myworks/myworks.wxss

@@ -138,7 +138,7 @@ page{
   align-items: center;
   font-size: 24rpx;
   font-weight: lighter;
-  height: 22rpx;
+  height: 26rpx;
   border-right: 2rpx solid #D6D6D6;
 }
 
@@ -152,10 +152,28 @@ page{
 }
 
 .play-img{
+  margin-right: 6rpx;
   width: 28rpx;
   height: 26rpx;
+}
+
+.follow-img{
+  margin-right: 6rpx;
+  width: 26rpx;
+  height: 22rpx;
+}
+
+.like-img{
+  margin-top: 4rpx;
   margin-right: 6rpx;
-  margin-bottom: 6rpx;
+  width: 28rpx;
+  height: 24rpx;
+}
+
+.flower-img{
+  margin-right: 6rpx;
+  width: 30rpx;
+  height: 26rpx;
 }
 
 image{
@@ -274,15 +292,12 @@ image{
   height: 100%;
 }
 
-.play-img{
-  margin-bottom: 10rpx;
+.plays-img{
   width: 20rpx;
   height: 20rpx;
 }
 
-.point-img{
-  margin-right: 6rpx;
-  margin-top: 2rpx;
+.likes-img{
   width: 26rpx;
   height: 24rpx;
 }