修改首页显示claim,修复详情页不显示,

This commit is contained in:
yuyongdong 2024-09-02 10:53:14 +08:00
parent e2b1e8e744
commit 26d7ccab70
7 changed files with 22 additions and 13 deletions

View File

@ -5,14 +5,14 @@
<link rel="icon" href="/logo.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Counter Fire</title>
<meta property="og:title" content="Counter Fire" />
<meta property="og:title" content="Pre-Deposit is now live!" />
<meta
property="og:description"
content="Public Beta is set to launch with a bang! Gear up, warriors,CounterFire is heating up."
content="Claim $CEC airdrop to Bitget now with 0 gas fee and grab a share of 1M $CEC rewards!!"
/>
<meta
name="description"
content="Public Beta is set to launch with a bang! Gear up, warriors,CounterFire is heating up."
content="Claim $CEC airdrop to Bitget now with 0 gas fee and grab a share of 1M $CEC rewards!!"
/>
<meta
name="keywords"
@ -27,7 +27,7 @@
/>
<!-- <meta property="og:site_name" content="Counter Fire" /> -->
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:title" content="Counter Fire" />
<meta property="twitter:title" content="Pre-Deposit is now live!" />
<meta
property="twitter:image"
content="https://counterfire.games/images/counter.jpg"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 537 KiB

After

Width:  |  Height:  |  Size: 1001 KiB

View File

@ -228,7 +228,7 @@ const { copied, error, reset, copyToClipboard } = useCopyToClipboard();
const handlHome = () => {
router.push("/");
router.push("/home");
};
function handNavCurent(nav) {
@ -387,7 +387,7 @@ watch(() => [route.path, localWalletStore.address, marketplaceStore.fireAddress]
isCart.value = true
}else if(routerPath[1] == 'cecActivity') {
isHeaderShow.value = false
}else if(routerPath[1] == 'claim') {
}else if(routerPath[1] == 'claim' || routerPath[1] == '') {
loginShowMenu.value = false
} else {
loginShowMenu.value = true

View File

@ -13,6 +13,15 @@ const routes = [
{
path: "/",
name: "index1",
component: ClaimView,
meta: {
title: "claim",
canonical: "https://.counterfire.games",
},
},
{
path: "/home",
name: "home",
component: HomeView,
meta: {
title: "Counter Fire",

View File

@ -128,7 +128,7 @@ export const apiCecInfo = async(address,token) => {
// CEC Claim 领取
export const apiCecClaim = async(address,token) => {
let url = `${API_UAW}/api/cec/claim`
return httpPost(url,address,token)
return httpPost(url,{address: address},token)
}
// 绑定交易所账号

View File

@ -388,8 +388,9 @@ const getCecTotal = async () => {
}
const isBindAccount = () => {
console.log(cecInfo.value.bindUid)
if(cecInfo.value.bindUid) {
cecUserStatus.value = 2
cecUserStatus.value = 3
} else {
cecUserStatus.value = 0
}
@ -475,10 +476,10 @@ const reqGetInfo = async () => {
const cecClaim = async () => {
let res = await new BlockChain().claimAddress({})
console.log(res.address)
// let walletToken = await new BlockChain().token()
// let token = marketplaceStore.fireToken || walletToken
// let res1 = await apiCecClaim(res.address, token)
// console.log(res1)
let walletToken = await new BlockChain().token()
let token = marketplaceStore.fireToken || walletToken
let res1 = await apiCecClaim(res.address, token)
console.log(res1)
}
onMounted(() => {

View File

@ -797,7 +797,6 @@ const mintHero = async () => {
const getDetail = async () => {
let {errcode, errmsg, data} = await nftDetail(props.address, props.tokenid);
// console.log(data)
contractBlankUrl.value = `${import.meta.env.VUE_APP_EXPLORER_URL}/address/${data.nft.contract_address}`;
contractTokenUrl.value = `${import.meta.env.VUE_APP_EXPLORER_URL}/token/${data.nft.contract_address}/instance/${