Skip to content

Commit

Permalink
πŸ”₯ Disable Christmas coupon functionality (#2006)
Browse files Browse the repository at this point in the history
* πŸ”₯ Remove christmas campaign ui

* πŸ”₯ Disable christmas coupon functionality
  • Loading branch information
AuroraHuang22 authored Dec 31, 2024
1 parent a813b96 commit a4fec96
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 33 deletions.
15 changes: 0 additions & 15 deletions src/components/SiteTopBannerForChristmas.vue

This file was deleted.

1 change: 0 additions & 1 deletion src/layouts/default.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<template>
<div class="flex flex-col items-stretch min-h-screen">
<SiteTopBannerForChristmas />
<!-- <AlertBanner
v-if="getRouteBaseName($route) !== 'nft-class-classId' && $route.params.classId !== alertBannerNFTClassId"
:primary-button-text="$t('alert_banner_actions_purchase')"
Expand Down
1 change: 0 additions & 1 deletion src/layouts/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<AlertBanner v-if="uiIsChainUpgrading">{{
$t('notice_chain_upgrading')
}}</AlertBanner>
<SiteTopBannerForChristmas />

<nuxt
:class="[
Expand Down
18 changes: 2 additions & 16 deletions src/mixins/coupon.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,8 @@
import {
CHRISTMAS_CAMPAIGN_MIN_SPEND,
CHRISTMAS_CAMPAIGN_COUPON,
} from '@/constant/index';

export default {
computed: {
mixinCoupon() {
return this.$route.query.coupon || '';
},
},
methods: {
getApplicableCoupon({ cartCoupon, checkoutPrice }) {
if (this.mixinCoupon || cartCoupon) {
return this.mixinCoupon || cartCoupon;
}
return checkoutPrice > CHRISTMAS_CAMPAIGN_MIN_SPEND
? CHRISTMAS_CAMPAIGN_COUPON
: '';
const queryCoupon = this.$route.query.coupon || '';
return queryCoupon || cartCoupon || undefined;
},
},
};

0 comments on commit a4fec96

Please sign in to comment.