|
|
@ -5,7 +5,7 @@ |
|
|
<deepExploration_header></deepExploration_header> |
|
|
<deepExploration_header></deepExploration_header> |
|
|
|
|
|
|
|
|
<view class="search"> |
|
|
<view class="search"> |
|
|
<input v-model="stockName" class="searchInput" type="text" placeholder="请输入股票名称、股票代码" |
|
|
|
|
|
|
|
|
<input v-model="searchName" class="searchInput" type="text" placeholder="请输入股票名称、股票代码" |
|
|
placeholder-style="color: #A6A6A6; font-size: 22rpx;" /> |
|
|
placeholder-style="color: #A6A6A6; font-size: 22rpx;" /> |
|
|
<image @click="searchStock" class="seachIcon" src="/static/deepExploration-images/search.png" |
|
|
<image @click="searchStock" class="seachIcon" src="/static/deepExploration-images/search.png" |
|
|
mode="aspectFill"></image> |
|
|
mode="aspectFill"></image> |
|
|
@ -69,6 +69,16 @@ |
|
|
import { |
|
|
import { |
|
|
onLoad |
|
|
onLoad |
|
|
} from '@dcloudio/uni-app' |
|
|
} from '@dcloudio/uni-app' |
|
|
|
|
|
import { |
|
|
|
|
|
getModel1First, |
|
|
|
|
|
getModel1Second, |
|
|
|
|
|
getModel2First, |
|
|
|
|
|
getModel2Second, |
|
|
|
|
|
getModel3First, |
|
|
|
|
|
getModel3Second, |
|
|
|
|
|
getModel4First, |
|
|
|
|
|
getModel4Second, |
|
|
|
|
|
} from '/api/deepExploration/deepExploration.js' |
|
|
|
|
|
|
|
|
// 响应式变量定义 |
|
|
// 响应式变量定义 |
|
|
const type = ref('deepExploration') |
|
|
const type = ref('deepExploration') |
|
|
@ -92,6 +102,29 @@ |
|
|
}, |
|
|
}, |
|
|
]) |
|
|
]) |
|
|
|
|
|
|
|
|
|
|
|
//搜索股票 |
|
|
|
|
|
const searchStock = () => { |
|
|
|
|
|
console.log('搜索参数:', stockName.value); |
|
|
|
|
|
if (currentIndex.value == 0) { |
|
|
|
|
|
handleModel(0) |
|
|
|
|
|
} else if (currentIndex.value == 1) { |
|
|
|
|
|
console.log(index); |
|
|
|
|
|
handleModel(1) |
|
|
|
|
|
} else if (currentIndex.value == 2) { |
|
|
|
|
|
console.log(index); |
|
|
|
|
|
handleModel(2) |
|
|
|
|
|
} else if (currentIndex.value == 3) { |
|
|
|
|
|
console.log(index); |
|
|
|
|
|
handleModel(3) |
|
|
|
|
|
}else{ |
|
|
|
|
|
uni.showToast({ |
|
|
|
|
|
title: '请选择模块', |
|
|
|
|
|
icon: 'none', |
|
|
|
|
|
duration: 2000 |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
//点击四大模块 |
|
|
//点击四大模块 |
|
|
const handleModel = (index) => { |
|
|
const handleModel = (index) => { |
|
|
currentIndex.value = index |
|
|
currentIndex.value = index |
|
|
@ -110,9 +143,42 @@ |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const stockName = ref('') |
|
|
|
|
|
const searchName = ref('') |
|
|
|
|
|
const stockCode = ref('') |
|
|
|
|
|
const language = ref('') |
|
|
|
|
|
const recordId = ref('') |
|
|
|
|
|
const parentId = ref('') |
|
|
|
|
|
const stockId = ref('') |
|
|
//点击主力追踪 |
|
|
//点击主力追踪 |
|
|
const handleTrack = () => { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const handleTrack = async () => { |
|
|
|
|
|
try { |
|
|
|
|
|
const result = await getModel1First({ |
|
|
|
|
|
content: searchName.value, |
|
|
|
|
|
language: "cn", |
|
|
|
|
|
marketList: "hk,cn,usa,my,sg,vi,in,gb", |
|
|
|
|
|
model: 1 |
|
|
|
|
|
}) |
|
|
|
|
|
console.log('result', result); |
|
|
|
|
|
if (result.code == 200) { |
|
|
|
|
|
stockCode.value = result.data.code |
|
|
|
|
|
stockName.value = result.data.name |
|
|
|
|
|
recordId.value = result.data.recordId |
|
|
|
|
|
parentId.value = result.data.parentId |
|
|
|
|
|
stockId.value = result.data.stockId |
|
|
|
|
|
language.value = result.data.language |
|
|
|
|
|
const res = await getModel1Second({ |
|
|
|
|
|
language: language.value, |
|
|
|
|
|
recordId: recordId.value, |
|
|
|
|
|
parentId: parentId.value, |
|
|
|
|
|
stockId: stockId.value |
|
|
|
|
|
}) |
|
|
|
|
|
console.log('res', res); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} catch { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//点击主力雷达 |
|
|
//点击主力雷达 |
|
|
@ -129,12 +195,7 @@ |
|
|
const handleCapitalFlow = () => { |
|
|
const handleCapitalFlow = () => { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
const stockName = ref('TSLA') |
|
|
|
|
|
//搜索股票 |
|
|
|
|
|
const searchStock = () => { |
|
|
|
|
|
console.log('搜索参数:', stockName.value); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 1. K线图配置 |
|
|
// 1. K线图配置 |
|
|
const opts = ref({ |
|
|
const opts = ref({ |
|
|
@ -733,7 +794,8 @@ |
|
|
width: 100%; |
|
|
width: 100%; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
*{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* { |
|
|
box-sizing: border-box; |
|
|
box-sizing: border-box; |
|
|
} |
|
|
} |
|
|
</style> |
|
|
</style> |