<My_form id='from1' fromList='{{from1}}' bindCompletedOrNot='form1CompletedOrNot'>
</My_form>
<view style="height: 20rpx;" />
<My_form id='from2' fromList='{{from2}}' />
<view style="height: 20rpx;" />
<My_form id='from3' fromList='{{from3}}'>
    <view slot='slot' style="width: 100%;" bindtap="openPopup">
        <view wx:if="{{from3[0].value}}">
            <van-tag plain custom-class='tag' wx:if="{{per.query(from3[0].value,'支持者')}}" type="warning">支持者</van-tag>
            <van-tag plain custom-class='tag' wx:if="{{per.query(from3[0].value,'反对者')}}" type="danger">反对者</van-tag>
            <van-tag plain custom-class='tag' wx:if="{{per.query(from3[0].value,'关键决策人')}}" type="primary">关键决策人</van-tag>
        </view>
        <text wx:else style="color: rgba(0, 0, 0, .3); font-size: 28rpx;">请选择</text>
    </view>
    <view slot='slot1' style="width: 100%;">
        <picker bindchange="bindPickerChange" value="{{groupname}}" range="{{groupNameList}}">
            <text wx:if="{{groupName}}">{{groupName}}</text>
            <text wx:else style="color: rgba(0, 0, 0, .3); font-size: 28rpx;">请选择</text>
        </picker>
    </view>
</My_form>
<!-- 标签弹出层 -->
<van-popup show="{{ popupShow }}" position="bottom" custom-style="height: 530rpx;" round bind:close="closePopup">
    <view class="popup-title">选择联系人标签</view>
    <van-cell title="关键决策人" value-class="value-class" clickable bind:click="changeChecked">
        <van-checkbox catch:tap="noop" custom-class="checkboxes" bind:tap="changeChecked" value="{{ checked }}" />
    </van-cell>
    <van-radio-group value="{{ radio }}">
        <van-cell-group>
            <van-cell title="支持者" clickable data-name="支持者" bind:click="onChange">
                <van-radio slot="right-icon" name="支持者" />
            </van-cell>
            <van-cell title="反对者" clickable data-name="反对者" bind:click="onChange">
                <van-radio slot="right-icon" name="反对者" />
            </van-cell>
        </van-cell-group>
    </van-radio-group>
    <view class="popup-button">
        <van-button custom-class='but' type="default" bindtap="closePopup">取消</van-button>
        <van-button custom-class='but' type="info" bindtap="handleTag">确定</van-button>
    </view>
</van-popup>

<view class="footer">
    <van-button wx:if="{{sys_phonebookid==0}}" custom-class='button' loading='{{loading}}' loading-text="添加中..." disabled='{{disabled}}' color="#3874F6" bindtap="submit">确定添加</van-button>
    <van-button wx:else custom-class='button' disabled='{{disabled}}' loading='{{loading}}' loading-text="保存中..." color="#FA8C16" bindtap="submit">保存</van-button>
</view>

<wxs src='../../utils/wxmlQueryPer.wxs' module="per" />