"+item['goodsName']+"
"; }}, {title:'购物车数量', name:'cartNum' ,width:20,sortable:true,align:'center', }, {title:'单品价格', name:'shopPrice' ,width:20,sortable:true,align:'center', renderer: function(val,item,rowIndex){ return '¥'+item['shopPrice']; }}, {title:'总价', name:'totalPrice' ,width:20,sortable:true,align:'center', renderer: function(val,item,rowIndex){ return '¥'+item['totalPrice']; }}, {title:'所属店铺', name:'shopName' ,width:60,sortable:true}, {title:'所属分类', name:'goodsCatName' ,width:60,renderer:function(val,item,rowIndex){ return ""+item['goodsCatName']+"
"; }}, {title:'操作', name:'' ,width:150, align:'center', renderer: function(val,item,rowIndex){ var h = ""; h += "查看 "; return h; }} ]; mmg = $('.mmg').mmGrid({height: (h-85),indexCol: true, indexColWidth:50, cols: cols,method:'POST', url: WST.U('admin/carts/cartsByPage'), fullWidthRows: true, autoLoad: true,remoteSort: true,sortName:'goodsSn',sortStatus:'desc', plugins: [ $('#pg').mmPaginator({}) ] }); } function toExport(){ var params = {}; params = WST.getParams('.j-ipt'); var box = WST.confirm({content:"您确定要导出订单吗?",yes:function(){ layer.close(box); location.href=WST.U('admin/carts/toExport',params); }}); } function loadGrid(){ var params = WST.getParams('.j-ipt'); params.page = 1; mmg.load(params); }