-
Notifications
You must be signed in to change notification settings - Fork 13
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
base: develop
Are you sure you want to change the base?
[TAS-2815] ✨ Implement Christmas campaign #1990
Conversation
There was a problem hiding this 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”'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
localized?
} catch (error) {} | ||
}, | ||
}, | ||
created() { |
There was a problem hiding this comment.
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
src/pages/shopping-cart/book.vue
Outdated
@@ -352,7 +361,7 @@ export default { | |||
fbClickId: this.fbClickId, | |||
items: this.shoppingCartBookItems, | |||
email: this.walletEmail, | |||
coupon: this.coupon, | |||
coupon: this.coupon || 'CHRISTMAS10', |
There was a problem hiding this comment.
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]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return [...this.messages, ...this.messages]; | |
return this.messages.concat(this.messages); |
Seems less clumsy this way, since ...
creates new array
2024-12-18.2.23.04.mov