feat: feedbank api

This commit is contained in:
zzc
2026-01-26 17:16:52 +08:00
parent 3226b35c4f
commit 3bb5127d8f
2 changed files with 10 additions and 5 deletions

View File

@@ -84,19 +84,19 @@
<script setup>
import { ref, computed } from "vue";
import { getBavBarHeight } from "@/utils/system";
import { getBavBarHeight, getDeviceInfo } from "@/utils/system";
import { sendFeedback } from "@/api/mine.js";
import { uploadImage } from "@/utils/common.js";
const feedbackTypes = [
{ label: "其他", value: 0 },
{ label: "功能建议", value: 1 },
{ label: "问题反馈", value: 2 },
{ label: "投诉", value: 3 },
{ label: "其他", value: 4 },
];
const formData = ref({
type: 0,
type: 1,
content: "",
images: [],
});
@@ -145,9 +145,13 @@ const submitFeedback = async () => {
}
// Submit with real URLs
await sendFeedback({
...formData.value,
const deviceInfo = getDeviceInfo();
sendFeedback({
type: formData.value.type,
content: formData.value.content,
images: uploadedImages,
deviceInfo: deviceInfo,
});
uni.hideLoading();

View File

@@ -59,5 +59,6 @@ export function getDeviceInfo() {
language: info.language,
version: info.version,
SDKVersion: info.SDKVersion,
appId: "69665538a49b8ae3be50fe5d",
};
}