修复loading背景颜色,修改贡献值样式
This commit is contained in:
parent
1a8f90a5e5
commit
7a4d4f4b1b
@ -44,8 +44,8 @@ emit('handleClose')
|
|||||||
// top: 50%;
|
// top: 50%;
|
||||||
.ant-modal-content {
|
.ant-modal-content {
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
background: rgba(0,0,0,0);
|
background: #1a1821;
|
||||||
border: 0px solid #B966FF;
|
border: 1px solid #B966FF;
|
||||||
// box-shadow: 0px 15px 28px 3px rgba(22,22,22,0.13);
|
// box-shadow: 0px 15px 28px 3px rgba(22,22,22,0.13);
|
||||||
border-radius: 100px;
|
border-radius: 100px;
|
||||||
.ant-modal-body {
|
.ant-modal-body {
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
<div class="assets-user-name">
|
<div class="assets-user-name">
|
||||||
<div>{{ localWalletStore.showAddress ? localWalletStore.showAddress : 'User Address' }}</div>
|
<div>{{ localWalletStore.showAddress ? localWalletStore.showAddress : 'User Address' }}</div>
|
||||||
<div class="total">
|
<div class="total">
|
||||||
<p>Total Contribution Credits: {{ contributionPointTotal }}</p>
|
<p>Total Contribution Credits: <span>{{ contributionPointTotal }}</span></p>
|
||||||
<img src="@/assets/img/marketplace/totalContribution.png" alt="">
|
<img src="@/assets/img/marketplace/totalContribution.png" alt="">
|
||||||
</div>
|
</div>
|
||||||
<div class="day">
|
<div class="day">
|
||||||
@ -440,12 +440,19 @@ onMounted(() => {
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
|
p {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
span {
|
||||||
|
color: #00DEFF;
|
||||||
|
font-size: 26px;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.total {
|
.total {
|
||||||
font-family: 'Poppins';
|
font-family: 'Poppins';
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
color: #00DEFF;
|
|
||||||
img {
|
img {
|
||||||
width: 27px;
|
width: 27px;
|
||||||
height: 23px;
|
height: 23px;
|
||||||
@ -462,13 +469,11 @@ onMounted(() => {
|
|||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
}
|
}
|
||||||
.icon {
|
.icon {
|
||||||
width: 30px;
|
width: 27px;
|
||||||
height: 30px;
|
height: 27px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
span {
|
|
||||||
color: #00DEFF;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -228,7 +228,7 @@ onUnmounted(() => {
|
|||||||
color: #fff;
|
color: #fff;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
font-size: 28px;
|
font-size: 28px;
|
||||||
z-index: 99;
|
z-index: 1;
|
||||||
div {
|
div {
|
||||||
width: 120px;
|
width: 120px;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
|
@ -237,17 +237,20 @@ const unStake = async (data) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
const heroLock = async (data) => {
|
const heroLock = async (data) => {
|
||||||
|
loadingDialogVisible.value = true
|
||||||
try {
|
try {
|
||||||
const bc = new BlockChain()
|
const bc = new BlockChain()
|
||||||
let res = await bc.locker.unlockOrMintGameNft(toRaw(data).contract_address,[toRaw(data).token_id])
|
let res = await bc.locker.unlockOrMintGameNft(toRaw(data).contract_address,[toRaw(data).token_id])
|
||||||
if(res) {
|
if(res) {
|
||||||
let timer = setTimeout(() => {
|
let timer = setTimeout(() => {
|
||||||
message.success('Unstake success.')
|
message.success('Unstake success.')
|
||||||
|
loadingDialogVisible.value = false
|
||||||
emit('renewMyNft')
|
emit('renewMyNft')
|
||||||
clearTimeout(timer);
|
clearTimeout(timer);
|
||||||
}, 2000);
|
}, 2000);
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
loadingDialogVisible.value = false
|
||||||
if(e.message.indexOf('rejected') > -1) {
|
if(e.message.indexOf('rejected') > -1) {
|
||||||
message.error('User rejected the request')
|
message.error('User rejected the request')
|
||||||
} else if (e.message.indexOf('select wallet') > -1) {
|
} else if (e.message.indexOf('select wallet') > -1) {
|
||||||
@ -258,19 +261,20 @@ const heroLock = async (data) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
const founderLock = async (data) => {
|
const founderLock = async (data) => {
|
||||||
console.log(data)
|
loadingDialogVisible.value = true
|
||||||
try {
|
try {
|
||||||
const bc = new BlockChain()
|
const bc = new BlockChain()
|
||||||
let res = await bc.locker.unlockMain(toRaw(data).contract_address,[toRaw(data).token_id])
|
let res = await bc.locker.unlockMain(toRaw(data).contract_address,[toRaw(data).token_id])
|
||||||
if(res) {
|
if(res) {
|
||||||
let timer = setTimeout(() => {
|
let timer = setTimeout(() => {
|
||||||
message.success('Unstake success.')
|
message.success('Unstake success.')
|
||||||
|
loadingDialogVisible.value = false
|
||||||
emit('renewMyNft')
|
emit('renewMyNft')
|
||||||
clearTimeout(timer);
|
clearTimeout(timer);
|
||||||
}, 2000);
|
}, 2000);
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e)
|
loadingDialogVisible.value = false
|
||||||
if(e.message.indexOf('rejected') > -1) {
|
if(e.message.indexOf('rejected') > -1) {
|
||||||
message.error('User rejected the request')
|
message.error('User rejected the request')
|
||||||
} else if (e.message.indexOf('select wallet') > -1) {
|
} else if (e.message.indexOf('select wallet') > -1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user