cec claim

This commit is contained in:
yuyongdong 2024-08-20 17:12:00 +08:00
parent 7d58ed97b2
commit 3a38f864f6
3 changed files with 14 additions and 3 deletions

View File

@ -122,6 +122,12 @@ export class BlockChain {
throw new Error(result.errmsg);
}
}
// claim CEC 登录
async cecLogin () {
const rewardModal = createModal(WalletSelectModel, {});
}
/**
* 用于eoa登录后, 添加passport地址
*/

View File

@ -336,8 +336,9 @@ watch(() => route.path,(newPath, oldPath) => {
}else if(routerPath[1] == 'cecActivity') {
isHeaderShow.value = false
}else if(routerPath[1] == 'claim') {
isHeaderShow.value = false
loginShowMenu.value = false
} else {
loginShowMenu.value = true
isHeaderShow.value = true
isCart.value = false
}

View File

@ -33,8 +33,12 @@
import { ref, toRefs, toRaw, onMounted, computed, inject} from "vue"
const message = inject('$message')
const connectLogin = () => {
console.log('登录')
import { BlockChain } from "@/components/chain/BlockChain"
const connectLogin = async () => {
let res = await new BlockChain().cecLogin()
console.log(res)
}
</script>