cec claim
This commit is contained in:
parent
f4410a4736
commit
6b7d62f4cb
@ -558,11 +558,9 @@ const cecInfo = ref({
|
|||||||
]
|
]
|
||||||
})
|
})
|
||||||
const getCecInfo = async () => {
|
const getCecInfo = async () => {
|
||||||
// let address = localWalletStore.address
|
let address = localWalletStore.address
|
||||||
let address = '0x6f3e6e1d02a66a31c159aef2d9e8691863786c20'
|
|
||||||
if(address) {
|
if(address) {
|
||||||
const {data, errcode} = await apiCecInfo(address,localWalletStore.token)
|
const {data, errcode} = await apiCecInfo(address,localWalletStore.token)
|
||||||
// console.log(errcode,data)
|
|
||||||
if(errcode == 0) {
|
if(errcode == 0) {
|
||||||
cecInfo.value = data
|
cecInfo.value = data
|
||||||
}
|
}
|
||||||
|
@ -121,7 +121,6 @@ async function cardClicked(id) {
|
|||||||
|
|
||||||
const walletTake = import.meta.env.VUE_APP_WALLET_TAKE
|
const walletTake = import.meta.env.VUE_APP_WALLET_TAKE
|
||||||
const googleLogin = async () => {
|
const googleLogin = async () => {
|
||||||
// return
|
|
||||||
let res = await callMethod("walletLogin", "0", walletTake);
|
let res = await callMethod("walletLogin", "0", walletTake);
|
||||||
res = JSON.parse(res);
|
res = JSON.parse(res);
|
||||||
marketplaceStore.fireAddress = res.data.address
|
marketplaceStore.fireAddress = res.data.address
|
||||||
@ -139,6 +138,9 @@ const googleLogin = async () => {
|
|||||||
const appleLogin = async () => {
|
const appleLogin = async () => {
|
||||||
let res = await callMethod("walletLogin", "1", walletTake);
|
let res = await callMethod("walletLogin", "1", walletTake);
|
||||||
res = JSON.parse(res);
|
res = JSON.parse(res);
|
||||||
|
marketplaceStore.fireAddress = res.data.address
|
||||||
|
marketplaceStore.fireToken = res.data.token + '.cf'
|
||||||
|
hideModal({errcode: 0})
|
||||||
}
|
}
|
||||||
|
|
||||||
function cancelSelect() {
|
function cancelSelect() {
|
||||||
|
@ -45,7 +45,7 @@
|
|||||||
<span v-else>0</span>
|
<span v-else>0</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="metaMask-login" v-if="!localWalletStore.address" @click="immuTableLogin">Login1</div>
|
<div class="metaMask-login" v-if="!localWalletStore.address" @click="immuTableLogin">Login</div>
|
||||||
<div class="metaMask-login-active" v-else @click="showMenu = !showMenu">
|
<div class="metaMask-login-active" v-else @click="showMenu = !showMenu">
|
||||||
<div class="metamask">
|
<div class="metamask">
|
||||||
<div class="title">{{ localWalletStore.showAddress }}</div>
|
<div class="title">{{ localWalletStore.showAddress }}</div>
|
||||||
@ -271,7 +271,7 @@ function openThirdPartyLink(url) {
|
|||||||
}
|
}
|
||||||
const handleCopy = (e) => {
|
const handleCopy = (e) => {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
const accountId = localWalletStore.address;
|
const accountId = localWalletStore.address || marketplaceStore.fireAddress
|
||||||
reset();
|
reset();
|
||||||
copyToClipboard(accountId).then(() => {
|
copyToClipboard(accountId).then(() => {
|
||||||
if (copied.value) {
|
if (copied.value) {
|
||||||
|
File diff suppressed because one or more lines are too long
@ -96,7 +96,7 @@
|
|||||||
<div class="content-body">
|
<div class="content-body">
|
||||||
<div class="content-body-header">
|
<div class="content-body-header">
|
||||||
<div class="content-body-header-left">
|
<div class="content-body-header-left">
|
||||||
Grab a share of $100,000 $CEC
|
<span v-if="cecUserStatus == 0">Grab a share of $100,000 $CEC</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="content-body-header-right">
|
<div class="content-body-header-right">
|
||||||
Aug 30, 18:00 - Sep 3, 18:00
|
Aug 30, 18:00 - Sep 3, 18:00
|
||||||
@ -185,8 +185,8 @@
|
|||||||
<!-- 1 绑定交易所 -->
|
<!-- 1 绑定交易所 -->
|
||||||
<div v-if="cecUserStatus == 1">
|
<div v-if="cecUserStatus == 1">
|
||||||
<div class="body-box-title">
|
<div class="body-box-title">
|
||||||
<p>Submit you $CEC Bitget exchange deposit address and Bitget exchange UID</p>
|
<p>Submit you $CEC Bitget exchange deposit address and Bitget exchange UIDto receive the #CEC airdrop</p>
|
||||||
<p>to receive the #CEC airdrop</p>
|
<!-- <p>to receive the #CEC airdrop</p> -->
|
||||||
</div>
|
</div>
|
||||||
<div class="body-box-con">
|
<div class="body-box-con">
|
||||||
<div class="uid">
|
<div class="uid">
|
||||||
@ -295,9 +295,8 @@ const bindAccount = async (type) => {
|
|||||||
}
|
}
|
||||||
let res = await apiBindAccount(data, token)
|
let res = await apiBindAccount(data, token)
|
||||||
if(res.errcode == 15) {
|
if(res.errcode == 15) {
|
||||||
message.error(res.errmsg)
|
|
||||||
} else if(res.errcode == 0) {
|
} else if(res.errcode == 0) {
|
||||||
message.success('Bind successful')
|
cecUserStatus.value = 2
|
||||||
}
|
}
|
||||||
} else if(type == 'cancel') {
|
} else if(type == 'cancel') {
|
||||||
const data = {
|
const data = {
|
||||||
@ -306,7 +305,6 @@ const bindAccount = async (type) => {
|
|||||||
}
|
}
|
||||||
let res = await apiBindAccount(data, token)
|
let res = await apiBindAccount(data, token)
|
||||||
if(res.errcode == 0) {
|
if(res.errcode == 0) {
|
||||||
message.success('Cancellation successful')
|
|
||||||
cecUserStatus.value = 5
|
cecUserStatus.value = 5
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -377,8 +375,9 @@ onMounted(() => {
|
|||||||
.claim-content-data-right {
|
.claim-content-data-right {
|
||||||
.unavailable {
|
.unavailable {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 180px;
|
min-width: 180px;
|
||||||
height: 39px;
|
height: 39px;
|
||||||
|
padding: 0 10px;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@ -453,7 +452,7 @@ onMounted(() => {
|
|||||||
}
|
}
|
||||||
.amount {
|
.amount {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0px;
|
bottom: 20px;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
width: 182px;
|
width: 182px;
|
||||||
@ -652,6 +651,8 @@ onMounted(() => {
|
|||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
color: #B29DD1;
|
color: #B29DD1;
|
||||||
line-height: 1.2;
|
line-height: 1.2;
|
||||||
|
text-align: left;
|
||||||
|
margin: 0 40px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.body-box-con {
|
.body-box-con {
|
||||||
@ -663,6 +664,7 @@ onMounted(() => {
|
|||||||
margin: 30px 0;
|
margin: 30px 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
a {
|
a {
|
||||||
|
font-size: 24px;
|
||||||
color: #8C7BA5;
|
color: #8C7BA5;
|
||||||
text-decoration-line: underline;
|
text-decoration-line: underline;
|
||||||
}
|
}
|
||||||
@ -685,9 +687,6 @@ onMounted(() => {
|
|||||||
border-radius: 19px;
|
border-radius: 19px;
|
||||||
color: #9488AC;
|
color: #9488AC;
|
||||||
}
|
}
|
||||||
input::input-placeholder {
|
|
||||||
color: #9488AC;
|
|
||||||
}
|
|
||||||
input[type=number] {
|
input[type=number] {
|
||||||
-moz-appearance:textfield;
|
-moz-appearance:textfield;
|
||||||
}
|
}
|
||||||
@ -697,6 +696,21 @@ onMounted(() => {
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
input::input-placeholder{
|
||||||
|
color: #9488AC;
|
||||||
|
}
|
||||||
|
input::-webkit-input-placeholder{ //兼容WebKit browsers(Chrome的内核)
|
||||||
|
color: #9488AC;
|
||||||
|
}
|
||||||
|
input::-moz-placeholder{ //Mozilla Firefox 4 to 18
|
||||||
|
color: #9488AC;
|
||||||
|
}
|
||||||
|
input::-moz-placeholder{ //Mozilla Firefox 19+
|
||||||
|
color: #9488AC;
|
||||||
|
}
|
||||||
|
input::-ms-input-placeholder{ //Internet Explorer 10+
|
||||||
|
color: #9488AC;
|
||||||
|
}
|
||||||
.uid {
|
.uid {
|
||||||
margin-top: 30px;
|
margin-top: 30px;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user