Merge branch 'new-CounterFire' of http://git.kingsome.cn/huangjinming/CounterFireGames into new-CounterFire
This commit is contained in:
commit
c0d89bd21f
@ -183,7 +183,7 @@ const sellConfirm = async () => {
|
||||
contractAddress: props.sellDataArr.contract_address,
|
||||
tokenId: props.sellDataArr.token_id,
|
||||
currencyAddress: currency,
|
||||
currencyAmount: ethers.utils.parseEther(totalPrice(priceValue.value)).toString(),
|
||||
currencyAmount: ethers.utils.parseEther(priceValue.value).toString(),
|
||||
orderExpiry: orderData,
|
||||
};
|
||||
console.log(data)
|
||||
|
@ -18,7 +18,7 @@
|
||||
{{ nftPrice }}
|
||||
<!-- {{cardPrice(nftData)}} -->
|
||||
</span>
|
||||
<img src="@/assets/img/marketplace/ETHicon.png" alt="图片">
|
||||
<img :src="icon" alt="">
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="nftData.type == 0 && nftData.on_sale == 0" class="enabled" @click="lockToGame('redeem')">
|
||||
@ -51,6 +51,7 @@ import {createModal} from "@/utils/model.util";
|
||||
import ConfirmDialog from "@/components/Dialogs/confirmDialog.vue"
|
||||
import { timeFormat } from "@/configs/priceCalculate"
|
||||
const emit = defineEmits(['renewMyNft'])
|
||||
import {formatPrice} from "@/components/chain/utils"
|
||||
|
||||
import { useRouter } from "vue-router";
|
||||
import { BlockChain } from "@/components/chain/BlockChain"
|
||||
@ -159,14 +160,17 @@ const lockToGameConfirm = async () => {
|
||||
|
||||
|
||||
// 获取出售中价格价格
|
||||
const nftPrice = ref()
|
||||
const nftPrice = ref('-')
|
||||
const icon = ref('')
|
||||
const cardPrice = async (val) => {
|
||||
let nftData = await getNftData(toRaw(val))
|
||||
if(nftData.event) {
|
||||
nftPrice.value = priceCalculated(nftData.event.data.buy[0].amount)
|
||||
} else {
|
||||
return false
|
||||
console.log(nftData)
|
||||
if (nftData?.event?.data) {
|
||||
const data = formatPrice(nftData?.event?.data)
|
||||
icon.value = data.icon
|
||||
nftPrice.value = data.tokenAmount
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user