{extend name="base" /}
{block name="css"}
<link rel="stylesheet" type="text/css" href="__STATIC__/plugins/webuploader/webuploader.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='topDeposit' autocomplete='off'>
<fieldset class="layui-elem-field layui-field-title">
<table class='wst-form wst-box-top'>
  <tr>
      <th>请输入店铺ID:</th>
      <td>
          <input type='text' name="shopId" id='shopId' class='ipt' onblur="upperName()" style='width:200px'/>
      </td>
  </tr>

  <tr>
      <th>店铺名称:</th>
      <td>
          <input type='text' name="shopName" id='shopName' class='ipt' value="" style='width:200px' />
      </td>
  </tr>

  <tr>
       <th>质保金管理<font color='red'>*</font>:</th>
       <td class='layui-form'>
          <label>
             <input type='radio' class='ipt' name='applyStatus' id='applyStatus' value='1' onclick='javascript:WST.showHide(1,"#trPassDesc");WST.showHide(0,"#trApplyDesc");WST.showHide(0,"#offCause")' title='充值'>
          </label>
          <label>
             <input type='radio' class='ipt' name='applyStatus' id='applyStatus' value='2' onclick='javascript:WST.showHide(1,"#trApplyDesc");WST.showHide(1,"#offCause");WST.showHide(0,"#trPassDesc")' title='扣除'>
          </label>
       </td>
  </tr>

  <tr id='trPassDesc' style='display:none'>
    <th>充值保证金金额<font color='red'>*</font>:</th>
    <td>
      <input type='text' name='addDeposit' id='addDeposit' class='ipt' value=""/>
    </td>
  </tr>
  <tr id='trApplyDesc' style='display:none'>
    <th>扣除质保金金额<font color='red'>*</font>:</th>
    <td>
      <input type='text' name='offDeposit' id='offDeposit' class='ipt' value=""/>
    </td>
  </tr>
  <tr id='offCause' style='display:none'>
    <th>扣除质保金原因<font color='red'>*</font>:</th>
    <td>
      <textarea name="offCause" id='offCause' class='ipt' style='width:300px;height:100px;' maxLength='100' placeholder="格式如:您的店铺商品因出质量问题,现被扣除质保金,详情联系公司运营人员。电话:"></textarea>

      <!-- <input type='text' name='offCause' id='offCause' class='ipt' placeholder="如:您的店铺因未及时续约,现已被下架,详情联系公司运营人员。电话:010-60609086"/> -->

    </td>
  </tr>

  <tr>
    <td colspan='2' align='center'>
        <input type="submit" value="提交" class='btn btn-blue' />
        <input type="button" onclick="javascript:history.go(-1)" class='btn' value="返回" />
    </td>
  </tr>
</table>
</fieldset>
</form>
<script>

function upperName(){
  var shopId = document.getElementById('shopId').value;
  $.post(WST.U('admin/shops/upShopName'),{shopId:shopId},function(data){
    // alert(JSON.stringify(data));
    // $('#shopName').html(data['shopName']);
    $('#shopName').val(data['shopName']);
  }
  , "json")
}


$(function() {
    editInit()
  });
    
</script>
{/block}
{block name="js"}
<script type='text/javascript' src='__STATIC__/plugins/webuploader/webuploader.js?v={$v}'></script>
<script src="__ADMIN__/shops/shops.js?v={$v}" type="text/javascript"></script>
{/block}