This commit is contained in:
huangjinming 2022-12-19 10:38:20 +08:00
parent f57d284240
commit 3fd1fb4860
5 changed files with 11 additions and 4 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 815 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -226,7 +226,7 @@
CHIP
</div>
<div v-else :class="isTabs ? 'hero-tab' : 'chip-tab'">
<img width="46px" src="../../assets/market/lock.png" alt="aoi-hero" />
<img width="33px" src="../../assets/market/lock.png" alt="aoi-hero" />
</div>
</div>
</div>

View File

@ -299,7 +299,7 @@
CHIP
</div>
<div v-else :class="isTabs ? 'hero-tab' : 'chip-tab'">
<img width="46px" src="../../assets/market/lock.png" alt="aoi-hero" />
<img width="33px" src="../../assets/market/lock.png" alt="aoi-hero" />
</div>
</div>
</div>

View File

@ -24,7 +24,11 @@
status="warning"
></el-progress>
</div>
<div class="progress-number">{{ min }}/{{ max }}</div>
<div class="progress-number">
{{ min > 100 ? parseInt(min) : min > 10 ? parseFloat(min).toFixed(2) : min }}/{{
max > 100 ? parseInt(max) : max > 10 ? parseFloat(max).toFixed(2) : max
}}
</div>
</div>
</div>
</div>
@ -36,9 +40,12 @@ export default {
props: ["color", "definecolor", "max", "min", "progressImg"],
computed: {
curent() {
return (this.min % this.max) * 100;
return (( this.min / this.max).toFixed(2))*100 ; ;
},
},
created(){
console.log( (( this.min / this.max).toFixed(2))*100 ,'selog');
}
};
</script>