修改时间

This commit is contained in:
yuyongdong 2024-06-27 21:07:43 +08:00
parent 9029b39ddb
commit 4e8a87051e
4 changed files with 25 additions and 15 deletions

View File

@ -9,4 +9,6 @@ VITE_CLAIMWL_ADDRESS='0xc11A64Cc2Ec7aEFbd5E25a37f1d9216f3f8CF11a'
VITE_PASSPORT_PUBLISHABLE_KEY=pk_imapik-test-1E-detBXtG7U$5961WuL
VITE_PASSPORT_CLIENT_ID=gYQrjtct7CN4UVwDG2sb8yACfYRo3xQJ
VITE_PRODUCTION=sandbox
VITE_RPC_API='https://rpc.testnet.immutable.com/'
VITE_RPC_API='https://rpc.testnet.immutable.com/'
VITE_HX_API='https://explorer.testnet.immutable.com/tx/'
VITE_MKT_API='https://market-test.kingsome.cn'

View File

@ -8,5 +8,7 @@ VITE_CFNFT_ADDRESS='0x3A85cA6615953c683826FBe54fA5e2a770ee8bA2'
VITE_CLAIMWL_ADDRESS='0xc7de4C8f802e29B21C21379eD3190Cc0c36C0c28'
VITE_PASSPORT_PUBLISHABLE_KEY=pk_imapik-tU10buLqoyLZ0o54rcub
VITE_PASSPORT_CLIENT_ID=tTB5eEedqDOHPHMI41sRDGmqAQwus9oE
VITE_PRODUCTION=sandbox
VITE_RPC_API='https://rpc.immutable.com/'
VITE_PRODUCTION=production
VITE_RPC_API='https://rpc.immutable.com/'
VITE_HX_API='https://explorer.immutable.com/tx/'
VITE_MKT_API='https://market-api.counterfire.games'

View File

@ -9,4 +9,6 @@ VITE_CLAIMWL_ADDRESS='0xc11A64Cc2Ec7aEFbd5E25a37f1d9216f3f8CF11a'
VITE_PASSPORT_PUBLISHABLE_KEY=pk_imapik-test-1E-detBXtG7U$5961WuL
VITE_PASSPORT_CLIENT_ID=gYQrjtct7CN4UVwDG2sb8yACfYRo3xQJ
VITE_PRODUCTION=sandbox
VITE_RPC_API='https://rpc.testnet.immutable.com/'
VITE_RPC_API='https://rpc.testnet.immutable.com/'
VITE_HX_API='https://explorer.testnet.immutable.com/tx/'
VITE_MKT_API='https://market-test.kingsome.cn'

View File

@ -389,6 +389,7 @@
</div>
<div class="tow-time-title">Countdown</div>
<div class="tow-time-event">
<span>{{ days2 }}D</span>
<span>{{ hours2 }}H</span>
<span>{{ minutes2 }}M</span>
<span>{{ senconds2 }}S</span>
@ -665,7 +666,7 @@
</li>
</div>
<div class="lmmutascan">
<a :href="'https://immutascan.io/'" target="_blank">
<a :href="toExplorerApi" target="_blank">
<span>lmmutascan</span>
<img src="./../assets/home/Links web icon.png" alt />
</a>
@ -878,9 +879,9 @@ const openNft = ref(1719828000000)
//
const starTimer = () => {
let now = new Date().getTime();
let str = 1719397500000; // 24
let bar = 1719397500000; // 4
let towBar = 1725197560000; // 4
let str = 1719568800000; // 24
let bar = 1719568800000; // 4
let towBar = 1719583200000; // 4
let end = 1719604800000; //
let strTime = (str - now) / 1000; // -
let begTime = (bar - now) / 1000; // -
@ -1050,6 +1051,7 @@ const increase = () => {
const openStatus = ref(0);
const openLoading = ref(false);
// mint
const toExplorerApi = ref()
const mintClaim = async () => {
// 1mint
if (mintTotal.value > 0) {
@ -1081,7 +1083,7 @@ const mintClaim = async () => {
web3,
);
if (claimNft) {
console.log(claimNft,'---------------------------------------------------------')
toExplorerApi.value = `${import.meta.env.VITE_HX_API}${claimNft.transactionHash}`
isOpenClaim.value = 3;
openStatus.value = 2;
mintInit()
@ -1143,7 +1145,7 @@ const getMyNftList = async () => {
cursor: '',
search_name: ''
}
let res = await axios.get(`https://market-test.kingsome.cn/api/asset/${import.meta.env.VITE_NET_ID}/${getAddress.value}?type=0&page_size=100&cursor=&search_name=`)
let res = await axios.get(`${import.meta.env.VITE_MKT_API}/api/asset/${import.meta.env.VITE_NET_ID}/${getAddress.value}?type=0&page_size=100&cursor=&search_name=`)
nftList.value = res.data.rows
// console.log(nftList.value)
}
@ -1160,8 +1162,9 @@ const stopTimeChange = (e) => {
const toTwitter = () => {
const url = 'https://twitter.com/intent/tweet?text=';
const hashtags = encodeURIComponent("I have just minted my Genesis Box for @playCounterFire! Eagerly starting the play2earn season, excited for my hero's debut in this thrilling quest!");
const imageUrl = encodeURIComponent(`https://opensea.io/assets/ethereum/0xec23679653337d4c6390d0eeba682246a6067777/`);
const params = `${hashtags}&url=${imageUrl}`;
// const imageUrl = encodeURIComponent(`https://opensea.io/assets/ethereum/0xec23679653337d4c6390d0eeba682246a6067777/`);
// const params = `${hashtags}&url=${imageUrl}`;
const params = `${hashtags}`;
window.open(`${url}${params}`, '_blank');
}
@ -2072,24 +2075,25 @@ onMounted(() => {
.tow-time-event {
margin: 0 auto;
margin-top: 10px;
width: 289px;
// width: 380px;
display: flex;
align-items: center;
justify-content: space-between;
span {
display: inline-block;
width: 80px;
width: 100px;
position: relative;
font-weight: 600;
font-size: 40px;
font-family: "Poppins";
text-align: center;
&::after {
display: block;
content: ":";
/* 定位 */
position: absolute;
top: 47%;
left: -20%;
left: -20px;
transform: translateY(-50%);
}
&:nth-child(1) {