关键代码如下
<view class="header">
<view>总金额(元)</view>
<view class="balance">{{myFund.total_balance}}</view>
<view class="header-info">
<view>
<view>昨日收益(元)</view>
<view class="money">+{{myFund.last_day_earn}}</view>
</view>
<view style="border-left:solid 1px #fff;border-right:solid 1px #fff;">
<view>持有收益(元)</view>
<view class="money">+{{myFund.carry_earn}}</view>
</view>
<view>
<view>累计收益(元)</view>
<view class="money">+{{myFund.total_earn}}</view>
</view>
</view>
</view>