Skip to content

Commit

Permalink
### v1.6.2
Browse files Browse the repository at this point in the history
- 新增持有份额展示
  • Loading branch information
adams549659584 committed Jul 12, 2021
1 parent e61b5a9 commit f4bec30
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@

![Instructions.gif](https://s1.ax1x.com/2020/08/19/dQ8R3t.gif)

### v1.6.2

- 新增持有份额展示

### v1.6.1

- 今日总收益计算结果优化
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "utools-fund",
"version": "v1.6.1",
"version": "v1.6.2",
"description": "自选基金助手",
"main": "main.ts",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/features/fundMy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const fundDetailsToCbList = (dbList: DBItem<IFundEnt>[], searchWord = '') => {
const cb: CallbackListItem = {
fundCode: fund.id,
title: `${fund.id} ${fund.name} ${fund.isValuation ? '' : '✅'}`,
description: `${(rate * 100).toFixed(2)}% ¥${income.toFixed(2)}`,
description: `${(rate * 100).toFixed(2)}% ¥${income.toFixed(2)}` + (fund.holdCount > 0 ? ` 持有份额:${fund.holdCount.toFixed(2)}` : ''),
icon: rate >= 0 ? 'assets/img/up.png' : 'assets/img/down.png',
searchWord,
};
Expand Down

0 comments on commit f4bec30

Please sign in to comment.