|
|
|
<extend name="Public/base"/>
|
|
|
|
|
|
|
|
<block name="body">
|
|
|
|
|
|
|
|
|
|
|
|
<div class="cf main-place top_nav_list navtab_list">
|
|
|
|
|
|
|
|
<h3 class="page_title">支付限额规则配置</h3>
|
|
|
|
<p class="description_text">说明:配置支付规则,控制支付渠道</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="cf top_nav_list">
|
|
|
|
<div class="fl button_list">
|
|
|
|
<a class="" href="{:U('addLimitPay')}"><span class="button_icon button_icon1"></span>新增规则</a>
|
|
|
|
|
|
|
|
<!-- <a class=" list_sort" url="{:U('sort?group='.I('group'),'','')}"><span class="button_icon button_icon18"></span>排序</a> -->
|
|
|
|
</div>
|
|
|
|
<!-- 高级搜索 -->
|
|
|
|
<div class="jssearch fl cf search_list">
|
|
|
|
<div class="input-list input-list-game search_label_rehab">
|
|
|
|
<select id="game_type" name="pay_type" class="select_gallery" >
|
|
|
|
<option value="" <eq name="pay_type" value=" "> selected </eq>>请选择支付渠道</option>
|
|
|
|
<option value="alipay" <eq name="pay_type" value="alipay"> selected </eq>>支付宝</option>
|
|
|
|
<option value="wxpay" <eq name="pay_type" value="wxpay"> selected </eq>>微信</option>
|
|
|
|
<option value="yeepay" <eq name="pay_type" value="yeepay"> selected </eq>>易宝支付</option>
|
|
|
|
<option value="sqpay" <eq name="pay_type" value="sqpay"> selected </eq>>双乾</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="input-list input-list-game search_label_rehab">
|
|
|
|
<select id="game_type" name="limit_type" class="select_gallery" >
|
|
|
|
<option value="" <eq name="limit_type" value=" "> selected </eq>>请选择限制类型</option>
|
|
|
|
<option value="force" <eq name="limit_type" value="force"> selected </eq>>强制限制</option>
|
|
|
|
<option value="obstacles" <eq name="limit_type" value="obstacles"> selected </eq>>障碍类型</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="sleft">
|
|
|
|
<!-- <input type="text" name="name" class="search-input" value="{:I('name')}" placeholder="配置名称"> -->
|
|
|
|
<a class="sch-btn" href="javascript:;" id="search" url="{:U('Tool/limitPay',array('row'=>I('row')))}">搜索</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="data_list">
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>限制序号</th>
|
|
|
|
<th>限制支付渠道</th>
|
|
|
|
<th>限制规则</th>
|
|
|
|
<th>限制方式</th>
|
|
|
|
<th>限制时间</th>
|
|
|
|
<th>操作</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<notempty name="datas">
|
|
|
|
<volist name="datas" id="data">
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td>{$data.id}</td>
|
|
|
|
<td>{$data.pay_type}</td>
|
|
|
|
<td>{$data.limit_rule}</td>
|
|
|
|
<td>{$data.limit_type}</td>
|
|
|
|
<td>{$data.limit_time}</td>
|
|
|
|
<td>
|
|
|
|
<a title="编辑" href="{:U('editLimitPay?id='.$data['id'])}">编辑</a>
|
|
|
|
<a class="confirm ajax-get" title="删除" href="{:U('delLimitPay?id='.$data['id'])}">删除</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</volist>
|
|
|
|
<else/>
|
|
|
|
<td colspan="6" class="text-center">aOh! 暂时还没有内容!</td>
|
|
|
|
</notempty>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<!-- 分页 -->
|
|
|
|
<div class="page">
|
|
|
|
<a class="sch-btn" href="{:U('Export/expUser',array_merge(array('id'=>30,'xlsname'=>'支付限额配置'),I('get.')))}">导出</a>
|
|
|
|
{$_page}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="common_settings">
|
|
|
|
<span class="plus_icon"><span><img src="__IMG__/zwmimages/icon_jia.png"></span></span>
|
|
|
|
<form class="addShortcutIcon">
|
|
|
|
<input type="hidden" name="title" value="{$m_title}">
|
|
|
|
<input type="hidden" name="url" value="{$m_url}">
|
|
|
|
</form>
|
|
|
|
<a class="ajax-post add-butn <notempty name='commonset'>addSIsetted</notempty>" href="javascript:;" target-form="addShortcutIcon" url="{:U('Think/addShortcutIcon')}"><img src="__IMG__/zwmimages/icon_jia.png"><span><notempty name='commonset'>已添加<else />添加至常用设置</notempty></span></a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</block>
|
|
|
|
|
|
|
|
<block name="script">
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
|
|
highlight_subnav('{:U('Tool/limitPay')}');
|
|
|
|
Think.setValue('row','{:I("row",10)}');
|
|
|
|
$(function(){
|
|
|
|
//搜索功能
|
|
|
|
$("#search").click(function(){
|
|
|
|
console.log('0000')
|
|
|
|
var url = $(this).attr('url');
|
|
|
|
var query = $('.jssearch').find('input').serialize();
|
|
|
|
query += "&"+$('.jssearch').find('select').serialize();
|
|
|
|
console.log('vvv',query)
|
|
|
|
query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g,'');
|
|
|
|
query = query.replace(/^&/g,'');
|
|
|
|
if( url.indexOf('?')>0 ){
|
|
|
|
url += '&' + query;
|
|
|
|
}else{
|
|
|
|
url += '?' + query;
|
|
|
|
}
|
|
|
|
window.location.href = url;
|
|
|
|
});
|
|
|
|
//回车搜索
|
|
|
|
$(".search-input").keyup(function(e){
|
|
|
|
if(e.keyCode === 13){
|
|
|
|
$("#search").click();
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
//点击排序
|
|
|
|
$('.list_sort').click(function(){
|
|
|
|
var url = $(this).attr('url');
|
|
|
|
var ids = $('.ids:checked');
|
|
|
|
var param = '';
|
|
|
|
if(ids.length > 0){
|
|
|
|
var str = new Array();
|
|
|
|
ids.each(function(){
|
|
|
|
str.push($(this).val());
|
|
|
|
});
|
|
|
|
param = str.join(',');
|
|
|
|
}
|
|
|
|
|
|
|
|
if(url != undefined && url != ''){
|
|
|
|
window.location.href = url + '/ids/' + param;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</block>
|