Browse Source

Merge branch 'milestone-20251031-简版功能开发' of http://39.101.133.168:8807/qimaohong/deepChartVueApp into wangyi/feature-20251026183100-deepmate王毅

lihuilin/feature-20251024095243-我的
wangyi 3 weeks ago
parent
commit
82de8da927
  1. 41
      components/DeepMate.vue
  2. 7
      pages.json
  3. 4
      pages/deepExploration/deepExploration.vue
  4. 27
      pages/home/home.vue
  5. 4
      pages/home/member.vue
  6. 55
      pages/notFoundBriefing/notFoundBriefing.vue

41
components/DeepMate.vue

@ -26,18 +26,19 @@
<view class="hotspot-item">
<text>市场风险提示</text>
</view>
<view class="hotspot-item">
<!-- <view class="hotspot-item">
<text>投资策略建议</text>
</view>
<view class="hotspot-item">
<text>财经新闻解读</text>
</view>
</view> -->
</view>
<view class="deepmate-action">
<input
class="stock-input"
type="text"
placeholder="请输入股票代码/名称,获取AI洞察"
placeholder-style="color:#fff;opacity:1"
v-model="inputValue"
@confirm="handleSend"
/>
@ -196,16 +197,20 @@
.stock-input {
flex: 1;
height: 36px;
font-size: 14px;
font-size: 13px;
color: #ffffff;
padding: 0 10px;
padding: 0 8px;
border: none;
background-color: transparent;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.stock-input::placeholder {
/* .stock-input::placeholder {
color: rgba(255, 255, 255, 0.8);
}
} */
.send-button-container {
display: flex;
@ -278,4 +283,28 @@
opacity: 0;
}
}
/* 小屏幕设备优化 */
@media screen and (max-width: 375px) {
.stock-input {
font-size: 12px;
padding: 0 6px;
}
.deepmate-action {
padding: 6px 12px;
}
}
/* 超小屏幕设备优化 */
@media screen and (max-width: 320px) {
.stock-input {
font-size: 11px;
padding: 0 4px;
}
.deepmate-action {
padding: 5px 10px;
}
}
</style>

7
pages.json

@ -361,6 +361,13 @@
"navigationStyle": "custom"
}
}
},
{
"path" : "pages/notFoundBriefing/notFoundBriefing",
"style" :
{
"navigationBarTitleText" : "机构动向简报"
}
}
],

4
pages/deepExploration/deepExploration.vue

@ -46,7 +46,7 @@
</view>
<view class="stockSelection_content">
<view class="selectionItem">
<view class="selectionItem" @click="viewAll">
<view class="header">
<view class="left">
<image src="/static/deepExploration-images/plus.png" mode="aspectFill"></image>
@ -75,7 +75,7 @@
</view>
<view class="stockSelection_content">
<view class="selectionItem">
<view class="selectionItem" @click="viewAll">
<view class="header">
<view class="left">
<image src="/static/deepExploration-images/plus.png" mode="aspectFill"></image>

27
pages/home/home.vue

@ -61,7 +61,7 @@
</view>
<view class="exploration-item">
<image class="exploration-icon" src="https://d31zlh4on95l9h.cloudfront.net/images/c25ca5e176efc961dabfa5d0d1b486b0.png" mode="aspectFit" lazy-load="true"></image>
<text class="exploration-text">主力</text>
<text class="exploration-text">主力</text>
</view>
<view class="exploration-item">
<image class="exploration-icon" src="https://d31zlh4on95l9h.cloudfront.net/images/c064d7066dc8129a7df7b052762f82cf.png" mode="aspectFit" lazy-load="true"></image>
@ -124,7 +124,7 @@
<text class="section-title-text">机构动向简报</text>
</view>
<view class="text-gap"></view>
<view class="report-item" v-for="(report, index) in institutionalReports" :key="index">
<view class="report-item" v-for="(report, index) in institutionalReports" :key="index" @click="goToNotFoundBriefing(report)">
<view class="report-stock">{{report.stock}}</view>
<view class="report-status">{{report.status}}</view>
</view>
@ -133,6 +133,9 @@
</view>
</view>
</view>
<view class="disclaimer">
<text class="disclaimer-text">以上数据由AI生成不作为最终投资建议决策需独立</text>
</view>
</view>
<!-- 5. TCP连接测试 -->
@ -472,6 +475,13 @@ export default {
})
},
//
goToNotFoundBriefing(report) {
uni.navigateTo({
url: '/pages/notFoundBriefing/notFoundBriefing'
})
},
//
handleVisitorLoginSuccess(data) {
console.log('收到游客登录成功事件:', data)
@ -1970,6 +1980,19 @@ export default {
padding: 5px;
}
.disclaimer {
text-align: center;
padding: 8px 10px;
margin-top: 5px;
border-radius: 4px;
}
.disclaimer-text {
font-size: 11px;
color: grey;
line-height: 1.4;
}
/* 底部空间 */
.bottom-space {
height: 60px;

4
pages/home/member.vue

@ -129,8 +129,8 @@ const goToAbout = () => {
}
const goToShare = () => {
console.log('用户信息==========',userInfoRes.value.data)
if (!userInfoRes.value.data) {
console.log('用户信息==========',userStore.userInfo.isVisitor)
if (userStore.userInfo.isVisitor) {
uni.showToast({
title: '请先登录',
icon: 'none'

55
pages/notFoundBriefing/notFoundBriefing.vue

@ -0,0 +1,55 @@
<template>
<view class="container">
<view class="content">
<image
class="no-data-image"
src="https://d31zlh4on95l9h.cloudfront.net/images/f5a9bd32c81bc7cca47252b51357c12f.png"
mode="aspectFit"
></image>
<text class="no-data-text">暂无数据~</text>
</view>
</view>
</template>
<script>
export default {
data() {
return {
}
},
methods: {
}
}
</script>
<style>
.container {
width: 100%;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background-color: #f5f5f5;
}
.content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.no-data-image {
width: 200px;
height: 200px;
margin-bottom: 20px;
}
.no-data-text {
font-size: 16px;
color: #999999;
text-align: center;
}
</style>
Loading…
Cancel
Save