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); throw new Error(result.errmsg);
} }
} }
// claim CEC 登录
async cecLogin () {
const rewardModal = createModal(WalletSelectModel, {});
}
/** /**
* 用于eoa登录后, 添加passport地址 * 用于eoa登录后, 添加passport地址
*/ */

View File

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

View File

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