
<view class="content">
  <view class="title">多选</view>
  <view class="item">
    <view class="{{item.active}}" wx:for="{{list}}" wx:key="index" wx:for-item="item" bindtap="bindList" data-id="{{item.id}}">{{item.name}}</view>
  </view>
</view>

<view class="content">
  <view class="title">单选</view>
  <view class="item">
    <view class="{{item.active?'active':''}}" wx:for="{{type}}" wx:key="index" wx:for-item="item" bindtap="bindActive" data-id="{{item.id}}">{{item.name}}</view>
  </view>
</view>
