关键代码如下

    1. <view class="header">
    2. <view>总金额(元)</view>
    3. <view class="balance">{{myFund.total_balance}}</view>
    4. <view class="header-info">
    5. <view>
    6. <view>昨日收益(元)</view>
    7. <view class="money">+{{myFund.last_day_earn}}</view>
    8. </view>
    9. <view style="border-left:solid 1px #fff;border-right:solid 1px #fff;">
    10. <view>持有收益(元)</view>
    11. <view class="money">+{{myFund.carry_earn}}</view>
    12. </view>
    13. <view>
    14. <view>累计收益(元)</view>
    15. <view class="money">+{{myFund.total_earn}}</view>
    16. </view>
    17. </view>
    18. </view>

    image.png