<!--pages/branches/brancheslist.wxml-->
<cu-custom bgColor="bg-darkblue" isBack="{{true}}" isRelaunch="{{false}}">
    <view slot="content" style="color:#FFFFFF;">报考问答</view>
</cu-custom>
<view class="cu-bar bg-white search fixed" style="top:{{CustomBar}}px">
    <view class="search-form round" style="margin-top:5rpx;margin-bottom:5rpx">
        <text class="cuIcon-search"></text>
        <input type="text" placeholder="请输入关键字" confirm-type="search" bindinput="doSearch"></input>
    </view>
</view>
<scroll-view style="margin-top:70rpx;padding-left:10rpx;padding-right:10rpx;height:{{contentHeight}}px;" scroll-y="true"
    bindscrolltolower="doLoadMore">
    <view class="list" wx:if="{{answerList.length>0}}">
        <view class="item" wx:for="{{answerList}}" wx:key="index" bindtap="showDetail" data-item="{{item}}">
            <image class="cu-avatar radius" style="width:200rpx;height:120rpx;min-width:200rpx;min-height:120rpx;"
                src="{{item.showPhoto}}" mode="scaleToFill"></image>
            <view class="content">
                <text class="text-cut text-black text-bold">{{item.title}}</text>
                <view class="flex justify-between">
                <text class="text-cut">{{item.source}}</text>
                <text class="text-cut">{{item.publishDate}}</text>
              </view>
            </view>
        </view>
    </view>
    <van-empty description="暂无数据" wx:else />
</scroll-view>