diff --git a/src/components/chain/BlockChain.js b/src/components/chain/BlockChain.js index 143e961..1757e78 100644 --- a/src/components/chain/BlockChain.js +++ b/src/components/chain/BlockChain.js @@ -150,7 +150,7 @@ export class BlockChain { } return result.provider } else { - console.log(`select result : ${result.errmsg}`); + // console.log(`select result : ${result.errmsg}`); throw new Error(result.errmsg); } } diff --git a/src/components/common/card.vue b/src/components/common/card.vue index 2c550b4..0d25060 100644 --- a/src/components/common/card.vue +++ b/src/components/common/card.vue @@ -15,7 +15,7 @@
- {{ price }} + {{ tokenAmount }} 图片
@@ -58,7 +58,11 @@ const emit = defineEmits(['renewNft']) import { useRouter } from "vue-router"; const router = useRouter(); const icon = ref('') -const price = ref('-') +const usd = ref('-') +const decimals = ref('') +const amount = ref('') +const currencyName = ref('') +const tokenAmount = ref('') const { proxy } = getCurrentInstance(); const props = defineProps({ nftData: { @@ -73,7 +77,11 @@ const buyDataArr = ref([]) // 确认购买弹窗 const buyNft = async (val) => { props.nftData['icon'] = icon.value - props.nftData['price'] = price.value + props.nftData['tokenAmount'] = tokenAmount.value + props.nftData['amount'] = amount.value + props.nftData['decimals'] = decimals.value + props.nftData['currencyName'] = currencyName.value + props.nftData['usd'] = usd.value buyDataArr.value = [] buyDataArr.value.push(props.nftData) buyDialogVisible.value = true @@ -220,7 +228,11 @@ onMounted(() => { if (props.nftData?.event?.data) { const data = formatPrice(props.nftData?.event?.data) icon.value = data.icon - price.value = data.tokenAmount + tokenAmount.value = data.tokenAmount + usd.value = data.usd + currencyName.value = data.currencyName + amount.value = data.amount + decimals.value = data.decimals } }); diff --git a/src/views/ClaimView.vue b/src/views/ClaimView.vue index 22ad46f..3e46efd 100644 --- a/src/views/ClaimView.vue +++ b/src/views/ClaimView.vue @@ -45,8 +45,8 @@
-
-
+
+
  • @@ -56,7 +56,7 @@ 0 gas
    - Aug 30, 18:00 - Sep 3, 18:00 UTC + Aug 30, 06:00 - Sep 5, 06:00 UTC
    @@ -71,11 +71,11 @@
  • -

    Grab a share of $100,000 $CEC

    +

    Grab a share of 1,000,000 $CEC

  • -
    +
  • @@ -107,7 +107,7 @@ 0 gas
    - Aug 30, 18:00 - Sep 3, 18:00 UTC + Aug 30, 06:00 - Sep 5, 06:00 UTC
    @@ -122,7 +122,7 @@
  • -

    Grab a share of $100,000 $CEC

    +

    Grab a share of 1,000,000 $CEC

  • @@ -158,7 +158,7 @@ 0 gas
    - Aug 30, 18:00 - Sep 3, 18:00 UTC + Aug 30, 06:00 - Sep 5, 06:00 UTC
    @@ -173,7 +173,7 @@
  • -

    Grab a share of $100,000 $CEC

    +

    Grab a share of 1,000,000 $CEC

  • @@ -202,10 +202,10 @@
    - Grab a share of $100,000 $CEC + Grab a share of 1,000,000 $CEC
    - Aug 30, 18:00 - Sep 3, 18:00 UTC + Aug 30, 06:00 - Sep 5, 06:00 UTC
    @@ -1109,6 +1109,7 @@ onMounted(() => { font-family: 'Poppins'; font-weight: bold; font-size: 18px; + margin: 0; } h6 { width: 160px; diff --git a/src/views/DetailView.vue b/src/views/DetailView.vue index d7122d4..07954bf 100644 --- a/src/views/DetailView.vue +++ b/src/views/DetailView.vue @@ -365,9 +365,13 @@ const contractBlankUrl = ref(); const founderBlankUrl = ref(); const contractTokenUrl = ref(); const nftAbilities = ref(); -const icon = ref(""); -const usd = ref(""); const price = ref(""); +const icon = ref('') +const usd = ref('') +const decimals = ref('') +const amount = ref('') +const currencyName = ref('') +const tokenAmount = ref('') const loadingDialogVisible = ref(false); const LOCKER_ADDRESS = ref(import.meta.env.VUE_APP_LOCKER_ADDRESS); const FOUNDER_ADDRESS = ref(import.meta.env.VUE_APP_FOUNDER_ADDRESS); @@ -381,8 +385,12 @@ const cardLogin = async () => { const buyDialogVisible = ref(false); const buyDataArr = ref([]); const buyNow = async () => { - detailData.value["icon"] = icon.value; - detailData.value["tokenAmount"] = price.value; + detailData.value['icon'] = icon.value + detailData.value['tokenAmount'] = tokenAmount.value + detailData.value['amount'] = amount.value + detailData.value['decimals'] = decimals.value + detailData.value['currencyName'] = currencyName.value + detailData.value['usd'] = usd.value buyDataArr.value = []; buyDataArr.value.push(detailData.value); buyDialogVisible.value = true; @@ -809,6 +817,10 @@ const getDetail = async () => { icon.value = _data.icon; usd.value = _data.usd; price.value = _data.tokenAmount; + tokenAmount.value = _data.tokenAmount + currencyName.value = _data.currencyName + amount.value = _data.amount + decimals.value = _data.decimals } }; onMounted(() => {