|
|
@@ -263,6 +263,19 @@ export default {
|
|
|
this.fileList.detail = lists;
|
|
|
this.processImageList(lists, 'detailImages');
|
|
|
},
|
|
|
+ processImageList(lists, formKey) {
|
|
|
+ const urls = lists.map(item => {
|
|
|
+ if (item.response && item.response.message) {
|
|
|
+ return this.imageHttp + item.response.message;
|
|
|
+ }
|
|
|
+ if (item.url) {
|
|
|
+ return item.url;
|
|
|
+ }
|
|
|
+ return '';
|
|
|
+ }).filter(Boolean);
|
|
|
+ this.form[formKey] = urls.join(',');
|
|
|
+ console.log(this.form)
|
|
|
+ },
|
|
|
//获取特色分类
|
|
|
getCategoryList(){
|
|
|
this.$http.get('/groupmeal/gmSpecialCategory/listAll').then(res => {
|