Skip to content

Commit

Permalink
✨ Send channel for free purchase
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Sep 15, 2024
1 parent d919267 commit 46b205b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
6 changes: 5 additions & 1 deletion src/pages/nft/claim/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ import {
parseNFTMetadataURL,
} from '~/util/nft';
import { ellipsis } from '~/util/ui';
import { NFT_BOOK_PLATFORM_LIKER_LAND } from '~/constant';
import alertMixin from '~/mixins/alert';
import crossSellMixin from '~/mixins/cross-sell';
import walletMixin from '~/mixins/wallet';
Expand Down Expand Up @@ -658,6 +658,9 @@ export default {
priceIndex() {
return this.$route.query.price_index;
},
platform() {
return this.$route.query.from || NFT_BOOK_PLATFORM_LIKER_LAND;
},
token() {
return this.$route.query.claiming_token;
},
Expand Down Expand Up @@ -1028,6 +1031,7 @@ export default {
classId: this.classId,
collectionId: this.collectionId,
priceIndex: this.priceIndex,
platform: this.platform,
}),
{
email: this.claimingEmail,
Expand Down
2 changes: 1 addition & 1 deletion src/pages/nft/class/_classId/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1195,7 +1195,7 @@ export default {
type: 'nft_book',
free: true,
price_index: edition.index,
from: 'liker_land_waived',
from: this.platform,
},
})
);
Expand Down
2 changes: 1 addition & 1 deletion src/pages/nft/collection/_collectionId/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ export default {
collection_id: this.collectionId,
type: 'nft_book',
free: true,
from: 'liker_land_waived',
from: this.platform,
},
})
);
Expand Down
2 changes: 2 additions & 0 deletions src/util/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -358,9 +358,11 @@ export const getFreeNFTBookPurchaseEndpoint = ({
utmSource,
utmMedium,
referrer,
platform = NFT_BOOK_PLATFORM_LIKER_LAND,
}) => {
const qsPayload = {
price_index: priceIndex,
from: platform,
ga_client_id: gaClientId,
ga_session_id: gaSessionId,
utm_campaign: utmCampaign,
Expand Down

0 comments on commit 46b205b

Please sign in to comment.