This commit is contained in:
aaron 2025-05-23 12:22:07 +08:00
parent cb9b876340
commit 2475a3bba5
2 changed files with 12 additions and 6 deletions

View File

@ -5,7 +5,7 @@ services:
build: build:
context: . context: .
dockerfile: Dockerfile dockerfile: Dockerfile
image: tradus-web:1.3.7 image: tradus-web:1.3.8
container_name: tradus-web container_name: tradus-web
ports: ports:
- '6000:80' - '6000:80'

View File

@ -33,7 +33,13 @@ const timeframeOptions = [
{ value: '1d', label: '1天' }, { value: '1d', label: '1天' },
{ value: '1w', label: '1周' }, { value: '1w', label: '1周' },
] ]
const selectedTimeframe = ref('1d') // 1 const selectedTimeframe = ref('1h') // 1
//
const timeframeLabel = computed(() => {
const option = timeframeOptions.find((opt) => opt.value === selectedTimeframe.value)
return option ? option.label : selectedTimeframe.value
})
// APIURL // APIURL
const apiBaseUrl = const apiBaseUrl =
@ -259,7 +265,7 @@ const resetView = () => {
currentThought.value = '' currentThought.value = ''
isAnalyzing.value = false isAnalyzing.value = false
// //
selectedTimeframe.value = '1d' selectedTimeframe.value = '1h'
} }
// //
@ -413,10 +419,10 @@ const parsedContent = computed(() => {
<div v-else class="analysis-view"> <div v-else class="analysis-view">
<div class="analysis-header"> <div class="analysis-header">
<div class="target-info"> <div class="target-info">
<span class="label">正在分析</span> <span class="label">分析目标</span>
<span class="value">{{ symbolCode.toUpperCase() }}</span> <span class="value">{{ symbolCode.toUpperCase() }}</span>
<span v-if="!isStockMode" class="label timeframe-info">周期</span> <span v-if="!isStockMode" class="label timeframe-info">时间周期</span>
<span v-if="!isStockMode" class="value">{{ selectedTimeframe }}</span> <span v-if="!isStockMode" class="value">{{ timeframeLabel }}</span>
</div> </div>
<div class="action-buttons" v-if="!isAnalyzing"> <div class="action-buttons" v-if="!isAnalyzing">
<button class="action-button" @click="resetView"> <button class="action-button" @click="resetView">