好友
阅读权限10
听众
最后登录1970-1-1
|
本帖最后由 被遗忘的路人 于 2020-1-20 11:03 编辑
看了半天没看懂
<el-row>
<transition name="el-zoom-in-center">
<el-col class="topList" v-show="boxTransition">
<h2>新增用户 (今日)</h2>
<h1>{{newNum.newNum}}</h1>
<p>相比昨日: {{newNum.percentageNew}}%</p>
</el-col>
</transition>
<transition name="el-zoom-in-center">
<el-col class="topList" v-show="boxTransition">
<h2>启动次数 (今日)</h2>
<h1>{{startNum.startNum}}</h1>
<p>相比昨日: {{startNum.percentageStart}}%</p>
</el-col>
</transition>
<transition name="el-zoom-in-center">
<el-col class="topList" v-show="boxTransition">
<h2>登录用户 (今日)</h2>
<h1>{{loginNum.loginNum}}</h1>
<p>相比昨日: {{loginNum.percentageLoginNum}}%</p>
</el-col>
</transition>
<transition name="el-zoom-in-center">
<el-col class="topList" v-show="boxTransition">
<h2>充值金额 (今日)</h2>
<h1>{{rechargeNum.rechargeNum}}</h1>
<p>相比昨日: {{rechargeNum.percentageRechargeNum}}%</p>
</el-col>
</transition>
</el-row>
.topList {
color: #ffffff;
width: 230px;
padding: 30px 0;
border-radius: 16px;
margin-right: 30px;
text-align: center;
margin-bottom: 30px;
/*cursor: pointer;*/
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}
.topList:nth-child(1) {
margin-left: 10px;
background-image: linear-gradient(-45deg, #3885e3 0%, #a9e6ff 100%), linear-gradient(#ffffff, #ffffff);
}
.topList:nth-child(2) {
background-image: linear-gradient(-45deg, #f38f43 0%, #ffdc99 100%), linear-gradient(#999999, #999999);
}
.topList:nth-child(3) {
background-image: linear-gradient(-45deg, #5966ba 0%, #cbd2ff 100%), linear-gradient(#ffffff, #ffffff);
}
.topList:nth-child(4) {
margin-right: 0;
background-image: linear-gradient(-45deg, #8654bd 0%, #efc4ff 100%), linear-gradient(#a9a9a9, #a9a9a9);
}
这是我的,应该和你写的是一样的,
不要问我为啥不循环,非要写四遍~ 我也很操蛋,老大那样反的数据,不让循环,拿人工资我也没办法 |
|