From 10e2126f7136d4644e80a4cbb9060df3ab695440 Mon Sep 17 00:00:00 2001
From: jiang <2500238435@qq.com>
Date: Fri, 3 Jan 2025 18:48:11 +0800
Subject: [PATCH] sylte:flx
---
config/constants/help.js | 39 +++++++++++++++++++++++++++++++++++++++
pages/help/index.vue | 20 ++++++++++----------
pages/index/index.vue | 2 +-
pages/my/index.vue | 13 +------------
4 files changed, 51 insertions(+), 23 deletions(-)
create mode 100644 config/constants/help.js
diff --git a/config/constants/help.js b/config/constants/help.js
new file mode 100644
index 0000000..342f217
--- /dev/null
+++ b/config/constants/help.js
@@ -0,0 +1,39 @@
+// 帮助中心文案配置
+export const HELP_CONTENT = {
+ // FAQ列表
+ FAQ_LIST: [
+ {
+ question: '如何租借风扇?',
+ answer: '点击首页"扫码租借"按钮,使用微信扫描设备上的二维码,按提示完成支付即可使用。'
+ },
+ {
+ question: '收费标准是怎样的?',
+ answer: '使用费用为2元/小时,不足1小时按1小时计算。押金99元,归还后自动退还。'
+ },
+ {
+ question: '如何归还风扇?',
+ answer: '将风扇带到任意归还点,点击首页"扫码归还"按钮,扫描归还点二维码即可完成归还。'
+ },
+ {
+ question: '押金多久能退还?',
+ answer: '归还设备后押金将自动发起退款,预计0-7个工作日到账。'
+ },
+ {
+ question: '设备无法正常使用怎么办?',
+ answer: '您可以通过"我的-投诉与建议"提交故障反馈,或直接拨打客服电话处理。'
+ }
+ ],
+
+ // 联系方式
+ CONTACT: {
+ TITLE: '联系客服',
+ PHONE: {
+ LABEL: '客服电话',
+ VALUE: '400-888-8888'
+ },
+ SERVICE_TIME: {
+ LABEL: '服务时间',
+ VALUE: '周一至周日 09:00-22:00'
+ }
+ }
+}
\ No newline at end of file
diff --git a/pages/help/index.vue b/pages/help/index.vue
index 7e89b8b..d4fbc8b 100644
--- a/pages/help/index.vue
+++ b/pages/help/index.vue
@@ -20,15 +20,15 @@
- 联系客服
+ {{ HELP_CONTENT.CONTACT.TITLE }}
- 客服电话
- {{ contactInfo.phone }}
+ {{ HELP_CONTENT.CONTACT.PHONE.LABEL }}
+ {{ HELP_CONTENT.CONTACT.PHONE.VALUE }}
- 服务时间
- {{ contactInfo.serviceTime }}
+ {{ HELP_CONTENT.CONTACT.SERVICE_TIME.LABEL }}
+ {{ HELP_CONTENT.CONTACT.SERVICE_TIME.VALUE }}
@@ -36,16 +36,16 @@