| | |
| | | <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"> |
| | |
| | | </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> |
| | |
| | | }); |
| | | |
| | | 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}, |
| | | ]] |
| | | }); |
| | | } |