diff --git a/pages/mine/company-mine.vue b/pages/mine/company-mine.vue
index c67d7ec..f718609 100644
--- a/pages/mine/company-mine.vue
+++ b/pages/mine/company-mine.vue
@@ -43,12 +43,23 @@
-
+
通知与提醒
- 已开启
+
+
+
+
+
+
+
+ 评论与反馈
+
+
+
+
@@ -97,6 +108,39 @@
@close="close"
>
+
+
+
+
+
+
+
+
@@ -107,6 +151,21 @@ import useUserStore from '@/stores/useUserStore';
const { $api, navTo } = inject('globalFunction');
const popup = ref(null);
+const reminderPopup = ref(null);
+const feedbackPopup = ref(null);
+
+// 提醒设置
+const reminderEnabled = ref(true);
+const reminderFrequency = ref('realtime');
+const reminderOptions = ref([
+ { label: '实时提醒', value: 'realtime' },
+ { label: '每小时提醒', value: 'hourly' },
+ { label: '每天提醒', value: 'daily' }
+]);
+
+// 评论与反馈
+const feedbackContent = ref('');
+const rating = ref(0);
// 企业信息数据
const companyInfo = reactive({
@@ -196,6 +255,57 @@ function getCompanyInfo() {
companyInfo.isVerified = false;
}
}
+
+// 切换提醒开启/关闭状态
+function toggleReminder(e) {
+ reminderEnabled.value = e.detail.value;
+}
+
+// 打开提醒设置弹窗
+function openReminderSettings() {
+ reminderPopup.value.open();
+}
+
+// 关闭提醒设置弹窗
+function closeReminderPopup() {
+ reminderPopup.value.close();
+}
+
+// 处理提醒频率变化
+function handleFrequencyChange(e) {
+ reminderFrequency.value = e.detail.value;
+}
+
+// 打开评论与反馈弹窗
+function openFeedbackPopup() {
+ feedbackPopup.value.open();
+}
+
+// 关闭评论与反馈弹窗
+function closeFeedbackPopup() {
+ feedbackPopup.value.close();
+}
+
+// 设置评分
+function setRating(score) {
+ rating.value = score;
+}
+
+// 提交反馈
+function submitFeedback() {
+ // 模拟提交成功
+ uni.showToast({
+ title: '反馈提交成功',
+ icon: 'success'
+ });
+ // 清空表单
+ feedbackContent.value = '';
+ rating.value = 0;
+ // 延迟关闭弹窗,确保用户能看到成功提示
+ setTimeout(() => {
+ closeFeedbackPopup();
+ }, 1000);
+}
diff --git a/pages/mine/mine.vue b/pages/mine/mine.vue
index 020f823..2c2c9ad 100644
--- a/pages/mine/mine.vue
+++ b/pages/mine/mine.vue
@@ -667,6 +667,7 @@ function submitFeedback() {
color: #333333;
resize: none;
margin-bottom: 32rpx;
+ box-sizing: border-box;
}
.feedback-rating {