|
|
@ -39,8 +39,8 @@ |
|
|
</view> --> |
|
|
</view> --> |
|
|
</view> |
|
|
</view> |
|
|
<view class="deepmate-action"> |
|
|
<view class="deepmate-action"> |
|
|
<input class="stock-input" type="text" placeholder="请输入股票代码/名称,获取AI洞察" /> |
|
|
|
|
|
<view class="send-button-container"> |
|
|
|
|
|
|
|
|
<input class="stock-input" type="text" v-model="stockInput" placeholder="请输入股票代码/名称,获取AI洞察" /> |
|
|
|
|
|
<view class="send-button-container" @click="sendStockQuery"> |
|
|
<image class="send-button" src="https://d31zlh4on95l9h.cloudfront.net/images/3da018821a5c82b06a1d6ddc81b960ac.png" mode="aspectFit"></image> |
|
|
<image class="send-button" src="https://d31zlh4on95l9h.cloudfront.net/images/3da018821a5c82b06a1d6ddc81b960ac.png" mode="aspectFit"></image> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
@ -50,14 +50,31 @@ |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
export default { |
|
|
|
|
|
|
|
|
export default { |
|
|
name: 'DeepMate', |
|
|
name: 'DeepMate', |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
|
|
|
|
|
|
|
|
|
stockInput: '' |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
methods: { |
|
|
|
|
|
sendStockQuery() { |
|
|
|
|
|
// 检测输入内容是否为空 |
|
|
|
|
|
if (!this.stockInput.trim()) { |
|
|
|
|
|
uni.showToast({ |
|
|
|
|
|
title: '请输入股票代码或名称', |
|
|
|
|
|
icon: 'none' |
|
|
|
|
|
}); |
|
|
|
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 跳转到深度探索页面并携带用户输入的内容 |
|
|
|
|
|
uni.navigateTo({ |
|
|
|
|
|
url: `/pages/home/deepExploration?query=${encodeURIComponent(this.stockInput)}` |
|
|
|
|
|
}); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<style> |
|
|
<style> |
|
|
|