From 9fb1a68d11a8928f2ba602dd68dc00d19ca7429f Mon Sep 17 00:00:00 2001 From: KKSU <15274802129@163.com> Date: Tue, 27 Feb 2024 15:47:57 +0800 Subject: [PATCH] 抽奖 --- src/main/resources/templates/febs/views/modules/mallMember/moneyFlowList.html | 118 ++++++++++++----------------------------------------------- 1 files changed, 24 insertions(+), 94 deletions(-) diff --git a/src/main/resources/templates/febs/views/modules/mallMember/moneyFlowList.html b/src/main/resources/templates/febs/views/modules/mallMember/moneyFlowList.html index 67a8c38..f5c49eb 100644 --- a/src/main/resources/templates/febs/views/modules/mallMember/moneyFlowList.html +++ b/src/main/resources/templates/febs/views/modules/mallMember/moneyFlowList.html @@ -8,49 +8,20 @@ <div class="layui-col-md10"> <div class="layui-form-item"> <div class="layui-inline"> + <label class="layui-form-label">账号:</label> <div class="layui-input-inline"> - <input type="text" placeholder="用户名" name="name" autocomplete="off" class="layui-input"> + <input type="text" placeholder="账号" name="phone" autocomplete="off" class="layui-input"> </div> </div> <div class="layui-inline"> - <div class="layui-input-inline"> - <input type="text" placeholder="手机号" name="phone" autocomplete="off" class="layui-input"> - </div> - </div> - <div class="layui-inline"> - <label class="layui-form-label layui-form-label-sm">流水类型</label> + <label class="layui-form-label">流水类型:</label> <div class="layui-input-inline"> <select name="type"> <option value="">请选择</option> - <option value="1">静态收益</option> - <option value="2">直推奖</option> - <option value="3">代理收益</option> - <option value="4">排名收益</option> - <option value="5">总监收益</option> - <option value="6">社区店补</option> - <option value="7">一代收益</option> - <option value="8">提现</option> - <option value="9">转账</option> - <option value="10">支付</option> - <option value="11">退款</option> - <option value="12">佣金转竞猜积分</option> - <option value="13">佣金转余额</option> - <option value="14">竞猜积分签到</option> - <option value="15">感恩奖</option> - <option value="16">系统拨付</option> - <option value="17">抽奖</option> - </select> - </div> - </div> - <div class="layui-inline"> - <label class="layui-form-label layui-form-label-sm">资金类型</label> - <div class="layui-input-inline"> - <select name="flowType"> - <option value="">请选择</option> - <option value="1">余额</option> - <option value="2">赠送积分</option> - <option value="3">竞猜积分</option> - <option value="4">佣金</option> + <option value="1">投注</option> + <option value="2">中奖</option> + <option value="3">充值</option> + <option value="4">提现</option> </select> </div> </div> @@ -72,6 +43,20 @@ </div> </div> </div> +<script type="text/html" id="typeFormat"> + <div> + {{# if (d.type == 1) { }} + <span class="layui-badge febs-tag-cyan">投注</span> + {{# } else if (d.type == 2) { }} + <span class="layui-badge febs-tag-green">中奖</span> + {{# } else if (d.type == 3) { }} + <span class="layui-badge febs-tag-blue">充值</span> + {{# } else if (d.type == 4) { }} + <span class="layui-badge febs-tag-yellow">提现</span> + {{# } else { }} + {{# } }} + </div> +</script> <!-- 表格操作栏 end --> <script data-th-inline="none" type="text/javascript"> // 引入组件并初始化 @@ -117,64 +102,11 @@ id: 'moneyFlowTable', url: ctx + 'admin/mallMember/getMoneyFlowList', cols: [[ - {field: 'name', title: '名称', minWidth: 100,align:'left'}, - {field: 'phone', title: '账号', minWidth: 150,align:'left'}, + {field: 'phone', title: '手机号码', minWidth: 150,align:'left'}, {field: 'amount', title: '金额', minWidth: 150,align:'left'}, - {field: 'type', title: '流水类型', - templet: function (d) { - if (d.type === 1) { - return '<span>静态收益</span>' - } else if (d.type === 2) { - return '<span>直推奖</span>' - } else if (d.type === 3) { - return '<span>代理收益</span>' - } else if (d.type === 4) { - return '<span>排名收益</span>' - }else if (d.type === 5) { - return '<span>总监收益</span>' - }else if (d.type === 6) { - return '<span>社区店补</span>' - }else if (d.type === 7) { - return '<span>一代收益</span>' - }else if (d.type === 8) { - return '<span>提现</span>' - }else if (d.type === 9) { - return '<span>转账</span>' - }else if (d.type === 10) { - return '<span>支付</span>' - }else if (d.type === 11) { - return '<span>退款</span>' - }else if (d.type === 12) { - return '<span>佣金转竞猜积分</span>' - }else if (d.type === 13) { - return '<span>佣金转余额</span>' - }else if (d.type === 14) { - return '<span>竞猜积分签到</span>' - }else if (d.type === 15) { - return '<span>感恩奖</span>' - }else if (d.type === 16) { - return '<span>系统拨付</span>' - }else if (d.type === 17) { - return '<span>抽奖</span>' - }else{ - return '' - } - }, minWidth: 80,align:'center'}, - {field: 'flowType', title: '资金类型', - templet: function (d) { - if (d.flowType === 1) { - return '余额'; - } else if(d.flowType === 2) { - return '赠送积分' - } else if(d.flowType === 3) { - return '竞猜积分' - } else if(d.flowType === 4) { - return '佣金' - } else { - return '-'; - } - }, minWidth: 80,align:'center'}, + {templet:"#typeFormat", title: '流水类型', minWidth: 100,align:'left'}, {field: 'orderNo', title: '订单编号', minWidth: 150,align:'left'}, + {field: 'remark', title: '备注', minWidth: 150,align:'left'}, {field: 'createdTime', title: '创建时间', minWidth: 180,align:'center'} ]] }); @@ -183,10 +115,8 @@ // 获取查询参数 function getQueryParams() { return { - name: $searchForm.find('input[name="name"]').val().trim(), phone: $searchForm.find('input[name="phone"]').val().trim(), type: $searchForm.find("select[name='type']").val(), - flowType: $searchForm.find("select[name='flowType']").val(), }; } -- Gitblit v1.9.1