| | |
| | | } |
| | | }, |
| | | {title: '服务内容', field: 'content', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: '图片', field: 'picture', visible: true, align: 'center', valign: 'middle', |
| | | formatter: function (value, row) { |
| | | return '<img src="'+row.picture+'" style="height: 60px;width: 60px"/>' |
| | | } |
| | | }, |
| | | {title: '兑换积分数', field: 'integral', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: '优推值', field: 'number', visible: false, align: 'center', valign: 'middle'}, |
| | | {title: '优推距离(米)', field: 'distance', visible: true, align: 'center', valign: 'middle'}, |
| | |
| | | {title: '状态', field: 'status', visible: true, align: 'center', valign: 'middle', |
| | | formatter: function (value, row) { |
| | | if (row.status === 1){ |
| | | return '<span>正常</span>' |
| | | return '<span>启用</span>' |
| | | }else if (row.status === 2){ |
| | | return '<span>冻结</span>' |
| | | return '<span>停用</span>' |
| | | }else if (row.status === 3){ |
| | | return '<span>已删除</span>' |
| | | } |
| | |
| | | {title: '操作', visible: true, align: 'center', valign: 'middle',width:150, |
| | | formatter: function (value, row) { |
| | | if (row.status === 1){ |
| | | return '<a href="#" onclick="TYouTui.updateStatus('+row.id+','+row.status+')" style="color:red">冻结</a>' +' ' + |
| | | '<a href="#" onclick="TYouTui.delete('+row.id+')" style="color:red">删除</a>' |
| | | return '<a href="#" onclick="TYouTui.updateStatus('+row.id+','+row.status+')" style="color:lightskyblue">停用</a>' +' ' + |
| | | '<a href="#" onclick="TYouTui.delete('+row.id+')" style="color:lightskyblue">删除</a>' |
| | | }else if (row.status === 2){ |
| | | return '<a href="#" onclick="TYouTui.updateStatus('+row.id+','+row.status+')" style="color:green">解冻</a>' +' ' + |
| | | '<a href="#" onclick="TYouTui.delete('+row.id+')" style="color:red">删除</a>' |
| | | return '<a href="#" onclick="TYouTui.updateStatus('+row.id+','+row.status+')" style="color:lightskyblue">启用</a>' +' ' + |
| | | '<a href="#" onclick="TYouTui.delete('+row.id+')" style="color:lightskyblue">删除</a>' |
| | | } |
| | | } |
| | | } |