|
|
@ -267,19 +267,19 @@ const enableInput = () => { |
|
|
|
|
|
|
|
// 处理历史记录选择 |
|
|
|
const handleHistorySelect = (stockData) => { |
|
|
|
console.log('接收到历史记录数据:', stockData); |
|
|
|
|
|
|
|
console.log("接收到历史记录数据:", stockData); |
|
|
|
|
|
|
|
// 如果当前不在AiEmotion页面,切换到AiEmotion页面 |
|
|
|
// if (activeTab.value !== 'AiEmotion') { |
|
|
|
// setActiveTab('AiEmotion', 1); |
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
// 等待组件渲染完成后调用addStock方法 |
|
|
|
nextTick(() => { |
|
|
|
if (aiEmotionRef.value && aiEmotionRef.value.addStock) { |
|
|
|
aiEmotionRef.value.addStock(stockData); |
|
|
|
} else { |
|
|
|
console.error('AiEmotion组件或addStock方法不可用'); |
|
|
|
console.error("AiEmotion组件或addStock方法不可用"); |
|
|
|
} |
|
|
|
}); |
|
|
|
}; |
|
|
@ -631,6 +631,40 @@ const expandHistory = () => { |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
const backToHome = () => { |
|
|
|
if (isMobile.value) { |
|
|
|
console.log("用户是移动端"); |
|
|
|
// 调用原生方法跳转到首页 |
|
|
|
uni.postMessage({ |
|
|
|
data: { |
|
|
|
val: { |
|
|
|
name: "JWopenView", |
|
|
|
extra: { |
|
|
|
data: { |
|
|
|
type: 3, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}); |
|
|
|
} else { |
|
|
|
console.log("用户是pc端"); |
|
|
|
const env = import.meta.env.VITE_ENV; |
|
|
|
console.log("当前的环境为:", env); |
|
|
|
if (env == "development" || env == "test") { |
|
|
|
window.parent.location.href = |
|
|
|
"http://121.89.234.155:8807/hljw/homepage?menu=999999991"; |
|
|
|
} else if (env == "product") { |
|
|
|
window.parent.location.href = |
|
|
|
"https://web.homilychart.com/product/hljw/homepage?menu=999999991"; |
|
|
|
} else if (env == "production") { |
|
|
|
window.parent.location.href = |
|
|
|
"https://web.homilychart.com/hljw/homepage?menu=999999991"; |
|
|
|
} |
|
|
|
// window.parent.location.href = window.parent.document.referrer |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
onMounted(async () => { |
|
|
|
throttledJudgeDevice(); |
|
|
|
// 禁用全局触摸滚动 |
|
|
@ -716,6 +750,14 @@ onUnmounted(() => { |
|
|
|
<div class="count-number">{{ UserCount }}次</div> |
|
|
|
<div class="clickGetCount">点击获取次数</div> |
|
|
|
</div> |
|
|
|
<div class="backToHomeBtn" @click="backToHome()"> |
|
|
|
<img |
|
|
|
src="https://d31zlh4on95l9h.cloudfront.net/images/d8b388e461423f79087ddbe016002217.png" |
|
|
|
alt="返回首页" |
|
|
|
class="backImg" |
|
|
|
/> |
|
|
|
<div class="backContent">返回首页</div> |
|
|
|
</div> |
|
|
|
<!-- <img |
|
|
|
:src="announcementBtn" |
|
|
|
class="announcement-btn action-btn" |
|
|
@ -750,12 +792,21 @@ onUnmounted(() => { |
|
|
|
> |
|
|
|
<span>{{ tab.label }}</span> |
|
|
|
</div> |
|
|
|
<div v-if="!isMobile" class="pc-count-badge" @click="showCount"> |
|
|
|
<div class="pc-action-btn"> |
|
|
|
<div class="pc-count-number">{{ UserCount }}次</div> |
|
|
|
<div v-if="!isMobile" class="pc-count-badge"> |
|
|
|
<div class="pc-countBtn" @click="showCount"> |
|
|
|
<div class="pc-action-btn"> |
|
|
|
<div class="pc-count-number">{{ UserCount }}次</div> |
|
|
|
</div> |
|
|
|
<div class="pc-clickGetCount">点击获取次数</div> |
|
|
|
</div> |
|
|
|
<div class="pc-backToHomeBtn" @click="backToHome()"> |
|
|
|
<img |
|
|
|
src="https://d31zlh4on95l9h.cloudfront.net/images/d8b388e461423f79087ddbe016002217.png" |
|
|
|
alt="返回首页" |
|
|
|
class="pc-backImg" |
|
|
|
/> |
|
|
|
<div class="pc-backContent">返回首页</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="pc-clickGetCount">点击获取次数</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</section> |
|
|
@ -880,6 +931,14 @@ onUnmounted(() => { |
|
|
|
<div class="count-number">{{ UserCount }}次</div> |
|
|
|
<div class="clickGetCount">点击获取次数</div> |
|
|
|
</div> |
|
|
|
<div class="backToHomeBtn" @click="backToHome()"> |
|
|
|
<img |
|
|
|
src="https://d31zlh4on95l9h.cloudfront.net/images/d8b388e461423f79087ddbe016002217.png" |
|
|
|
alt="返回首页" |
|
|
|
class="backImg" |
|
|
|
/> |
|
|
|
<div class="backContent">返回首页</div> |
|
|
|
</div> |
|
|
|
<!-- <img |
|
|
|
:src="announcementBtn" |
|
|
|
class="announcement-btn action-btn" |
|
|
@ -1178,16 +1237,41 @@ body { |
|
|
|
font-size: 12px; |
|
|
|
} |
|
|
|
|
|
|
|
.backToHomeBtn { |
|
|
|
display: flex; |
|
|
|
flex-direction: column; |
|
|
|
justify-content: center; |
|
|
|
align-items: center; |
|
|
|
} |
|
|
|
|
|
|
|
.backImg { |
|
|
|
width: 100%; |
|
|
|
height: auto; |
|
|
|
} |
|
|
|
|
|
|
|
.backContent { |
|
|
|
width: 100%; |
|
|
|
text-align: center; |
|
|
|
color: white; |
|
|
|
font-size: 12px; |
|
|
|
white-space: nowrap; |
|
|
|
} |
|
|
|
|
|
|
|
.pc-count-badge { |
|
|
|
width: 120px; |
|
|
|
width: 200px; |
|
|
|
height: 100%; |
|
|
|
margin-left: auto; |
|
|
|
margin-right: 20px; |
|
|
|
position: absolute; |
|
|
|
right: 20px; |
|
|
|
display: flex; |
|
|
|
} |
|
|
|
|
|
|
|
.pc-count-badge:hover { |
|
|
|
.pc-countBtn { |
|
|
|
width: 65%; |
|
|
|
height: 100%; |
|
|
|
position: relative; |
|
|
|
} |
|
|
|
|
|
|
|
.pc-countBtn:hover { |
|
|
|
transform: scale(1.05); |
|
|
|
} |
|
|
|
|
|
|
@ -1217,6 +1301,28 @@ body { |
|
|
|
font-size: 12px; |
|
|
|
} |
|
|
|
|
|
|
|
.pc-backToHomeBtn { |
|
|
|
width: 35%; |
|
|
|
height: 100%; |
|
|
|
display: flex; |
|
|
|
flex-direction: column; |
|
|
|
align-items: center; |
|
|
|
} |
|
|
|
.pc-backImg { |
|
|
|
width: auto; |
|
|
|
height: 70%; |
|
|
|
} |
|
|
|
.pc-backContent { |
|
|
|
width: 100%; |
|
|
|
text-align: center; |
|
|
|
color: white; |
|
|
|
font-size: 12px; |
|
|
|
} |
|
|
|
|
|
|
|
.pc-backToHomeBtn:hover { |
|
|
|
transform: scale(1.05); |
|
|
|
} |
|
|
|
|
|
|
|
.homepage-right-group .announcement-btn { |
|
|
|
cursor: pointer; |
|
|
|
transition: transform 0.3s; |
|
|
|