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

<view class="content" style="margin-top: 20rpx;">
    <view class="title">请选择添加标签</view>
    <view class="tags" bindtap="onChange">
        <van-button custom-class='basic {{active.que(item.tag,actives)?"active":""}}' disabled='{{active.que(item.tag,forbiddens)}}' wx:for="{{list}}" wx:key="item.sys_systemtagdetailid" data-item="{{item}}" data-disabled="{{active.que(item.tag,forbiddens)}}">{{item.tag}}</van-button>
    </view>
</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" disabled='{{actives.length==0}}'>确定</van-button>
</view>

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