diff --git a/.env.production b/.env.production index b0ac96a..75b0e0d 100644 --- a/.env.production +++ b/.env.production @@ -3,15 +3,15 @@ VUE_APP_BASE_API2='https://invitation.counterfire.games' //VUE_APP_BASE_API2='http://192.168.100.83:3000/' VUE_APP_GPAL_API='https://game2006api.cebggame.com/' # VUE_APP_PASSPORT_PUBLISHABLE_KEY=pk_imapik-test-8c2FAlWxWAoRITk1v9rH -VUE_APP_PASSPORT_PUBLISHABLE_KEY=pk_imapik-test-eRr-kyOKaZ0jIdrvrPCn -VUE_APP_PASSPORT_REDIRECT_URI=http://localhost:4000/marketplace -VUE_APP_PASSPORT_LOGOUT_URI=http://localhost:4000/ -VUE_APP_PASSPORT_CLIENT_ID=eTmUah69p7ZdRhRYzBta6lZRKXXeXDYj +VUE_APP_PASSPORT_PUBLISHABLE_KEY=pk_imapik-tU10buLqoyLZ0o54rcub +VUE_APP_PASSPORT_REDIRECT_URI=https://www.counterfire.games +VUE_APP_PASSPORT_LOGOUT_URI=https://www.counterfire.games +VUE_APP_PASSPORT_CLIENT_ID=tTB5eEedqDOHPHMI41sRDGmqAQwus9oE # VUE_APP_PASSPORT_CLIENT_ID=0FNfXxQywm7wjdbyLTDzWt4txc53yRrT VUE_APP_PASSPORT_MARKET_ADDRESS=0x7d117aA8BD6D31c4fa91722f246388f38ab1942c -VUE_APP_MKT_API='https://market-test.kingsome.cn' +VUE_APP_MKT_API='https://market-api.counterfire.games' VUE_APP_NET_ID='13371' -VUE_APP_MARKET_CURRENCY='0xFd42bfb03212dA7e1A4608a44d7658641D99CF34' +VUE_APP_MARKET_CURRENCY='0x52A6c53869Ce09a731CD772f245b97A4401d3348' VUE_APP_MAKEFEE_ADDRESS='0x50A8e60041A206AcaA5F844a1104896224be6F39' VUE_APP_LOCKER_ADDRESS='0x2034e51e1a24f8b488610aBBDCc74F3e0cA833df' VUE_APP_EXPLORER_URL='https://explorer.immutable.com/address/' diff --git a/.env.test b/.env.test new file mode 100644 index 0000000..8dc0e08 --- /dev/null +++ b/.env.test @@ -0,0 +1,18 @@ +VUE_APP_BASE_API='https://market.cebg.games' +VUE_APP_BASE_API2='https://invitation.counterfire.games' +//VUE_APP_BASE_API2='http://192.168.100.83:3000/' +VUE_APP_GPAL_API='https://game2006api.cebggame.com/' +# VUE_APP_PASSPORT_PUBLISHABLE_KEY=pk_imapik-test-8c2FAlWxWAoRITk1v9rH +VUE_APP_PASSPORT_PUBLISHABLE_KEY=pk_imapik-tU10buLqoyLZ0o54rcub +VUE_APP_PASSPORT_REDIRECT_URI=https://zrguoqth-wwwtest.counterfire.games +VUE_APP_PASSPORT_LOGOUT_URI=https://zrguoqth-wwwtest.counterfire.games +VUE_APP_PASSPORT_CLIENT_ID=tTB5eEedqDOHPHMI41sRDGmqAQwus9oE +# VUE_APP_PASSPORT_CLIENT_ID=0FNfXxQywm7wjdbyLTDzWt4txc53yRrT +VUE_APP_PASSPORT_MARKET_ADDRESS=0x7d117aA8BD6D31c4fa91722f246388f38ab1942c +VUE_APP_MKT_API='https://market-api.counterfire.games' +VUE_APP_NET_ID='13371' +VUE_APP_MARKET_CURRENCY='0x52A6c53869Ce09a731CD772f245b97A4401d3348' +VUE_APP_MAKEFEE_ADDRESS='0x50A8e60041A206AcaA5F844a1104896224be6F39' +VUE_APP_LOCKER_ADDRESS='0x2034e51e1a24f8b488610aBBDCc74F3e0cA833df' +VUE_APP_EXPLORER_URL='https://explorer.immutable.com/address/' +VUE_APP_PRODUCTION=production \ No newline at end of file diff --git a/.evn.test b/.evn.test deleted file mode 100644 index 0f8f5fc..0000000 --- a/.evn.test +++ /dev/null @@ -1 +0,0 @@ -//VITE_API_BASE_URL=http://localhost:5000 \ No newline at end of file diff --git a/src/assets/img/marketplace/BG01.jpg b/src/assets/img/marketplace/BG01.jpg deleted file mode 100644 index 0c3722b..0000000 Binary files a/src/assets/img/marketplace/BG01.jpg and /dev/null differ diff --git a/src/assets/img/marketplace/BG01.png b/src/assets/img/marketplace/BG01.png new file mode 100644 index 0000000..44cceba Binary files /dev/null and b/src/assets/img/marketplace/BG01.png differ diff --git a/src/components/Dialogs/buyDialog.vue b/src/components/Dialogs/buyDialog.vue index 90cbd50..4d699a9 100644 --- a/src/components/Dialogs/buyDialog.vue +++ b/src/components/Dialogs/buyDialog.vue @@ -181,9 +181,8 @@ onMounted(() => { .buy-dialog-content { margin-top: 40px; .content { - max-height: 45vh; + max-height: 450px; overflow-y: auto; - .content-nfts { width: 1017px; margin: 0 auto; @@ -233,8 +232,22 @@ onMounted(() => { } } } + &::-webkit-scrollbar { + width: 5px; + } + &::-webkit-scrollbar-track { + background: #171220; + border-radius: 2px; + } + &::-webkit-scrollbar-corner { + display: block; + } + &::-webkit-scrollbar-thumb { + height: 15px; + background: #9950fd; + border-radius: 10px; + } } - } .btm { display: flex; diff --git a/src/components/assets/collectibles.vue b/src/components/assets/collectibles.vue index 8ee9eca..cb0a46b 100644 --- a/src/components/assets/collectibles.vue +++ b/src/components/assets/collectibles.vue @@ -14,7 +14,7 @@
  • - +
  • @@ -60,6 +60,15 @@ const statusChild = (val) => { getMyAssets() } +// 更新数据 +const renewMyNft = async() => { + let timer = setTimeout(() => { + // getMyAssets() + location.reload() + clearTimeout(timer); + }, 2000); +} + const next_cursor = ref() const getMyAssets = async () => { // nftList.value = [] @@ -71,14 +80,11 @@ const getMyAssets = async () => { search_name: overviewValue.value } if(myADdress) { - console.log(data) try { let res = await apiAssetsState(myADdress, data) - nftList.value = [...res.rows, ...nftList.value] - console.log(nftList.value) + nftList.value = Array.from(new Set([...res.rows, ...nftList.value].map(JSON.stringify))).map(JSON.parse); marketplaceStore.cursorObj = res.page next_cursor.value = res.page.next_cursor - console.log('next_cursor.value', next_cursor.value) } catch(e) { console.log(e) } diff --git a/src/components/assets/trading.vue b/src/components/assets/trading.vue index 128cf42..b69d96d 100644 --- a/src/components/assets/trading.vue +++ b/src/components/assets/trading.vue @@ -15,18 +15,21 @@