Feat(AI):增加参数,只有通过点击才能进入,以便微信审核
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
},
|
||||
|
||||
@@ -36,7 +36,7 @@ export default {
|
||||
},
|
||||
enterAiChat() {
|
||||
uni.navigateTo({
|
||||
url: '/aiChat/views/index'
|
||||
url: '/aiChat/views/index?click=1'
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user