From 87d94a510a9bcc50e8647bccf18442cea8cb67fc Mon Sep 17 00:00:00 2001
From: liutong <836164388@qq.com>
Date: Thu, 20 Mar 2025 18:09:51 +0800
Subject: [PATCH] =?UTF-8?q?feat(member):=20=E6=B7=BB=E5=8A=A0=E7=94=A8?=
=?UTF-8?q?=E6=88=B7=E5=8F=8D=E9=A6=88=E5=8A=9F=E8=83=BD=E5=B9=B6=E4=BC=98?=
=?UTF-8?q?=E5=8C=96=E7=99=BB=E5=BD=95=E6=8E=A5=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 在 member.js 中添加 setFeedback 方法,用于提交用户反馈
- 更新 feedback.vue 页面,增加反馈内容和邮箱输入框的双向绑定
- 添加表单提交功能,验证反馈内容不能为空- 优化 login 方法,统一登录接口
---
api/member.js | 32 +++++++----------
pages/common/feedback.vue | 76 ++++++++++++++++++++-------------------
2 files changed, 52 insertions(+), 56 deletions(-)
diff --git a/api/member.js b/api/member.js
index e29b121..f031064 100644
--- a/api/member.js
+++ b/api/member.js
@@ -1,23 +1,17 @@
import http from '../common/axios.js'
-// 账号密码登录
-function medication_login(data) {
- let url = '/dnseyeapi/Login/login'
- return http.post(url, data).then(res => {
- return res;
- })
-}
-
-//登录
-function login(data) {
- let url = '/login'
- return http.get(url,data).then(res => {
- return res;
- })
-}
-
-
export default {
- login,
- medication_login,
+ // 业务员端配置项(关于我们)
+ setFeedback(data) {
+ let url = '/member/set_feedback'
+ return http.post(url,data).then(res => {
+ return res;
+ })
+ },
+ login(data) {
+ let url = '/login'
+ return http.get(url,data).then(res => {
+ return res;
+ })
+ },
}
\ No newline at end of file
diff --git a/pages/common/feedback.vue b/pages/common/feedback.vue
index 3388354..03a39e8 100644
--- a/pages/common/feedback.vue
+++ b/pages/common/feedback.vue
@@ -5,7 +5,7 @@
-
+
@@ -17,9 +17,10 @@
+
-
+
@@ -27,13 +28,13 @@
反馈的相关问题会第一时间通过邮箱解答。
- 提交
+ 提交
@@ -145,6 +143,10 @@
background-color: #434544 !important;
}
+ ::v-deep textarea {
+ color: #fff !important;
+ }
+
::v-deep .fui-textarea__background {
border: 0;
background-color: #434544 !important;