Rorschach 6 年之前
父節點
當前提交
6fbd09c9cc
共有 4 個文件被更改,包括 23 次插入9 次删除
  1. 1 1
      component/follow/follow.wxml
  2. 2 1
      pages/user/myworks/myworks.js
  3. 4 2
      pages/user/myworks/myworks.wxml
  4. 16 5
      pages/user/myworks/myworks.wxss

+ 1 - 1
component/follow/follow.wxml

@@ -1,4 +1,4 @@
-<template name="follow">
+<template name="follow">  
   <view class="followWares">
     <view wx:for="{{followData}}" wx:key="{{index}}" class="followWareCard" bindtap="openWorks" data-readid="{{item.id}}" data-title="{{item.title}}">
       <view class="topData">

+ 2 - 1
pages/user/myworks/myworks.js

@@ -35,7 +35,8 @@ Page({
     });
     APIClient.userWorks(uid, pageNo, pageSize).success(res => {
       this.setData({
-        worksList: res.data.data.list
+        worksList: this.data.worksList.concat(res.data.data.list),
+        totalNo: res.data.data.totalNo
       });
       wx.hideToast();
     }).fail(err => {

+ 4 - 2
pages/user/myworks/myworks.wxml

@@ -66,19 +66,21 @@
         <view class='user-name'>
           <view class='left-detail'>{{ item.user.wechatName }}</view>
           <view class='right-detail'>
+            
+            <text class='plays-count'>{{ item.userRead.playAmount || 0 }}</text>
             <view class='plays-img'>
               <image src='../../../static/image/hotPlays.png'></image>
             </view>
-            <text class='plays-count'>{{ item.userRead.playAmount || 0 }}</text>
           </view>
         </view>
         <view class='user-name'>
           <view class='left-detail'>{{ format.formatDate(item.userRead.gmtCreated) || 0 }}</view>
           <view class='right-detail'>
+            
+            <text class='likes-count'>{{ item.userRead.likeAmount || 0 }}</text>
             <view class='likes-img'>
               <image src='../../../static/image/like.png'></image>
             </view>
-            <text class='likes-count'>{{ item.userRead.likeAmount || 0 }}</text>
           </view>
         </view>
       </view>

+ 16 - 5
pages/user/myworks/myworks.wxss

@@ -45,9 +45,10 @@ page{
   height: 138rpx;
   border-radius: 50%;
   z-index: 300;
-  position: absolute;
+  /* position: absolute;
   top: 7rpx;
-  left: 7rpx;
+  left: 7rpx; */
+  margin: 8rpx auto;
 }
 
 .avatar-image{
@@ -59,6 +60,7 @@ page{
 .avatar-nickname{
   width: 500rpx;
   display: flex;
+  
 }
 
 .avatar-address{
@@ -81,10 +83,11 @@ page{
   left: 100rpx;
   top: 46rpx;
   width: 68rpx;
+  height: 26rpx;
   background: #61CA54;
   border-radius: 180rpx;
   z-index: 600;
-  line-height: 26rpx;
+  /* line-height: 26rpx; */
   text-align: center;
   color: #FFFFFF;
   font-size: 18rpx;
@@ -115,6 +118,8 @@ page{
 
 .avatar-nickname,.avatar-birthday,.avatar-address{
   line-height: 50rpx;
+  color: #444;
+  font-size: 32rpx;
 }
 
 .mine-category{
@@ -220,6 +225,8 @@ image{
   width: 96rpx;
   height: 96rpx;
   border-radius: 50%;
+  margin-right:20rpx;
+
 }
 
 .user-img>image{
@@ -229,7 +236,7 @@ image{
 }
 
 .user-details{
-  margin-left: 26rpx;
+  /* margin-left: 26rpx; */
   display: flex;
   flex-direction: column;
 }
@@ -239,18 +246,21 @@ image{
   display: flex;
   justify-content: space-between;
   align-items: flex-end;
-  color: #000000;
+  color: #444;
   font-weight: 500;
 }
 
 .left-detail{
   width: 500rpx;
+  font-size: 32rpx;
 }
 
 .right-detail{
   width: 90rpx;
   display: flex;
   font-size: 22rpx;
+  flex-direction:row-reverse;
+margin-right: 6rpx;
 }
 
 .user-time{
@@ -285,6 +295,7 @@ image{
 
 .content-grage{
   font-size: 24rpx;
+  margin-right:6rpx;
 }
 
 .user-info image{