Skip to content

Commit

Permalink
fix badge color
Browse files Browse the repository at this point in the history
  • Loading branch information
x2rr committed Sep 24, 2020
1 parent a03f5d5 commit e850dfe
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 6 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@


## 更新说明
### v2.0.6
- 修复单个基金角标颜色异常的问题。

### v2.0.5
- 修复个别基金估值收益异常问题。
- 界面布局对齐方式调整。
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "choose-funds",
"version": "2.0.5",
"version": "2.0.6",
"description": "A Vue.js web extension",
"author": "Liu_Rabt",
"author": "LiuRabt",
"license": "GPL-3.0",
"engines": {
"node": ">=10"
Expand Down
6 changes: 3 additions & 3 deletions src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ var setBadge = (fundcode, Realtime, type) => {
text: textStr
});
let color = Realtime ?
allGains >= 0 ?
textStr >= 0 ?
"#F56C6C" :
"#4eb61b" :
"#4285f4";
Expand Down Expand Up @@ -368,7 +368,7 @@ chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
text: textStr
});
let color = isDuringDate() ?
allGains >= 0 ?
textStr >= 0 ?
"#F56C6C" :
"#4eb61b" :
"#4285f4";
Expand Down Expand Up @@ -408,7 +408,7 @@ chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
text: textstr
});
let color = isDuringDate() ?
request.data.gszzl >= 0 ?
textstr >= 0 ?
"#F56C6C" :
"#4eb61b" :
"#4285f4";
Expand Down
8 changes: 8 additions & 0 deletions src/common/changeLog.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
"tgGroup": "https://t.me/choose_funds_chat",
"qqGroup": "951222618",
"list": [{
"version": "2.0.6",
"type": 1,
"content": [{
"type": 1,
"content": "修复单个基金角标颜色异常的问题。"
}]
},
{
"version": "2.0.5",
"type": 1,
"content": [{
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"author": "Liu_Rabt",
"author": "LiuRabt",
"name": "自选基金助手 - 实时查看基金涨跌幅",
"description": "自选基金助手,实时查看您关注的基金,助您快速获取实时数据",
"version": null,
Expand Down

0 comments on commit e850dfe

Please sign in to comment.