1.23 个股详情接口对接

This commit is contained in:
尚政杰
2026-01-23 17:47:11 +08:00
parent 30d2ec5823
commit b1956561cf
13 changed files with 538 additions and 137 deletions

View File

@@ -1,7 +1,7 @@
<template>
<view>
<template v-if="showType == 0">
<view style="padding: 20rpx;">
<view style="padding: 20rpx;" v-for="(item,index) in newsList" :key="index">
<view style="background-color: #F3F3F3; display: flex; align-items: center; height: 70rpx; border-radius: 30rpx; overflow: hidden;">
<view style="display: flex; align-items: center; justify-content: center; width: 62rpx;">
<image style="width: 25rpx; height: 24rpx;" src="/pagesStock/static/icon/news-search.png" mode="widthFix"></image>
@@ -46,7 +46,7 @@
</template>
<template v-if="showType == 1">
<view style="padding: 20rpx;">
<view style="padding: 20rpx;" v-for="(item,index) in announcementList" :key="index">
<view style="border: 1rpx solid #E7E7E7; border-radius: 10rpx; padding: 0 27rpx; margin: 20rpx 0; display: flex; align-items: center;">
<view style="flex: 1;">
<view style="color: #2B2B2B; font-size: 26rpx; font-weight: bold; margin-top: 20rpx;">中央财办明确2026年继续实施适度宽松货币政策...</view>
@@ -59,7 +59,6 @@
<text>132 KB</text>
</view>
</view>
<view style="padding: 4rpx 10rpx; background-color: #F2C369; border-radius: 10rpx; color: #2B2B2B; font-size: 22rpx; margin-left: 10rpx;">查看</view>
</view>
</view>
@@ -76,7 +75,9 @@
};
},
props: {// 0 新闻动态 1 公司公告
type: Number
type: Number,
newsList:Array, //新闻动态数组
announcementList:Array, //公司公告数组
},
watch:{
type:{