Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
goosejar committed Apr 10, 2020
1 parent 09d7478 commit e29c571
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions tb_price.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,11 @@ function priceSummary(data) {
listPriceDetail.pop()
let list = listPriceDetail.concat(historySummary(data.single))
list.forEach((item, index) => {
if (index == 2) {
if (item.Name == "双11价格") {
item.Name = "双十一价格"
} else if (index == 3) {
} else if (item.Name == "618价格") {
item.Name = "六一八价格"
} else if (index == 4) {
} else if (item.Name == "30天最低价") {
item.Name = "三十天最低"
}
summary += `\n${item.Name}${getSpace(4)}${item.Price}${getSpace(4)}${item.Date}${getSpace(4)}${item.Difference}`
Expand Down
6 changes: 3 additions & 3 deletions tb_price_lite.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ function priceSummary(data) {
listPriceDetail.pop()
let list = listPriceDetail.concat(historySummary(data.single))
list.forEach((item, index) => {
if (index == 2) {
if (item.Name == "双11价格") {
item.Name = "双十一价格"
} else if (index == 3) {
} else if (item.Name == "618价格") {
item.Name = "六一八价格"
} else if (index == 4) {
} else if (item.Name == "30天最低价") {
item.Name = "三十天最低"
}
summary += `\n${item.Name} ${item.Price} ${item.Date} ${item.Difference}`
Expand Down

0 comments on commit e29c571

Please sign in to comment.