From 56437a88ea45984e2771a6f422ef4ee1fc3952f3 Mon Sep 17 00:00:00 2001 From: FengHui Date: Thu, 16 Apr 2026 19:03:15 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=9A=E7=9F=A5=E4=B8=8E=E6=8F=90=E9=86=92?= =?UTF-8?q?=E3=80=81=E8=AF=84=E8=AE=BA=E4=B8=8E=E5=8F=8D=E9=A6=88=E5=BC=80?= =?UTF-8?q?=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/mine/company-mine.vue | 247 +++++++++++++++++++++++++++++++++++- pages/mine/mine.vue | 1 + 2 files changed, 246 insertions(+), 2 deletions(-) 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" > + + + + 提醒设置 + + + {{ item.label }} + + + + + + + + + + + + @@ -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 {