Browse Source

意见反馈

liushengqiang 2 years ago
parent
commit
40f4c43540

+ 1 - 1
src/page-orchestra/api.ts

@@ -32,5 +32,5 @@ export const studentMember = () => {
 };
 };
 /** 获取学习会员信息 */
 /** 获取学习会员信息 */
 export const sysSuggestionSave = (data: any) => {
 export const sysSuggestionSave = (data: any) => {
-	return request.post("/sysSuggestion/save",  { data });
+	return request.post("/sysSuggestion/save",  { data, requestType: 'json'});
 };
 };

+ 2 - 0
src/page-orchestra/custom-plugins/helper-model/recommendation/index.tsx

@@ -3,6 +3,7 @@ import styles from "./index.module.less";
 import { Cell, Field, Tab, Tabs, showToast } from "vant";
 import { Cell, Field, Tab, Tabs, showToast } from "vant";
 import iconSubmit from "../icons/icon-submit.png";
 import iconSubmit from "../icons/icon-submit.png";
 import { sysSuggestionSave } from "/src/page-orchestra/api";
 import { sysSuggestionSave } from "/src/page-orchestra/api";
+import { storeData } from "/src/store";
 
 
 export default defineComponent({
 export default defineComponent({
 	name: "recommendation",
 	name: "recommendation",
@@ -27,6 +28,7 @@ export default defineComponent({
 			recommenData.loading = true;
 			recommenData.loading = true;
 			try {
 			try {
 				await sysSuggestionSave({
 				await sysSuggestionSave({
+					clientType: storeData.platformType !== "STUDENT" ? "TEACHER" : "STUDENT",
 					content: recommenData.message + "#" + recommenData.active,
 					content: recommenData.message + "#" + recommenData.active,
 					type: "SMART_PRACTICE",
 					type: "SMART_PRACTICE",
 				});
 				});