mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2026-06-10 12:27:51 +08:00
【新增】后台用户列表,积分调整为可用积分,增加累计积分列及可点击列表展示。
This commit is contained in:
@@ -86,7 +86,7 @@
|
||||
method: 'POST',
|
||||
defaultToolbar: ['filter', 'print', 'exports'],
|
||||
//height: 'full-127',//无面包屑127,搜索框189,1行62
|
||||
where: { userId: d.params.id },
|
||||
where: { userId: d.params.id, searchType: d.params.searchType },
|
||||
page: true,
|
||||
limit: 30,
|
||||
limits: [10, 15, 20, 25, 30, 50, 100, 200],
|
||||
|
||||
@@ -219,11 +219,17 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
field: 'point', title: '积分', sort: false, width: 70, templet: function (data) {
|
||||
field: 'point', title: '可用积分', sort: false, width: 70, templet: function (data) {
|
||||
var html = '<a class="link-hot option-show point" data-id="' + data.id + '">' + data.point + '</a>';
|
||||
return html;
|
||||
}
|
||||
},
|
||||
{
|
||||
field: 'accumulativePoint', title: '累计积分', sort: false, width: 70, templet: function (data) {
|
||||
var html = '<a class="link-hot option-show point" data-id="' + data.id + '" data-type="accumulativePoint">' + data.accumulativePoint + '</a>';
|
||||
return html;
|
||||
}
|
||||
},
|
||||
{
|
||||
field: 'grade', title: '用户等级', sort: false, width: 105, templet: function (data) {
|
||||
if (data.grade) {
|
||||
@@ -560,6 +566,7 @@
|
||||
//积分记录
|
||||
$(document).on('click', '.point', function () {
|
||||
var id = $(this).attr('data-id');
|
||||
var searchType = $(this).attr('data-type');
|
||||
coreHelper.Post("Api/CoreCmsUser/GetDetailsPointLog", { id: id }, function (e) {
|
||||
if (e.code === 0) {
|
||||
admin.popup({
|
||||
@@ -568,7 +575,7 @@
|
||||
area: ['90%', '90%'],
|
||||
id: 'LAY-popup-CoreCmsUser-details',
|
||||
success: function (layero, index) {
|
||||
view(this.id).render('user/userInfo/detailsPointLog', { data: e.data, id: id }).done(function () {
|
||||
view(this.id).render('user/userInfo/detailsPointLog', { data: e.data, id: id, searchType: searchType }).done(function () {
|
||||
form.render();
|
||||
});
|
||||
}
|
||||
@@ -581,6 +588,9 @@
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
//余额明细
|
||||
$(document).on('click', '.balance', function () {
|
||||
var id = $(this).attr('data-id');
|
||||
|
||||
Reference in New Issue
Block a user