| | |
| | | <div class="mt-10 text-center title">{{ item.name }}</div> |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | <!-- ATS 购买弹框 --> |
| | | <van-popup v-model:show="showAtsModal" round position="center" :style="{ width: '90%', maxWidth: '500px' }"> |
| | | <div class="ats-modal"> |
| | |
| | | <div class="modal-content"> |
| | | <div class="input-group"> |
| | | <label class="input-label">{{ $t('购买金额') }}</label> |
| | | <van-field |
| | | v-model="atsAmount" |
| | | type="number" |
| | | :placeholder="$t('请输入购买金额')" |
| | | class="amount-input" |
| | | /> |
| | | <van-field v-model="atsAmount" type="number" :placeholder="$t('请输入购买金额')" class="amount-input" /> |
| | | </div> |
| | | </div> |
| | | <div class="modal-footer"> |
| | |
| | | { |
| | | name: this.$t('期货交易'), |
| | | icon: new URL(`../../../assets/theme/${thStore.theme}/image/etfNav/icon3-3.png`, import.meta.url), |
| | | path: `/cryptos/perpetualContract/${val.symbol}?type=US-stocks&selectIndex=2` |
| | | path: `/cryptos/perpetualContract/${val.symbol}?type=US-stocks&selectIndex=2` |
| | | }, |
| | | { |
| | | name: this.$t('账变记录'), |
| | |
| | | icon: new URL(`../../../assets/theme/${thStore.theme}/image/etfNav/icon5-5.png`, import.meta.url), |
| | | path: `/ipo?stock=US-stocks&stockActive=${this.$props.stockActive}` |
| | | }, |
| | | { |
| | | name: this.$t('新股库存'), |
| | | icon: new URL(`../../../assets/theme/${thStore.theme}/image/etfNav/icon6-6.png`, import.meta.url), |
| | | path: `/ipo/stock?type=newStock&stock=US-stocks&stockActive=${this.$props.stockActive}` |
| | | }, |
| | | // { |
| | | // name: this.$t('新股库存'), |
| | | // icon: new URL(`../../../assets/theme/${thStore.theme}/image/etfNav/icon6-6.png`, import.meta.url), |
| | | // path: `/ipo/stock?type=newStock&stock=US-stocks&stockActive=${this.$props.stockActive}` |
| | | // }, |
| | | { |
| | | name: 'ATS', |
| | | icon: new URL(`../../../assets/theme/${thStore.theme}/image/etfNav/icon6-6.png`, import.meta.url), |
| | |
| | | }) |
| | | return |
| | | } |
| | | |
| | | |
| | | // 调用ATS购买接口 |
| | | _stockAts({ |
| | | price: this.atsAmount |
| | |
| | | align-items: center; |
| | | color: $text_color; |
| | | flex-shrink: 0; |
| | | |
| | | // 前4个按钮,每行4个 |
| | | &:nth-child(-n+4) { |
| | | width: 25%; |
| | | } |
| | | width: 25%; |
| | | |
| | | // 第5个及之后的按钮,每行5个 |
| | | &:nth-child(n+5) { |
| | | width: 20%; |
| | | } |
| | | // &:nth-child(n+5) { |
| | | // width: 20%; |
| | | // } |
| | | |
| | | &:last-child { |
| | | margin-right: 0px; |
| | |
| | | justify-content: space-between; |
| | | align-items: center; |
| | | margin-bottom: 20px; |
| | | |
| | | |
| | | .modal-title { |
| | | font-size: 18px; |
| | | font-weight: bold; |
| | | color: #21262F; |
| | | } |
| | | |
| | | |
| | | .close-icon { |
| | | cursor: pointer; |
| | | color: #999; |
| | | font-size: 24px; |
| | | line-height: 1; |
| | | user-select: none; |
| | | |
| | | |
| | | &:hover { |
| | | color: #666; |
| | | } |
| | |
| | | |
| | | .modal-content { |
| | | margin-bottom: 20px; |
| | | |
| | | |
| | | .input-group { |
| | | .input-label { |
| | | display: block; |
| | |
| | | color: #666; |
| | | margin-bottom: 8px; |
| | | } |
| | | |
| | | |
| | | .amount-input { |
| | | width: 100%; |
| | | } |
| | |
| | | .modal-footer { |
| | | display: flex; |
| | | gap: 12px; |
| | | |
| | | |
| | | .cancel-btn { |
| | | flex: 1; |
| | | border: 1px solid #ddd; |
| | | color: #666; |
| | | } |
| | | |
| | | |
| | | .buy-btn { |
| | | flex: 1; |
| | | } |