<mobile-main frameStyle="{{frameStyle}}" bind:back="back" bind:tabPath="tabPath">
    <view slot="info" class="container main">
        <view class="zero one">
            <view class="one_1">
                <input type="text" value="{{searchInfo.name}}" bindconfirm="search" placeholder="请输入场地名称" />
            </view>
            <view class="one_2">
                <button type="primary" bindtap="toAdd">添加</button>
            </view>
        </view>
        <view class="zero two">
            <scroll-view scroll-y="true" class="scroll-view">
                <view class="list-scroll-view">
                    <view class="list" wx:for="{{list}}" wx:key="item">
                        <view class="name"> {{item.name}}</view>
                        <view class="other">
                            <view class="other_1">
                                <text>比赛场地名称：</text>
                                <text>{{item.name||'暂无'}}</text>
                            </view>
                            <view class="other_1">
                                <text>裁判：</text>
                                <text>{{item.referee_name||'暂无'}}</text>
                            </view>
                            <view class="other_1">
                                <text>是否使用：</text>
                                <text>{{item.is_use=='0'?'启用':'禁用'}}</text>
                            </view>
                        </view>
                        <view class="btn">
                            <button type="primary" bindtap="toEdit" data-id="{{item._id}}" size="mini">信息维护</button>
                            <button size="mini" type="warn" bindtap="toDel" data-id="{{item._id}}">信息删除</button>
                        </view>
                    </view>
                </view>
            </scroll-view>
        </view>
    </view>
</mobile-main>