You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
<!-- 秒杀商品 : 抢购进度 -- >
< template >
< view class = "ss-flex ss-col-center" >
< view class = "progress-title ss-m-r-10" > 已抢 { { percent } } % < / view >
< view class = "progress-box ss-flex ss-col-center" >
< view class = "progerss-active" : style = "{ width: percent < 10 ? '10%' : percent + '%' }" >
< / view >
< / view >
< / view >
< / template >
< script setup >
const props = defineProps ( {
percent : {
type : Number ,
default : 0 ,
} ,
} ) ;
< / script >
< style lang = "scss" scoped >
. progress - title {
font - size : 20 rpx ;
font - weight : 500 ;
color : # ffffff ;
}
. progress - box {
width : 168 rpx ;
height : 18 rpx ;
background : # f6f6f6 ;
border - radius : 9 rpx ;
}
. progerss - active {
height : 24 rpx ;
background : linear - gradient ( 86 deg , # f60600 , # d00500 ) ;
border - radius : 12 rpx ;
}
< / style >