tanyanfei 3 anos atrás
pai
commit
5d1a57dfe0
4 arquivos alterados com 10 adições e 18 exclusões
  1. 3 1
      pages/homepage/homepage.js
  2. 3 14
      pages/index/index.js
  3. 3 3
      pages/user/user.wxml
  4. 1 0
      pages/user/user.wxss

+ 3 - 1
pages/homepage/homepage.js

@@ -210,7 +210,9 @@ Page({
    * 生命周期函数--监听页面显示
    */
   onShow: function () {
-
+    if(this.data.player_id){
+      this.getData();
+    }
   },
 
   /**

+ 3 - 14
pages/index/index.js

@@ -298,19 +298,8 @@ Page({
         })
       }
     })
-    
-    // if (app.globalData.follow){
-    //   this.setData({
-    //     page: 1,
-    //     total: -1,
-    //     followList: [],
-    //   })
-    //   app.globalData.follow=0
-    //   this.getFollow()
-    // }
-    
-    // if (this.data.error) {
-    //   this.onLoad()
-    // }
+    if(this.data.followList.length<=0){
+      this.getFollow()
+    }
   },
 })

+ 3 - 3
pages/user/user.wxml

@@ -13,7 +13,7 @@
       <navigator hover-class="none"  url="../today/today?id={{todayinfo.match_id}}&record_id={{todayinfo.id}}&player_id={{todayinfo.player_id}}">
       
       <view class="money">
-        <text class="{{today_income_fund[0]=='-' ?'down':'up'}}">{{today_income_fund}}  </text>
+        <text class="{{todayinfo.today_income_fund < 0 ?'down':'up'}}">{{todayinfo.today_income_fund}}  </text>
         <text class="{{todayinfo.today_income[0]=='-' ?'todaydown':'todayup'}}">{{todayinfo.today_income}}</text>
         <text class="today_text">今日收益</text>
       </view>
@@ -26,10 +26,10 @@
         <text >总收益 <text class="{{todayinfo.total_income[0]=='-' ?'down':'up'}}"> {{todayinfo.total_income}}</text></text>
       </view>
       </navigator>
-      <view class="msg">
+      <navigator class="msg"  hover-class="none"  url="../today/today?id={{todayinfo.match_id}}&record_id={{todayinfo.id}}&player_id={{todayinfo.player_id}}">
         <view ><image mode="widthFix" src="../../images/msg.png"></image>{{todayinfo.comments_count}}</view>
         <view><image mode="widthFix" src="../../images/zan.png"></image>{{todayinfo.zan_count}}</view>
-      </view>
+      </navigator>
       </view>
 
 

+ 1 - 0
pages/user/user.wxss

@@ -174,6 +174,7 @@ page{
   background: rgba(247, 247, 247, 1);
   display: flex;
   border-top: 1px solid rgba(171, 171, 171, 0.2);
+  padding: 0 !important;
 }
 .msg view{
   width: 50%;