修改vip
This commit is contained in:
parent
d455ea207b
commit
0e60c39202
@ -845,7 +845,8 @@ const isBindVip = () => {
|
||||
if(bindPassportAddress.value) {
|
||||
vipDialogVisible.value = true
|
||||
} else {
|
||||
alert('没有绑定')
|
||||
// alert('没有绑定')
|
||||
bindVipAddress()
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -860,16 +861,21 @@ const getVipDetails = async () => {
|
||||
const getIsBandVip = async () => {
|
||||
let res = await apiVipInfo()
|
||||
bindPassportAddress.value = res.info.bind_passport_address
|
||||
console.log(res,'---------')
|
||||
}
|
||||
|
||||
// 绑定VIP账号
|
||||
const bindVipAddress = async () => {
|
||||
await new BlockChain().appendPassport()
|
||||
const data = {
|
||||
passport_jwt: ''
|
||||
passport_jwt: 'Bearer ' + await new BlockChain().passportToken()
|
||||
}
|
||||
let res = await apiBindPassport(data)
|
||||
console.log(res)
|
||||
if(res.errcode != 0) {
|
||||
message.error(`${res.errmsg}`)
|
||||
} else {
|
||||
dataInfo()
|
||||
}
|
||||
}
|
||||
|
||||
const toStaking = (path) => {
|
||||
@ -893,6 +899,7 @@ const dataInfo = async () => {
|
||||
}
|
||||
|
||||
watch(localWalletStore,() => {
|
||||
console.log(localWalletStore.token,'-------------------------')
|
||||
// console.log('localWalletStore.token',localWalletStore.address,localWalletStore.token)
|
||||
if(!localWalletStore.token) {
|
||||
cecInfo.value = {
|
||||
|
@ -102,6 +102,7 @@ const props = defineProps({
|
||||
required: true,
|
||||
},
|
||||
});
|
||||
|
||||
const bgCorWidth = computed(() => {
|
||||
let nub = toRaw(props.vipInfo.curpoint) / toRaw(props.vipInfo.target) * 100
|
||||
return nub
|
||||
|
@ -112,17 +112,17 @@ const labelList = ref([
|
||||
const isLogout = ref(false);
|
||||
|
||||
const cecInfoData = ref({
|
||||
cecBalance: BigInt("0"),
|
||||
CecStaked: BigInt("0"),
|
||||
CecDisarm: BigInt("0"),
|
||||
CecCollection: BigInt("0"),
|
||||
esCecBalance: BigInt("0"),
|
||||
esCecStaked: BigInt("0"),
|
||||
esCecConversion: BigInt("0"),
|
||||
esCecCollection: BigInt("0"),
|
||||
totalCollection: BigInt("0"),
|
||||
CecClaimable: BigInt("0"),
|
||||
cecClaimAll: BigInt("0"),
|
||||
// cecBalance: BigInt("0"),
|
||||
// CecStaked: BigInt("0"),
|
||||
// CecDisarm: BigInt("0"),
|
||||
// CecCollection: BigInt("0"),
|
||||
// esCecBalance: BigInt("0"),
|
||||
// esCecStaked: BigInt("0"),
|
||||
// esCecConversion: BigInt("0"),
|
||||
// esCecCollection: BigInt("0"),
|
||||
// totalCollection: BigInt("0"),
|
||||
// CecClaimable: BigInt("0"),
|
||||
// cecClaimAll: BigInt("0"),
|
||||
});
|
||||
|
||||
/**
|
||||
@ -249,7 +249,7 @@ const userCecInfo = () => {
|
||||
|
||||
onMounted(() => {
|
||||
if (localWalletStore.address) {
|
||||
userCecInfo();
|
||||
// userCecInfo();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user