| | |
| | | {title: '所在省市', field: 'provinceAndCity', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: '充值用户', field: 'name', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: '联系方式', field: 'phone', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: '充值时间', field: 'time', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: '充值时间', field: 'insertTime', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: '充值金额', field: 'amount', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: '玩湃币数量', field: 'playPaiCoins', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: '充值类型', field: 'type', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: '充值类型', field: 'type', visible: true, align: 'center', valign: 'middle', |
| | | formatter:function (data) { |
| | | return {1:"会员充值",0:"非会员充值"}[data] |
| | | } |
| | | }, |
| | | ]; |
| | | }; |
| | | function currentTime(timestamp){ |
| | |
| | | TCompetition.table.refresh({query: queryData}); |
| | | }; |
| | | TCompetition.getAmount = function () { |
| | | |
| | | var ajax = new $ax(Feng.ctxPath + "/finance/getAmount", function (data) { |
| | | var amountElement = document.getElementById("amount"); |
| | | amountElement.innerText = data; |
| | | }, function (data) { |
| | | |
| | | amountElement.innerText = "充值总金额:"+data+"元"; |
| | | }); |
| | | ajax.set("province",$("#pCode").val()); |
| | | ajax.set("city",$("#cCode").val()); |
| | | ajax.set("name",$("#name").val()); |
| | | ajax.set("phone",$("#phone").val()); |
| | | ajax.set("time",$("#beginTime").val()); |
| | | ajax.set("beginTime",$("#beginTime").val()); |
| | | ajax.set("type",$("#type").val()); |
| | | ajax.start(); |
| | | }; |
| | |
| | | $("#cCode").val(""); |
| | | $("#name").val(""); |
| | | $("#phone").val(""); |
| | | $("#shopName").val(""); |
| | | $("#type").val(""); |
| | | $("#beginTime").val(""); |
| | | TCompetition.search(); |
| | | }; |
| | | |
| | |
| | | $(function () { |
| | | var defaultColunms = TCompetition.initColumn(); |
| | | var table = new BSTable(TCompetition.id, "/finance/listAll", defaultColunms); |
| | | table.setPaginationType("server"); |
| | | table.setPaginationType("client"); |
| | | TCompetition.table = table.init(); |
| | | TCompetition.getAmount(); |
| | | |
| | | }); |
| | | |
| | | /** |