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