177 行
5.5 KiB
HTML
可执行文件
177 行
5.5 KiB
HTML
可执行文件
<!DOCTYPE html>
|
|
<html>
|
|
<!--[1.0.45]-->
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>会员</title>
|
|
<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>
|
|
.mybtn{
|
|
margin: 10px 30px;
|
|
}
|
|
.mybtn:hover{
|
|
color:white;
|
|
background-color: #3f4c73;
|
|
}
|
|
.sale_screen_hr{
|
|
margin-bottom: 10px;
|
|
}
|
|
.sale_screen{
|
|
box-sizing: border-box;
|
|
padding: 10px 30px 0 30px;
|
|
}
|
|
.iconBox{
|
|
position: absolute;
|
|
right: 4px;
|
|
top: 4px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="goodsBox">
|
|
<div class="goods_title">
|
|
<div class="goods_title_inner">
|
|
会员积分记录 <span style="color:orangered"></span>
|
|
</div>
|
|
</div>
|
|
<div class="sale_screen">
|
|
<form class="layui-form" action="">
|
|
<div class="sale_screen_hr">
|
|
<div class="layui-input-inline" style="width: 437px;">
|
|
<input type="text" name="date01" id="date01" lay-verify="date01" placeholder="点击查询指定时间段" autocomplete="off" class="layui-input" value="{$timenew}">
|
|
<i style="font-size: 28px;color: #009688;" class="layui-icon iconBox"></i>
|
|
</div>
|
|
</div>
|
|
<div class="layui-form-item">
|
|
<div class="layui-input-block" style="margin-left: 0;">
|
|
<button class="layui-btn" id="mysearch" type="button">查询</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
<div class="goods_table">
|
|
<table class="layui-table" lay-even lay-skin="nob" lay-size="lg">
|
|
<colgroup>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
</colgroup>
|
|
<thead>
|
|
<tr>
|
|
<th>今日赠送总积分</th>
|
|
<th>今日使用总积分</th>
|
|
<th>今日退还总积分</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<th>{$give_integral}</th>
|
|
<th>{$user_integral}</th>
|
|
<th>{$return_integral}</th>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="goods_table">
|
|
<table class="layui-hide" id="test"></table>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
<script src="__PUBLIC__/jquery/js/jquery-3.2.1.min.js"></script>
|
|
<script type="text/javascript" src="__PUBLIC__/layui/layui.js"></script>
|
|
<script type="text/javascript">
|
|
layui.use(['table','layer','laydate'], function() {
|
|
var table = layui.table;
|
|
laydate = layui.laydate;
|
|
//日期
|
|
laydate.render({
|
|
elem: '#date01',
|
|
range: '至',
|
|
value:$('#date01').val()
|
|
});
|
|
$('#mysearch').click(function () {
|
|
table.reload('test', {
|
|
page: {
|
|
curr: 1 //重新从第 1 页开始
|
|
}
|
|
,where: {
|
|
date01:$('#date01').val(),
|
|
}
|
|
});
|
|
})
|
|
//展示已知数据
|
|
table.render({
|
|
elem: '#test',
|
|
url:"{:U('Retail/Vips/integralList')}",
|
|
cols: [
|
|
[ {
|
|
field: 'index',
|
|
title: '序号',
|
|
width:60
|
|
}, {
|
|
field: 'name',
|
|
title: '姓名',
|
|
}, {
|
|
field: 'mobile_phone',
|
|
title: '手机号',
|
|
}, {
|
|
field: 'type',
|
|
title: '操作',
|
|
}, {
|
|
field: 'integral',
|
|
title: '积分'
|
|
},{
|
|
field: 'addtime',
|
|
title: '操作时间'
|
|
}
|
|
]
|
|
],
|
|
page: {
|
|
layout: [ 'count', 'prev', 'page', 'next', 'skip'] //自定义分页布局
|
|
}, //是否开启分页
|
|
});
|
|
var layer = layui.layer;
|
|
});
|
|
layui.use('upload', function(){
|
|
var upload = layui.upload;
|
|
//执行实例
|
|
var uploadInst = upload.render({
|
|
elem: '#upload_img' //绑定元素
|
|
,url: "{:U('Goods/upload')}" //上传接口
|
|
,accept: 'images'
|
|
,size: 1024
|
|
,exts: 'jpg|png'
|
|
,done: function(res){
|
|
$("#image_upload").attr('src',res.path);
|
|
$("#good_image").val(res.path);
|
|
//
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
<if condition="$account_type eq 1">
|
|
<script>
|
|
$.ajax({
|
|
url:"{:U('retail/vip/tosetvip')}",
|
|
type:'post',
|
|
data:{},
|
|
success:function (res) {
|
|
if(res.status==1){
|
|
var href = $('#dotosetvip').attr('href');
|
|
$('#dotosetvip').attr('href',href+'/code/'+res.code+'/id/'+res.id);
|
|
}else{
|
|
|
|
}
|
|
}
|
|
})
|
|
$('#setdiscount').click(function () {
|
|
window.location.href="{:U('retail/vip/set')}";
|
|
})
|
|
</script>
|
|
</if>
|
|
</html> |