/** * 刷新商城购物车 */ function findShopOrder(){ var sendData = {}; sendData["paymentState"] = ""; sendData["pageNo"] = "1"; sendData["pageSize"] = "10"; util.sendAjax({ url:'shop/shopOrder', data:sendData, async:true, loadFlag:true, type:'GET', cache:false, success:function(json){ if(json.rc==0){ if(json.list!=null && json.list.length>0){ var html=""; $.each(json.list,function(index,item){ html+="
  • 订单编号:"+item.shopOrderCode+""+item.paymentState+""+ "订单时间:"+item.orderDate+""+ "商品数量:"+item.num+""+ "商品运费:"+item.postPrice+""+ "订单总额:"+item.price+""+ "
    "+ ""+ ""+ ""; var goodList = item.orderDetailList; if(goodList!=null && goodList.length>0){ for(var i=0;i"; } } html+="
    商品名称数量单价小计
    "+goodList[i].goodsNum+"¥ "+goodList[i].goodsPrice+"¥"+goodList[i].totalPrice+"
    "+ "发货状态:"+(item.isSend==0?'未发货':'已发货')+""+ "收货地址:"+item.postName+","+item.postDel+","+(item.province+item.city+item.address)+""+ "
  • "; }); $("#showContent").html(html); } }else{ layer.open({ content: "查询商城订单失败,错误代码:"+json.rc+"错误信息:"+json.msg ,skin: 'msg' ,time: 2 //2秒后自动关闭 }); } } }); } $(function(){ findShopOrder(); })