调整盲盒

This commit is contained in:
myf 2022-06-22 09:46:02 +08:00
parent 6aefb4c721
commit 661b9f99b1
6 changed files with 2 additions and 26 deletions

BIN
build.zip

Binary file not shown.

View File

@ -1,7 +1,7 @@
import React, { useState, useEffect } from 'react' import React, { useState, useEffect } from 'react'
import styled from 'styled-components' import styled from 'styled-components'
import { useTranslation } from 'contexts/Localization' import { useTranslation } from 'contexts/Localization'
import { Flex, Button, Text, Image } from '@pancakeswap/uikit' import { Flex } from '@pancakeswap/uikit'
import { getContract } from 'services/referral' import { getContract } from 'services/referral'
import FlexCom from './FlexCom' import FlexCom from './FlexCom'

View File

@ -97,9 +97,6 @@ const TdFlex = styled(Flex)`
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
` `
const TdImage = styled(Image)`
margin-right: 20px;
`
const TdBtnFlex = styled(Flex)` const TdBtnFlex = styled(Flex)`
width: 20%; width: 20%;
flex-direction: column; flex-direction: column;

View File

@ -39,15 +39,6 @@ export const useApproveHcc = (tokenContract: Contract) => {
return { onApprove: handleApprove } return { onApprove: handleApprove }
} }
// 购买
// export const useGetPurchase = () => {
// const data = async (id, params) => {
// const result = await getOfficialPurchase(id, params)
// console.log(result)
// return result
// }
// return data
// }
// 交易记录 // 交易记录
export const useGetPurchaseRecord = () => { export const useGetPurchaseRecord = () => {
@ -68,7 +59,6 @@ export const useBuyTransaction = () => {
const { num, hccPrice, otherPaymentPrice, timestamp, code, type, sign } = result const { num, hccPrice, otherPaymentPrice, timestamp, code, type, sign } = result
const mintParams = [address, num, hccPrice, otherPaymentPrice, timestamp, code, type, sign] const mintParams = [address, num, hccPrice, otherPaymentPrice, timestamp, code, type, sign]
const res = await blindBox.mint(...mintParams) const res = await blindBox.mint(...mintParams)
console.log(res)
return res return res
} }
return transaction return transaction

View File

@ -285,9 +285,7 @@ const BlindBox: React.FC = () => {
setBuyNum(1) setBuyNum(1)
} }
const getTime = (date) => { const getTime = (date) => {
const date1 = dayjs() const time = dayjs(date).diff(dayjs())
const date2 = dayjs(date)
const time = date2.diff(date1)
return time return time
} }

View File

@ -12,15 +12,6 @@ export const useGetSelfPage = () => {
return data return data
} }
// export const useGetNftDetail = () => {
// const data = async (token, params) => {
// const result = await getNftDetail(token, params)
// console.log(result)
// return result
// }
// return data
// }
export const useGetNftDetails = () => { export const useGetNftDetails = () => {
const data = async (token, params) => { const data = async (token, params) => {
const result = await getNftDetails(token, params) const result = await getNftDetails(token, params)