diff --git a/app/admin/view/user/user/cost_details.html b/app/admin/view/user/user/cost_details.html
index a43f5ad7..cc825cf9 100755
--- a/app/admin/view/user/user/cost_details.html
+++ b/app/admin/view/user/user/cost_details.html
@@ -14,7 +14,7 @@
-
+
- 充值
- 佣金
@@ -30,9 +30,9 @@
-
-
-
+
+
+
@@ -77,73 +77,98 @@
¥ {{d.left_amount}}
-
+
+
-
+
+
+
当前用户总余额: ¥{$info['user_money']}
+
+
-
+
+
-
+
+
+
当前用户总余额: ¥{$info['user_money']}
+
+
@@ -206,6 +231,7 @@
getList(1); // 初始话充值列表
//切换列表
element.on('tab(like-tabs)', function (data) {
+ console.log(123123)
var type = $(this).attr('data-type');
// // 重置搜索模块
// $('#shop_name').val('');
@@ -230,7 +256,7 @@
});
function getList(type) {
- if (type == 1) {
+ if (type === 1) {
like.tableLists('#user-recharge', '{:url("user.user/costDetails")}?id=' + id + '&type=' + type + '&sel_type=' + $('#recharge_type').val(), [
{field: 'id', title: 'id', width: 100, align: 'center'}
, {field: 'log_sn', title: '订单号', width: 200}
@@ -238,6 +264,22 @@
, {field: 'left_amount', title: '剩余金额', width: 200, templet: '#recharge_left_amount'}
, {field: 'create_time', title: '创建时间', width: 200}
]);
+ } else if (type === 2) {
+ like.tableLists('#user-commission', '{:url("user.user/costDetails")}?id=' + id + '&type=' + type + '&sel_type=' + $('#recharge_type').val(), [
+ {field: 'id', title: 'id', width: 100, align: 'center'}
+ , {field: 'log_sn', title: '订单号', width: 200}
+ , {field: 'change_amount', title: '变动金额', width: 200, templet: '#recharge_change_amount'}
+ , {field: 'left_amount', title: '剩余金额', width: 200, templet: '#recharge_left_amount'}
+ , {field: 'create_time', title: '创建时间', width: 200}
+ ]);
+ } else if (type === 3) {
+ like.tableLists('#user-billions', '{:url("user.user/costDetails")}?id=' + id + '&type=' + type + '&sel_type=' + $('#recharge_type').val(), [
+ {field: 'id', title: 'id', width: 100, align: 'center'}
+ , {field: 'log_sn', title: '订单号', width: 200}
+ , {field: 'change_amount', title: '变动金额', width: 200, templet: '#recharge_change_amount'}
+ , {field: 'left_amount', title: '剩余金额', width: 200, templet: '#recharge_left_amount'}
+ , {field: 'create_time', title: '创建时间', width: 200}
+ ]);
}
}