Merge branch 'dev' into test
This commit is contained in:
@@ -160,7 +160,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
historyItemClick(item) {
|
historyItemClick(item) {
|
||||||
const paramsStr = `?chatNumber=${item.chatNumber}&title=${item.title}`
|
const paramsStr = `?chatNumber=${item.chatNumber}&title=${item.title}&click=1`
|
||||||
if (!this.formModule) {
|
if (!this.formModule) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/aiChat/views/history' + paramsStr
|
url: '/aiChat/views/history' + paramsStr
|
||||||
|
|||||||
@@ -68,7 +68,11 @@ export const chatMixins = {
|
|||||||
}
|
}
|
||||||
}.bind(this)).exec()
|
}.bind(this)).exec()
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad(options) {
|
||||||
|
if (!options.click) {
|
||||||
|
uni.switchTab({ url: '/pages/home/index' })
|
||||||
|
return
|
||||||
|
}
|
||||||
// 监听键盘高度变化
|
// 监听键盘高度变化
|
||||||
wx.onKeyboardHeightChange((res) => {
|
wx.onKeyboardHeightChange((res) => {
|
||||||
console.log('监听键盘高度变化%s', res.height)
|
console.log('监听键盘高度变化%s', res.height)
|
||||||
|
|||||||
@@ -183,10 +183,13 @@ export default {
|
|||||||
pageTitle: ''
|
pageTitle: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(optisons) {
|
onLoad(options) {
|
||||||
console.log(optisons)
|
if (!options.click) {
|
||||||
this.chatNumber = optisons.chatNumber
|
uni.switchTab({ url: '/pages/home/index' })
|
||||||
this.pageTitle = optisons.title
|
return
|
||||||
|
}
|
||||||
|
this.chatNumber = options.chatNumber
|
||||||
|
this.pageTitle = options.title
|
||||||
this.pageTitle = this.pageTitle.length > 8 ? (this.pageTitle.substring(0, 8) + '...') : this.pageTitle
|
this.pageTitle = this.pageTitle.length > 8 ? (this.pageTitle.substring(0, 8) + '...') : this.pageTitle
|
||||||
this.init()
|
this.init()
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ export default {
|
|||||||
},
|
},
|
||||||
enterAiChat() {
|
enterAiChat() {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/aiChat/views/index'
|
url: '/aiChat/views/index?click=1'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user