Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[new feature] Coupon: add valueDesc、unitDesc prop #2710

Merged
merged 3 commits into from Feb 14, 2019

Conversation

rex-zsd
Copy link
Contributor

@rex-zsd rex-zsd commented Feb 10, 2019

Changes you made in this pull request:

  • 增加新属性 valueDesc、unitDesc

return `${coupon.valueDesc}<span>${coupon.unitDesc}</span>`;
}
return coupon.denominations
? `${formatAmount(coupon.denominations)}<span>${this.currency}</span>`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

修改 currency 位置会导致 breaking change

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

那这里处理成未传入 valueDesc 和 unitDesc 时维持原样吧?
还是¥1.00,新的会是1.00元

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

本来是想都统一到新的格式

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

嗯呐,旧的维持原样可以滴

@chenjiahan chenjiahan merged commit 7a1ed98 into youzan:dev Feb 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants