Showing
1 changed file
with
2 additions
and
1 deletions
| @@ -63,6 +63,7 @@ | @@ -63,6 +63,7 @@ | ||
| 63 | {field: 'average', align: 'center', edit: 'text', title: '人均消费'}, | 63 | {field: 'average', align: 'center', edit: 'text', title: '人均消费'}, |
| 64 | {field: 'score', align: 'center', edit: 'text', title: '店铺评分'}, | 64 | {field: 'score', align: 'center', edit: 'text', title: '店铺评分'}, |
| 65 | {field: 'is_parking', align: 'center', edit: 'text',title: '是否有停车场'}, | 65 | {field: 'is_parking', align: 'center', edit: 'text',title: '是否有停车场'}, |
| 66 | + {field: 'slogan', align: 'center', edit: 'text',title: '商家短标语'}, | ||
| 66 | {field: 'user_name', align: 'center',title: '创建人'}, | 67 | {field: 'user_name', align: 'center',title: '创建人'}, |
| 67 | {field: 'dz_version', align: 'center',title: 'APP版本'}, | 68 | {field: 'dz_version', align: 'center',title: 'APP版本'}, |
| 68 | {align: 'center', width:200,title: '操作', toolbar: '#action'} | 69 | {align: 'center', width:200,title: '操作', toolbar: '#action'} |
| @@ -76,7 +77,7 @@ | @@ -76,7 +77,7 @@ | ||
| 76 | var value = obj.value, //得到修改后的值 | 77 | var value = obj.value, //得到修改后的值 |
| 77 | data = obj.data, //得到所在行所有键值 | 78 | data = obj.data, //得到所在行所有键值 |
| 78 | field = obj.field; //得到字段 | 79 | field = obj.field; //得到字段 |
| 79 | - var new_field = field=='average' ? "人均消费" : (field=='is_parking' ? "停车场" : (field=='score' ? "店铺评分" : '短店名')); | 80 | + var new_field = field=='average' ? "人均消费" : (field=='is_parking' ? "停车场" : (field=='score' ? "店铺评分" : (field=='slogan' ? '标语' : '短店名'))); |
| 80 | //layer.msg('[ID: '+ data.id +'] ' + field + ' 字段更改为:'+ value); | 81 | //layer.msg('[ID: '+ data.id +'] ' + field + ' 字段更改为:'+ value); |
| 81 | layer.confirm('请确认将 '+ data.sellername +'商家的 ' + new_field + ' 更改为:'+ value, function(index){ | 82 | layer.confirm('请确认将 '+ data.sellername +'商家的 ' + new_field + ' 更改为:'+ value, function(index){ |
| 82 | $.post("{:url('setsellerconfig')}",{sellerid:data.id,field:field,value:value},function(res){ | 83 | $.post("{:url('setsellerconfig')}",{sellerid:data.id,field:field,value:value},function(res){ |
-
Please register or login to post a comment