弧形背景
.pure_top
{
width
: 100%;
height
: 100px
;
position
: relative
;
z
-index
: 0;
overflow
: hidden
;
}
.pure_top
::after
{
content
: '';
width
: 120%;
height
: 100px
;
position
: absolute
;
left
: -10%;
top
: 0;
border
-radius
: 0 0 50% 50%;
background
: #
1496f1;
}
倒计时优化
data(){
wishCountDown
: ''
},
mounted
() {
const timer
= setInterval(() => {
this
.wishCountDown
= parseInt(this
.wishCountDown
) - 1
if (this
.wishCountDown
<= 0) {
clearInterval(timer
)
}
}, 1000)
this
.$
once('hook:beforeDestroy', () => {
clearInterval(timer
)
})
},
转载请注明原文地址: https://lol.8miu.com/read-7176.html