|
@@ -1,17 +1,13 @@
|
|
-
|
|
|
|
<template>
|
|
<template>
|
|
<div class="able-chart" >
|
|
<div class="able-chart" >
|
|
<div class="title" >{{props.title}}</div>
|
|
<div class="title" >{{props.title}}</div>
|
|
<div class="able" >
|
|
<div class="able" >
|
|
- <div class="able-item" v-for="(item) in 6" :key="item" >
|
|
|
|
- <img
|
|
|
|
- :src=" item > props.count ? staticImg.ableGrey : staticImg.able" alt=""
|
|
|
|
- >
|
|
|
|
- </div>
|
|
|
|
|
|
+ <div :class="['able-item', item <= props.count ? 'able-item-active' : '']" v-for="(item) in 6" :key="item" > </div>
|
|
</div>
|
|
</div>
|
|
- <img class="study" v-if="index === 0" :src="require('@/assets/component/LuojigouBoard/study1.png')" />
|
|
|
|
- <img class="study" v-if="index === 1" :src="require('@/assets/component/LuojigouBoard/study2.png')" />
|
|
|
|
- <img class="study" v-if="index === 2" :src="require('@/assets/component/LuojigouBoard/study3.png')" />
|
|
|
|
|
|
+ <!-- <img :src=" item > props.count ? staticImg.ableGrey : staticImg.able" alt="" > -->
|
|
|
|
+ <!-- <img class="study" v-if="index === 0" :src="require('@/assets/component/LuojigouBoard/study1.png')" /> -->
|
|
|
|
+ <!-- <img class="study" v-if="index === 1" :src="require('@/assets/component/LuojigouBoard/study2.png')" /> -->
|
|
|
|
+ <!-- <img class="study" v-if="index === 2" :src="require('@/assets/component/LuojigouBoard/study3.png')" /> -->
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -35,22 +31,24 @@ const props = defineProps<IProps>()
|
|
<style scoped lang="scss" >
|
|
<style scoped lang="scss" >
|
|
.able-chart {
|
|
.able-chart {
|
|
width: 303px;
|
|
width: 303px;
|
|
- height: 64px;
|
|
|
|
|
|
+ height: 46px;
|
|
background: #FDF8F5;
|
|
background: #FDF8F5;
|
|
border-radius: 10px;
|
|
border-radius: 10px;
|
|
- padding: 0 16px;
|
|
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
- background: url('~@/assets/component/LuojigouBoard/rect.png') no-repeat top left;
|
|
|
|
|
|
+ align-items: center;
|
|
|
|
+ // background: url('~@/assets/component/LuojigouBoard/rect.png') no-repeat top left;
|
|
position: relative;
|
|
position: relative;
|
|
background-size: 100%;
|
|
background-size: 100%;
|
|
- padding-top: 30px;
|
|
|
|
|
|
+ padding-left: 16px;
|
|
|
|
+ padding-right: 16px;
|
|
.title {
|
|
.title {
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
font-family: PingFangSC-Medium, PingFang SC;
|
|
font-family: PingFangSC-Medium, PingFang SC;
|
|
font-weight: 500;
|
|
font-weight: 500;
|
|
color: #FF8024;
|
|
color: #FF8024;
|
|
|
|
+ font-size: 14px;
|
|
}
|
|
}
|
|
.study {
|
|
.study {
|
|
position: absolute;
|
|
position: absolute;
|
|
@@ -60,16 +58,27 @@ const props = defineProps<IProps>()
|
|
height: 14px;
|
|
height: 14px;
|
|
}
|
|
}
|
|
.able {
|
|
.able {
|
|
- display: flex;
|
|
|
|
display: flex;
|
|
display: flex;
|
|
.able-item {
|
|
.able-item {
|
|
- margin-left: 5px;
|
|
|
|
- img {
|
|
|
|
- width: 20px;
|
|
|
|
- height: 20px;
|
|
|
|
- display: block;
|
|
|
|
- }
|
|
|
|
|
|
+ margin-left: 2px;
|
|
|
|
+ width: 32px;
|
|
|
|
+ height: 12px;
|
|
|
|
+ background: #FF8024;
|
|
|
|
+ border-radius: 2px 2px 2px 2px;
|
|
|
|
+ opacity: 0.2;
|
|
}
|
|
}
|
|
|
|
+ .able-item-active {
|
|
|
|
+ opacity: 1;
|
|
|
|
+ background: linear-gradient(180deg, #FFB27B 0%, #FF8024 100%);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ .able-item:first-child {
|
|
|
|
+ border-top-left-radius: 10px;
|
|
|
|
+ border-bottom-left-radius: 10px;
|
|
|
|
+ }
|
|
|
|
+ .able-item:last-child {
|
|
|
|
+ border-top-right-radius: 10px;
|
|
|
|
+ border-bottom-right-radius: 10px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|