From c6ccc0c8e528b37a7b472a906d6142ab7aa04952 Mon Sep 17 00:00:00 2001
From: liutong <836164388@qq.com>
Date: Thu, 5 Jun 2025 14:51:23 +0800
Subject: [PATCH] =?UTF-8?q?feat(feedback):=20=E4=BC=98=E5=8C=96=E5=AD=A6?=
=?UTF-8?q?=E7=94=9F=E6=84=8F=E8=A7=81=E5=8F=8D=E9=A6=88=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 新增 xy_userFeedbackAdd 接口用于提交反馈信息
- 修改上传组件 AQUplodeImgMulti 的使用方式
- 更新反馈页面的表单结构和提交逻辑
- 优化反馈内容和图片的处理方式
---
api/apiRoute.js | 9 ++++
components/AQ/AQUplodeImgMulti.vue | 12 ++++--
pages/common/feedback.vue | 67 ++++++++++++++++++++++--------
3 files changed, 67 insertions(+), 21 deletions(-)
diff --git a/api/apiRoute.js b/api/apiRoute.js
index 06904fa..7c91198 100644
--- a/api/apiRoute.js
+++ b/api/apiRoute.js
@@ -425,6 +425,15 @@ export default {
})
},
+ //学生-意见反馈-添加
+ xy_userFeedbackAdd(data = {}) {
+ let url = '/userFeedback/add'
+ return http.post(url, data).then(res => {
+ return res;
+ })
+ },
+
+
diff --git a/components/AQ/AQUplodeImgMulti.vue b/components/AQ/AQUplodeImgMulti.vue
index eeef305..da3793e 100644
--- a/components/AQ/AQUplodeImgMulti.vue
+++ b/components/AQ/AQUplodeImgMulti.vue
@@ -27,6 +27,11 @@ import {Api_url} from "../../common/config";
},
props: {
//父组件参数
+ //上传文件接口的url
+ uploadApiUrl:{
+ type: String,
+ default: `${Api_url}/file/image`
+ },
//表单名称
inputName: {
type: String,
@@ -48,7 +53,8 @@ import {Api_url} from "../../common/config";
return {
inputName: this.inputName,
inputValue: this.inputValue,
- maxFileNum: this.maxFileNum
+ maxFileNum: this.maxFileNum,
+ uploadApiUrl: this.uploadApiUrl
};
}
},
@@ -99,7 +105,7 @@ import {Api_url} from "../../common/config";
},
//上传接口地址
- uploadApiUrl: `${Api_url}/file/image`,
+ // uploadApiUrl: `${Api_url}/file/image`,
// 上传图片的样式
imageStyles: {
@@ -168,7 +174,7 @@ import {Api_url} from "../../common/config";
console.log('xxx',_arr)
this.fileList.push(_arr)
console.log('上传成功2',_arr);
- this.filePathArr.push(res.data.path)
+ this.filePathArr.push(res.data.url)
//上传成功
this.emitUploadSuccess(this.filePathArr)
}else{
diff --git a/pages/common/feedback.vue b/pages/common/feedback.vue
index 7b07849..c66557d 100644
--- a/pages/common/feedback.vue
+++ b/pages/common/feedback.vue
@@ -5,28 +5,28 @@
-
+
上传图片
-
-
-
-
-
-
+
+
+
+
+
-
- 反馈的相关问题会第一时间通过邮箱解答。
-
+
+
+
提交
@@ -34,9 +34,13 @@