从后台传过来的数据进行渲染实现
将每个GD GG和GP转换为汉字并作为一个小标题,没有数据时则不显示
<block wx:if="{{bindSource.GD.length>0}}">
<view>股东</view>
<view wx:for="{{bindSource.GD}} " wx:key="id">
<view class="itemview">{{item.secuabbr}}</view>
</view>
</block>
<block wx:if="{{bindSource.GG.length>0}}">
<view>高管</view>
<view wx:for="{{bindSource.GG}}" wx:key="id">
<view class="itemview ">{{item.secuabbr}}</view>
</view>
</block>
<block wx:if="{{bindSource.GP.length>0}}">
<view>股票</view>
<view wx:for="{{bindSource.GP}}" wx:key="id">
<view class="itemview ">{{item.secuabbr}}</view>
</view>
</block>
可是当搜其他内容时
返回的数据为
要怎么改一下才好啊