Feat(云灵AI):首页送礼重构&交互使用模拟数据书写对应逻辑
This commit is contained in:
@@ -572,6 +572,24 @@ export default {
|
||||
createNewHandle() {
|
||||
uni.setStorageSync('addNewChat', '1')
|
||||
uni.navigateBack()
|
||||
},
|
||||
bottomToolClickHandle(item) {
|
||||
if (item.giftCardEnabled === 1) {
|
||||
uni.setStorageSync('addNewChat', '2')
|
||||
uni.navigateBack()
|
||||
return
|
||||
}
|
||||
if (item.navType === 'prompt') {
|
||||
this.streamReq({
|
||||
prompt: item.promptContent,
|
||||
init: 0
|
||||
})
|
||||
}
|
||||
if (item.navType === 'url') {
|
||||
uni.navigateTo({
|
||||
url: item.url
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user