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:"02", }, 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].businesses_name}
${data[i].commodity_name}
${data[i].commodity_attribute}
¥${data[i].commodity_price}
1
退款/退货
¥${(data[i].commodity_price * data[i].commodity_amount)} (含运费:¥0.00)
买家已付款 订单详情
提醒卖家发货
` orderTable += orderOne; } $(".table-body").html(orderTable); }, error:function () { } }); })