|
@@ -693,7 +693,8 @@
|
|
|
function UsersView() {
|
|
function UsersView() {
|
|
|
const userCols = [
|
|
const userCols = [
|
|
|
{ title: 'ID', dataIndex: 'id', width: 60 },
|
|
{ title: 'ID', dataIndex: 'id', width: 60 },
|
|
|
- { title: '手机号', dataIndex: 'phone', width: 130 },
|
|
|
|
|
|
|
+ { title: '邮箱', dataIndex: 'email', width: 180, render: function (v) { return v || '—'; } },
|
|
|
|
|
+ { title: '手机号(旧)', dataIndex: 'phone', width: 120, render: function (v) { return v || '—'; } },
|
|
|
{ title: '昵称', dataIndex: 'name', width: 120 },
|
|
{ title: '昵称', dataIndex: 'name', width: 120 },
|
|
|
{ title: '订单数', dataIndex: 'orderCount', width: 80 },
|
|
{ title: '订单数', dataIndex: 'orderCount', width: 80 },
|
|
|
{ title: '消费额', dataIndex: 'paidTotal', width: 100, render: fmtMoney },
|
|
{ title: '消费额', dataIndex: 'paidTotal', width: 100, render: fmtMoney },
|
|
@@ -740,7 +741,7 @@
|
|
|
{ key: 'users', label: '注册用户', children:
|
|
{ key: 'users', label: '注册用户', children:
|
|
|
h('div', null,
|
|
h('div', null,
|
|
|
h('div', { style: { display: 'flex', gap: 10, marginBottom: 14 } },
|
|
h('div', { style: { display: 'flex', gap: 10, marginBottom: 14 } },
|
|
|
- h(A.Input.Search, { value: state.users.query, style: { width: 260 }, placeholder: '搜索手机号 / 昵称',
|
|
|
|
|
|
|
+ h(A.Input.Search, { value: state.users.query, style: { width: 260 }, placeholder: '搜索手机号 / 邮箱 / 昵称',
|
|
|
allowClear: true,
|
|
allowClear: true,
|
|
|
onChange: function (e) { state.users.query = e.target.value; render(); },
|
|
onChange: function (e) { state.users.query = e.target.value; render(); },
|
|
|
onSearch: function () { state.users.page = 1; loadUsers(); } })),
|
|
onSearch: function () { state.users.page = 1; loadUsers(); } })),
|