cec claim
This commit is contained in:
parent
7d58ed97b2
commit
3a38f864f6
@ -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地址
|
||||||
*/
|
*/
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user