From 1d0d712b4f2b489e020cbf23eaf20e386eee1561 Mon Sep 17 00:00:00 2001 From: Hentua <wangdoubleone@gmail.com> Date: Thu, 15 Jun 2023 01:46:42 +0800 Subject: [PATCH] fix --- src/main/resources/templates/febs/views/modules/mallMember/teamList.html | 17 ++++++++++++++--- 1 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/main/resources/templates/febs/views/modules/mallMember/teamList.html b/src/main/resources/templates/febs/views/modules/mallMember/teamList.html index a38b596..f45351a 100644 --- a/src/main/resources/templates/febs/views/modules/mallMember/teamList.html +++ b/src/main/resources/templates/febs/views/modules/mallMember/teamList.html @@ -18,6 +18,12 @@ <input type="text" placeholder="" name="refererId" autocomplete="off" data-th-value="${refererId}" class="layui-input"> </div> </div> + <div class="layui-inline febs-hide"> + <label class="layui-form-label">上级邀请码:</label> + <div class="layui-input-inline"> + <input type="text" placeholder="" name="type" autocomplete="off" data-th-value="${type}" class="layui-input"> + </div> + </div> </div> </div> <div class="layui-col-md2 layui-col-sm12 layui-col-xs12 table-action-area"> @@ -46,7 +52,10 @@ </script> <script type="text/html" id="directCntTemplate"> - <a lay-href="/modules/mallMember/teamList/{{d.inviteId}}" target="_blank">{{d.directCnt}}</a> + <a lay-href="/modules/mallMember/teamList/1/{{d.inviteId}}" target="_blank">{{d.directCnt}}</a> +</script> +<script type="text/html" id="teamCntTemplate"> + <a lay-href="/modules/mallMember/teamList/2/{{d.inviteId}}" target="_blank">{{d.teamCnt}}</a> </script> <script type="text/html" id="teamMoneyFlow"> <a lay-href="/modules/mallMember/moneyFlowList?refererId={{d.inviteId}}" target="_blank">{{d.teamProfitAmount}}</a> @@ -106,15 +115,17 @@ }); function initTable() { + var type = $searchForm.find('input[name="type"]').val().trim(), tableIns = febs.table.init({ elem: $view.find('table'), id: 'teamListTable', - url: ctx + 'admin/mallMember/teamList?referrerId=' + refererId, + url: ctx + 'admin/mallMember/teamList?referrerId=' + refererId + "&type=" + type, where : getQueryParams, cols: [[ {field: 'name', title: '会员名称', minWidth: 100}, {field: 'phone', title: '会员账号', minWidth: 100}, - {field: 'directCnt', title: '直推数量', templet:"#directCntTemplate", minWidth: 100}, + {field: 'directCnt', title: '直推人数', templet:"#directCntTemplate", minWidth: 100}, + {field: 'teamCnt', title: '团队人数', templet:"#teamCntTemplate", minWidth: 100}, {field: 'selfProfitAmount', title: '会员收益', templet:"#selfMoneyFlow", minWidth: 100}, {field: 'teamOrderAmount', title: '团队订单金额', minWidth: 100}, {field: 'teamProfitAmount', title: '团队收益', templet:"#teamMoneyFlow", minWidth: 100}, -- Gitblit v1.9.1