diff --git a/components/DeepMate.vue b/components/DeepMate.vue index 5132a5d..d7a0f67 100644 --- a/components/DeepMate.vue +++ b/components/DeepMate.vue @@ -34,8 +34,14 @@ - - + + @@ -49,7 +55,28 @@ name: 'DeepMate', data() { return { + inputValue: '' + } + }, + methods: { + handleSend() { + // 检查输入是否为空 + if (!this.inputValue.trim()) { + uni.showToast({ + title: '请输入股票代码或名称', + icon: 'none', + duration: 2000 + }) + return + } + + // 跳转到deepMate页面,并传递输入的内容 + uni.navigateTo({ + url: `/pages/deepMate/deepMate?query=${encodeURIComponent(this.inputValue.trim())}` + }) + // 清空输入框 + this.inputValue = '' } } } diff --git a/pages/customerServicePlatform/csPlatformIndex.vue b/pages/customerServicePlatform/csPlatformIndex.vue index d8cd7bc..d0cfd00 100644 --- a/pages/customerServicePlatform/csPlatformIndex.vue +++ b/pages/customerServicePlatform/csPlatformIndex.vue @@ -90,7 +90,6 @@