hookehuyr

docs(user): 完善帮助中心常见问题内容

...@@ -127,7 +127,6 @@ ...@@ -127,7 +127,6 @@
127 <script setup> 127 <script setup>
128 import { ref, computed } from 'vue' 128 import { ref, computed } from 'vue'
129 import NavHeader from '@/components/navigation/NavHeader.vue' 129 import NavHeader from '@/components/navigation/NavHeader.vue'
130 -import TabBar from '@/components/navigation/TabBar.vue'
131 import IconFont from '@/components/icons/IconFont.vue' 130 import IconFont from '@/components/icons/IconFont.vue'
132 import SearchBar from '@/components/forms/SearchBar.vue' 131 import SearchBar from '@/components/forms/SearchBar.vue'
133 132
...@@ -164,74 +163,265 @@ const contactMethods = [ ...@@ -164,74 +163,265 @@ const contactMethods = [
164 } 163 }
165 ] 164 ]
166 165
167 -// Mock Rich Text Content 166 +// 不同类型的问题内容模板
168 -const mockRichText = ` 167 +const createPlanbookContent = `
169 <div class="rich-text-content"> 168 <div class="rich-text-content">
170 - <h3 style="font-size: 16px; font-weight: bold; color: #1F2937; margin-bottom: 12px;">操作步骤:</h3> 169 + <h3 style="font-size: 16px; font-weight: bold; color: #1F2937; margin-bottom: 12px;">创建计划书步骤:</h3>
171 170
172 <div style="margin-bottom: 8px; color: #374151;"> 171 <div style="margin-bottom: 8px; color: #374151;">
173 - <span style="color: #EF4444; font-weight: 500;">步骤 1:</span> 172 + <span style="color: #2563EB; font-weight: 500;">步骤 1:</span>
174 - <span>登录系统后,点击左侧菜单的"计划书管理"</span> 173 + <span>进入"计划书"页面,点击右上角"+"按钮</span>
175 </div> 174 </div>
176 175
177 <div style="margin-bottom: 8px; color: #374151;"> 176 <div style="margin-bottom: 8px; color: #374151;">
178 - <span style="color: #EF4444; font-weight: 500;">步骤 2:</span> 177 + <span style="color: #2563EB; font-weight: 500;">步骤 2:</span>
179 - <span>点击右上角"新建计划书"按钮</span> 178 + <span>选择计划类型(A类/B类)</span>
180 </div> 179 </div>
181 180
182 <div style="margin-bottom: 8px; color: #374151;"> 181 <div style="margin-bottom: 8px; color: #374151;">
183 - <span style="color: #EF4444; font-weight: 500;">步骤 3:</span> 182 + <span style="color: #2563EB; font-weight: 500;">步骤 3:</span>
184 - <span>填写客户信息、保障方案等详细内容</span> 183 + <span>填写客户信息:姓名、年龄、联系方式等</span>
184 + </div>
185 +
186 + <div style="margin-bottom: 8px; color: #374151;">
187 + <span style="color: #2563EB; font-weight: 500;">步骤 4:</span>
188 + <span>填写保障方案:保额、保费、保障期限等</span>
189 + </div>
190 +
191 + <div style="margin-bottom: 12px; color: #374151;">
192 + <span style="color: #2563EB; font-weight: 500;">步骤 5:</span>
193 + <span>点击"提交"按钮,系统将生成计划书</span>
194 + </div>
195 +
196 + <div style="background-color: #EFF6FF; border-left: 4px solid #2563EB; padding: 12px; margin: 16px 0; border-radius: 4px;">
197 + <span style="font-size: 12px; color: #1E40AF;">💡 提示:提交后的计划书状态为"生成中",通常在1-2分钟内完成生成。</span>
198 + </div>
199 +
200 + <h3 style="font-size: 16px; font-weight: bold; color: #1F2937; margin: 16px 0 12px;">常见问题:</h3>
201 +
202 + <div style="margin-bottom: 12px;">
203 + <div style="font-weight: 500; color: #374151; margin-bottom: 4px;">Q:如何修改已提交的计划书?</div>
204 + <div style="color: #4B5563;">A:目前计划书提交后暂不支持修改,如需调整请联系客服处理。</div>
205 + </div>
206 +
207 + <div style="margin-bottom: 12px;">
208 + <div style="font-weight: 500; color: #374151; margin-bottom: 4px;">Q:生成需要多长时间?</div>
209 + <div style="color: #4B5563;">A:通常在1-2分钟内完成。如超过5分钟仍在"生成中"状态,请联系客服。</div>
210 + </div>
211 +</div>
212 +`
213 +
214 +const loginAuthContent = `
215 +<div class="rich-text-content">
216 + <h3 style="font-size: 16px; font-weight: bold; color: #1F2937; margin-bottom: 12px;">登录与认证说明:</h3>
217 +
218 + <div style="margin-bottom: 12px; color: #374151;">
219 + <span style="font-weight: 500;">本小程序采用微信授权登录:</span>首次进入时,系统会自动获取您的微信授权,无需额外注册账号。
220 + </div>
221 +
222 + <h3 style="font-size: 16px; font-weight: bold; color: #1F2937; margin: 16px 0 12px;">常见问题:</h3>
223 +
224 + <div style="margin-bottom: 12px;">
225 + <div style="font-weight: 500; color: #374151; margin-bottom: 4px;">Q:为什么提示"需要重新登录"?</div>
226 + <div style="color: #4B5563;">A:这是因为您的登录会话已过期。系统会自动尝试重新登录,如仍失败,请关闭小程序后重新打开。</div>
227 + </div>
228 +
229 + <div style="margin-bottom: 12px;">
230 + <div style="font-weight: 500; color: #374151; margin-bottom: 4px;">Q:微信授权失败怎么办?</div>
231 + <div style="color: #4B5563;">A:请检查:1) 微信是否已登录;2) 网络连接是否正常;3) 小程序是否有权限访问微信信息。如仍无法解决,请联系客服。</div>
232 + </div>
233 +
234 + <div style="margin-bottom: 12px;">
235 + <div style="font-weight: 500; color: #374151; margin-bottom: 4px;">Q:如何退出登录?</div>
236 + <div style="color: #4B5563;">A:进入"我的"页面,点击右上角设置图标,选择"退出登录"即可。</div>
237 + </div>
238 +</div>
239 +`
240 +
241 +const productSearchContent = `
242 +<div class="rich-text-content">
243 + <h3 style="font-size: 16px; font-weight: bold; color: #1F2937; margin-bottom: 12px;">产品搜索方法:</h3>
244 +
245 + <div style="margin-bottom: 12px; color: #374151;">
246 + <span style="font-weight: 500;">1) 首页搜索:</span>在首页顶部搜索框输入产品名称或关键词
247 + </div>
248 +
249 + <div style="margin-bottom: 12px; color: #374151;">
250 + <span style="font-weight: 500;">2) 搜索页:</span>点击"搜索"图标进入专门的搜索页面,支持按产品/资料分类筛选
251 + </div>
252 +
253 + <div style="margin-bottom: 12px; color: #374151;">
254 + <span style="font-weight: 500;">3) 分类浏览:</span>进入"产品中心"或"分类列表"按类别查找
255 + </div>
256 +
257 + <h3 style="font-size: 16px; font-weight: bold; color: #1F2937; margin: 16px 0 12px;">常见问题:</h3>
258 +
259 + <div style="margin-bottom: 12px;">
260 + <div style="font-weight: 500; color: #374151; margin-bottom: 4px;">Q:搜索不到想要的产品?</div>
261 + <div style="color: #4B5563;">A:请尝试:1) 使用产品简称搜索;2) 检查是否选择了错误的分类(产品/资料);3) 联系客服确认产品是否已上架。</div>
262 + </div>
263 +
264 + <div style="margin-bottom: 12px;">
265 + <div style="font-weight: 500; color: #374151; margin-bottom: 4px;">Q:如何查看产品详情?</div>
266 + <div style="color: #4B5563;">A:点击产品卡片进入详情页,可查看产品介绍、保障范围、保费计算等信息。</div>
267 + </div>
268 +</div>
269 +`
270 +
271 +const favoriteContent = `
272 +<div class="rich-text-content">
273 + <h3 style="font-size: 16px; font-weight: bold; color: #1F2937; margin-bottom: 12px;">收藏功能说明:</h3>
274 +
275 + <div style="margin-bottom: 12px; color: #374151;">
276 + <span style="font-weight: 500;">收藏方法:</span>在产品或资料卡片上点击"收藏"图标(爱心形状)即可收藏。
185 </div> 277 </div>
186 278
187 <div style="margin-bottom: 12px; color: #374151;"> 279 <div style="margin-bottom: 12px; color: #374151;">
188 - <span style="color: #EF4444; font-weight: 500;">步骤 4:</span> 280 + <span style="font-weight: 500;">查看收藏:</span>进入"我的"页面,点击"我的收藏"查看所有收藏的内容。
189 - <span>点击"生成"按钮,系统将自动生成专业的计划书文档</span> 281 + </div>
282 +
283 + <div style="margin-bottom: 12px; color: #374151;">
284 + <span style="font-weight: 500;">取消收藏:</span>在收藏列表或卡片上再次点击收藏图标即可取消。
285 + </div>
286 +
287 + <h3 style="font-size: 16px; font-weight: bold; color: #1F2937; margin: 16px 0 12px;">常见问题:</h3>
288 +
289 + <div style="margin-bottom: 12px;">
290 + <div style="font-weight: 500; color: #374151; margin-bottom: 4px;">Q:收藏的内容在哪里查看?</div>
291 + <div style="color: #4B5563;">A:进入"我的"页面,点击"我的收藏"即可看到所有收藏的产品和资料。</div>
292 + </div>
293 +
294 + <div style="margin-bottom: 12px;">
295 + <div style="font-weight: 500; color: #374151; margin-bottom: 4px;">Q:收藏后为什么会消失?</div>
296 + <div style="color: #4B5563;">A:可能原因:1) 该产品或资料已下架;2) 您已取消收藏;3) 网络延迟导致显示异常。请下拉刷新重试。</div>
297 + </div>
298 +</div>
299 +`
300 +
301 +const documentPreviewContent = `
302 +<div class="rich-text-content">
303 + <h3 style="font-size: 16px; font-weight: bold; color: #1F2937; margin-bottom: 12px;">文档预览说明:</h3>
304 +
305 + <div style="margin-bottom: 12px; color: #374151;">
306 + <span style="font-weight: 500;">支持的文档格式:</span>PDF、Word、Excel、PowerPoint、图片、文本等
307 + </div>
308 +
309 + <div style="margin-bottom: 12px; color: #374151;">
310 + <span style="font-weight: 500;">预览方式:</span>点击资料卡片即可在线预览,无需下载
311 + </div>
312 +
313 + <h3 style="font-size: 16px; font-weight: bold; color: #1F2937; margin: 16px 0 12px;">常见问题:</h3>
314 +
315 + <div style="margin-bottom: 12px;">
316 + <div style="font-weight: 500; color: #374151; margin-bottom: 4px;">Q:文档无法打开/显示空白?</div>
317 + <div style="color: #4B5563;">A:请尝试:1) 检查网络连接;2) 退出重新进入;3) 确认文档格式是否支持;4) 联系客服反馈。</div>
318 + </div>
319 +
320 + <div style="margin-bottom: 12px;">
321 + <div style="font-weight: 500; color: #374151; margin-bottom: 4px;">Q:Office文档建议使用什么方式查看?</div>
322 + <div style="color: #4B5563;">A:Word、Excel、PowerPoint文档建议使用电脑端查看以获得最佳体验。移动端预览可能存在格式差异。</div>
190 </div> 323 </div>
191 324
192 - <div style="background-color: #FEFCE8; border-left: 4px solid #FACC15; padding: 12px; margin: 16px 0; border-radius: 4px;"> 325 + <div style="margin-bottom: 12px;">
193 - <span style="font-size: 12px; color: #854D0E;">💡 小提示:生成后的计划书可以随时在"我的计划书"中查看和管理。</span> 326 + <div style="font-weight: 500; color: #374151; margin-bottom: 4px;">Q:图片如何查看大图?</div>
327 + <div style="color: #4B5563;">A:点击资料卡片上的图片封面,即可进入全屏预览模式,支持缩放和保存。</div>
328 + </div>
329 +</div>
330 +`
331 +
332 +const personalInfoContent = `
333 +<div class="rich-text-content">
334 + <h3 style="font-size: 16px; font-weight: bold; color: #1F2937; margin-bottom: 12px;">个人信息管理:</h3>
335 +
336 + <h3 style="font-size: 14px; font-weight: bold; color: #374151; margin: 12px 0 8px;">修改头像:</h3>
337 + <div style="margin-bottom: 12px; color: #4B5563;">
338 + 进入"我的"页面,点击头像→选择"更换头像"→从相册选择或拍照→确认上传
339 + </div>
340 +
341 + <h3 style="font-size: 14px; font-weight: bold; color: #374151; margin: 12px 0 8px;">修改昵称/手机号:</h3>
342 + <div style="margin-bottom: 12px; color: #4B5563;">
343 + 进入"我的"页面→点击个人信息→点击对应字段→修改后保存
194 </div> 344 </div>
195 345
196 <h3 style="font-size: 16px; font-weight: bold; color: #1F2937; margin: 16px 0 12px;">常见问题:</h3> 346 <h3 style="font-size: 16px; font-weight: bold; color: #1F2937; margin: 16px 0 12px;">常见问题:</h3>
197 347
198 <div style="margin-bottom: 12px;"> 348 <div style="margin-bottom: 12px;">
199 - <div style="font-weight: 500; color: #374151; margin-bottom: 4px;">Q:如何修改已生成的计划书?</div> 349 + <div style="font-weight: 500; color: #374151; margin-bottom: 4px;">Q:头像上传失败怎么办?</div>
200 - <div style="color: #4B5563;">A:在"我的计划书"列表中,找到对应的计划书,点击"编辑"按钮即可修改内容。</div> 350 + <div style="color: #4B5563;">A:请检查:1) 图片大小是否超过5MB;2) 网络是否正常;3) 是否授予了相册/相机权限。建议使用JPG/PNG格式,大小不超过2MB。</div>
201 </div> 351 </div>
202 352
203 <div style="margin-bottom: 12px;"> 353 <div style="margin-bottom: 12px;">
204 - <div style="font-weight: 500; color: #374151; margin-bottom: 4px;">Q:可以导出为PDF吗?</div> 354 + <div style="font-weight: 500; color: #374151; margin-bottom: 4px;">Q:手机号可以修改吗?</div>
205 - <div style="color: #4B5563;">A:可以的。在计划书详情页,点击"下载PDF"按钮即可导出高清PDF文件。</div> 355 + <div style="color: #4B5563;">A:可以。进入个人信息页面,点击手机号→通过短信验证后即可更换新手机号。</div>
356 + </div>
357 +</div>
358 +`
359 +
360 +const performanceContent = `
361 +<div class="rich-text-content">
362 + <h3 style="font-size: 16px; font-weight: bold; color: #1F2937; margin-bottom: 12px;">性能优化建议:</h3>
363 +
364 + <h3 style="font-size: 14px; font-weight: bold; color: #374151; margin: 12px 0 8px;">页面加载慢?</h3>
365 + <div style="margin-bottom: 12px; color: #4B5563;">
366 + 1) 切换到更好的网络环境(WiFi或4G/5G)<br/>
367 + 2) 关闭后台其他小程序释放内存<br/>
368 + 3) 下拉刷新页面重新加载<br/>
369 + 4) 删除小程序后重新添加
370 + </div>
371 +
372 + <h3 style="font-size: 14px; font-weight: bold; color: #374151; margin: 12px 0 8px;">图片无法显示?</h3>
373 + <div style="margin-bottom: 12px; color: #4B5563;">
374 + 1) 检查网络连接是否正常<br/>
375 + 2) 下拉刷新页面<br/>
376 + 3) 确认图片URL是否有效(如已失效请联系客服)
377 + </div>
378 +
379 + <h3 style="font-size: 14px; font-weight: bold; color: #374151; margin: 12px 0 8px;">如何清除缓存?</h3>
380 + <div style="margin-bottom: 12px; color: #4B5563;">
381 + 微信→发现→小程序→长按本小程序→删除→重新进入即可清除缓存
382 + </div>
383 +
384 + <div style="background-color: #FEF2F2; border-left: 4px solid #DC2626; padding: 12px; margin: 16px 0; border-radius: 4px;">
385 + <span style="font-size: 12px; color: #991B1B;">⚠️ 注意:清除缓存会删除本地存储的收藏记录等信息,请谨慎操作。</span>
206 </div> 386 </div>
207 </div> 387 </div>
208 ` 388 `
209 389
210 const questions = ref([ 390 const questions = ref([
211 { 391 {
212 - title: '如何创建新的计划书?', 392 + title: '如何创建计划书?',
213 id: 1, 393 id: 1,
214 - content: mockRichText 394 + content: createPlanbookContent
215 }, 395 },
216 { 396 {
217 - title: 'AI答疑如何使用?', 397 + title: '为什么提示需要重新登录?',
218 id: 2, 398 id: 2,
219 - content: mockRichText 399 + content: loginAuthContent
220 }, 400 },
221 { 401 {
222 - title: '如何修改个人信息?', 402 + title: '如何搜索产品和资料?',
223 id: 3, 403 id: 3,
224 - content: mockRichText 404 + content: productSearchContent
225 }, 405 },
226 { 406 {
227 - title: '数据如何同步到云端?', 407 + title: '收藏的内容在哪里查看?',
228 id: 4, 408 id: 4,
229 - content: mockRichText 409 + content: favoriteContent
230 }, 410 },
231 { 411 {
232 - title: '忘记密码怎么办?', 412 + title: '文档无法打开怎么办?',
233 id: 5, 413 id: 5,
234 - content: mockRichText 414 + content: documentPreviewContent
415 + },
416 + {
417 + title: '如何修改个人信息和头像?',
418 + id: 6,
419 + content: personalInfoContent
420 + },
421 + {
422 + title: '页面加载慢怎么办?',
423 + id: 7,
424 + content: performanceContent
235 } 425 }
236 ]) 426 ])
237 427
......