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("不能为空"); }