{extend name="base" /}
{block name="css"}
<link rel="stylesheet" type="text/css" href="__STATIC__/plugins/webuploader/webuploader.css?v={$v}" />
<link rel="stylesheet" type="text/css" href="__STATIC__/plugins/webuploader/batchupload.css?v={$v}" />
<link href="__STATIC__/plugins/validator/jquery.validator.css?v={$v}" rel="stylesheet">
{/block}
{block name="main"}
<style>
.goodsCat{display:inline-block;width:150px}
.accreds{display:inline-block;width:150px}
</style>
<form id='editFrom' autocomplete='off'>
<input type='hidden' id='shopId' class='ipt' value="{$object['shopId']}"/>
<fieldset class="layui-elem-field layui-field-title">
<legend>基础信息</legend>
<table class='wst-form wst-box-top'>
  <tr>
     <th width='150'>申请会员:</th>
     <td height='23'>{$object['loginName']}</td>
  </tr>
  <tr>
     <th width='150'>申请时间:</th>
     <td height='23'>{$object['applyTime']}</td>
  </tr>
  <tr>
       <th width='150'>店铺编号:</th>
       <td><input type="text" id='shopSn' name='shopSn' class='ipt' value="{$object['shopSn']}" maxLength='20' data-rule="店铺编号:ignoreBlank;length[1~20];remote(post:{:url('admin/shops/checkShopSn','shopId='.$object['shopId'])})" data-target="#msg_shopSn"/><span class='msg-box' id='msg_shopSn'>(为空则自动生成'S000000001'类型号码)</span></td>
    </tr>
    <tr>
       <th width='150'>店铺名称<font color='red'>*</font>:</th>
       <td><input type="text" id='shopName' class='ipt' maxLength='20' data-rule="店铺名称: required;" value="{$object['shopName']}"/></td>
    </tr>
    <tr>
       <th width='150'>公司名称<font color='red'>*</font>:</th>
       <td><input type="text" id='shopCompany' class='ipt' maxLength='100' data-rule="公司名称: required;" value="{$object['shopCompany']}"/></td>
    </tr>
    <tr>
      <th>公司所在地<font color='red'>*</font>:</th>
      <td>
        <select id="area_0" class='j-areas' level="0" onchange="WST.ITAreas({id:'area_0',val:this.value,isRequire:true,className:'j-areas'});">
            <option value="">-请选择-</option>
            {foreach $areaList as $v}
              <option value="{$v['areaId']}">{$v['areaName']}</option>
            {/foreach}
          </select>
      </td>
  </tr>
  <tr>
      <th>公司详细地址<font color='red'>*</font>:</th>
      <td>
          <input type='text' id='shopAddress' class='ipt' style='width:550px' data-rule='公司详细地址:required;' value="{$object['shopAddress']}"/>
          </td>
  </tr>
  <tr>
      <th>公司电话<font color='red'>*</font>:</th>
          <td>
          <input type='text' id='shopTel' class='ipt' data-rule='公司电话:required;' value="{$object['shopTel']}"/>
      </td>
  </tr>
  <tr>
      <th>公司紧急联系人<font color='red'>*</font>:</th>
      <td>
          <input type='text' id='shopkeeper' class='ipt' data-rule='公司紧急联系人:required;' value="{$object['shopkeeper']}"/>
      </td>
  </tr>
  <tr>
      <th>公司紧急联系人手机<font color='red'>*</font>:</th>
      <td>
          <input type='text' id='telephone' class='ipt' data-rule='公司紧急联系人手机:required;mobile' value="{$object['telephone']}"/>
      </td>
  </tr>
    <tr>
       <th>经营类目<font color='red'>*</font>:</th>
       <td>
         {volist name="goodsCatList" id="vo"}
         <label class='goodsCat'>
            <input type='checkbox' onclick="divShow()" class='ipt' name='goodsCatIds' value='{$vo["catId"]}' {if $i == 1} data-rule="经营类目:checked"{/if} {if array_key_exists($vo['catId'],$object['catshops'])}checked{/if}/>{$vo["catName"]}
         </label>
         {/volist}
       </td>
    </tr>  
      <tr>
       <th >食品许可证</th>
       <td  >
          <input type='hidden' id='shopLicense' class='ipt' value='{$shoplicense["shopLicense"]}'/>
          <div id='shopLicenseImgPicker'>请上传食品许可证电子版</div>
          <span id='shopLicenseImgMsg'></span>
          <a id='shopLicenseImgPreview_a' href='__IMGURL__/{$shoplicense["shopLicense"]}' target='_blank'>
          <img id='shopLicenseImgPreview' src='__IMGURL__/{$shoplicense["shopLicense"]}' {if $shoplicense['shopLicense']==''} style='display:none'{/if} width='150'>
          </a>
      </td>
    </tr>
    <tr>
       <th>认证类型:</th>
       <td>
         {volist name="accredList" id="vo"}
         <label class='accreds'>
            <input type='checkbox' class='ipt' name='accredIds' value='{$vo["accredId"]}'/>{$vo["accredName"]}
         </label>
         {/volist}
       </td>
    </tr>
    <tr>
       <th>店铺图标<font color='red'>*</font>:</th>
       <td>
       <div id='shopImgPicker'>上传店铺图标</div>
       <span id='uploadMsg'></span><span class='msg-box' id='msg_shopImg'></span>
       <img id='preview' width='150' height='150' src="__IMGURL__/{$object['shopImg']}"/>
       <input type="hidden" id='shopImg' class='ipt' value="{$object['shopImg']}" data-rule="店铺图标: required;" data-target='#msg_shopImg'/>
       </td>
    </tr>
    <tr>
       <th>客服QQ:</th>
       <td><input type="text" id='shopQQ' class='ipt' maxLength='200' value="{$object['shopQQ']}"/></td>
    </tr>
    <tr>
       <th>阿里旺旺:</th>
       <td><input type="text" id='shopWangWang' class='ipt' maxLength='200' value="{$object['shopWangWang']}"/></td>
    </tr>
    
    <tr>
       <th>是否提供开发票<font color='red'>*</font>:</th>
       <td class='layui-form'>
          <label>
             <input type='radio' class='ipt' name='isInvoice' id='isInvoice1' value='1' onclick='javascript:WST.showHide(1,"#trInvoice")' {if $object['isInvoice']==1}checked{/if} title='是'>
          </label>
          <label>
             <input type='radio' class='ipt' name='isInvoice' value='0' onclick='javascript:WST.showHide(0,"#trInvoice")' {if $object['isInvoice']==0}checked{/if} title='否'>
          </label>
       </td>
    </tr>
    <tr id='trInvoice' {if $object['isInvoice']==0}style='display:none'{/if}>
       <th>发票说明<font color='red'>*</font>:</th>
       <td><input type="text" id='invoiceRemarks' class='ipt' style='width:500px;' maxLength='100' data-rule="发票说明:required(#isInvoice1:checked)" value="{$object['invoiceRemarks']}"/></td>
    </tr>
    <tr>
       <th>营业状态<font color='red'>*</font>:</th>
       <td class='layui-form'>
          <label>
             <input type='radio' class='ipt' name='shopAtive' value='1' {if $object['shopAtive']==1}checked{/if} title='营业中'>
          </label>
          <label>
             <input type='radio' class='ipt' name='shopAtive' value='0' {if $object['shopAtive']==0}checked{/if} title='休息中'>
          </label>
       </td>
    </tr>
    <tr>
       <th>默认运费(元):</th>
       <td><input type="text" id='freight' class='ipt' maxLength='8' data-rule="默认运费: required;" onkeypress='return WST.isNumberdoteKey(event);' onkeyup="javascript:WST.isChinese(this,1)" value="{$object['freight']}"/></td>
    </tr>
    <tr>
       <th>服务时间<font color='red'>*</font>:</th>
       <td>
          <select class='ipt' id='serviceStartTime'></select>
          至
          <select class='ipt' id='serviceEndTime'></select>
       </td>
    </tr>
  </table>
</fieldset>
<fieldset class="layui-elem-field layui-field-title">
<legend>入驻联系人信息</legend>
<table class='wst-form wst-box-top'>
    <tr>
       <th width='150'>联系人姓名:</th>
       <td>
         <input type='text' id='applyLinkMan' class='ipt' value="{$object['applyLinkMan']}"/>
       </td>
    </tr>
    <tr>
       <th>联系人手机:</th>
       <td>
         <input type='text' class='ipt' id='applyLinkTel' data-rule="mobile"  value="{$object['applyLinkTel']}"/>
       </td>
    </tr>
    <!--
    <tr>
       <th>联系人电子邮箱:</th>
       <td>
         <input type='text' name='applyLinkEmail' class='ipt' data-rule="email" id='applyLinkEmail' value="{$object['applyLinkEmail']}"/>
       </td>
    </tr>
  -->
    <tr>
       <th>对接商城招商人员:</th>
       <td class='layui-form'>
         <label>
            <input type='radio' name='isInvestment' class='ipt' id='isInvestment1' value='1' onclick='javascript:WST.showHide(1,"#investmentStaffTr")' {if $object['isInvestment']==1}checked{/if} title='有'/>
         </label>
         <label>
            <input type='radio' name='isInvestment' class='ipt' id='isInvestment0' value='0' onclick='javascript:WST.showHide(0,"#investmentStaffTr")' {if $object['isInvestment']==0}checked{/if} title='无'/>
         </label>
       </td>
    </tr>
    <tr id='investmentStaffTr' {if $object['isInvestment']==0}style='display:none'{/if}>
       <th>姓名<font color='red'>*</font>:</th>
       <td>
          <input type='text' name='investmentStaff' id='investmentStaff' class='ipt' data-rule="商城招商人员姓名:required(#isInvestment1:checked)" value="{$object['investmentStaff']}"/>
       </td>
    </tr>
  </table>
</fieldset>
<fieldset class="layui-elem-field layui-field-title">
<legend>公司信息</legend>
<table class='wst-form wst-box-top'>
  <tr>
      <th width='150'>执照类型:</th>
      <td>
          <select id='businessLicenceType' class='ipt'>
             {volist name=":WSTDatas('LICENSE_TYPE')" id='vo'}
             <option value='{$vo["dataVal"]}'>{$vo["dataName"]}</option>
             {/volist}
          </select>
      </td>
  </tr>
  <tr>
      <th valign="top">营业执照注册号:</th>
      <td><input type='text' id='businessLicence' class='ipt' value="{$object['businessLicence']}"/><br/><span style='color:gray;'>请按照营业执照上登记的完整名称填写</span></td>
  </tr>
  <tr>
      <th valign="top">法定代表人姓名:</th>
      <td>
          <input type='text' id='legalPersonName' class='ipt' value="{$object['legalPersonName']}"/>
          <br/><span style='color:gray;'>请按照营业执照上登记的法人填写</span>
      </td>
  </tr>
  <!--
  <tr>
      <th>营业执照所在地:</th>
      <td>
            <select id="carea_0" class='j-careas' level="0" onchange="WST.ITAreas({id:'carea_0',val:this.value,isRequire:false,className:'j-careas'});">
            <option value="">-请选择-</option>
            {foreach $areaList as $v}
              <option value="{$v['areaId']}">{$v['areaName']}</option>
            {/foreach}
          </select>
      </td>
  </tr>

  <tr>
      <th>营业执照详细地址:</th>
      <td>
          <input type='text' id='licenseAddress' class='ipt' style='width:550px' value="{$object['licenseAddress']}"/>
      </td>
  </tr>
 -->
 <!--
  <tr>
      <th>成立日期:</th>
      <td>
          <input type='text' id='establishmentDate' readonly class='ipt laydate-icon' value="{$object['establishmentDate']}"/>
      </td>
  </tr>
-->
<!--
  <tr>
      <th>营业期限:</th>
      <td>
          <input type='text' id='businessStartDate' readonly class='ipt laydate-icon' value="{$object['businessStartDate']}"/> -
          <input type='text' id='businessEndDate' readonly class='ipt laydate-icon' value="{$object['businessEndDate']}" {if $object['isLongbusinessDate']==1}style='display:none'{/if}/> 
          <label><input type='checkbox' name='isLongbusinessDate' id='isLongbusinessDate' class='ipt' onclick='WST.showHide(this.checked?0:1,"#businessEndDate")' value='1' {if $object['isLongbusinessDate']==1}checked{/if}/>长期</label>
      </td>
  </tr>
-->
<!--
  <tr>
      <th>注册资本(万元):</th>
      <td>
          <input type='text' id='registeredCapital' class='ipt' onkeyup="javascript:WST.isChinese(this,1)" onkeypress="return WST.isNumberKey(event)" value="{$object['registeredCapital']}"/>
      </td>
  </tr>
-->
<!--
  <tr>
      <th>经营范围:</th>
      <td>
             <textarea id='empiricalRange' class='ipt' style='width:550px;height:150px;'>{$object['empiricalRange']}</textarea>
      </td>
  </tr>
-->
  <tr>
      <th>法人代表证件类型:</th>
      <td>
          <select id='legalCertificateType' class='ipt'>
             {volist name=":WSTDatas('LEGAL_LICENSE')" id='vo'}
             <option value='{$vo["dataVal"]}'>{$vo["dataName"]}</option>
             {/volist}
          </select>
      </td>
  </tr>
  <tr>
      <th>法定代表人证件号:</th>
      <td>
          <input type='text' id='legalCertificate' class='ipt' value="{$object['legalCertificate']}"/>
      </td>
  </tr>
  <!--
  <tr>
      <th>有效期:</th>
      <td>
          <input type='text' id='legalCertificateStartDate' readonly class='ipt laydate-icon' value="{$object['legalCertificateStartDate']}"/> - 
          <input type='text' id='legalCertificateEndDate' readonly class='ipt laydate-icon' value="{$object['legalCertificateEndDate']}" {if $object['isLonglegalCertificateDate']==1}style='display:none'{/if}/>&nbsp;&nbsp;&nbsp;
          <label><input type='checkbox' name='isLonglegalCertificateDate' id='isLonglegalCertificateDate' class='ipt' onclick='WST.showHide(this.checked?0:1,"#legalCertificateEndDate")' value='1' {if $object['isLonglegalCertificateDate']==1}checked{/if}/>长期</label>
      </td>
  </tr>
-->
  <tr>
      <th>法人证件电子版:</th>
      <td>
          <input type='hidden' id='legalCertificateImg' class='ipt' value='{$object['legalCertificateImg']}'/>
          <div id='legalCertificateImgPicker'>请上传法人证件电子版</div>
          <span id='legalCertificateImgMsg'></span>
          <a id='legalCertificateImgPreview_a' href='__IMGURL__/{$object['legalCertificateImg']}' target='_blank'>
          <img id='legalCertificateImgPreview' src='__IMGURL__/{$object['legalCertificateImg']}' width='150'>
          </a>
      </td>
  </tr>
  <tr>
      <th>营业执照电子版:</th>
      <td>
          <input type='hidden' id='businessLicenceImg' class='ipt' value='{$object['businessLicenceImg']}'/>
          <div id='businessLicenceImgPicker'>请上传营业执照电子版</div>
          <span id='businessLicenceImgMsg'></span>
          <a id='businessLicenceImgPreview_a' href='__IMGURL__/{$object['businessLicenceImg']}' target='_blank'>
          <img id='businessLicenceImgPreview' src='__IMGURL__/{$object['businessLicenceImg']}' width='150'>
          </a>
      </td>
  </tr>
  <tr>
      <th>银行开户许可证电子版:</th>
      <td>
          <input type='hidden' id='bankAccountPermitImg' class='ipt' value='{$object['bankAccountPermitImg']}'/>
          <div id='bankAccountPermitImgPicker'>请上传银行开户许可证电子版</div>
          <span id='bankAccountPermitImgMsg'></span>
          <a id='bankAccountPermitImgPreview_a' href='__IMGURL__/{$object['bankAccountPermitImg']}' target='_blank'>
          <img id='bankAccountPermitImgPreview' src='__IMGURL__/{$object['bankAccountPermitImg']}' width='150'>
          </a>
      </td>
  </tr>
    <tr>
        <th width='120' align='right'>补充材料<font color='red'>*</font>:</th>
        <td>
            <div id="batchUpload" class="ipt wst-batchupload" style="border:1px solid #ccc;width: 700px" >
                <div style="border-bottom:1px solid #dadada;padding-left:10px; "> 其它相关资料请上传到补充材料(格式为 gif, jpg, jpeg, png) </div>
                <div class="queueList filled">
                    <div id="dndArea" class="ipt placeholder {if !empty($object['auxiliary'])}element-invisible{/if}">
                        <div id="filePicker"></div>
                        <p>或将照片拖到这里,单次最多可选5张,每张最大不超过5M</p>
                    </div>
                    <ul class="filelist" >
                        {volist name="$object['auxiliary']" id="vo"}
                        <li  class="state-complete" style="border: 1px solid #ddd;height:213px;">
                            <p class="title"></p>
                            <p class="imgWrap">
                                <img src="__IMGURL__/{$vo.auxiliaryImg}">
                            </p>
                            <input type="hidden" v="{$vo.auxiliaryImg}" iv="{$vo.auxiliaryImg}" class="ipt j-gallery-img">
                            <span class="btn-del">删除</span>
                        </li>
                        {/volist}
                    </ul>
                </div>
                <div class="statusBar">
                    <div class="progress" style="display: none;">
                        <span class="text">0%</span>
                        <span class="percentage" style="width: 0%;"></span>
                    </div>
                    <div class="info"></div>
                    <div class="btns">
                        <div id="filePicker2"></div><div class="uploadBtn">开始上传</div>
                    </div>
                </div>
            </div>
            <div style='clear:both;'></div>
        </td>
    </tr>
  </table>
</fieldset>
<!-- <fieldset class="layui-elem-field layui-field-title">
<legend>商标注册证</legend>
<table class='wst-form wst-box-top'>
  <tr>
      <th width='150'>组织机构代码:</th>
      <td>
          <input type='text' id='organizationCode' class='ipt' value="{$object['organizationCode']}"/>
      </td>
  </tr>
  <tr>
      <th>商标注册证有效期:</th>
      <td>
          <input type='text' id='organizationCodeStartDate' readonly class='ipt laydate-icon' value="{$object['organizationCodeStartDate']}"/> - 
          <input type='text' id='organizationCodeEndDate' readonly class='ipt laydate-icon' value="{$object['organizationCodeEndDate']}" {if $object['isLongOrganizationCodeDate']==1}style='display:none'{/if}/>&nbsp;&nbsp;&nbsp;
          <label><input type='checkbox' name='isLongOrganizationCodeDate' id='isLongOrganizationCodeDate' class='ipt' onclick='WST.showHide(this.checked?0:1,"#organizationCodeEndDate")' value='1' {if $object['isLongOrganizationCodeDate']==1}checked{/if}/>长期</label>
      </td>
  </tr> 
  </table>
</fieldset> -->
<fieldset class="layui-elem-field layui-field-title">
<legend>商标注册证</legend>
<table class='wst-form wst-box-top'>  
  <tr>
      <th valign="top">商标注册证电子版:</th>
      <td>
          <span style='color:gray;'>请上传商标注册证或品牌授权证</span><br/>
          <input type='hidden' id='organizationCodeImg' class='ipt' value='{$object['organizationCodeImg']}'/>
          <div id='organizationCodeImgPicker'>请上传商标注册证或品牌授权证</div>
          <span id='organizationCodeImgMsg'></span>
          <a id='organizationCodeImgPreview_a' href='__IMGURL__/{$object['organizationCodeImg']}' target='_blank'>
          <img id='organizationCodeImgPreview' src='__IMGURL__/{$object['organizationCodeImg']}' width='150'>
      </td>
  </tr>
  </table>
</fieldset>
<<!-- fieldset class="layui-elem-field layui-field-title">
<legend>税务信息</legend>
<table class='wst-form wst-box-top'>
  <tr>
      <th width='150'>纳税人类型:</th>
      <td>
          <select id='taxpayerType' class='ipt'>
             {volist name=":WSTDatas('TAXPAYER_TYPE')" id='vo'}
             <option value='{$vo["dataVal"]}'  {if $object['taxpayerType']==$vo["dataVal"]}selected{/if}>{$vo["dataName"]}</option>
             {/volist}
          </select>
      </td>
  </tr>
  <tr>
      <th valign="top">纳税人识别号:</th>
      <td><input type='text' id='taxpayerNo' class='ipt' value='{$object["taxpayerNo"]}'/><br/><span style='color:gray;'>三证合一的请填写统一社会信用代码</span></td>
  </tr>
  <tr>
      <th valign="top">税务登记证电子版:</th>
      <td>
            <span style='color:gray;'>请同时上传国税、地税的税务登记证,两者缺一不可,复印件加盖公司红章,如贵司所在地区已推行“三证合一”;<br/>此处请上传营业执照副本电子版。【最多只能上传三张图片】</span><br/>
            <input type='hidden' id='taxRegistrationCertificateImg' class='ipt' value='{$object["taxRegistrationCertificateImg"]}'/>
            <div id='taxRegistrationCertificateImgPicker'>请上传商标注册证电子版</div>
            <span id='taxRegistrationCertificateImgMsg'></span>
            <div id='taxRegistrationCertificateImgBox'></div>
            <span class='msg-box' id='msg_taxRegistrationCertificateImg'>
              {volist name="$object['taxRegistrationCertificateImgVO']" id='vo'}
              <div style="width:75px;float:left;margin-right:5px;">
                <a href='__IMGURL__/{$vo}' target='_blank'>
                <img class="step_pic" width="75" height="75" src="__IMGURL__/{$vo}" v="{$vo}">
                </a>
                <div style="position:relative;top:-80px;left:60px;cursor:pointer;" onclick='javascript:delVO(this)'>
                  <img src="__ROOT__/hyhproject/home/View/default/img/seller_icon_error.png">
                </div>
              </div>
              {/volist}
            </span>
      </td>
  </tr>
  <tr>
      <th valign="top">一般纳税人资格证电子版:</th>
      <td>
          <span style='color:gray;'>三证合一地区请上传税务局网站上一般纳税人截图,复印件需加盖公司红章。</span><br/>
          <input type='hidden' id='taxpayerQualificationImg' class='ipt' value='{$object["taxpayerQualificationImg"]}'/>
          <div id='taxpayerQualificationImgPicker'>请上传法人证件电子版</div>
          <span id='taxpayerQualificationImgMsg'></span>
          <a id='taxpayerQualificationImgPreview_a' href='__IMGURL__/{$object["taxpayerQualificationImg"]}' target='_blank'>
          <img id='taxpayerQualificationImgPreview' src='__IMGURL__/{$object["taxpayerQualificationImg"]}' width='150'>
          </a>
      </td>
  </tr>
  </table>
</fieldset> -->
<fieldset class="layui-elem-field layui-field-title">
<legend>结算账号信息</legend>
<table class='wst-form wst-box-top'>
  <tr>
      <th width='150'>银行开户名<font color='red'>*</font>:</th>
      <td>
            <input type='text' id='bankUserName' class='ipt' maxlength='50' data-rule='纳税人识别号:required;' value='{$object["bankUserName"]}'/>
      </td>
  </tr>
  <tr>
      <th>对公结算银行账号<font color='red'>*</font>:</th>
      <td>
            <input type='text' id='bankNo' class='ipt' maxlength='20' data-rule='对公结算银行账号:required;' value='{$object["bankNo"]}'/>
      </td>
  </tr>
  <tr>
      <th>开户银行名称<font color='red'>*</font>:</th>
      <td>
          <select id='bankId' id='bankId' class='ipt' data-rule='对公结算银行账号:required;'>
              {foreach $bankList as $v}
              <option value="{$v['bankId']}" {if $object['bankId']==$v['bankId']}selected{/if}>{$v['bankName']}</option>
              {/foreach}
          </select>
      </td>
  </tr>
  <!--
  <tr>
      <th>开户银行支行所在地<font color='red'>*</font>:</th>
      <td>
          <select id="barea_0" class='j-bareas' level="0" onchange="WST.ITAreas({id:'barea_0',val:this.value,isRequire:true,className:'j-bareas'});">
            <option value="">-请选择-</option>
            {foreach $areaList as $v}
              <option value="{$v['areaId']}">{$v['areaName']}</option>
            {/foreach}
          </select>
      </td>
  </tr>
-->
  </table>
</fieldset>
<fieldset class="layui-elem-field layui-field-title">
<legend>申请状态</legend>
<table class='wst-form wst-box-top'>
  <tr>
       <th width='150'>处理结果<font color='red'>*</font>:</th>
       <td class='layui-form'>
          <label>
             <input type='radio' class='ipt' name='applyStatus' id='applyStatus2' value='2' {if $object['applyStatus']==2}checked{/if} onclick='javascript:WST.showHide(1,".deposit");WST.showHide(0,"#trApplyDesc")' data-rule="处理结果:checked" title='通过'>
          </label>
          <label>
             <input type='radio' class='ipt' name='applyStatus' id='applyStatus-1' value='-1' {if $object['applyStatus']==-1}checked{/if} onclick='javascript:WST.showHide(1,"#trApplyDesc");WST.showHide(0,".deposit")' title='不通过'>
          </label>
       </td>
    </tr>

    <tr id='trDeposit' class="deposit" style='display:none'>
       <th>应缴保证金<font color='red'>*</font>:</th>
       <td>
          <input type='text' name='payDeposit' id='payDeposit' class='ipt' value="{$cashDeposit['payDeposit']}"/>
       </td>
    </tr>

      <tr id='trPassDesc' class="deposit" style='display:none'>
       <th>实缴保证金<font color='red'>*</font>:</th>
       <td>
          <input type='text' name='cashDeposit' id='cashDeposit' class='ipt' value="{$cashDeposit['cashDeposit']}"/>
       </td>
    </tr>


    <tr id='trApplyDesc' style='display:none'>
       <th>不通过原因<font color='red'>*</font>:</th>
       <td><textarea id='applyDesc' class='ipt' style='width:500px;height:100px;' maxLength='100' data-rule="不通过原因:required(#applyStatus-1:checked);">{$object['applyDesc']}</textarea></td>
    </tr>
  <tr>
       <td colspan='2' align='center'>
       	 <button type="button"  class='btn btn-primary btn-mright' onclick='javascript:apply()'><i class="fa fa-check"></i>保存</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
       	 <button type="button"  class='btn' onclick="javascript:history.go(-1)"><i class="fa fa-angle-double-left" ></i>返回</button>
       </td>
  </tr>
</table>
</fieldset>
</form>
<script type='text/javascript' src='__STATIC__/plugins/webuploader/webuploader.js?v={$v}'></script>
<script type='text/javascript' src='__STATIC__/plugins/webuploader/batchupload.js?v={$v}'></script>
<script type="text/javascript" src="__STATIC__/plugins/validator/jquery.validator.min.js?v={$v}"></script>
<script src="__ADMIN__/shops/shops.js?v={$v}" type="text/javascript"></script>
<script type="text/javascript">
    $(function(){
        /********** 轮播广告图片上传 **********/
        var uploader = batchUpload({uploadPicker:'#batchUpload',uploadServer:WST.U('home/index/uploadPic'),formData:{dir:'shops'},uploadSuccess:function(file,response){
            var json = WST.toAdminJson(response);
            if(json.status==1){
                $li = $('#'+file.id);
                $li.append('<input type="hidden"  value="'+json.savePath+json.name+'" class="a-ipt j-gallery-img" iv="'+json.savePath + json.thumb+'" v="' +json.savePath + json.name+'"/>');
                var delBtn = $('<span class="btn-del">删除</span>');
                $li.append(delBtn);
                $li.css('height','212px');
                $li.find('.success').remove();
                delBtn.on('click',function(){

                    delBatchUploadImg($(this),function(){
                        uploader.removeFile(file);
                        uploader.refresh();
                    });
                });
                $('.filelist li').css('border','1px solid #f7375c');
            }else{
                WST.msg(json.msg,{icon:2});
            }
        }});
// 删除广告图片
        $('.btn-del').click(function(){
            delBatchUploadImg($(this),function(){
                $(this).parent().remove();
            });
        })

        function delBatchUploadImg(obj){
            var c = WST.confirm({content:'您确定要删除广告图片吗?',yes:function(){
                $(obj).parent().remove("li");
                layer.close(c);
            }});
        }
    });
function divShow(){
var checkboxText= new Array(); 
var checkboxValue= new Array();     
var checkboxStr=document.getElementsByName("goodsCatIds");
       for(var i=0; i<checkboxStr.length; i++){  
        if(checkboxStr[i].checked){  
            //alert(checkboxStr[i].value+","+checkboxStr[i].nextSibling.nodeValue);
            checkboxValue.push(checkboxStr[i].value);  
            checkboxText.push(checkboxStr[i].nextSibling.nodeValue.trim());  
         }  
        }  
var foot='393';
if(checkboxValue.indexOf(foot)!="-1"){
  document.getElementById("license").style.cssText = "display: table-row;vertical-align: inherit;border-color: inherit;";
  }else{
    document.getElementById("license").style.cssText = "display:none"
  }
}


</script>
<script>
$(function(){
  initEdit({serviceStartTime:'{:date("H:i",strtotime($object["serviceStartTime"]))}',serviceEndTime:'{:date("H:i",strtotime($object["serviceEndTime"]))}',areaId:'{$object["areaId"]}',areaIdPath:'{$object["areaIdPath"]}',bankAreaId:'{$object["bankAreaId"]}',bankAreaIdPath:'{$object["bankAreaIdPath"]}',businessAreaPath:'{$object["businessAreaPath"]}'});
  shopLicenseUpload ();
})
</script>
{/block}
{block name="js"}
<script type='text/javascript' src='__STATIC__/plugins/webuploader/webuploader.js?v={$v}'></script>
<script type="text/javascript" src="__STATIC__/plugins/validator/jquery.validator.min.js?v={$v}"></script>
<script src="__STATIC__/plugins/layer/laydate.js"></script>
<script src="__ADMIN__/shops/shops.js?v={$v}" type="text/javascript"></script>
{/block}