<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<c:set var="ctx" value="${pageContext.request.contextPath}" scope="request"/>
<c:set var="resourcePath" value="${ctx}/resources" scope="request"/>

<style>
    .layui-input-inline {
        width: 271px !important;
    }
</style>

<div class="layui-col-md6 layui-col-sm6 layui-col-xs12">
    <blockquote class="layui-elem-quote layui-text" style="margin-top: 15px;">
        <div>D1</div>
        <div>
            <span style="color: red;">${d1.settleTypeName}</span><span
                class="red f12 ml20">(注：请保持银行卡信息(证件号码、开户名、卡号、预留手机号)的匹配性)</span>
        </div>
    </blockquote>
    <form class="layui-form" id="form4" action="">
        <input type="hidden" name="userId" value="${d1.userId}">
        <input type="hidden" name="settleType" value="${d1.settleType}">
        <input type="hidden" name="channelType" value="${d1.channelType}">
        <input type="hidden" name="bankCardId" value="${d1.bankCardId}">
        <input type="hidden" name="merchantCode" value="${merchantCode}"/>
        <input type="hidden" name="bankCard.id" value="${d1.bankCard.id}"/>
        <input type="hidden" name="bankCard.accountType" value="${d1.bankCard.accountType}"/>
        <input type="hidden" name="bankCard.userId" value="${d1.bankCard.userId}"/>
        <input type="hidden" name="idcard.userId" value="${d1.idcard.userId}"/>
        <input type="hidden" name="idcard.userType" value="${d1.idcard.userType}"/>
        <input type="hidden" name="idcard.certName" value="${d1.idcard.certName}"/>
        <div class="layui-form-item" id="area2-picker2">
            <div class="layui-col-md12" style="clear:both">
                <div class="layui-inline">
                    <div class="layui-form-label"><label for="bankProvince2">开户行地区</label></div>
                    <div class="layui-input-inline">
                        <select id="bankProvince2" class="province-selector" lay-search
                                data-dom="bankCity2" name="bankCard.branchProvince"
                                data-value=" " lay-filter="bankProvinceType2">
                            <option value="">请选择省</option>
                            <c:forEach items="${areaCitiesList}" var="acl">>
                                <option value="${acl.areaName}"
                                        <c:if test="${d1.bankCard.branchProvince eq acl.areaName }">selected</c:if>>${acl.areaName}
                                </option>
                            </c:forEach>
                        </select>
                    </div>
                    <%--                <div class="layui-input-inline">--%>
                    <%--                    <select id="bankCity2" class="city-selector" name="bankCard.branchCity"--%>
                    <%--                            data-dom="bankArea2" data-value=""--%>
                    <%--                            lay-filter="bankCityType2">--%>
                    <%--                        <option value="${d1.bankCard.branchCity}">${d1.bankCard.branchCity}</option>--%>
                    <%--                    </select>--%>
                    <%--                </div>--%>

                    <%--                <div class="layui-input-inline">--%>
                    <%--                    <select id="bankArea2" name="bankCard.branchArea" class="county-selector"--%>
                    <%--                            data-value=""--%>
                    <%--                            lay-filter="bankCountyType2">--%>
                    <%--                        <option value="${d1.bankCard.branchArea}">${d1.bankCard.branchArea}</option>--%>
                    <%--                    </select>--%>
                    <%--                </div>--%>
                </div>
            </div>

            <div class="layui-col-md12" style="clear:both">
                <div class="layui-inline">
                    <div class="layui-form-label"></div>
                    <div class="layui-input-inline">
                        <select id="bankCity2" class="city-selector" name="bankCard.branchCity"
                                data-dom="bankArea2" data-value="" lay-search
                                lay-filter="bankCityType2">
                            <option value="${d1.bankCard.branchCity}">${d1.bankCard.branchCity}</option>
                        </select>
                    </div>
                </div>
            </div>

            <div class="layui-col-md12" style="clear:both">
                <div class="layui-inline">
                    <div class="layui-form-label"></div>

                    <div class="layui-input-inline">
                        <select id="bankArea2" name="bankCard.branchArea" class="county-selector"
                                data-value="" lay-search
                                lay-filter="bankCountyType2">
                            <option value="${d1.bankCard.branchArea}">${d1.bankCard.branchArea}</option>
                        </select>
                    </div>
                </div>
            </div>

            <div class="layui-col-md12" style="clear:both">
                <div class="layui-inline">
                    <div class="layui-form-label">开户银行</div>
                    <div class="layui-input-inline">
                        <select id="bankName2" name="bankCard.bankName"
                                data-dom="bankBranch2" lay-search
                                bank-city="bankCity2"
                                data-value="" lay-filter="bankBranchType2">
                            <option value="">选择银行</option>
                            <option value="工商银行"
                                    <c:if test='${d1.bankCard.bankName eq "工商银行" }'>selected</c:if>>工商银行
                            </option>
                            <option value="交通银行"
                                    <c:if test='${d1.bankCard.bankName eq "交通银行" }'>selected</c:if>>交通银行
                            </option>
                            <option value="招商银行"
                                    <c:if test='${d1.bankCard.bankName eq "招商银行" }'>selected</c:if>>招商银行
                            </option>
                            <option value="民生银行"
                                    <c:if test='${d1.bankCard.bankName eq "民生银行" }'>selected</c:if>>民生银行
                            </option>
                            <option value="中信银行"
                                    <c:if test='${d1.bankCard.bankName eq "中信银行" }'>selected</c:if>>中信银行
                            </option>
                            <option value="浦发银行"
                                    <c:if test='${d1.bankCard.bankName eq "浦发银行" }'>selected</c:if>>浦发银行
                            </option>
                            <option value="兴业银行"
                                    <c:if test='${d1.bankCard.bankName eq "兴业银行" }'>selected</c:if>>兴业银行
                            </option>
                            <option value="光大银行"
                                    <c:if test='${d1.bankCard.bankName eq "光大银行" }'>selected</c:if>>光大银行
                            </option>
                            <option value="广发银行"
                                    <c:if test='${d1.bankCard.bankName eq "广发银行" }'>selected</c:if>>广发银行
                            </option>
                            <option value="平安银行"
                                    <c:if test='${d1.bankCard.bankName eq "平安银行" }'>selected</c:if>>平安银行
                            </option>
                            <option value="北京银行"
                                    <c:if test='${d1.bankCard.bankName eq "北京银行" }'>selected</c:if>>北京银行
                            </option>
                            <option value="华夏银行"
                                    <c:if test='${d1.bankCard.bankName eq "华夏银行" }'>selected</c:if>>华夏银行
                            </option>
                            <option value="农业银行"
                                    <c:if test='${d1.bankCard.bankName eq "农业银行" }'>selected</c:if>>农业银行
                            </option>
                            <option value="建设银行"
                                    <c:if test='${d1.bankCard.bankName eq "建设银行" }'>selected</c:if>>建设银行
                            </option>
                            <option value="邮政储蓄银行"
                                    <c:if test='${d1.bankCard.bankName eq "邮政储蓄银行" }'>selected</c:if>>邮政储蓄银行
                            </option>
                            <option value="中国银行"
                                    <c:if test='${d1.bankCard.bankName eq "中国银行" }'>selected</c:if>>中国银行
                            </option>
                            <option value="宁波银行"
                                    <c:if test='${d1.bankCard.bankName eq "宁波银行" }'>selected</c:if>>宁波银行
                            </option>
                            <option value="其他银行"
                                    <c:if test='${d1.bankCard.bankName eq "其他银行" }'>selected</c:if>>其他银行
                            </option>
                        </select>
                    </div>
                </div>
            </div>

            <div class="layui-col-md12" style="clear:both">
                <div class="layui-inline">
                    <div class="layui-form-label">开户支行</div>
                    <div class="layui-input-inline" style="width: 272px;">
                        <select id="bankBranch2" class="city-selector" name="bankCard.contactLine" lay-search
                                data-value="" lay-filter="bankBranch2">
                            <option value="${d1.bankCard.contactLine}">${d1.bankCard.branchName}</option>
                        </select>
                    </div>
                </div>
            </div>

            <div class="layui-col-md12" style="clear:both">
                <div class="layui-inline">
                    <div class="layui-form-label">支行联行号</div>
                    <div class="layui-input-inline">
                        <input id="branchName" name="bankCard.branchName" class="layui-input" type="hidden"
                               value="${d1.bankCard.branchName}"
                               readonly/>
                        <input id="contactLine2" class="layui-input" type="text" value="${d1.bankCard.contactLine}"
                               readonly/>
                    </div>
                </div>
            </div>

            <div class="layui-col-md12" style="clear:both">
                <div class="layui-inline">
                    <div class="layui-form-label">开户名</div>
                    <div class="layui-input-inline">
                        <input type="text" placeholder="开户名"
                               class="layui-input"
                               name="bankCard.bankHolder" value="${d1.bankCard.bankHolder}"/>
                    </div>
                </div>
            </div>

            <div class="layui-col-md12" style="clear:both">
                <div class="layui-inline">
                    <div class="layui-form-label">开户账号</div>
                    <div class="layui-input-inline">
                        <input type="text" placeholder="开户账号"
                               class="layui-input" id="cardBankCard"
                               name="bankCard.bankCardNo" value="${d1.bankCard.bankCardNo}"/>
                    </div>
                </div>
            </div>

            <div class="layui-col-md12" style="clear:both">
                <div class="layui-inline">
                    <div class="layui-form-label">预留手机号</div>
                    <div class="layui-input-inline">
                        <input type="text" placeholder="预留手机号(对公账户不需要)"
                               class="layui-input" id="cardPhone" name="bankCard.phone"
                               value="${d1.bankCard.phone}"/>
                    </div>
                </div>
            </div>

            <input type="hidden" name="idcard.certType" value="${d1.idcard.certType}"/>

            <div class="layui-col-md12" style="clear:both">
                <div class="layui-inline">
                    <div class="layui-form-label">身份证号码</div>
                    <div class="layui-input-inline">
                        <input type="text" placeholder="身份证号码"
                               class="layui-input" id="certNo" name="idcard.certNo"
                               value="${d1.idcard.certNo}"/>
                    </div>
                </div>
            </div>

            <div class="layui-col-md12" style="clear:both">
                <div class="layui-inline">
                    <div class="layui-form-label">发放日期</div>
                    <div class="layui-input-inline">
                        <input type="text" placeholder="身份证发放日期"
                               class="layui-input" name="idcard.certStartTime"
                               value="${d1.idcard.certStartTime}"/>
                    </div>
                </div>
            </div>

            <div class="layui-col-md12" style="clear:both">
                <div class="layui-inline">
                    <div class="layui-form-label">失效日期</div>
                    <div class="layui-input-inline">
                        <input type="text" placeholder="身份证失效日期"
                               class="layui-input" name="idcard.certEndTime"
                               value="${d1.idcard.certEndTime}"/>
                    </div>
                </div>
            </div>

            <div class="layui-col-md12" style="clear:both">
                <ul>
                    <li class="fl pt10 pb10 layui-col-md12 layui-col-sm12 layui-col-xs12" data-v="06" data-t="store"
                        data-value="${d1.idcard.id}">
                        <div>身份证正面</div>
                        <div class="dlblock upload w300 h200 mt10">
                            <input name="idcard.imgPositive" value="${d1.idcard.imgPositive}" hidden/>
                            <img id="imgPositive1" src="${d1.idcard.imgPositive}" alt="身份证正面图片"
                                 referrer="no-referrer|origin|unsafe-url"
                                 onerror="this.src='${resourcePath }/images/error.jpg'"
                                 width="300" height="200">
                            <div class="cover"
                                 style="background: rgba(0, 0, 0, 0.6);
                                 height:200px;
                                 width:300px;
                                 position:absolute;
                                 margin-top: -200px;
                                 ">
                                <div style="margin-top: 90px;">
                                    <div class="u-icon icon1" onclick="magnify('imgPositive1')">
                                        <i class="layui-icon layui-icon-search"></i>
                                    </div>
                                    <div class="u-icon icon2 upload_icon">
                                        <i class="layui-icon layui-icon-edit"></i>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </li>
                    <li class="fl pt10 pb10  layui-col-md12 layui-col-sm12 layui-col-xs12" data-v="08" data-t="store"
                        data-value="${d1.idcard.id}">
                        <div>身份证反面</div>
                        <div class="dlblock upload w300 h200 mt10">
                            <input name="idcard.imgNegative" value="${d1.idcard.imgNegative}" hidden/>
                            <img id="imgNegative2" src="${d1.idcard.imgNegative}" alt=""
                                 onerror="this.src='${resourcePath }/images/error.jpg'"
                                 width="300" height="200">
                            <div class="cover"
                                 style="background: rgba(0, 0, 0, 0.6);
                                 height:200px;
                                 width:300px;
                                 position:absolute;
                                 margin-top: -200px;
                                 ">
                                <div style="margin-top: 90px;">
                                    <div class="u-icon icon1" onclick="magnify('imgNegative2')">
                                        <i class="layui-icon layui-icon-search"></i>
                                    </div>
                                    <div class="u-icon icon2 upload_icon">
                                        <i class="layui-icon layui-icon-edit"></i>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </li>
                    <c:if test="${d1.settleTypeName eq '对公'}">
                        <li class="fl pt10 pb10 layui-col-md12 layui-col-sm12 layui-col-xs12" data-v="09" data-t="store"
                            data-value="${d1.bankCard.id}">
                            <div>开户许可证</div>
                            <div class="dlblock upload w300 h200 mt10">
                                <input name="bankCard.licenseUrl" value="${d1.bankCard.licenseUrl}" hidden/>
                                <img id="imgUrl2" src="${d1.bankCard.licenseUrl}"
                                     referrer="no-referrer|origin|unsafe-url" alt=""
                                     onerror="this.src='${resourcePath }/images/error.jpg'"
                                     width="300" height="200">
                                <div class="cover"
                                     style="background: rgba(0, 0, 0, 0.6);
                                 height:200px;
                                 width:300px;
                                 position:absolute;
                                 margin-top: -200px;
                                 ">
                                    <div style="margin-top: 90px;">
                                        <div class="u-icon icon1" onclick="magnify('imgUrl2')">
                                            <i class="layui-icon layui-icon-search"></i>
                                        </div>
                                        <div class="u-icon icon2 upload_icon">
                                            <i class="layui-icon layui-icon-edit"></i>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </li>
                    </c:if>
                    <c:if test="${d1.settleTypeName ne '对公'}">
                        <li class="fl pt10 pb10 layui-col-md12 layui-col-sm12 layui-col-xs12" data-v="09" data-t="store"
                            data-value="${d1.bankCard.id}">
                            <div>结算卡图片</div>
                            <div class="dlblock upload w300 h200 mt10">
                                <input name="bankCard.imgUrl" value="${d1.bankCard.imgUrl}" hidden/>
                                <img id="imgUrl2" src="${d1.bankCard.imgUrl}" referrer="no-referrer|origin|unsafe-url"
                                     alt=""
                                     onerror="this.src='${resourcePath }/images/error.jpg'"
                                     width="300" height="200">
                                <div class="cover"
                                     style="background: rgba(0, 0, 0, 0.6);
                                 height:200px;
                                 width:300px;
                                 position:absolute;
                                 margin-top: -200px;
                                 ">
                                    <div style="margin-top: 90px;">
                                        <div class="u-icon icon1" onclick="magnify('imgUrl2')">
                                            <i class="layui-icon layui-icon-search"></i>
                                        </div>
                                        <div class="u-icon icon2 upload_icon">
                                            <i class="layui-icon layui-icon-edit"></i>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </li>
                    </c:if>
                    <c:if test="${d1.settleTypeName == '法人对私非法人' || d1.settleTypeName == '非法人对私非法人' || d1.settleTypeName == '对私非法人'}">
                        <li class="fl pt10 pb10 layui-col-md12 layui-col-sm12 layui-col-xs12" data-v="06" data-t="store"
                            data-value="${d1.idcard.id}">
                            <div>非法人授权函</div>
                            <div class="dlblock upload w300 h200 mt10">
                                <input name="certificateUrl" value="${d1.certificateUrl}" hidden/>
                                <img id="picUrl7" src="${d1.certificateUrl}" alt=""
                                     referrer="no-referrer|origin|unsafe-url"
                                     onerror="this.src='${resourcePath }/images/error.jpg'"
                                     width="300" height="200">
                                <div class="cover"
                                     style="background: rgba(0, 0, 0, 0.6);
                                 height:200px;
                                 width:300px;
                                 position:absolute;
                                 margin-top: -200px;
                                ">
                                    <div style="margin-top: 90px;">
                                        <div class="u-icon icon1" onclick="magnify('picUrl7')">
                                            <i class="layui-icon layui-icon-search"></i>
                                        </div>
                                        <div class="u-icon icon2 upload_icon">
                                            <i class="layui-icon layui-icon-edit"></i>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </li>
                    </c:if>
                </ul>
            </div>
        </div>

        <br/>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="formDemo4">保存-D1</button>
            </div>
        </div>
    </form>
</div>

<div class="layui-col-md6 layui-col-sm6 layui-col-xs12">
    <blockquote class="layui-elem-quote layui-text" style="margin-top: 15px;">
        <div>D0</div>
        <div>
            <span style="color: red;">${d0.settleTypeName}</span><span
                class="red f12 ml20">(注：请保持银行卡信息(证件号码、开户名、卡号、预留手机号)的匹配性)</span>
        </div>
    </blockquote>
    <form class="layui-form" id="form42" action="">
        <input type="hidden" name="userId" value="${d0.userId}">
        <input type="hidden" name="settleType" value="${d0.settleType}">
        <input type="hidden" name="channelType" value="${d0.channelType}">
        <input type="hidden" name="merchantCode" value="${merchantCode}"/>
        <input type="hidden" name="bankCard.id" value="${d0.bankCard.id}"/>
        <input type="hidden" name="bankCard.accountType" value="${d0.bankCard.accountType}"/>
        <input type="hidden" name="bankCard.userId" value="${d0.bankCard.userId}"/>
        <input type="hidden" name="idcard.userId" value="${d0.idcard.userId}"/>
        <input type="hidden" name="idcard.userType" value="${d0.idcard.userType}"/>
        <input type="hidden" name="idcard.certName" value="${d0.idcard.certName}"/>
        <div class="layui-form-item" id="area22-picker22">
            <div class="layui-col-md12" style="clear:both">
                <div class="layui-inline">
                    <div class="layui-form-label"><label for="bankProvince2">开户行地区</label></div>
                    <div class="layui-input-inline">
                        <select id="bankProvince22" class="province-selector" lay-search
                                data-dom="bankCity22" name="bankCard.branchProvince"
                                data-value=" " lay-filter="bankProvinceType2">
                            <option value="">请选择省</option>
                            <c:forEach items="${areaCitiesList}" var="acl">>
                                <option value="${acl.areaName}"
                                        <c:if test="${d0.bankCard.branchProvince eq acl.areaName }">selected</c:if>>${acl.areaName}
                                </option>
                            </c:forEach>
                        </select>
                    </div>
                    <%--                <div class="layui-input-inline">--%>
                    <%--                    <select id="bankCity2" class="city-selector" name="bankCard.branchCity"--%>
                    <%--                            data-dom="bankArea2" data-value=""--%>
                    <%--                            lay-filter="bankCityType2">--%>
                    <%--                        <option value="${d0.bankCard.branchCity}">${d0.bankCard.branchCity}</option>--%>
                    <%--                    </select>--%>
                    <%--                </div>--%>

                    <%--                <div class="layui-input-inline">--%>
                    <%--                    <select id="bankArea2" name="bankCard.branchArea" class="county-selector"--%>
                    <%--                            data-value=""--%>
                    <%--                            lay-filter="bankCountyType2">--%>
                    <%--                        <option value="${d0.bankCard.branchArea}">${d0.bankCard.branchArea}</option>--%>
                    <%--                    </select>--%>
                    <%--                </div>--%>
                </div>
            </div>

            <div class="layui-col-md12" style="clear:both">
                <div class="layui-inline">
                    <div class="layui-form-label"></div>
                    <div class="layui-input-inline">
                        <select id="bankCity22" class="city-selector" name="bankCard.branchCity"
                                data-dom="bankArea22" data-value="" lay-search
                                lay-filter="bankCityType2">
                            <option value="${d0.bankCard.branchCity}">${d0.bankCard.branchCity}</option>
                        </select>
                    </div>
                </div>
            </div>

            <div class="layui-col-md12" style="clear:both">
                <div class="layui-inline">
                    <div class="layui-form-label"></div>

                    <div class="layui-input-inline">
                        <select id="bankArea22" name="bankCard.branchArea" class="county-selector"
                                data-value="" lay-search
                                lay-filter="bankCountyType2">
                            <option value="${d0.bankCard.branchArea}">${d0.bankCard.branchArea}</option>
                        </select>
                    </div>
                </div>
            </div>

            <div class="layui-col-md12" style="clear:both">
                <div class="layui-inline">
                    <div class="layui-form-label">开户银行</div>
                    <div class="layui-input-inline">
                        <select id="bankName22" name="bankCard.bankName"
                                data-dom="bankBranch22" lay-search
                                bank-city="bankCity22"
                                data-value="" lay-filter="bankBranchType2">
                            <option value="">选择银行</option>
                            <option value="工商银行"
                                    <c:if test='${d0.bankCard.bankName eq "工商银行" }'>selected</c:if>>工商银行
                            </option>
                            <option value="交通银行"
                                    <c:if test='${d0.bankCard.bankName eq "交通银行" }'>selected</c:if>>交通银行
                            </option>
                            <option value="招商银行"
                                    <c:if test='${d0.bankCard.bankName eq "招商银行" }'>selected</c:if>>招商银行
                            </option>
                            <option value="民生银行"
                                    <c:if test='${d0.bankCard.bankName eq "民生银行" }'>selected</c:if>>民生银行
                            </option>
                            <option value="中信银行"
                                    <c:if test='${d0.bankCard.bankName eq "中信银行" }'>selected</c:if>>中信银行
                            </option>
                            <option value="浦发银行"
                                    <c:if test='${d0.bankCard.bankName eq "浦发银行" }'>selected</c:if>>浦发银行
                            </option>
                            <option value="兴业银行"
                                    <c:if test='${d0.bankCard.bankName eq "兴业银行" }'>selected</c:if>>兴业银行
                            </option>
                            <option value="光大银行"
                                    <c:if test='${d0.bankCard.bankName eq "光大银行" }'>selected</c:if>>光大银行
                            </option>
                            <option value="广发银行"
                                    <c:if test='${d0.bankCard.bankName eq "广发银行" }'>selected</c:if>>广发银行
                            </option>
                            <option value="平安银行"
                                    <c:if test='${d0.bankCard.bankName eq "平安银行" }'>selected</c:if>>平安银行
                            </option>
                            <option value="北京银行"
                                    <c:if test='${d0.bankCard.bankName eq "北京银行" }'>selected</c:if>>北京银行
                            </option>
                            <option value="华夏银行"
                                    <c:if test='${d0.bankCard.bankName eq "华夏银行" }'>selected</c:if>>华夏银行
                            </option>
                            <option value="农业银行"
                                    <c:if test='${d0.bankCard.bankName eq "农业银行" }'>selected</c:if>>农业银行
                            </option>
                            <option value="建设银行"
                                    <c:if test='${d0.bankCard.bankName eq "建设银行" }'>selected</c:if>>建设银行
                            </option>
                            <option value="邮政储蓄银行"
                                    <c:if test='${d0.bankCard.bankName eq "邮政储蓄银行" }'>selected</c:if>>邮政储蓄银行
                            </option>
                            <option value="中国银行"
                                    <c:if test='${d0.bankCard.bankName eq "中国银行" }'>selected</c:if>>中国银行
                            </option>
                            <option value="宁波银行"
                                    <c:if test='${d0.bankCard.bankName eq "宁波银行" }'>selected</c:if>>宁波银行
                            </option>
                            <option value="其他银行"
                                    <c:if test='${d0.bankCard.bankName eq "其他银行" }'>selected</c:if>>其他银行
                            </option>
                        </select>
                    </div>
                </div>
            </div>

            <div class="layui-col-md12" style="clear:both">
                <div class="layui-inline">
                    <div class="layui-form-label">开户支行</div>
                    <div class="layui-input-inline" style="width: 272px;">
                        <select id="bankBranch22" class="city-selector" name="bankCard.contactLine" lay-search
                                data-value="" lay-filter="bankBranch22">
                            <option value="${d0.bankCard.contactLine}">${d0.bankCard.branchName}</option>
                        </select>
                    </div>
                </div>
            </div>

            <div class="layui-col-md12" style="clear:both">
                <div class="layui-inline">
                    <div class="layui-form-label">支行联行号</div>
                    <div class="layui-input-inline">
                        <input id="branchName2" name="bankCard.branchName" class="layui-input" type="hidden"
                               value="${d1.bankCard.branchName}"
                               readonly/>
                        <input name="contactLine22" class="layui-input" type="text" value="${d0.bankCard.contactLine}"
                               readonly/>
                    </div>
                </div>
            </div>

            <div class="layui-col-md12" style="clear:both">
                <div class="layui-inline">
                    <div class="layui-form-label">开户名</div>
                    <div class="layui-input-inline">
                        <input type="text" placeholder="开户名"
                               class="layui-input" id="bankHolder"
                               name="bankCard.bankHolder" value="${d0.bankCard.bankHolder}"/>
                    </div>
                </div>
            </div>

            <div class="layui-col-md12" style="clear:both">
                <div class="layui-inline">
                    <div class="layui-form-label">开户账号</div>
                    <div class="layui-input-inline">
                        <input type="text" placeholder="开户账号"
                               class="layui-input" id="cardBankCard2"
                               name="bankCard.bankCardNo" value="${d0.bankCard.bankCardNo}"/>
                    </div>
                </div>
            </div>

            <div class="layui-col-md12" style="clear:both">
                <div class="layui-inline">
                    <div class="layui-form-label">预留手机号</div>
                    <div class="layui-input-inline">
                        <input type="text" placeholder="预留手机号(对公账户不需要)"
                               class="layui-input" id="cardPhone2" name="bankCard.phone"
                               value="${d0.bankCard.phone}"/>
                    </div>
                </div>
            </div>

            <input type="hidden" name="idcard.certType" value="${d0.idcard.certType}"/>

            <div class="layui-col-md12" style="clear:both">
                <div class="layui-inline">
                    <div class="layui-form-label">身份证号码</div>
                    <div class="layui-input-inline">
                        <input type="text" placeholder="身份证号码"
                               class="layui-input" id="certNo2" name="idcard.certNo"
                               value="${d0.idcard.certNo}"/>
                    </div>
                </div>
            </div>

            <div class="layui-col-md12" style="clear:both">
                <div class="layui-inline">
                    <div class="layui-form-label">发放日期</div>
                    <div class="layui-input-inline">
                        <input type="text" placeholder="身份证发放日期"
                               class="layui-input" name="idcard.certStartTime"
                               value="${d0.idcard.certStartTime}"/>
                    </div>
                </div>
            </div>

            <div class="layui-col-md12" style="clear:both">
                <div class="layui-inline">
                    <div class="layui-form-label">失效日期</div>
                    <div class="layui-input-inline">
                        <input type="text" placeholder="身份证失效日期"
                               class="layui-input" name="idcard.certEndTime"
                               value="${d0.idcard.certEndTime}"/>
                    </div>
                </div>
            </div>

            <div class="layui-col-md12" style="clear:both">
                <ul>
                    <li class="fl pt10 pb10 layui-col-md12 layui-col-sm12 layui-col-xs12" data-v="06" data-t="store"
                        data-value="${d0.idcard.id}">
                        <div>身份证正面</div>
                        <div class="dlblock upload w300 h200 mt10">
                            <input name="idcard.imgPositive" value="${d0.idcard.imgPositive}" hidden/>
                            <img id="imgPositive12" src="${d0.idcard.imgPositive}"
                                 referrer="no-referrer|origin|unsafe-url" alt=""
                                 onerror="this.src='${resourcePath }/images/error.jpg'"
                                 width="300" height="200">
                            <div class="cover"
                                 style="background: rgba(0, 0, 0, 0.6);
                                 height:200px;
                                 width:300px;
                                 position:absolute;
                                 margin-top: -200px;
                                 ">
                                <div style="margin-top: 90px;">
                                    <div class="u-icon icon1" onclick="magnify('imgPositive12')"><i
                                            class="layui-icon layui-icon-search"></i></div>
                                    <div class="u-icon icon2 upload_icon"><i class="layui-icon layui-icon-edit"></i>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </li>
                    <li class="fl pt10 pb10  layui-col-md12 layui-col-sm12 layui-col-xs12" data-v="08" data-t="store"
                        data-value="${d0.idcard.id}">
                        <div>身份证反面</div>
                        <div class="dlblock upload w300 h200 mt10">
                            <input name="idcard.imgNegative" value="${d0.idcard.imgNegative}" hidden/>
                            <img id="imgNegative22" src="${d0.idcard.imgNegative}" alt=""
                                 onerror="this.src='${resourcePath }/images/error.jpg'"
                                 width="300" height="200">
                            <div class="cover"
                                 style="background: rgba(0, 0, 0, 0.6);
                                 height:200px;
                                 width:300px;
                                 position:absolute;
                                 margin-top: -200px;
                                 ">
                                <div style="margin-top: 90px;">
                                    <div class="u-icon icon1" onclick="magnify('imgNegative22')">
                                        <i class="layui-icon layui-icon-search"></i>
                                    </div>
                                    <div class="u-icon icon2 upload_icon">
                                        <i class="layui-icon layui-icon-edit"></i>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </li>
                    <c:if test="${d0.settleTypeName eq '对公'}">
                        <li class="fl pt10 pb10 layui-col-md12 layui-col-sm12 layui-col-xs12" data-v="09" data-t="store"
                            data-value="${d0.bankCard.id}">
                            <div>开户许可证</div>
                            <div class="dlblock upload w300 h200 mt10">
                                <input name="bankCard.licenseUrl" value="${d0.bankCard.licenseUrl}" hidden/>
                                <img id="imgUrl22" src="${d0.bankCard.licenseUrl}"
                                     referrer="no-referrer|origin|unsafe-url" alt=""
                                     onerror="this.src='${resourcePath }/images/error.jpg'"
                                     width="300" height="200">
                                <div class="cover"
                                     style="background: rgba(0, 0, 0, 0.6);
                                 height:200px;
                                 width:300px;
                                 position:absolute;
                                 margin-top: -200px;
                                 ">
                                    <div style="margin-top: 90px;">
                                        <div class="u-icon icon1" onclick="magnify('imgUrl22')">
                                            <i class="layui-icon layui-icon-search"></i>
                                        </div>
                                        <div class="u-icon icon2 upload_icon">
                                            <i class="layui-icon layui-icon-edit"></i>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </li>
                    </c:if>
                    <c:if test="${d0.settleTypeName ne '对公'}">
                        <li class="fl pt10 pb10 layui-col-md12 layui-col-sm12 layui-col-xs12" data-v="09" data-t="store"
                            data-value="${d0.bankCard.id}">
                            <div>结算卡图片</div>
                            <div class="dlblock upload w300 h200 mt10">
                                <input name="bankCard.imgUrl" value="${d0.bankCard.imgUrl}" hidden/>
                                <img id="imgUrl22" src="${d0.bankCard.imgUrl}" referrer="no-referrer|origin|unsafe-url"
                                     onerror="this.src='${resourcePath }/images/error.jpg'" alt=""
                                     width="300" height="200">
                                <div class="cover"
                                     style="background: rgba(0, 0, 0, 0.6);
                                 height:200px;
                                 width:300px;
                                 position:absolute;
                                 margin-top: -200px;
                                 ">
                                    <div style="margin-top: 90px;">
                                        <div class="u-icon icon1" onclick="magnify('imgUrl22')">
                                            <i class="layui-icon layui-icon-search"></i>
                                        </div>
                                        <div class="u-icon icon2 upload_icon">
                                            <i class="layui-icon layui-icon-edit"></i>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </li>
                    </c:if>
                    <c:if test="${d0.settleTypeName == '法人对私非法人' || d0.settleTypeName == '非法人对私非法人' || d0.settleTypeName == '对私非法人'}">
                        <li class="fl pt10 pb10 layui-col-md12 layui-col-sm12 layui-col-xs12" data-v="06" data-t="store"
                            data-value="${d0.idcard.id}">
                            <div>非法人授权函</div>
                            <div class="dlblock upload w300 h200 mt10">
                                <input name="certificateUrl" value="${d0.certificateUrl}" hidden/>
                                <img id="picUrl72" src="${d0.certificateUrl}"
                                     referrer="no-referrer|origin|unsafe-url" alt=""
                                     onerror="this.src='${resourcePath }/images/error.jpg'"
                                     width="300" height="200">
                                <div class="cover"
                                     style="background: rgba(0, 0, 0, 0.6);
                                 height:200px;
                                 width:300px;
                                 position:absolute;
                                 margin-top: -200px;">
                                    <div style="margin-top: 90px;">
                                        <div class="u-icon icon1" onclick="magnify('picUrl72')">
                                            <i class="layui-icon layui-icon-search"></i>
                                        </div>
                                        <div class="u-icon icon2 upload_icon">
                                            <i class="layui-icon layui-icon-edit"></i>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </li>
                    </c:if>
                </ul>
            </div>
        </div>

        <br/>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="formDemo4">保存-D0</button>
            </div>
        </div>
    </form>
</div>

<div class="layui-col-md12" style="clear:both">
    <blockquote class="layui-elem-quote layui-text" style="margin-top: 15px;">
        <span>认证信息</span>
    </blockquote>

    <form class="layui-form" id="form43" action="">
        <input type="hidden" name="merchantCode" value="${merchantCode}"/>
        <div class="layui-form-item">
            <ul>
                <li class="fl pt10 pb10 layui-col-md6 layui-col-xs12 layui-col-sm6" data-v="999" data-t="store">
                    <div>结算人与收银台合照</div>
                    <div class="dlblock upload w300 h200 mt10">
                        <input name="picUrl999" value="${merchantImage999}" hidden/>
                        <img id="picUrl999" src="${merchantImage999}" alt=""
                             onerror="this.src='${resourcePath}/images/error.jpg'"
                             width="300" height="200">
                        <div class="cover"
                             style="background: rgba(0, 0, 0, 0.6);
                                 height:200px;
                                 width:300px;
                                 position:absolute;
                                 margin-top: -200px;
                                ">
                            <div style="margin-top: 90px;">
                                <div class="u-icon icon1" onclick="magnify('picUrl999')">
                                    <i class="layui-icon layui-icon-search"></i>
                                </div>
                                <div class="u-icon icon2 upload_icon">
                                    <i class="layui-icon layui-icon-edit"></i>
                                </div>
                            </div>
                        </div>
                    </div>
                </li>

                <li class="fl pt10 pb10 layui-col-md6 layui-col-xs12 layui-col-sm6" data-v="11" data-t="store">
                    <div>结算人手持身份证照</div>
                    <div class="dlblock upload w300 h200 mt10">
                        <input name="picUrl11" value="${merchantImage11}" hidden/>
                        <img id="picUrl11" src="${merchantImage11}" alt=""
                             onerror="this.src='${resourcePath }/images/error.jpg'"
                             width="300" height="200">
                        <div class="cover"
                             style="background: rgba(0, 0, 0, 0.6);
                                     height:200px;
                                     width:300px;
                                     position:absolute;
                                     margin-top: -200px;
                                    ">
                            <div style="margin-top: 90px;">
                                <div class="u-icon icon1" onclick="magnify('picUrl11')">
                                    <i class="layui-icon layui-icon-search"></i>
                                </div>
                                <div class="u-icon icon2 upload_icon">
                                    <i class="layui-icon layui-icon-edit"></i>
                                </div>
                            </div>
                        </div>
                    </div>
                </li>
            </ul>
        </div>

        <br/>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="formDemo4">保存认证信息</button>
            </div>
        </div>
    </form>
</div>

<script>

    $(function () {
        form.render();

        settlementLoading = 1;
        baseSet()
    });

    form.on('select(bankProvinceType2)', funcCityByName);

    form.on('select(bankCityType2)', funcDistrictByName);

    form.on('select(bankBranchType2)', funcBranchByBank);

    form.on('select(bankBranch2)', function (data) {
        $('#contactLine2').val(data.value)
        $('#branchName').val($(data.elem).find('option:selected').text())
    });

    form.on('select(bankBranch22)', function (data) {
        $('#contactLine22').val(data.value)
        $('#branchName2').val($(data.elem).find('option:selected').text())
    });

    //更改结算信息
    form.on('submit(formDemo4)', function (data) {
        var index = layer.load(1, {shade: [0.1, '#000']});
        $.ajax({
            url: ctx + '/promoter/updateMerchantSettlement2',
            method: 'post',
            data: data.field,
            dataType: 'JSON',
            success: function (res) {
                layer.close(index);
                if (res.code == 200) {
                    layer.msg(res.message, {
                        icon: 1
                    });
                } else {
                    layer.msg(res.message, {
                        icon: 5
                    });
                }
            }
        })
        return false;
    });

</script>