From efa0f668d6425dc12da502cc5705ea595f3a5e7c Mon Sep 17 00:00:00 2001 From: yuyongdong Date: Wed, 17 Apr 2024 18:45:32 +0800 Subject: [PATCH] =?UTF-8?q?nft=20=E5=90=88=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/webapi.js | 6 ++++++ src/views/home/index.vue | 15 ++++++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/src/utils/webapi.js b/src/utils/webapi.js index 2919d79..d7f9859 100644 --- a/src/utils/webapi.js +++ b/src/utils/webapi.js @@ -268,3 +268,9 @@ export const apiClaimNft = async (contract) => { const url = `${API_BASE}/api/partner/claim`; return httpPost(url, {contract}) } + +// 宝箱激活码 +export const apiVoucherClaim = async (id) => { + const url = `${API_BASE}/api/voucher/claim`; + return httpPost(url, {id}) +} diff --git a/src/views/home/index.vue b/src/views/home/index.vue index e69c15d..d29165c 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -1359,10 +1359,23 @@ export default { // 提交nft合作邀请码 submitCode() { +// "testoVC6BT0f" +// 1 +// : +// "testZ5bxiJNF" +// 2 +// : +// "testCFLg58et" +// 3 +// : +// "testjVmKtkEN" +// 4 +// : +// "testZuX1lyLj" if (this.token) { console.log(this.checkCodeInput); if (this.checkCodeInput) { - // Todo + } else { alert("不能为空"); }