<!--components/radioAndcheckbox/index.wxml-->
<van-popup show="{{ chooseBuilding }}" position="bottom" custom-style="height: 50%;">
    <view class="topTab">
        <text class="cancel" bindtap="crossBuilding">取消</text>
        <text class="sure" bindtap="sure">确定</text>
    </view>

    <radio-group wx:if="{{type==='radio'}}" bindchange="chooserRadio">
            <label class="group" wx:for="{{list}}" wx:key="{{item.name}}">
                <radio value='{{item.name}}'  data-name="{{item.name}}" checked="{{item.name==name}}" />{{item.name}}
            </label>
    </radio-group>


    <checkbox-group wx:if="{{type==='checkbox'}}" class="box" bindchange="checkboxChange">
        <view class="{{className=='block'?'block':'group group1'}}" wx:for="{{list}}" wx:key="{{item.name}}">
            <label data-index="{{index}}">
                <checkbox value="{{sn?item.sn:item.name}}" checked="{{item.checked}}" />{{item.name}}
            </label>
        </view>
    </checkbox-group>
</van-popup>