hookehuyr

fix(ai): 修正元宝AI跳转参数传递方式

- 将参数从 extraData 改为 URL 查询字符串拼接
- path 添加查询参数: ?showAuthDirectly=1&agentId=sOySYp2PV9qa
- 确保正确打开定制版元宝AI小程序

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
......@@ -85,14 +85,10 @@ const handleTabClick = (item) => {
Taro.reLaunch({ url: item.path })
} else if (item.key === 'ai') {
// 跳转到腾讯元宝AI小程序
// 跳转到腾讯元宝AI小程序(定制版)
Taro.navigateToMiniProgram({
appId: 'wxd5201eb08d2fa15c', // 腾讯元宝小程序 AppID
path: 'pages/agentChat/index', // 元宝小程序 AI 聊天页面路径
extraData: {
showAuthDirectly: 1,
agentId: 'sOySYp2PV9qa'
},
path: 'pages/agentChat/index?showAuthDirectly=1&agentId=sOySYp2PV9qa', // 拼接查询参数到路径中
envVersion: 'release', // 打开正式版
success: (res) => {
console.log('跳转元宝小程序成功', res)
......