diff --git a/src/views/mobile/Sinup.vue b/src/views/mobile/Sinup.vue
index d28c364..861eb8f 100644
--- a/src/views/mobile/Sinup.vue
+++ b/src/views/mobile/Sinup.vue
@@ -3,15 +3,11 @@
INFORMATION REQUIRED FOR PARTICIPATION
-
connect
-
connect
-
-
Your contact email address
-
- Email:
-
-
-
Submit
+
@@ -21,11 +17,31 @@ export default {
data() {
return {
value: "",
+ iframe: document.querySelector("#iframe")
};
},
+ mounted() {
+ window.addEventListener("message", (e) => {
+ if (e.data?.type === "w3wCampaignJoinSuccess") {
+ console.log('on get iframe message: ')
+ console.log(e.data);
+ }
+ });
+ },
methods:{
navigator(){
this.$router.push('recommend')
+ },
+ sendAddressToIframe(address) {
+ this.iframe.contentWindow.postMessage(
+ {
+ type: "w3wWalletAddressUpdate",
+ data: {
+ walletAddress: address,
+ },
+ },
+ "*"
+ );
}
}
};
@@ -111,4 +127,8 @@ export default {
background: linear-gradient(165deg, #775437, #f2c082);
border-radius: 40px;
}
+#iframe {
+ width: 100vw;
+ height: 80vh;
+}
\ No newline at end of file