xjc 3 vuotta sitten
vanhempi
commit
ccbcc57e55
3 muutettua tiedostoa jossa 5 lisäystä ja 5 poistoa
  1. 3 3
      pages/detail/detail.wxml
  2. 1 1
      pages/gameDetail/gameDetail.wxml
  3. 1 1
      pages/index/index.wxml

+ 3 - 3
pages/detail/detail.wxml

@@ -1,6 +1,6 @@
 <view class="part top">
     <image mode="widthFix" src="../images/bank.png"></image>
-    <view class="rank"> <text>{{datas.cur_rank?datas.cur_rank:''}}</text>当前排名 </view>  
+    <view class="rank"> <text>{{datas.group_rank?datas.group_rank:0}}</text>当前排名 </view>  
 
     <view class='label'>
       日期  <text>{{datas.stock_date}}</text>
@@ -13,8 +13,8 @@
 <view class="info">
     <view> <text>{{datas.init_fund}}w</text>初始资产  </view>
     <view> <text>{{datas.today_fund}}w</text>今日资产  </view>
-    <view> <text  class="{{datas.today_income<0?'down':'up'}}">{{datas.today_income}}%</text>当日收益  </view>
-    <view> <text  class="{{datas.total_income<0?'down':'up'}}">{{datas.total_income}}%</text>总收益  </view>
+    <view> <text  class="{{datas.today_income<0?'down':'up'}}">{{datas.today_income}}</text>当日收益  </view>
+    <view> <text  class="{{datas.total_income<0?'down':'up'}}">{{datas.total_income}}</text>总收益  </view>
 </view>
 
 <view class="part">

+ 1 - 1
pages/gameDetail/gameDetail.wxml

@@ -7,7 +7,7 @@
 <view class="part info" wx:if='{{datas.today_record}}'>
     <view> <text>{{datas.today_record.group_rank}}</text>排名  </view>
     <!-- <view style="width:30%;"> <text>{{datas.today_record.group_rank}}</text>小组排名  </view> -->
-    <view> <text  class="{{datas.today_record.today_income[0]=='-'?'down':'up'}}">{{datas.today_record.today_income}}</text>盈亏  </view>
+    <view> <text  class="{{datas.today_record.total_income[0]=='-'?'down':'up'}}">{{datas.today_record.total_income}}</text>盈亏  </view>
     <view> <text>{{datas.today_record.init_fund}}</text>初始资产(万)  </view>
     <view> <text >{{datas.today_record.today_fund}}</text>今日资产(万)  </view>
 </view>

+ 1 - 1
pages/index/index.wxml

@@ -25,7 +25,7 @@
     <view class="item">
         <text class="tag blue">持仓</text>
         <view class="list">
-        <view wx:if='{{item.is_markt}}'>开超市</view>
+        <view wx:if='{{item.is_markt}}'>开超市</view>
         <block wx:else>
             <view wx:for='{{item.today_stock}}' wx:for-item='stock' >
             {{stock.name}}  <text>{{stock.fund}}万</text></view>