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

[TAS-2815] ✨ Implement Christmas campaign #1990

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from

Conversation

AuroraHuang22
Copy link
Contributor

2024-12-18.2.23.04.mov

AuroraHuang22 added a commit that referenced this pull request Dec 18, 2024
@AuroraHuang22 AuroraHuang22 changed the title ✨ Implement Christmas Campaign [TAS-2815] ✨ Implement Christmas Campaign Dec 18, 2024
Copy link

@AuroraHuang22 AuroraHuang22 changed the title [TAS-2815] ✨ Implement Christmas Campaign [TAS-2815] ✨ Implement Christmas campaign Dec 18, 2024
AuroraHuang22 added a commit that referenced this pull request Dec 18, 2024
Copy link
Member

@nwingt nwingt left a comment

Choose a reason for hiding this comment

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

For component design, I think we should make ChristmasBanner generic and rename it to e.g. SiteTopBanner

export default {
data() {
return {
messages: ['🎄聖誕限時 全店9折優惠', '於付款頁面輸入優惠碼”CHRISTMAS10”'],
Copy link
Member

Choose a reason for hiding this comment

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

localized?

} catch (error) {}
},
},
created() {
Copy link
Member

Choose a reason for hiding this comment

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

Please fix lint warning
The "created" property should be above the "methods" property on line 42

@@ -352,7 +361,7 @@ export default {
fbClickId: this.fbClickId,
items: this.shoppingCartBookItems,
email: this.walletEmail,
coupon: this.coupon,
coupon: this.coupon || 'CHRISTMAS10',
Copy link
Member

Choose a reason for hiding this comment

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

上面是寫讓人輸入但這裡其實會導致他沒法(沒需要)輸入?會不會引致誤會

},
computed: {
repeatedMessages() {
return [...this.messages, ...this.messages];
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
return [...this.messages, ...this.messages];
return this.messages.concat(this.messages);

Seems less clumsy this way, since ... creates new array

AuroraHuang22 added a commit that referenced this pull request Dec 19, 2024
AuroraHuang22 added a commit that referenced this pull request Dec 19, 2024
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.

3 participants