init: import production code mss.nahaichuan.com (exclude Runtime/Uploads/backups/logs)
这个提交包含在:
@@ -0,0 +1,157 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<!--[1.1.31]-->
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>后台管理系统</title>
|
||||
<link href="{$logo['icourl']}" type="image/x-icon" rel="shortcut icon" >
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/layui/css/layui.css" />
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Retail/css/goodsList.css" />
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Retail/css/myscroll.css"/>
|
||||
<style>
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
padding: 10px 15px;
|
||||
}
|
||||
table {
|
||||
border: 1px solid #f1f1f1;
|
||||
margin-top: 40px;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body style="cursor: pointer;">
|
||||
<div id="_demo">
|
||||
<div class="goods_edit">
|
||||
<form class="layui-form" action="">
|
||||
<div class="layui-inline">
|
||||
<label class="layui-form-label" style="width: 100px;font-size: 15px;">转账方式:</label>
|
||||
<div class="layui-input-inline">
|
||||
<select name="guidetype" id="guidetype" lay-verify="required" lay-search="">
|
||||
<option value="">请选择</option>
|
||||
<option value="1">支付宝</option>
|
||||
<option value="2">微信(仅限微信好友)</option>
|
||||
<option value="3">银行卡</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<button type="button" class="layui-btn" id="Preservation" style="margin-left: 20px;">确定</button>
|
||||
</div>
|
||||
<table class="layui-hide" id="test" lay-filter="demo"></table>
|
||||
</div>
|
||||
<script src="__PUBLIC__/jquery/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="__PUBLIC__/layui/layui.js"></script>
|
||||
<script>
|
||||
layui.use(['form', 'layedit', 'laydate', 'table'], function() {
|
||||
var form = layui.form
|
||||
,layer = layui.layer
|
||||
,layedit = layui.layedit
|
||||
,laydate = layui.laydate;
|
||||
var laydate = layui.laydate;
|
||||
var table = layui.table;
|
||||
|
||||
//展示已知数据
|
||||
table.render({
|
||||
elem: '#test',
|
||||
url: "{:U('/Retail/AloneGuide/getextract')}",
|
||||
limit:5,
|
||||
cols: [
|
||||
[ //标题栏
|
||||
{
|
||||
checkbox: true,
|
||||
LAY_CHECKED:true,
|
||||
title: '全选',
|
||||
align: 'center',
|
||||
width: 145
|
||||
},{
|
||||
field: 'guideid',
|
||||
title: '导购员',
|
||||
align: 'center',
|
||||
width: 200
|
||||
},{
|
||||
field: 'vipid',
|
||||
title: '会员',
|
||||
align: 'center',
|
||||
width: 200
|
||||
}, {
|
||||
field: 'allmoney',
|
||||
title: '消费金额',
|
||||
align: 'center',
|
||||
width: 220
|
||||
},{
|
||||
field: 'paytime',
|
||||
title: '消费时间',
|
||||
align: 'center',
|
||||
width: 300
|
||||
}, {
|
||||
field: 'income',
|
||||
title: '所得金额',
|
||||
align: 'center',
|
||||
width: 200
|
||||
}
|
||||
]
|
||||
],
|
||||
page: {
|
||||
layout: [ 'count', 'prev', 'page', 'next', 'skip'] //自定义分页布局
|
||||
}, //是否开启分页
|
||||
});
|
||||
|
||||
|
||||
//确定提交
|
||||
$('#Preservation').click(function () {
|
||||
var guidetype = $('#guidetype').val();
|
||||
if(!guidetype){
|
||||
top.layer.msg('请选择转账方式');
|
||||
return false;
|
||||
}
|
||||
var checkStatus = table.checkStatus('test'); //test 即为基础参数 id 对应的值
|
||||
var data = checkStatus.data;
|
||||
var str = '';
|
||||
$.each(data,function(k,v){
|
||||
str += v.id+',';
|
||||
});
|
||||
var str2 = str.substring(0, str.lastIndexOf(','))
|
||||
if (!str2){
|
||||
top.layer.msg('选择提现金额');
|
||||
return false;
|
||||
}
|
||||
layer.confirm('确定发起提现吗?',function(index){
|
||||
$.ajax({
|
||||
url:"{:U('/Retail/AloneGuide/tax')}",
|
||||
type:"POST",
|
||||
data:{id:str2,guidetype:guidetype},
|
||||
success:function(res){
|
||||
if (res.status == 1) {
|
||||
layer.msg(res.msg, {
|
||||
time: 1000
|
||||
}, function () {
|
||||
top.layer.closeAll();
|
||||
window.location.reload()
|
||||
});
|
||||
}else{
|
||||
layer.closeAll();
|
||||
top.layer.msg(res.msg);
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
function checkPwd(pwd){
|
||||
var reg=/^[a-zA-Z0-9]{1,}$/;
|
||||
if(reg.test(pwd)==false){
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
})
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
在新工单中引用
屏蔽一个用户