|
|
@@ -5,7 +5,7 @@
|
|
|
<p :style="[{'font-size': '14px'}]">{{ item.title }}</p>
|
|
|
<!-- <p :style="[{'font-size': '14px','marginTop':'10px'}]">{{ item.titleRate }}</p>-->
|
|
|
<div style="display:flex;justify-content:space-between">
|
|
|
- <p v-if="item.value2descript" :style="[{'font-weight': 'bold'},{'font-size':'18px'},{'color':item.color}]">{{ item.value || 0 }}/¥{{item.value3?tool.formatAmount(item.value3,2):0}}</p>
|
|
|
+ <p v-if="item.value2descript" :style="[{'font-weight': 'bold'},{'font-size':'18px'},{'color':item.color}]">{{ item.value || 0 }}/{{unitCompile(item.value3)}}</p>
|
|
|
<p v-else :style="[{'font-weight': 'bold'},{'font-size':'18px'},{'color':item.color}]">{{ item.value || 0 }}</p>
|
|
|
<div style="position: relative;">
|
|
|
<span v-if="item.value2descript" style="position:absolute;top:-20px;right:0px;font-size:14px;white-space:nowrap;">{{ item.value2descript }}</span>
|
|
|
@@ -34,7 +34,16 @@
|
|
|
return {
|
|
|
|
|
|
}
|
|
|
- }
|
|
|
+ },
|
|
|
+ methods:{
|
|
|
+ unitCompile (num) {
|
|
|
+ if (num == 0) {
|
|
|
+ return this.tool.formatAmount(num,0,'¥')
|
|
|
+ } else {
|
|
|
+ return this.tool.formatAmount(num / 10000,2,'¥') + '万'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ }
|
|
|
}
|
|
|
</script>
|
|
|
|