fix: 前端联系我们、购买等优化

This commit is contained in:
Gsh
2026-01-08 23:55:39 +08:00
parent 2544c01e9d
commit 1027006e63
38 changed files with 1578 additions and 2528 deletions

View File

@@ -0,0 +1,47 @@
1.免费模型逻辑更改:
原本的免费模型是通过前端写死的('DeepSeek-R1-0528'现在后端会返回IsFree =true 代表免费模型。请更改:
1.1 Yi.Ai.Vue3/src/components/ModelSelect/index.vue
1.2 Yi.Ai.Vue3/src/components/userPersonalCenter/components/SupportModelList.vue
3.立即购买弹窗现在虽然做成了随处可调用但是没法用router你看下怎么改改。
代码Yi.Ai.Vue3/src/utils/product-package.ts
使用的地方有:
Yi.Ai.Vue3/src/components/ModelSelect/index.vue
Yi.Ai.Vue3/src/layouts/components/Header/components/BuyBtn.vue
Yi.Ai.Vue3/src/layouts/components/Header/components/BuyBtn.vue
Yi.Ai.Vue3/src/components/userPersonalCenter/components/PremiumPackageInfo.vue
3.顶部菜单增加“联系我们”,点击后弹窗展示群二维码和客服微信二维码,参考”立即购买“弹窗底部的添加客服,我认为这个弹窗你应该作为可配置的,比如把这个按钮组件放在随便那里点击就能弹出,然后把现在的联系我们相关内容替换,然后联系方式里面:
2.1 客服微信和二维码
2.2 交流群二维码
2.3 售后群二维码
2.4 其他
然后可以配置需要展示那种内容,比如
场景1常规 展示微信交流群与客服
场景2售后 展示售后群与客服
场景3展示所有
场景4xxx
使用场景:
顶部菜单Yi.Ai.Vue3/src/layouts/components/Header/index.vue
购买弹窗Yi.Ai.Vue3/src/utils/product-package.ts
购买记录联系售后:
Yi.Ai.Vue3/src/components/userPersonalCenter/components/RechargeLog.vue这个页面有购买记录就可以展示售后群
4.立即购买弹窗里面加一个tab页面”新人特惠“新人特惠组合包提示前往淘宝店铺购买然后放淘宝链接点击跳转、淘口令点击复制产品二维码提示打开淘宝扫描
5.立即购买的左侧展示模型列表的换成跳转模型库,详情页也是( // 模型库
{
path: 'model-library',
name: 'modelLibrary',
component: () => import('@/pages/modelLibrary/index.vue'),
meta: {
title: '意心Ai-模型库',
keepAlive: 0,
isDefaultChat: false,
layout: 'default',
},
},