|
|
|
@ -27,8 +27,8 @@ |
|
|
|
<view class="section welcome-section"> |
|
|
|
<!-- 轮播图 --> |
|
|
|
<swiper class="welcome-swiper" circular autoplay interval="3000" duration="500" indicator-dots indicator-active-color="#4080ff"> |
|
|
|
<swiper-item v-for="(item, index) in 5" :key="index"> |
|
|
|
<image class="swiper-image" src="https://d31zlh4on95l9h.cloudfront.net/images/e4272cc034fa2a3d1ca588ef84e51ab0.png" mode="aspectFill"></image> |
|
|
|
<swiper-item v-for="(imageUrl, index) in swiperImages" :key="index"> |
|
|
|
<image class="swiper-image" :src="imageUrl" mode="aspectFill"></image> |
|
|
|
</swiper-item> |
|
|
|
</swiper> |
|
|
|
</view> |
|
|
|
@ -218,6 +218,15 @@ export default { |
|
|
|
{ title: '主力资金流', icon: '/static/c4.png' } |
|
|
|
], |
|
|
|
|
|
|
|
// 轮播图片数据 |
|
|
|
swiperImages: [ |
|
|
|
'https://d31zlh4on95l9h.cloudfront.net/images/44ec37501cf3ecf5438d401c3d66fcd3.png', |
|
|
|
'https://d31zlh4on95l9h.cloudfront.net/images/80274b6626bb403d717469b3672333c9.png', |
|
|
|
'https://d31zlh4on95l9h.cloudfront.net/images/14481c76b09509977d3879ba3141ebc7.png', |
|
|
|
'https://d31zlh4on95l9h.cloudfront.net/images/19e4c5542e5f974e1c6938897aa20ef9.png', |
|
|
|
'https://d31zlh4on95l9h.cloudfront.net/images/d0bc1c1bb71917132865b82dab99831b.png' |
|
|
|
], |
|
|
|
|
|
|
|
// 我的自选股票数据 |
|
|
|
myStocks: [ |
|
|
|
{ name: '特斯拉', code: 'TSLA', price: '482.00', change: 2.80, chartImg: '/static/c5.png' }, |
|
|
|
@ -1627,7 +1636,7 @@ export default { |
|
|
|
|
|
|
|
.welcome-swiper { |
|
|
|
width: 100%; |
|
|
|
height: 150px; |
|
|
|
height: 110px; |
|
|
|
border-radius: 0; |
|
|
|
overflow: hidden; |
|
|
|
} |
|
|
|
|