| | |
| | | formatter: function (value, row) { |
| | | var btn = []; |
| | | btn += '<a href="javascript:void(0);" onclick="TDriverPromotionActivity.viewUser(' + row.driverId + ')" style="color: #0e9aef">查看下级用户</a> '; |
| | | btn += '<a href="javascript:void(0);" onclick="TDriverPromotionActivity.info(' + row.id + ')" style="color: #0e9aef">查看收益明细</a> '; |
| | | btn += '<a href="javascript:void(0);" onclick="TDriverPromotionActivity.viewMoney(' + row.driverId + ')" style="color: #0e9aef">查看收益明细</a> '; |
| | | return btn; |
| | | } |
| | | |
| | |
| | | fix: false, //不固定 |
| | | maxmin: true, |
| | | content: Feng.ctxPath + '/tDriverPromotionActivity/tDriverPromotionActivity_viewUser/' + e |
| | | }); |
| | | this.layerIndex = index; |
| | | }; |
| | | /** |
| | | * 打开查看详情 |
| | | */ |
| | | TDriverPromotionActivity.viewMoney = function (e) { |
| | | var index = layer.open({ |
| | | type: 2, |
| | | title: '推广收益明细', |
| | | area: ['100%', '100%'], //宽高 |
| | | fix: false, //不固定 |
| | | maxmin: true, |
| | | content: Feng.ctxPath + '/tDriverPromotionActivity/tDriverPromotionActivity_viewMoney/' + e |
| | | }); |
| | | this.layerIndex = index; |
| | | }; |
| | |
| | | var table = new BSTable(TDriverPromotionActivity.id, "/tDriverPromotionActivity/list1", defaultColunms); |
| | | table.setPaginationType("client"); |
| | | TDriverPromotionActivity.table = table.init(); |
| | | TDriverPromotionActivity.search() |
| | | }); |