diff --git a/src/page/currency/CurrencyDetail.vue b/src/page/currency/CurrencyDetail.vue index 9578c8ea..fb53074f 100644 --- a/src/page/currency/CurrencyDetail.vue +++ b/src/page/currency/CurrencyDetail.vue @@ -21,7 +21,8 @@ v-for="item in list" v-if="item.id" :key="item.id" - :detail="item"/> + :detail="item" + type="body"/> diff --git a/src/page/currency/CurrencyJournalDetail.vue b/src/page/currency/CurrencyJournalDetail.vue index ff258013..1e05019e 100644 --- a/src/page/currency/CurrencyJournalDetail.vue +++ b/src/page/currency/CurrencyJournalDetail.vue @@ -13,7 +13,8 @@ v-if="item.id" :nostyle="true" :key="item.id" - :detail="item"/> + :detail="item" + type="title"/> diff --git a/src/page/currency/components/CurrencyDetailItem.vue b/src/page/currency/components/CurrencyDetailItem.vue index 0f5ef248..78c7d1b5 100644 --- a/src/page/currency/components/CurrencyDetailItem.vue +++ b/src/page/currency/components/CurrencyDetailItem.vue @@ -3,13 +3,12 @@ :class="isIncome" class="c-currency-detail-item">
-
{{ detail.body }}
+
{{ detail[type] }}
{{ detail.updated_at | time2tips }}
{{ detail.type > 0 ? '+' : '-' }}{{ detail.amount }}
- @@ -18,7 +17,8 @@ export default { name: "CurrencyDetailItem", props: { detail: { type: Object, required: true }, - nostyle: { type: Boolean, default: false } + nostyle: { type: Boolean, default: false }, + type: { type: String, default: "title" } }, data() { return {};