From ca19af1898405b969d2d9e8a3d07f9b1ee7fc938 Mon Sep 17 00:00:00 2001 From: Hentua <wangdoubleone@gmail.com> Date: Sun, 02 Jul 2023 11:24:04 +0800 Subject: [PATCH] fix --- src/main/resources/templates/febs/views/modules/mallMember/teamList.html | 22 ++++++++++++++++------ 1 files changed, 16 insertions(+), 6 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..60f2a53 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,18 +115,19 @@ }); 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, - where : getQueryParams, + url: ctx + 'admin/mallMember/teamList?referrerId=' + refererId + "&type=" + type, cols: [[ {field: 'name', title: '会员名称', minWidth: 100}, {field: 'phone', title: '会员账号', minWidth: 100}, - {field: 'directCnt', title: '直推数量', templet:"#directCntTemplate", minWidth: 100}, - {field: 'selfProfitAmount', title: '会员收益', templet:"#selfMoneyFlow", 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}, + // {field: 'teamProfitAmount', title: '团队收益', templet:"#teamMoneyFlow", minWidth: 100}, ]] }); } -- Gitblit v1.9.1