详情页头部部分比较简单,和基金列表页类似。关键代码如下
<view class="header">
<view class="fund-code">0005864</view>
<view style="font-size:14px;color:#666;margin-top:20px;">金额(元)</view>
<view class="balance">10000</view>
<view class="header-info">
<view>
<view class="light-word">昨日收益(元)</view>
<view class="money">+180</view>
</view>
<view style="border-left:solid 1px #eee;border-right:solid 1px #eee;">
<view class="light-word">持有收益(元)</view>
<view class="money">+180</view>
</view>
<view>
<view class="light-word">累计收益(元)</view>
<view class="money">+180</view>
</view>
</view>
</view>