修改时间

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

@ -10,3 +10,5 @@ VITE_PASSPORT_PUBLISHABLE_KEY=pk_imapik-test-1E-detBXtG7U$5961WuL
VITE_PASSPORT_CLIENT_ID=gYQrjtct7CN4UVwDG2sb8yACfYRo3xQJ VITE_PASSPORT_CLIENT_ID=gYQrjtct7CN4UVwDG2sb8yACfYRo3xQJ
VITE_PRODUCTION=sandbox 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_CLAIMWL_ADDRESS='0xc7de4C8f802e29B21C21379eD3190Cc0c36C0c28'
VITE_PASSPORT_PUBLISHABLE_KEY=pk_imapik-tU10buLqoyLZ0o54rcub VITE_PASSPORT_PUBLISHABLE_KEY=pk_imapik-tU10buLqoyLZ0o54rcub
VITE_PASSPORT_CLIENT_ID=tTB5eEedqDOHPHMI41sRDGmqAQwus9oE VITE_PASSPORT_CLIENT_ID=tTB5eEedqDOHPHMI41sRDGmqAQwus9oE
VITE_PRODUCTION=sandbox VITE_PRODUCTION=production
VITE_RPC_API='https://rpc.immutable.com/' 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

@ -10,3 +10,5 @@ VITE_PASSPORT_PUBLISHABLE_KEY=pk_imapik-test-1E-detBXtG7U$5961WuL
VITE_PASSPORT_CLIENT_ID=gYQrjtct7CN4UVwDG2sb8yACfYRo3xQJ VITE_PASSPORT_CLIENT_ID=gYQrjtct7CN4UVwDG2sb8yACfYRo3xQJ
VITE_PRODUCTION=sandbox 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>
<div class="tow-time-title">Countdown</div> <div class="tow-time-title">Countdown</div>
<div class="tow-time-event"> <div class="tow-time-event">
<span>{{ days2 }}D</span>
<span>{{ hours2 }}H</span> <span>{{ hours2 }}H</span>
<span>{{ minutes2 }}M</span> <span>{{ minutes2 }}M</span>
<span>{{ senconds2 }}S</span> <span>{{ senconds2 }}S</span>
@ -665,7 +666,7 @@
</li> </li>
</div> </div>
<div class="lmmutascan"> <div class="lmmutascan">
<a :href="'https://immutascan.io/'" target="_blank"> <a :href="toExplorerApi" target="_blank">
<span>lmmutascan</span> <span>lmmutascan</span>
<img src="./../assets/home/Links web icon.png" alt /> <img src="./../assets/home/Links web icon.png" alt />
</a> </a>
@ -878,9 +879,9 @@ const openNft = ref(1719828000000)
// //
const starTimer = () => { const starTimer = () => {
let now = new Date().getTime(); let now = new Date().getTime();
let str = 1719397500000; // 24 let str = 1719568800000; // 24
let bar = 1719397500000; // 4 let bar = 1719568800000; // 4
let towBar = 1725197560000; // 4 let towBar = 1719583200000; // 4
let end = 1719604800000; // let end = 1719604800000; //
let strTime = (str - now) / 1000; // - let strTime = (str - now) / 1000; // -
let begTime = (bar - now) / 1000; // - let begTime = (bar - now) / 1000; // -
@ -1050,6 +1051,7 @@ const increase = () => {
const openStatus = ref(0); const openStatus = ref(0);
const openLoading = ref(false); const openLoading = ref(false);
// mint // mint
const toExplorerApi = ref()
const mintClaim = async () => { const mintClaim = async () => {
// 1mint // 1mint
if (mintTotal.value > 0) { if (mintTotal.value > 0) {
@ -1081,7 +1083,7 @@ const mintClaim = async () => {
web3, web3,
); );
if (claimNft) { if (claimNft) {
console.log(claimNft,'---------------------------------------------------------') toExplorerApi.value = `${import.meta.env.VITE_HX_API}${claimNft.transactionHash}`
isOpenClaim.value = 3; isOpenClaim.value = 3;
openStatus.value = 2; openStatus.value = 2;
mintInit() mintInit()
@ -1143,7 +1145,7 @@ const getMyNftList = async () => {
cursor: '', cursor: '',
search_name: '' 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 nftList.value = res.data.rows
// console.log(nftList.value) // console.log(nftList.value)
} }
@ -1160,8 +1162,9 @@ const stopTimeChange = (e) => {
const toTwitter = () => { const toTwitter = () => {
const url = 'https://twitter.com/intent/tweet?text='; 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 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 imageUrl = encodeURIComponent(`https://opensea.io/assets/ethereum/0xec23679653337d4c6390d0eeba682246a6067777/`);
const params = `${hashtags}&url=${imageUrl}`; // const params = `${hashtags}&url=${imageUrl}`;
const params = `${hashtags}`;
window.open(`${url}${params}`, '_blank'); window.open(`${url}${params}`, '_blank');
} }
@ -2072,24 +2075,25 @@ onMounted(() => {
.tow-time-event { .tow-time-event {
margin: 0 auto; margin: 0 auto;
margin-top: 10px; margin-top: 10px;
width: 289px; // width: 380px;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
span { span {
display: inline-block; display: inline-block;
width: 80px; width: 100px;
position: relative; position: relative;
font-weight: 600; font-weight: 600;
font-size: 40px; font-size: 40px;
font-family: "Poppins"; font-family: "Poppins";
text-align: center;
&::after { &::after {
display: block; display: block;
content: ":"; content: ":";
/* 定位 */ /* 定位 */
position: absolute; position: absolute;
top: 47%; top: 47%;
left: -20%; left: -20px;
transform: translateY(-50%); transform: translateY(-50%);
} }
&:nth-child(1) { &:nth-child(1) {