layui.use(["layer","jquery","element","carousel","table"], function() { const layer = layui.layer , $ = layui.jquery , element = layui.element , table = layui.table , carousel = layui.carousel; let orderInfo; $.ajax({ url:"/ebuy/allOrderTable", type:"post", dataType:"json", data:{ orderStatus:"04", }, success:function (data) { orderInfo = data; let orderTable = ""; for (let i = 0; i < data.length; i++) { let orderOne = ""; //待评价 orderOne = `
${data[i].creat_time}
订单号: ${data[i].order_id}
${data[i].business_name}
${data[i].commodity_name}
${data[i].commodity_attribute}
¥${data[i].commodity_price}
1
申请售后 投诉商家
¥${data[i].commodity_name * data[i].commodity_amount} (含运费:¥0.00)
交易成功 订单详情 花呗账单 查看物流
评价
`; orderTable += orderOne; } $(".table-body").html(orderTable); }, error:function () { } }); })