<van-search value="{{ value }}" shape="round" background="#fff" placeholder="请输入搜索关键词" bind:change='onInput' />

<view class="content" style="margin-top: 20rpx;">
    <view class="title">请选择添加标签</view>
    <van-checkbox-group value="{{ actives }}">
        <van-cell-group>
            <van-cell wx:for="{{ list }}" wx:key="sys_systemtagdetailid" title="{{ item.tag }}" label="{{item.helptips}}" value-class="value-class" clickable bind:click="onChange" data-item="{{item}}" data-disabled='{{active.que(item.tag,forbiddens)}}'>
                <van-checkbox disabled='{{active.que(item.tag,forbiddens)}}' name="{{ item.tag }}" />
            </van-cell>
        </van-cell-group>
    </van-checkbox-group>
</view>
<My_empty wx:if="{{list.length==0}}" />

<view style="height: 130rpx;" />
<view class="footer">
    <view class="count">
        已选：{{actives.length}}
    </view>
    <van-button custom-class='but' bindtap="submit">确定</van-button>
</view>

<wxs module="active">
    module.exports.que = function (name, list) {
        return list.some(function (v) {
            return v === name
        })
    }
</wxs>