baijunde 2 месяцев назад
Родитель
Сommit
c098cfb6ce
1 измененных файлов с 13 добавлено и 0 удалено
  1. 13 0
      pages/groupMeal/goods/form-step1.vue

+ 13 - 0
pages/groupMeal/goods/form-step1.vue

@@ -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 => {