Browse Source

合并

lihuilin/feature-20251024095243-我的
wangyi 3 weeks ago
parent
commit
e5632fc652
  1. 42
      components/deepExploration_header.vue
  2. 3
      pages/deepExploration/MainForceActions.vue
  3. 1
      pages/start/select/select.vue
  4. 15
      pages/start/startup/startup.vue
  5. BIN
      static/icons/decoding.png
  6. BIN
      static/icons/funds.png
  7. BIN
      static/icons/radar.png
  8. BIN
      static/icons/tracking.png
  9. BIN
      static/start.webp
  10. 2
      utils/http.js

42
components/deepExploration_header.vue

@ -65,8 +65,16 @@
class="history-item" class="history-item"
> >
<view class="history-left"> <view class="history-left">
<view class="flag-circle"
><image
<view class="flag-circle">
<image
class="icon-stock-model"
:src="modelImage(item.model)"
mode="scaleToFill"
/></view>
</view>
<view class="history-left">
<view class="flag-circle">
<image
class="icon-stock" class="icon-stock"
:src="stockImage(item.stockMarket)" :src="stockImage(item.stockMarket)"
mode="scaleToFill" mode="scaleToFill"
@ -75,7 +83,6 @@
<view class="history-main" @click="itemClick(item)"> <view class="history-main" @click="itemClick(item)">
<text class="history-query">{{ item.stockName }}</text> <text class="history-query">{{ item.stockName }}</text>
<text class="history-query">{{ item.stockCode }}</text> <text class="history-query">{{ item.stockCode }}</text>
<text class="history-query">{{ modelType(item.model) }} </text>
</view> </view>
<text class="history-time">{{ <text class="history-time">{{
formatTimeForHistory(item.createdTime) formatTimeForHistory(item.createdTime)
@ -163,6 +170,20 @@ const onDrawerBackClick = () => {
}; };
// //
function modelImage(model) {
switch (model) {
case 1:
return "../../static/icons/tracking.png";
case 2:
return "../../static/icons/radar.png";
case 3:
return "../../static/icons/decoding.png";
case 4:
return "../../static/icons/funds.png";
}
}
//
function stockImage(Market) { function stockImage(Market) {
switch (Market) { switch (Market) {
case "usa": case "usa":
@ -184,7 +205,6 @@ function stockImage(Market) {
} }
} }
// //
async function itemClick(item) { async function itemClick(item) {
const res = await RecordInfoApi({ const res = await RecordInfoApi({
@ -488,6 +508,10 @@ onMounted(() => {});
height: 50rpx; height: 50rpx;
} }
.icon-stock-model {
width: 45rpx;
height: 45rpx;
}
.icon-stock { .icon-stock {
width: 36rpx; width: 36rpx;
@ -503,11 +527,11 @@ onMounted(() => {});
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
image {
width: 50rpx;
height: 50rpx;
border-radius: 50%;
}
// image {
// width: 50rpx;
// height: 50rpx;
// border-radius: 50%;
// }
} }
.history-main { .history-main {

3
pages/deepExploration/MainForceActions.vue

@ -577,6 +577,7 @@
stockChange.value = historyData.value.stockData.StockInformation.Zhang || '5.120%' stockChange.value = historyData.value.stockData.StockInformation.Zhang || '5.120%'
stockAdd.value = historyData.value.stockData.StockInformation.ZhangFu || '22.410' stockAdd.value = historyData.value.stockData.StockInformation.ZhangFu || '22.410'
stockPrice.value = historyData.value.stockData.StockInformation.Price || '435.900' stockPrice.value = historyData.value.stockData.StockInformation.Price || '435.900'
currentIndex.value = historyData.value.model-1
}, { }, {
deep: true, deep: true,
immediate: true immediate: true
@ -588,7 +589,7 @@
// //
onLoad((e) => { onLoad((e) => {
if (e.index) { if (e.index) {
currentIndex.value = e.index - 1
// currentIndex.value = e.index - 1
console.log('模块:', currentIndex.value) console.log('模块:', currentIndex.value)
} }
if (e.stockName) { if (e.stockName) {

1
pages/start/select/select.vue

@ -110,6 +110,7 @@ function toLogin() {
border-radius: 60rpx; border-radius: 60rpx;
font-size: 32rpx; font-size: 32rpx;
padding: 20rpx; padding: 20rpx;
border: 1rpx solid #00000022;
} }
.register-button { .register-button {

15
pages/start/startup/startup.vue

@ -1,11 +1,13 @@
<template> <template>
<view class="background"> <view class="background">
<image
<!-- <image
class="logo" class="logo"
src="../../../static/icons/start-logo.png" src="../../../static/icons/start-logo.png"
mode="scaleToFill" mode="scaleToFill"
/> />
<view class="logo-text"> DeepChart </view>
<view class="logo-text"> DeepChart </view> -->
<image class="start" src="../../../static/start.webp" mode="scaleToFill" />
</view> </view>
</template> </template>
@ -19,7 +21,7 @@ onShow(() => {
// ID // ID
uni.getSystemInfo({ uni.getSystemInfo({
success: (res) => { success: (res) => {
deviceInfo.setDeviceInfo(res)
deviceInfo.setDeviceInfo(res);
}, },
}); });
@ -38,7 +40,7 @@ onShow(() => {
animationDuration: 1000, animationDuration: 1000,
}); });
} }
}, 1500);
}, 3000);
}); });
</script> </script>
@ -49,6 +51,11 @@ onShow(() => {
height: 100vh; height: 100vh;
} }
.start{
width: 100vw;
height: 100vh;
}
.logo-text { .logo-text {
display: flex; display: flex;
justify-content: center; justify-content: center;

BIN
static/icons/decoding.png

After

Width: 80  |  Height: 80  |  Size: 4.6 KiB

BIN
static/icons/funds.png

After

Width: 80  |  Height: 80  |  Size: 3.4 KiB

BIN
static/icons/radar.png

After

Width: 80  |  Height: 80  |  Size: 6.9 KiB

BIN
static/icons/tracking.png

After

Width: 80  |  Height: 80  |  Size: 3.9 KiB

BIN
static/start.webp

2
utils/http.js

@ -23,7 +23,7 @@ const httpInterceptor = {
// 打印最终请求地址 // 打印最终请求地址
console.log('HTTP(finalUrl)=', options.url) console.log('HTTP(finalUrl)=', options.url)
// 2.请求超时,默认60s // 2.请求超时,默认60s
options.timeout = 10000
options.timeout = 30000
console.log(options) console.log(options)
//3 添加小程序端请求头 //3 添加小程序端请求头
const sys = uni.getSystemInfoSync(); const sys = uni.getSystemInfoSync();

Loading…
Cancel
Save