diff --git a/README.md b/README.md index 9dbfa3c..829fa16 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,10 @@ ![Instructions.gif](https://s1.ax1x.com/2020/08/19/dQ8R3t.gif) +### v1.6.2 + +- 新增持有份额展示 + ### v1.6.1 - 今日总收益计算结果优化 diff --git a/package.json b/package.json index a848775..687b67b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "utools-fund", - "version": "v1.6.1", + "version": "v1.6.2", "description": "自选基金助手", "main": "main.ts", "scripts": { diff --git a/src/features/fundMy.ts b/src/features/fundMy.ts index 05e472c..cf36849 100644 --- a/src/features/fundMy.ts +++ b/src/features/fundMy.ts @@ -76,7 +76,7 @@ const fundDetailsToCbList = (dbList: DBItem[], 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, };