xjc 3 years ago
parent
commit
b6cce864b2
4 changed files with 8 additions and 5 deletions
  1. 2 2
      pages/day/day.wxml
  2. 1 1
      pages/index/index.js
  3. 1 1
      pages/index/index.wxml
  4. 4 1
      pages/today/today.wxml

+ 2 - 2
pages/day/day.wxml

@@ -2,10 +2,10 @@
   <view class="stock" wx:for='{{list}}'>
   <navigator hover-class="none" url="../record/record?id={{item.id}}" >
     <view class="info">
-      <view>{{item.stock_date}}(收益 <text  class="{{item.today_income[0]=='-' ?'down':'up'}}">{{item.today_income}}</text>)</view>
+      <view>{{item.stock_date}}(今日收益 <text  class="{{item.today_income[0]=='-' ?'down':'up'}}">{{item.today_income}}</text>)</view>
     </view>
     <view class="info">
-      资产:  <view><label>{{item.today_fund}}w</label> (收益 <text  class="{{item.total_income[0]=='-' ?'down':'up'}}">{{item.total_income}}</text>)</view>
+      资产:  <view><label>{{item.today_fund}}w</label> (收益 <text  class="{{item.total_income[0]=='-' ?'down':'up'}}">{{item.total_income}}</text>)</view>
     </view>
     <view class="info">持仓: <view>
         <block wx:for='{{item.today_stock}}' wx:for-item='i'>

+ 1 - 1
pages/index/index.js

@@ -190,7 +190,7 @@ Page({
       this.setData({
         hotbuyList: res.data.data.list
       })
-      
+      wx.hideNavigationBarLoading()
     })
     $api.getHotsellList({ stock_date: stock_date }).then(res => {
       this.setData({

+ 1 - 1
pages/index/index.wxml

@@ -21,7 +21,7 @@
               <view class="name">{{item.username}}  <text wx:if='{{item.badge}}'>{{item.badge}}</text> 
               <view>TOP <text>{{item.group_rank}}</text></view></view> 
               <view class="info">
-                日期: <view>{{item.stock_date}}(收益 
+                日期: <view>{{item.stock_date}}(今日收益 
                 <text  class="{{item.today_income[0]=='-' ?'down':'up'}}">{{item.today_income}}</text>)</view>
               </view>
               <view class="info">

+ 4 - 1
pages/today/today.wxml

@@ -26,7 +26,10 @@
               <text  class="{{datas.today_record.total_income[0]=='-' ?'down':'up'}}">{{datas.today_record.total_income}}</text>
               )</view>
           </view>
-          <view class="bottom" wx:if='{{datas.today_record.is_markt}}'>
+          <view class="info" wx:if='{{datas.today_record.style.length>0}}'>初始资产:
+                <label>{{datas.today_record.init_fund}}w</label>
+          </view>
+          <view class="bottom" wx:if='{{datas.today_record.today_record.is_markt}}'>
             开超市
           </view>
           <view class="bottom" wx:elif='{{datas.today_record.today_stock_total>0}}'>