fix(ai-chat): 修复输入框定位及滚动问题并更新客服名称

This commit is contained in:
2026-05-13 14:08:58 +08:00
parent 80b18cee0f
commit 39245dfcac
3 changed files with 30 additions and 65 deletions

View File

@@ -119,7 +119,7 @@ export class CustomerService {
}
/**
* 跳转到 AI 客服页面(Dify)
* 跳转到 AI智能客服页面(Dify)
*/
openDifyService() {
try {
@@ -135,7 +135,7 @@ export class CustomerService {
uni.navigateTo({
url: aiChatUrl,
fail: (err) => {
console.error('跳转 AI 客服失败:', err);
console.error('跳转 AI智能客服失败:', err);
// H5 兜底
// #ifdef H5
window.location.href = aiChatUrl;
@@ -144,7 +144,7 @@ export class CustomerService {
}
});
} catch (e) {
console.error('跳转 AI 客服异常:', e);
console.error('跳转 AI智能客服异常:', e);
uni.showToast({ title: '打开客服失败', icon: 'none' });
}
}
@@ -565,7 +565,7 @@ export class CustomerService {
uni.navigateTo({
url: aiChatUrl,
fail: (err) => {
console.error('跳转 AI 客服失败:', err);
console.error('跳转 AI智能客服失败:', err);
// #ifdef H5
window.location.href = aiChatUrl;
// #endif
@@ -573,7 +573,7 @@ export class CustomerService {
}
});
} catch (e) {
console.error('跳转 AI 客服异常:', e);
console.error('跳转 AI智能客服异常:', e);
uni.showToast({ title: '打开客服失败', icon: 'none' });
}
}