| | |
| | | </div> |
| | | </div> |
| | | <div class="swiper-slide"> |
| | | <div class="nav_item flex-start" @click="toPage('/authentications')"> |
| | | <div |
| | | class="nav_item flex-start" |
| | | @click="toPage('/authentications')" |
| | | > |
| | | <img src="@/assets/img/kyc.png" alt="" /> |
| | | <span>KYC</span> |
| | | </div> |
| | |
| | | hkDataStockBeans: [], |
| | | twDataStockBeans: [], |
| | | inDataStockBeans: [], |
| | | usDataStockBeans: [] |
| | | usDataStockBeans: [], |
| | | times: null |
| | | }; |
| | | }, |
| | | components: { |
| | |
| | | NewsItem |
| | | }, |
| | | mounted() { |
| | | this.getData(); |
| | | this.init(); |
| | | }, |
| | | beforeDestroy() { |
| | | if (this.times) clearInterval(this.times); |
| | | }, |
| | | methods: { |
| | | // 选择语言 |
| | |
| | | if (typeof type == "string") type = 1; |
| | | // let data = await api.queryNewsList(type); |
| | | }, |
| | | // 初始化 |
| | | init() { |
| | | this.getData(); |
| | | this.times = setInterval(() => { |
| | | this.getData(); |
| | | }, 2000); |
| | | }, |
| | | // 获取首页数据 |
| | | async getData() { |
| | | let data = await api.getHomePageData(); |