diff --git a/components/KeyValueRow/KeyValueRow.vue b/components/KeyValueRow/KeyValueRow.vue index f954e5a..aa91bf9 100644 --- a/components/KeyValueRow/KeyValueRow.vue +++ b/components/KeyValueRow/KeyValueRow.vue @@ -7,7 +7,7 @@ {{ keyName - }} + }}
{{ value @@ -66,6 +66,12 @@ export default { default() { return '' } + }, + isBr: { + type: Boolean, + default() { + return false + } }, }, data() { diff --git a/components/entrustOrderList/entrustOrderList.vue b/components/entrustOrderList/entrustOrderList.vue index 3120871..804fb29 100644 --- a/components/entrustOrderList/entrustOrderList.vue +++ b/components/entrustOrderList/entrustOrderList.vue @@ -54,7 +54,8 @@ Stop/Limit {{ i18n.ExpectProfit }} - + {{getItem(item.direction=='buy'?(marketDetail.close-item.openedPrice)*item.hand:(item.openedPrice-marketDetail.close)*item.hand)}} 0 @@ -66,14 +67,17 @@ {{ i18n.status }} {{item.status}} {{ i18n.PL }} - {{item.profitAmount-item.fee}} + + {{item.profitAmount-item.fee}} {{ i18n.status }} {{item.status}} {{ i18n.PL }} - 0 + + 0 + @@ -211,6 +215,14 @@ mounted() { this.getContractOrderList() }, + //全局事件在组件实例创建完成定义 + created() { + uni.$on('upData', num => { + if(num){ + this.getContractOrderList() + } + }) + }, onHide() { clearTimeout(timer2); clearInterval(timer2); @@ -396,13 +408,16 @@