|
@ -67,9 +67,12 @@ |
|
|
<view class="right" v-show="type === 2"> |
|
|
<view class="right" v-show="type === 2"> |
|
|
<view class="title">{{ i18n.ClosePrice }}</view> |
|
|
<view class="title">{{ i18n.ClosePrice }}</view> |
|
|
<view class="value" style="color:#00E8A2;">{{item.closedPrice}}</view> |
|
|
<view class="value" style="color:#00E8A2;">{{item.closedPrice}}</view> |
|
|
<view class="title">{{ i18n.status }}</view> |
|
|
<view class="title">{{ i18n.ROE }}</view> |
|
|
<view class="value"> |
|
|
<view class="value"> |
|
|
{{item.status=='undone'?i18n.undone:item.status=='opened'?i18n.opened:item.status=='revoked'?i18n.revoked:i18n.closed}} |
|
|
<!-- {{item.status=='undone'?i18n.undone:item.status=='opened'?i18n.opened:item.status=='revoked'?i18n.revoked:i18n.closed}} --> |
|
|
|
|
|
<view class="value" :style="(item.profitAmount/item.bondAmount)*100>=0?'color:#00E8A2;':'color:#F4506A'"> |
|
|
|
|
|
{{getValue(item.profitAmount/item.bondAmount)}}% |
|
|
|
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<view class="title">{{ i18n.PL }}</view> |
|
|
<view class="title">{{ i18n.PL }}</view> |
|
@ -246,6 +249,13 @@ |
|
|
timer2 = null; |
|
|
timer2 = null; |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
// 获取百分比位数 |
|
|
|
|
|
getValue(e){ |
|
|
|
|
|
let data = e*100 |
|
|
|
|
|
data = parseFloat(data.toPrecision(10)) |
|
|
|
|
|
data = String(data) |
|
|
|
|
|
return data.substring(0, data.indexOf(".") + 3); |
|
|
|
|
|
}, |
|
|
// 获取位数 |
|
|
// 获取位数 |
|
|
getPrice(s) { |
|
|
getPrice(s) { |
|
|
var i=s; |
|
|
var i=s; |
|
|