Update index_search.html

This commit is contained in:
Anyon 2020-09-11 18:57:42 +08:00
parent ce4a590e32
commit bb2bf138b6

View File

@ -106,11 +106,15 @@
require(['excel'], function (excel) { require(['excel'], function (excel) {
excel.bind(function (data, rows) { excel.bind(function (data, rows) {
rows = [['订单号', '会员手机']]; rows = [['订单号', '会员手机', '会员姓名', '支付状态', '支付金额', '支付时间']];
data.forEach(function (item) { data.forEach(function (item) {
rows.push([ rows.push([
item.order_no, item.order_no,
item.member.phone item.member.phone,
item.member.username || item.member.nickname || '',
item.payment_status ? '已支付' : '未支付',
item.payment_amount || '0.00',
item.payment_datetime || '',
]); ]);
}); });
return rows; return rows;