Show country on the device list beside IP.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
hashbro
2026-09-14 23:27:37 +08:00
parent 8c9a15c523
commit 74a85b415b
3 changed files with 84 additions and 2 deletions
@@ -140,6 +140,9 @@ layui.use(['table', 'form', 'laydate', 'layer'], function () {
{ field: 'device_model', title: '设备型号', width: 130, sort: true, templet: function (d) { return dash(d.device_model); } },
{ field: 'ios_version', title: 'iOS 版本', width: 110, sort: true, templet: function (d) { return dash(d.ios_version); } },
{ field: 'ip', title: 'IP', width: 140, sort: true, templet: function (d) { return dash(d.ip); } },
{ field: 'country', title: '国家', width: 90, sort: true, templet: function (d) {
return d.country_label || d.country || '—';
} },
{ field: 'has_wallet', title: '钱包', minWidth: 220, sort: true, templet: function (d) {
var st = Number(d.has_wallet);
if (st === 1) return '<span style="color:#64748b;">无</span>';