待测试

This commit is contained in:
2026-07-28 07:58:26 +08:00
parent 1e9e25fe67
commit 6fbcf21024
22 changed files with 1294 additions and 264 deletions
+11 -6
View File
@@ -28,14 +28,14 @@
<view class="type-grid">
<button
v-for="type in feedbackTypes"
:key="type"
:key="type.value"
class="type-chip"
:class="{ active: feedbackForm.feedbackType === type }"
:aria-pressed="feedbackForm.feedbackType === type"
:class="{ active: feedbackForm.feedbackType === type.value }"
:aria-pressed="feedbackForm.feedbackType === type.value"
:disabled="feedbackState === 'submitting'"
@click="selectFeedbackType(type)"
@click="selectFeedbackType(type.value)"
>
{{ type }}
{{ type.label }}
</button>
</view>
</view>
@@ -131,7 +131,12 @@ import {
import { createDiscardConfirmation } from "@/utils/discard-confirmation.js";
import { handleBackPress, runBackGuard } from "@/utils/navigation.js";
const feedbackTypes = ["功能问题", "使用建议", "内容纠错", "其他"];
const feedbackTypes = [
{ value: "bug", label: "功能问题" },
{ value: "advice", label: "使用建议" },
{ value: "complaint", label: "投诉反馈" },
{ value: "other", label: "其他" },
];
const feedbackForm = reactive({
feedbackType: "",
feedbackContent: "",