Merge branch 'master' of http://git.kingsome.cn/crypto/cebg-activities
This commit is contained in:
commit
1eca00ef8d
@ -16,6 +16,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { isMobile } from "@/utils/resize";
|
||||||
export default {
|
export default {
|
||||||
name: "Header",
|
name: "Header",
|
||||||
data() {
|
data() {
|
||||||
|
@ -240,4 +240,24 @@ export default {
|
|||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@media (min-width: 1024px) {
|
||||||
|
.title{
|
||||||
|
font-size: 50px;
|
||||||
|
margin-bottom: 121px;
|
||||||
|
}
|
||||||
|
.wallet {
|
||||||
|
height: 4vw;
|
||||||
|
line-height: 4vw;
|
||||||
|
font-size: 30px;
|
||||||
|
}
|
||||||
|
.connect{
|
||||||
|
margin-top: 40px;
|
||||||
|
height: 4vw;
|
||||||
|
line-height: 4vw;
|
||||||
|
font-size: 30px;
|
||||||
|
}
|
||||||
|
.content{
|
||||||
|
padding-top: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
@ -59,7 +59,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="invititaion-code tag-read"
|
class="invititaion-code tag-read"
|
||||||
v-clipboard:copy="userinfo.invite_code"
|
v-clipboard:copy="cp_url"
|
||||||
v-clipboard:success="onCopy"
|
v-clipboard:success="onCopy"
|
||||||
v-clipboard:error="onCopyError"
|
v-clipboard:error="onCopyError"
|
||||||
>
|
>
|
||||||
@ -172,6 +172,7 @@
|
|||||||
import Footer from "../layout/Footer.vue";
|
import Footer from "../layout/Footer.vue";
|
||||||
import Clipboard from "clipboard";
|
import Clipboard from "clipboard";
|
||||||
import { AppModule } from "@/store/modules/app";
|
import { AppModule } from "@/store/modules/app";
|
||||||
|
const CP_URL_BASE = 'https://activity.cebg.games/?code='
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
Footer,
|
Footer,
|
||||||
@ -184,6 +185,7 @@ export default {
|
|||||||
account: '',
|
account: '',
|
||||||
discord: '',
|
discord: '',
|
||||||
twitter: '',
|
twitter: '',
|
||||||
|
cp_url: CP_URL_BASE,
|
||||||
address: '',
|
address: '',
|
||||||
time: {},
|
time: {},
|
||||||
endTime: "2022-11-20 18:00:00",
|
endTime: "2022-11-20 18:00:00",
|
||||||
@ -212,6 +214,7 @@ export default {
|
|||||||
this.userinfo = res.data;
|
this.userinfo = res.data;
|
||||||
this.discord = res.data.discord;
|
this.discord = res.data.discord;
|
||||||
this.twitter = res.data.twitter
|
this.twitter = res.data.twitter
|
||||||
|
this.cp_url = `${CP_URL_BASE}${this.userinfo.invite_code}`
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<iframe
|
<iframe
|
||||||
id="iframe"
|
id="iframe"
|
||||||
src="https://w3w.ai/public/campaign-challenge/1222"
|
:src="frameSrc"
|
||||||
frameborder="0"
|
frameborder="0"
|
||||||
></iframe>
|
></iframe>
|
||||||
</div>
|
</div>
|
||||||
@ -15,12 +15,15 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
//src="https://w3w.ai/public/campaign-challenge/1222"
|
||||||
import {checkStatus} from '@/api/webapi'
|
import {checkStatus} from '@/api/webapi'
|
||||||
import { AppModule } from '@/store/modules/app';
|
import { AppModule } from '@/store/modules/app';
|
||||||
|
import { Message } from 'element-ui';
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
value: "",
|
value: "",
|
||||||
|
frameSrc: "https://nft-mpc-test.lifo.ai/public/campaign-challenge/358"
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@ -30,7 +33,9 @@ export default {
|
|||||||
if (e.data?.type === "w3wCampaignJoinSuccess") {
|
if (e.data?.type === "w3wCampaignJoinSuccess") {
|
||||||
console.log("on get iframe message: ");
|
console.log("on get iframe message: ");
|
||||||
console.log(e.data);
|
console.log(e.data);
|
||||||
this.checkStatus()
|
this.checkStatus(function(msg){
|
||||||
|
Message.warning(msg);
|
||||||
|
})
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
let iframe = document.getElementById("iframe");
|
let iframe = document.getElementById("iframe");
|
||||||
@ -44,16 +49,21 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async checkStatus() {
|
async checkStatus(cb) {
|
||||||
let res = await checkStatus(AppModule.account)
|
let res = await checkStatus(AppModule.account)
|
||||||
if (res.errcode) {
|
if (res.errcode) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (res.status === 4) {
|
if (cb && res.status == 0 ) {
|
||||||
this.$router.push("rankinglist")
|
cb(res.errmsg);
|
||||||
} else if (res.status === 1) {
|
} else {
|
||||||
this.$router.push("recommend")
|
if (res.status === 4) {
|
||||||
|
this.$router.push("rankinglist")
|
||||||
|
} else if (res.status === 1) {
|
||||||
|
this.$router.push("recommend")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
navigator() {
|
navigator() {
|
||||||
this.$router.push("recommend");
|
this.$router.push("recommend");
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="integral"
|
class="integral"
|
||||||
v-clipboard:copy="data.invite_code"
|
v-clipboard:copy="cp_url"
|
||||||
v-clipboard:success="onCopy"
|
v-clipboard:success="onCopy"
|
||||||
v-clipboard:error="onCopyError"
|
v-clipboard:error="onCopyError"
|
||||||
>
|
>
|
||||||
@ -56,12 +56,15 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
var CP_URL_BASE = 'https://activity.cebg.games/?code=';
|
||||||
export default {
|
export default {
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
data: null,
|
data: null,
|
||||||
time: "",
|
time: "",
|
||||||
account: ''
|
account: '',
|
||||||
|
cp_url: CP_URL_BASE
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@ -69,6 +72,7 @@ export default {
|
|||||||
|
|
||||||
this.data = this.$route.params;
|
this.data = this.$route.params;
|
||||||
this.time = this.filterTime(this.data.time);
|
this.time = this.filterTime(this.data.time);
|
||||||
|
this.cp_url = `${CP_URL_BASE}${data.invite_code}`
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
navigator() {
|
navigator() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user