/** * 渲染订单列表 */ Order = function () { }; /** * 设置数据集 */ Order.prototype.setData = function (data) { Order.prototype.data = data; }; /** * 列名数据 */ Order.prototype.cols = [ { type: 'checkbox', fixed: 'left', width: '3%', merge: true, template: function (orderitem, order) { var json = {} json.order_id = order.order_id; json.order_no = order.order_no; json.full_address = order.full_address; if(order.order_type == 4 && order.order_data_status == 3){ var h = '
'; h += '' + order.nickname + ''; h += '
'; h += ''; h += '' + order.mobile + ''; h += '
'; h += '' + order.full_address + " " + order.address + ''; h += '' h += '' return h; } }, { title: "操作", align: "right", className: "operation", width:"11%", merge: true, template: function (orderitem, order) { var url = "shop/order/detail"; var html = ''; var action_json = order.order_status_action; var action_arr = JSON.parse(action_json); var action = action_arr.action; html += '