tanyanfei 3 years ago
parent
commit
6c1e1419f3
1 changed files with 2 additions and 2 deletions
  1. 2 2
      pages/follow/follow.wxml

+ 2 - 2
pages/follow/follow.wxml

@@ -4,10 +4,10 @@
   <view class="info">
     资产:  <view><label>187w</label> 
     (今日收益 
-    <text  class="{{item.today_income<0 ?'down':'up'}}">{{item.today_income}}%</text>
+    <text  class="{{item.today_income[0]=='-' ?'down':'up'}}">{{item.today_income}}</text>
     <text style="color:#F5F5F5;">  |  </text>
     总收益 
-    <text  class="{{item.total_income<0 ?'down':'up'}}">{{item.total_income}}%</text>
+    <text  class="{{item.total_income[0]=='-' ?'down':'up'}}">{{item.total_income}}</text>
     )</view>
   </view>
 </view>