Skip to content
This repository has been archived by the owner on Nov 15, 2018. It is now read-only.

Commit

Permalink
fix(currency): 积分明细和充值提现详情显示的列表项目内容不同
Browse files Browse the repository at this point in the history
  • Loading branch information
mutoe committed Jul 25, 2018
1 parent efe7f28 commit 711a231
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/page/currency/CurrencyDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
v-for="item in list"
v-if="item.id"
:key="item.id"
:detail="item"/>
:detail="item"
type="body"/>
</load-more>
</div>
</template>
Expand Down
3 changes: 2 additions & 1 deletion src/page/currency/CurrencyJournalDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
v-if="item.id"
:nostyle="true"
:key="item.id"
:detail="item"/>
:detail="item"
type="title"/>
</load-more>
</div>
</template>
Expand Down
6 changes: 3 additions & 3 deletions src/page/currency/components/CurrencyDetailItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@
:class="isIncome"
class="c-currency-detail-item">
<div class="info">
<div class="title" >{{ detail.body }}</div>
<div class="title" >{{ detail[type] }}</div>
<div class="time">{{ detail.updated_at | time2tips }}</div>
</div>
<div class="amount">
{{ detail.type > 0 ? '+' : '-' }}{{ detail.amount }}
</div>

</div>
</template>

Expand All @@ -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 {};
Expand Down

0 comments on commit 711a231

Please sign in to comment.