Browse Source

行情定位

zhaowenkang/feature-20251028181547-行情页面
zhaowenkang 3 weeks ago
parent
commit
609e5e131e
  1. 58
      pages/marketSituation/marketOverview.vue

58
pages/marketSituation/marketOverview.vue

@ -6,6 +6,10 @@
<scroll-view class="content_scroll" scroll-y="true" :style="{ top: contentTopPosition + 'px' }"> <scroll-view class="content_scroll" scroll-y="true" :style="{ top: contentTopPosition + 'px' }">
<view class="content"> <view class="content">
<view class="map"> <view class="map">
<view class="INDU">道琼斯{{ INDU.value }}</view>
<view class="NDX">纳斯达克{{ NDX.value }}</view>
<view class="HSI">恒生指数{{ HSI.value }}</view>
<view class="CN">上证指数{{ CN.value }}</view>
<image src="/static/marketSituation-image/map.png" mode="widthFix"></image> <image src="/static/marketSituation-image/map.png" mode="widthFix"></image>
</view> </view>
<view class="global_index"> <view class="global_index">
@ -59,6 +63,11 @@ const contentHeight = ref(0);
const headerHeight = ref(0); // header const headerHeight = ref(0); // header
const isWarnTextOverflow = ref(false); // warn const isWarnTextOverflow = ref(false); // warn
const INDU = ref({stockName: "道琼斯",stockCode: "INDU",value: ""});
const NDX = ref({stockName: "纳斯达克",stockCode: "NDX",value: ""});
const HSI = ref({stockName: "恒生指数",stockCode: "HSI",value: ""});
const CN = ref({stockName: "上证指数",stockCode: "1A0001",value: ""});
const pageIndex = ref(0); const pageIndex = ref(0);
const scrollToView = ref(""); const scrollToView = ref("");
@ -708,6 +717,55 @@ watch(headerHeight, (newHeight) => {
min-height: 200rpx; min-height: 200rpx;
} }
.NDX {
position: absolute;
top: 30%;
left: 17%;
transform: translate(-50%, -50%);
font-size: 11rpx;
color: #000000;
padding: 5rpx 10rpx;
border-radius: 10rpx;
background-color: #ffffff;
z-index: 10;
}
.INDU {
position: absolute;
top: 22%;
left: 35%;
transform: translate(-50%, -50%);
font-size: 11rpx;
color: #000000;
padding: 5rpx 10rpx;
border-radius: 10rpx;
background-color: #ffffff;
z-index: 10;
}
.HSI {
position: absolute;
top: 30%;
right: 13%;
transform: translate(-50%, -50%);
font-size: 11rpx;
color: #000000;
padding: 5rpx 10rpx;
border-radius: 10rpx;
background-color: #ffffff;
z-index: 10;
}
.CN {
position: absolute;
top: 23%;
right: 16%;
transform: translate(-50%, -50%);
font-size: 11rpx;
color: #000000;
padding: 5rpx 10rpx;
border-radius: 10rpx;
background-color: #ffffff;
z-index: 10;
}
.map image { .map image {
width: 100%; width: 100%;
height: auto; height: auto;

Loading…
Cancel
Save