|
板凳
楼主 |
发表于 2019-4-13 15:26:57
|
只看该作者
html:
<div class="swiper_box">
<div class="swiper-container">
<div class="swiper-wrapper">
<div class="swiper-slide">
<div class="swiper-slide dividend" data-history="slide1" >
<!-- @click="openDividedDragon" -->
<div class="dividend_title">分红龙收益</div>
<div class="dividend_num">{{IncomeData.fhlProfit}}</div>
<div class="dividend_text">昨天收益 {{IncomeData.yesterdayFhlProfit}}元</div>
</div>
</div>
<div class="swiper-slide">
<div class="swiper-slide sumMoney" data-history="slide2">
<!-- @click="openTotalAmount" -->
<div class="sumMoney_title">总金额(元)</div>
<div class="sumMoney_num">{{positiveNum}}<span>.{{moneyDecimal}}</span>
</div>
<div class="sumMoney_text">昨天收益{{IncomeData.yesterdayHbAmount}}元</div>
</div>
</div>
<div class="swiper-slide">
<div class="swiper-slide sunPower" data-history="slide3" >
<!-- @click="openTotalSl" -->
<div class="sunPower_title">总算力获得</div>
<div class="sunPower_num">{{IncomeData.arithForce}}</div>
<div class="sunPower_text">昨天获得{{IncomeData.yesterdayArithForce}}</div>
</div>
</div>
</div>
</div>
</div>
JS:
var swiper = new Swiper('.swiper-container', {
centeredSlides: true,
loop: true,
spaceBetween: 20,
slidesPerView: 'auto',
}) |
|