You've already forked qlg.tsgz.moe
Init Repo
This commit is contained in:
17
hyhproject/admin/view/payments/list.html
Executable file
17
hyhproject/admin/view/payments/list.html
Executable file
@ -0,0 +1,17 @@
|
||||
{extend name="base" /}
|
||||
{block name="css"}
|
||||
<link rel="stylesheet" type="text/css" href="__ADMIN__/js/mmgrid/mmGrid.css?v={$v}" />
|
||||
{/block}
|
||||
{block name="js"}
|
||||
<script src="__ADMIN__/js/mmgrid/mmGrid.js?v={$v}" type="text/javascript"></script>
|
||||
<script src="__ADMIN__/payments/payments.js?v={$v}" type="text/javascript"></script>
|
||||
{/block}
|
||||
{block name="main"}
|
||||
<div class='wst-grid'>
|
||||
<div id="mmg" class="mmg"></div>
|
||||
<div id="pg" style="text-align: right;"></div>
|
||||
<script>
|
||||
$(function(){initGrid()});
|
||||
</script>
|
||||
|
||||
{/block}
|
63
hyhproject/admin/view/payments/pay_alipays.html
Executable file
63
hyhproject/admin/view/payments/pay_alipays.html
Executable file
@ -0,0 +1,63 @@
|
||||
{extend name="base" /}
|
||||
{block name="js"}
|
||||
<script src="__ADMIN__/payments/payments.js?v={$v}" type="text/javascript"></script>
|
||||
{/block}
|
||||
{block name="main"}
|
||||
<div class="l-loading" style="display: block" id="wst-loading"></div>
|
||||
|
||||
<form id="payForm" autocomplete="off">
|
||||
<table class='wst-form wst-box-top'>
|
||||
<tr>
|
||||
<th width='150'>支付名称<font color='red'>*</font>:</th>
|
||||
<td>
|
||||
<input type="text" id="payName" name="payName" value="{$object['payName']}" class="ipt" maxLength='100' />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>支付宝账户<font color='red'>*</font>:</th>
|
||||
<td>
|
||||
<input type="text" id="payAccount" name="payAccount" value="{$object['payAccount']?? ''}" class="cfg" maxLength='100' />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>合作者身份(parterID)<font color='red'>*</font>:</th>
|
||||
<td>
|
||||
<input type="text" id="parterID" name="parterID" value="{$object['parterID']?? ''}" class="cfg" maxLength='100' />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>交易安全校验码(key)<font color='red'>*</font>:</th>
|
||||
<td>
|
||||
<input type="text" id="parterKey" name="parterKey" value="{$object['parterKey']?? ''}" class="cfg" maxLength='200' />
|
||||
<input type="hidden" id="payIcon" value="{$object['payIcon']?? ''}" class="cfg" maxLength='20' />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>支付方式描述<font color='red'>*</font>:</th>
|
||||
<td>
|
||||
<textarea id="payDesc" name="payDesc" class="ipt" style="width:340px;height:100px;" >{$object['payDesc']}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>排序号<font color='red'>*</font>:</th>
|
||||
<td>
|
||||
<input type="text" id="payOrder" name="payOrder" value="{$object['payOrder']}" class="ipt" maxLength='20' />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan='2' align='center' class='wst-bottombar'>
|
||||
<input type="hidden" id="id" value="{$object['id']}" />
|
||||
<button type="submit" class="btn btn-primary btn-mright"><i class="fa fa-check"></i>提交</button>
|
||||
<button type="button" class="btn" onclick="javascript:history.go(-1)"><i class="fa fa-angle-double-left"></i>返回</button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
</script>
|
||||
{/block}
|
||||
|
63
hyhproject/admin/view/payments/pay_app_alipays.html
Executable file
63
hyhproject/admin/view/payments/pay_app_alipays.html
Executable file
@ -0,0 +1,63 @@
|
||||
{extend name="base" /}
|
||||
{block name="js"}
|
||||
<script src="__ADMIN__/payments/payments.js?v={$v}" type="text/javascript"></script>
|
||||
{/block}
|
||||
{block name="main"}
|
||||
<div class="l-loading" style="display: block" id="wst-loading"></div>
|
||||
|
||||
<form id="payForm" autocomplete="off">
|
||||
<table class='wst-form wst-box-top'>
|
||||
<tr>
|
||||
<th width='150'>支付名称<font color='red'>*</font>:</th>
|
||||
<td>
|
||||
<input type="text" id="payName" name="payName" value="{$object['payName']}" class="ipt" maxLength='100' />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>应用appId<font color='red'>*</font>:</th>
|
||||
<td>
|
||||
<input type="text" id="appId" name="appId" value="{$object['appId']?? ''}" class="cfg" maxLength='100' />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>应用私钥<font color='red'>*</font>:</th>
|
||||
<td>
|
||||
<textarea id="rsaPrivateKey" name="rsaPrivateKey" style="width:340px;height:100px;" class="cfg">{$object['rsaPrivateKey']?? ''}</textarea>
|
||||
<input type="hidden" id="payIcon" value="{$object['payIcon']?? ''}" class="cfg" maxLength='20' />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>支付宝公钥<font color='red'>*</font>:</th>
|
||||
<td>
|
||||
<textarea id="alipayrsaPublicKey" name="alipayrsaPublicKey" style="width:340px;height:100px;" class="cfg">{$object['alipayrsaPublicKey']?? ''}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>支付方式描述<font color='red'>*</font>:</th>
|
||||
<td>
|
||||
<textarea id="payDesc" name="payDesc" class="ipt" style="width:340px;height:100px;" >{$object['payDesc']}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>排序号<font color='red'>*</font>:</th>
|
||||
<td>
|
||||
<input type="text" id="payOrder" name="payOrder" value="{$object['payOrder']}" class="ipt" maxLength='20' />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan='2' align='center' class='wst-bottombar'>
|
||||
<input type="hidden" id="id" value="{$object['id']}" />
|
||||
<button type="submit" class="btn btn-primary btn-mright"'><i class="fa fa-check"></i>提交</button>
|
||||
<button type="button" class="btn" onclick="javascript:history.go(-1)"><i class="fa fa-angle-double-left"></i>返回</button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
</script>
|
||||
{/block}
|
||||
|
67
hyhproject/admin/view/payments/pay_app_weixinpays.html
Executable file
67
hyhproject/admin/view/payments/pay_app_weixinpays.html
Executable file
@ -0,0 +1,67 @@
|
||||
|
||||
{extend name="base" /}
|
||||
{block name="js"}
|
||||
<script src="__ADMIN__/payments/payments.js?v={$v}" type="text/javascript"></script>
|
||||
{/block}
|
||||
{block name="main"}
|
||||
<div class="l-loading" style="display: block" id="wst-loading"></div>
|
||||
|
||||
<form id="payForm" autocomplete="off">
|
||||
<table class='wst-form wst-box-top'>
|
||||
<tr>
|
||||
<th width='150'>支付名称<font color='red'>*</font>:</th>
|
||||
<td>
|
||||
<input type="text" id="payName" name="payName" value="{$object['payName']}" class="ipt" maxLength='100' />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>APPID<font color='red'>*</font>:</th>
|
||||
<td>
|
||||
<input type="text" id="appId" name="appId" value="{$object['appId'] ?? ''}" class="cfg" maxLength='100' />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>微信支付商户号<font color='red'>*</font>:(mch_id) </th>
|
||||
<td>
|
||||
<input type="text" id="mchId" name="mchId" value="{$object['mchId']?? ''}" class="cfg" maxLength='100' />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>API密钥(key)<font color='red'>*</font>:</th>
|
||||
<td>
|
||||
<input type="text" id="apiKey" name="apiKey" value="{$object['apiKey']?? ''}" class="cfg" maxLength='100' />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Appsecret<font color='red'>*</font>:</th>
|
||||
<td>
|
||||
<input type="text" id="appsecret" name="appsecret" value="{$object['appsecret']?? ''}" class="cfg" maxLength='100' />
|
||||
<input type="hidden" id="payIcon" class="cfg" maxLength='100' />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>支付方式描述<font color='red'>*</font>:</th>
|
||||
<td>
|
||||
<textarea id="payDesc" name="payDesc" class="ipt" style="width:340px;height:100px;">{$object['payDesc']}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>排序号<font color='red'>*</font>:</th>
|
||||
<td>
|
||||
<input type="text" id="payOrder" name="payOrder" value="{$object['payOrder']}" class="ipt" maxLength='20' />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan='2' align='center' class='wst-bottombar'>
|
||||
<input type="hidden" id="id" value="{$object['id']}" />
|
||||
<button type="submit" class="btn btn-primary btn-mright"><i class="fa fa-check"></i>提交</button>
|
||||
<button type="button" class="btn" onclick="javascript:history.go(-1)"><i class="fa fa-angle-double-left"></i>返回</button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
|
||||
{/block}
|
||||
|
48
hyhproject/admin/view/payments/pay_cod.html
Executable file
48
hyhproject/admin/view/payments/pay_cod.html
Executable file
@ -0,0 +1,48 @@
|
||||
|
||||
{extend name="base" /}
|
||||
{block name="js"}
|
||||
<script src="__ADMIN__/payments/payments.js?v={$v}" type="text/javascript"></script>
|
||||
{/block}
|
||||
{block name="main"}
|
||||
<div class="l-loading" style="display: block" id="wst-loading"></div>
|
||||
|
||||
<form id="payForm" autocomplete="off">
|
||||
<table class='wst-form wst-box-top'>
|
||||
<tr>
|
||||
<th width='150'>支付名称<font color='red'>*</font>:</th>
|
||||
<td>
|
||||
<input type="text" id="payName" name="payName" value="{$object['payName']}" class="ipt" maxLength='20' />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>支付方式描述<font color='red'>*</font>:</th>
|
||||
<td>
|
||||
<textarea id="payDesc" name="payDesc" class="ipt" style="width:200px;height:100px;" >{$object['payDesc']}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>排序号<font color='red'>*</font>:</th>
|
||||
<td>
|
||||
<input type="text" id="payOrder" name="payOrder" value="{$object['payOrder']}" class="ipt" maxLength='20' />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>是否在线支付:</th>
|
||||
<td>
|
||||
否
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan='2' align='center' class='wst-bottombar'>
|
||||
<input type="hidden" id="id" value="{$object['id']}" />
|
||||
<button type="submit" class="btn btn-primary btn-mright" ><i class="fa fa-check"></i>提交</button>
|
||||
<button type="button" class="btn" onclick="javascript:history.go(-1)"><i class="fa fa-angle-double-left"></i>返回</button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
|
||||
{/block}
|
||||
|
56
hyhproject/admin/view/payments/pay_unionpays.html
Executable file
56
hyhproject/admin/view/payments/pay_unionpays.html
Executable file
@ -0,0 +1,56 @@
|
||||
{extend name="base" /}
|
||||
{block name="js"}
|
||||
<script src="__ADMIN__/payments/payments.js?v={$v}" type="text/javascript"></script>
|
||||
{/block}
|
||||
{block name="main"}
|
||||
<div class="l-loading" style="display: block" id="wst-loading"></div>
|
||||
|
||||
<form id="payForm" autocomplete="off">
|
||||
<table class='wst-form wst-box-top'>
|
||||
<tr>
|
||||
<th width='150'>支付名称<font color='red'>*</font>:</th>
|
||||
<td>
|
||||
<input type="text" id="payName" name="payName" value="{$object['payName']}" class="ipt" maxLength='100' />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>商户账号<font color='red'>*</font>:</th>
|
||||
<td>
|
||||
<input type="text" id="unionMerId" name="unionMerId" value="{$object['unionMerId']?? ''}" class="cfg" maxLength='100' />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>签名证书密码<font color='red'>*</font>:</th>
|
||||
<td>
|
||||
<input type="text" id="unionSignCertPwd" name="unionSignCertPwd" value="{$object['unionSignCertPwd']?? ''}" class="cfg" maxLength='100' />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>支付方式描述<font color='red'>*</font>:</th>
|
||||
<td>
|
||||
<textarea id="payDesc" name="payDesc" class="ipt" style="width:340px;height:100px;" >{$object['payDesc']}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>排序号<font color='red'>*</font>:</th>
|
||||
<td>
|
||||
<input type="text" id="payOrder" name="payOrder" value="{$object['payOrder']}" class="ipt" maxLength='20' />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan='2' align='center' class='wst-bottombar'>
|
||||
<input type="hidden" id="id" value="{$object['id']}" />
|
||||
<button type="submit" class="btn btn-primary btn-mright"><i class="fa fa-check"></i>提交</button>
|
||||
<button type="button" class="btn" onclick="javascript:history.go(-1)"><i class="fa fa-angle-double-left"></i>返回</button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
</script>
|
||||
{/block}
|
||||
|
44
hyhproject/admin/view/payments/pay_wallets.html
Executable file
44
hyhproject/admin/view/payments/pay_wallets.html
Executable file
@ -0,0 +1,44 @@
|
||||
{extend name="base" /}
|
||||
{block name="js"}
|
||||
<script src="__ADMIN__/payments/payments.js?v={$v}" type="text/javascript"></script>
|
||||
{/block}
|
||||
{block name="main"}
|
||||
<div class="l-loading" style="display: block" id="wst-loading"></div>
|
||||
|
||||
<form id="payForm" autocomplete="off">
|
||||
<table class='wst-form wst-box-top'>
|
||||
<tr>
|
||||
<th width='150'>支付名称<font color='red'>*</font>:</th>
|
||||
<td>
|
||||
<input type="text" id="payName" name="payName" value="{$object['payName']}" class="ipt" maxLength='100' />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>支付方式描述<font color='red'>*</font>:</th>
|
||||
<td>
|
||||
<textarea id="payDesc" name="payDesc" class="ipt" style="width:340px;height:100px;" >{$object['payDesc']}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>排序号<font color='red'>*</font>:</th>
|
||||
<td>
|
||||
<input type="text" id="payOrder" name="payOrder" value="{$object['payOrder']}" class="ipt" maxLength='20' />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan='2' align='center' class='wst-bottombar'>
|
||||
<input type="hidden" id="id" value="{$object['id']}" />
|
||||
<button type="submit" class="btn btn-primary btn-mright"><i class="fa fa-check"></i>提交</button>
|
||||
<button type="button" class="btn" onclick="javascript:history.go(-1)"><i class="fa fa-angle-double-left"></i>返回</button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
</script>
|
||||
{/block}
|
||||
|
67
hyhproject/admin/view/payments/pay_weixinpays.html
Executable file
67
hyhproject/admin/view/payments/pay_weixinpays.html
Executable file
@ -0,0 +1,67 @@
|
||||
|
||||
{extend name="base" /}
|
||||
{block name="js"}
|
||||
<script src="__ADMIN__/payments/payments.js?v={$v}" type="text/javascript"></script>
|
||||
{/block}
|
||||
{block name="main"}
|
||||
<div class="l-loading" style="display: block" id="wst-loading"></div>
|
||||
|
||||
<form id="payForm" autocomplete="off">
|
||||
<table class='wst-form wst-box-top'>
|
||||
<tr>
|
||||
<th width='150'>支付名称<font color='red'>*</font>:</th>
|
||||
<td>
|
||||
<input type="text" id="payName" name="payName" value="{$object['payName']}" class="ipt" maxLength='100' />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>APPID<font color='red'>*</font>:</th>
|
||||
<td>
|
||||
<input type="text" id="appId" name="appId" value="{$object['appId'] ?? ''}" class="cfg" maxLength='100' />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>微信支付商户号<font color='red'>*</font>:(mch_id) </th>
|
||||
<td>
|
||||
<input type="text" id="mchId" name="mchId" value="{$object['mchId']?? ''}" class="cfg" maxLength='100' />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>API密钥(key)<font color='red'>*</font>:</th>
|
||||
<td>
|
||||
<input type="text" id="apiKey" name="apiKey" value="{$object['apiKey']?? ''}" class="cfg" maxLength='100' />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Appsecret<font color='red'>*</font>:</th>
|
||||
<td>
|
||||
<input type="text" id="appsecret" name="appsecret" value="{$object['appsecret']?? ''}" class="cfg" maxLength='100' />
|
||||
<input type="hidden" id="payIcon" class="cfg" maxLength='100' />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>支付方式描述<font color='red'>*</font>:</th>
|
||||
<td>
|
||||
<textarea id="payDesc" name="payDesc" class="ipt" style="width:340px;height:100px;">{$object['payDesc']}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>排序号<font color='red'>*</font>:</th>
|
||||
<td>
|
||||
<input type="text" id="payOrder" name="payOrder" value="{$object['payOrder']}" class="ipt" maxLength='20' />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan='2' align='center' class='wst-bottombar'>
|
||||
<input type="hidden" id="id" value="{$object['id']}" />
|
||||
<button type="submit" class="btn btn-primary btn-mright"><i class="fa fa-check"></i>提交</button>
|
||||
<button type="button" class="btn" onclick="javascript:history.go(-1)"><i class="fa fa-angle-double-left"></i>返回</button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
|
||||
{/block}
|
||||
|
99
hyhproject/admin/view/payments/payments.js
Executable file
99
hyhproject/admin/view/payments/payments.js
Executable file
@ -0,0 +1,99 @@
|
||||
var mmg;
|
||||
function initGrid(){
|
||||
var h = WST.pageHeight();
|
||||
var cols = [
|
||||
{title:'名称', name:'payName', width: 30},
|
||||
{title:'描述', name:'payDesc' },
|
||||
{title:'状态', name:'enabled', renderer: function(val,item,rowIndex){
|
||||
return (val==1)?"<span class='statu-yes'><i class='fa fa-check-circle'></i> 开启</span>":"<span class='statu-no'><i class='fa fa-ban'></i> 关闭</span>";
|
||||
}},
|
||||
{title:'排序号', name:'payOrder' },
|
||||
{title:'操作', name:'op' ,width:80, align:'center', renderer: function(val,item,rowIndex){
|
||||
var h = "";
|
||||
if(item['enabled']==1){
|
||||
if(WST.GRANT.ZFGL_02)h += "<a class='btn btn-blue' href='"+WST.U('admin/payments/toEdit','id='+item['id']+'&payCode='+item['payCode'])+"'><i class='fa fa-pencil'></i>编辑</a> ";
|
||||
if(WST.GRANT.ZFGL_03)h += "<a class='btn btn-red' href='javascript:toDel(" + item['id'] + ")'><i class='fa fa-trash-o'></i>卸载</a> ";
|
||||
}
|
||||
else{
|
||||
if(WST.GRANT.ZFGL_02)h += "<a class='btn btn-blue' href='"+WST.U('admin/payments/toEdit','id='+item['id']+'&payCode='+item['payCode'])+"'><i class='fa fa-gear'></i>安装</a> ";
|
||||
}
|
||||
return h;
|
||||
}}
|
||||
];
|
||||
|
||||
mmg = $('.mmg').mmGrid({height: (h-40),indexCol: true, cols: cols,method:'POST',
|
||||
url: WST.U('admin/payments/pageQuery'), fullWidthRows: true, autoLoad: true,
|
||||
plugins: [
|
||||
$('#pg').mmPaginator({})
|
||||
]
|
||||
});
|
||||
}
|
||||
function toDel(id){
|
||||
var box = WST.confirm({content:"您确定卸载吗?",yes:function(){
|
||||
var loading = WST.msg('正在提交数据,请稍后...', {icon: 16,time:60000});
|
||||
$.post(WST.U('admin/payments/del'),{id:id},function(data,textStatus){
|
||||
layer.close(loading);
|
||||
var json = WST.toAdminJson(data);
|
||||
if(json.status=='1'){
|
||||
WST.msg("操作成功",{icon:1});
|
||||
layer.close(box);
|
||||
mmg.load();
|
||||
}else{
|
||||
WST.msg(json.msg,{icon:2});
|
||||
}
|
||||
});
|
||||
}});
|
||||
}
|
||||
|
||||
|
||||
function edit(id){
|
||||
//获取所有参数
|
||||
var params = WST.getParams('.ipt');
|
||||
//接收配置信息并转成JSON
|
||||
var configs = WST.getParams('.cfg');
|
||||
//保存配置信息
|
||||
params.payConfig = configs;
|
||||
params.id = id;
|
||||
var loading = WST.msg('正在提交数据,请稍后...', {icon: 16,time:60000});
|
||||
$.post(WST.U('admin/payments/'+((id==0)?"add":"edit")),params,function(data,textStatus){
|
||||
layer.close(loading);
|
||||
var json = WST.toAdminJson(data);
|
||||
if(json.status=='1'){
|
||||
WST.msg("操作成功",{icon:1});
|
||||
location.href=WST.U('Admin/payments/index');
|
||||
}else{
|
||||
WST.msg(json.msg,{icon:2});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$(function(){
|
||||
$('#payForm').validator({
|
||||
fields: {
|
||||
/*默认验证*/
|
||||
payName: {rule:"required;",msg:{required:"请输入支付名称"},tip:"请输入支付名称",ok:"",},
|
||||
payDesc: {rule:"required;",msg:{required:"请输入支付描述"},tip:"请输入支付描述",ok:"",},
|
||||
payOrder: {rule:"required;",msg:{required:"请输入排序号"},tip:"请输入排序号",ok:"",},
|
||||
/*微信验证*/
|
||||
appId: {rule:"required;",msg:{required:"请输入APPID"},tip:"请输入APPID",ok:"",},
|
||||
mchId: {rule:"required;",msg:{required:"请输入微信支付商户号(mch_id)"},tip:"请输入微信支付商户号(mch_id)",ok:"",},
|
||||
apiKey: {rule:"required;",msg:{required:"请输入API密钥(key)"},tip:"请输入API密钥(key)",ok:"",},
|
||||
appsecret: {rule:"required;",msg:{required:"请输入Appsecret"},tip:"请输入Appsecret",ok:"",},
|
||||
/*支付宝验证*/
|
||||
payAccount: {rule:"required;",msg:{required:"请输入支付宝账户"},tip:"请输入支付宝账户",ok:"",},
|
||||
parterID: {rule:"required;",msg:{required:"请输入合作者身份(parterID)"},tip:"请输入合作者身份(parterID)",ok:"",},
|
||||
parterKey: {rule:"required;",msg:{required:"请输入交易安全校验码(key"},tip:"请输入交易安全校验码(key",ok:"",},
|
||||
/*银联支付验证*/
|
||||
unionAccount: {rule:"required;",msg:{required:"请输入银联商户账号"},tip:"请输入银联商户账号",ok:"",},
|
||||
unionSignCertPwd: {rule:"required;",msg:{required:"请输入签名证书密码"},tip:"请输入签名证书密码",ok:"",},
|
||||
/*APP支付宝支付*/
|
||||
rsaPrivateKey: {rule:"required;",msg:{required:"请输入应用私钥"},tip:"请输入应用私钥",ok:"",},
|
||||
alipayrsaPublicKey: {rule:"required;",msg:{required:"请输入支付宝公钥"},tip:"请输入支付宝公钥",ok:"",}
|
||||
|
||||
},
|
||||
valid:function(form){
|
||||
edit($('#id').val())
|
||||
},
|
||||
});
|
||||
|
||||
});
|
Reference in New Issue
Block a user