Feat(AI):增加参数,只有通过点击才能进入,以便微信审核

This commit is contained in:
lifizer
2025-04-14 14:47:39 +08:00
parent aa58754f1c
commit 4fa9c6a594
4 changed files with 14 additions and 7 deletions
+1 -1
View File
@@ -160,7 +160,7 @@ export default {
})
},
historyItemClick(item) {
const paramsStr = `?chatNumber=${item.chatNumber}&title=${item.title}`
const paramsStr = `?chatNumber=${item.chatNumber}&title=${item.title}&click=1`
if (!this.formModule) {
uni.navigateTo({
url: '/aiChat/views/history' + paramsStr
+5 -1
View File
@@ -68,7 +68,11 @@ export const chatMixins = {
}
}.bind(this)).exec()
},
onLoad() {
onLoad(options) {
if (!options.click) {
uni.switchTab({ url: '/pages/home/index' })
return
}
// 监听键盘高度变化
wx.onKeyboardHeightChange((res) => {
console.log('监听键盘高度变化%s', res.height)
+7 -4
View File
@@ -183,10 +183,13 @@ export default {
pageTitle: ''
}
},
onLoad(optisons) {
console.log(optisons)
this.chatNumber = optisons.chatNumber
this.pageTitle = optisons.title
onLoad(options) {
if (!options.click) {
uni.switchTab({ url: '/pages/home/index' })
return
}
this.chatNumber = options.chatNumber
this.pageTitle = options.title
this.pageTitle = this.pageTitle.length > 8 ? (this.pageTitle.substring(0, 8) + '...') : this.pageTitle
this.init()
},