fixbug: 修复部分bug
This commit is contained in:
@@ -27,7 +27,8 @@
|
||||
</view>
|
||||
<view class="table-list" v-for="(item, index) in tableList" :key="index">
|
||||
<view class="list-box flex-c" v-for="(key, indexT) in 3" :key="indexT"
|
||||
:style="{ 'border-bottom-right-radius': index == tableList.length - 1 && indexT == 2 ? '16rpx' : 0 }" :class="{
|
||||
:style="{ 'border-bottom-right-radius': index == tableList.length - 1 && indexT == 2 ? '16rpx' : 0 }"
|
||||
:class="{
|
||||
'border-lr': indexT != 1,
|
||||
'border-left-1': index == tableList.length - 1 && indexT == 0
|
||||
}">
|
||||
@@ -63,6 +64,7 @@ import Header from '@/components/common/header.vue';
|
||||
import TopSafe from '@/components/common/top-safe.nvue'
|
||||
import DownPopup from '@/components/common/down-popup.vue';
|
||||
import { quickens } from '@/api/contract.js'
|
||||
import Decimal from 'decimal.js';
|
||||
|
||||
import func from '@/utils/func.js';
|
||||
|
||||
@@ -104,8 +106,9 @@ export default {
|
||||
this.topList[2].value = res.data.quickenBalance;
|
||||
this.tableList = res.data.quickenDetail;
|
||||
this.tableList.forEach(item => {
|
||||
item.one = item.quickenRate * 100 + '%';
|
||||
item.two = item.quickenValue;
|
||||
const ratio = new Decimal(item.quickenRate);
|
||||
item.one = ratio.times(100).toNumber() + '%';
|
||||
item.two = new Decimal(item.quickenValue);
|
||||
item.three = func.formatDate(new Date(item.ctdate), 3)
|
||||
})
|
||||
} else {
|
||||
@@ -127,7 +130,8 @@ export default {
|
||||
//去签署
|
||||
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user