<%@ page language="C#" autoeventwireup="true" inherits="admin_payConfig, kfenlei" %><%@ Register Src="../inc/adminTop.ascx" TagName="adminTop" TagPrefix="qth8" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>框分类信息系统 后台管理</title>
<link href="../css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div align="center">
<div class="main" align="left">
<qth8:adminTop ID="AdminTop1" runat="server" />
<div class="d01">
<div class="tabTitle">支付接口</div>
<form id="uploadConfig" action="../action.aspx?s=payConfig" class="layui-form" method="post" name="uploadConfig">
<table width="100%" border="0" class="layui-table" cellspacing="0" cellpadding="0">
<tr>
<td width="200"><strong>接口类型</strong></td>
<td><input id="kfClass" name="kfClass" lay-filter="kfClass" type="radio" value="0" title="默认" checked="checked" /> <input id="kfClass" name="kfClass" lay-filter="kfClass" type="radio" value="1" title="框分类接口" /></td>
</tr>
<tr id="kfpay1">
<td width="200"><strong>框分类支付接口UID</strong></td>
<td><input id="kfAgentUid" name="kfAgentUid" type="text" value="<%=sAgentUid%>" style="width:50%;" class="inputText" /></td>
</tr>
<tr id="kfpay2">
<td width="200"><strong>框分类支付接口KEY</strong></td>
<td><input id="kfAgentKey" name="kfAgentKey" type="text" value="<%=sAgentKey %>" style="width:50%;" class="inputText" /></td>
</tr>
<tr id="kfpay3">
<td width="200"><strong>支付宝接口ID</strong></td>
<td><input id="alipayPartner" name="alipayPartner" type="text" value="<%=sAlipayPartner %>" style="width:50%;" class="inputText" /></td>
</tr>
<tr id="kfpay4">
<td><strong>支付宝接口Key</strong></td>
<td><input id="alipayKey" name="alipayKey" type="text" value="<%=sAlipayKey %>" style="width:50%;" class="inputText" /></td>
</tr>
<tr id="kfpay5"><td><strong>微信商户号</strong></td>
<td><input id="weixinMchId" name="weixinMchId" type="text" style="width:50%;" class="inputText" value="<%=sWeixinMchId %>"/></td></tr>
<tr id="kfpay6"><td><strong>微信公众号APPID</strong></td>
<td><input id="weixinAppId" name="weixinAppId" type="text" style="width:50%;" class="inputText" value="<%=sWeixinAppId %>"/></td></tr>
<tr id="kfpay7"><td><strong>微信公众号APPSecret</strong></td>
<td><input id="Text1" name="weixinAppSecret" type="text" style="width:50%;" class="inputText" value="<%=sWeixinAppSecret %>"/></td></tr>
<tr id="kfpay8"><td><strong>微信小程序APPID</strong></td>
<td><input id="Text2" name="miniAppId" type="text" style="width:50%;" class="inputText" value="<%=sMiniAppId %>"/></td></tr>
<tr id="kfpay9"><td><strong>微信小程序APPSecret</strong></td>
<td><input id="Text3" name="miniAppSecret" type="text" style="width:50%;" class="inputText" value="<%=sMiniAppSecret %>"/></td></tr>
<tr id="kfpay10"><td><strong>微信支付密钥</strong></td>
<td><input id="weixinKey" name="weixinKey" type="text" style="width:50%;" class="inputText" value="<%=sWeixinKey %>"/> <div class="layui-btn layui-btn-small" id="btn_weixinKey">生成支付密钥</div></td></tr>
<tr>
<td>&nbsp;</td>
<td><input id="btPost" type="submit" class="layui-btn" value="确定修改" /></td>
</tr>
</table>
<script type="text/javascript">
$("input[name='kfClass'][value='<%=sClass%>']").attr("checked",'checked'); 
$(document).ready(function(){
  $("#btn_weixinKey").click(function(){
  htmlobj=$.ajax({url:"../action.aspx?s=payWeixinKey",async:false});
  $("#weixinKey").val(htmlobj.responseText);
  });
  setTimeout('updateForm();',10);
});

function updateForm()
{
$("#kfpay1").hide();$("#kfpay2").hide();$("#kfpay3").hide();$("#kfpay4").hide();$("#kfpay5").hide();$("#kfpay6").hide();$("#kfpay7").hide();$("#kfpay8").hide();$("#kfpay9").hide();$("#kfpay10").hide();
var sClass=$("input:radio[name='kfClass']:checked").val();
if(sClass=="1")
{
$("#kfpay1").show();$("#kfpay2").show();
}
else
{
$("#kfpay3").show();$("#kfpay4").show();$("#kfpay5").show();$("#kfpay6").show();$("#kfpay7").show();$("#kfpay8").show();$("#kfpay9").show();$("#kfpay10").show();
}
}
layui.use(['form','laydate'], function(){
var form = layui.form();
form.render();
form.on('radio(kfClass)', function(data){
updateForm();
});
});
</script>

</form>
</div>
</div>
</div>
</body>
</html>
