移除alert方法
This commit is contained in:
parent
1a43dfd6f5
commit
f815364ec7
@ -80,7 +80,6 @@ export default {
|
|||||||
},
|
},
|
||||||
metaMask() {
|
metaMask() {
|
||||||
this.chain.selectWalletAndLogin(1).then(this.logSuccess.bind(window));
|
this.chain.selectWalletAndLogin(1).then(this.logSuccess.bind(window));
|
||||||
this.$router.push('/sinup')
|
|
||||||
},
|
},
|
||||||
walletConnect() {
|
walletConnect() {
|
||||||
this.chain.selectWalletAndLogin(2).then(this.logSuccess.bind(window));
|
this.chain.selectWalletAndLogin(2).then(this.logSuccess.bind(window));
|
||||||
|
@ -25,14 +25,14 @@ const routes = [
|
|||||||
path: "/signup",
|
path: "/signup",
|
||||||
name: "Signup",
|
name: "Signup",
|
||||||
component: () =>
|
component: () =>
|
||||||
import(/* webpackChunkName: "Sinup" */ "../views/mobile/Signup.vue"),
|
import(/* webpackChunkName: "singup" */ "../views/mobile/Signup.vue"),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/recommend",
|
path: "/recommend",
|
||||||
name: "Recommend",
|
name: "Recommend",
|
||||||
component: () =>
|
component: () =>
|
||||||
import(
|
import(
|
||||||
/* webpackChunkName: "Recommend" */ "../views/mobile/Recommend.vue"
|
/* webpackChunkName: "recommend" */ "../views/mobile/Recommend.vue"
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -40,7 +40,7 @@ const routes = [
|
|||||||
name: "Success",
|
name: "Success",
|
||||||
component: () =>
|
component: () =>
|
||||||
import(
|
import(
|
||||||
/* webpackChunkName: "Success" */ "../views/mobile/Success.vue"
|
/* webpackChunkName: "success" */ "../views/mobile/Success.vue"
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -48,7 +48,7 @@ const routes = [
|
|||||||
name: "RankingList",
|
name: "RankingList",
|
||||||
component: () =>
|
component: () =>
|
||||||
import(
|
import(
|
||||||
/* webpackChunkName: "about" */ "../views/mobile/RankingList.vue"
|
/* webpackChunkName: "rankinglist" */ "../views/mobile/RankingList.vue"
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -56,7 +56,7 @@ const routes = [
|
|||||||
name: "ListDetails",
|
name: "ListDetails",
|
||||||
component: () =>
|
component: () =>
|
||||||
import(
|
import(
|
||||||
/* webpackChunkName: "about" */ "../views/mobile/ListDetails.vue"
|
/* webpackChunkName: "listdetails" */ "../views/mobile/ListDetails.vue"
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
@ -84,7 +84,7 @@ export default {
|
|||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
alert(err.response.data.msg);
|
Message.error(err.response.data.msg);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -104,7 +104,7 @@ export default {
|
|||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
alert(err.response.data.msg);
|
Message.error(err.response.data.msg);
|
||||||
});
|
});
|
||||||
this.$axios
|
this.$axios
|
||||||
.post(process.env.VUE_APP_API_HOST + "/aa1/leaderboard_me", {
|
.post(process.env.VUE_APP_API_HOST + "/aa1/leaderboard_me", {
|
||||||
@ -116,7 +116,7 @@ export default {
|
|||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
alert(err.response.data.msg);
|
Message.error(err.response.data.msg);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -216,7 +216,7 @@ export default {
|
|||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
alert(err.response.data.msg);
|
Message.error(err.response.data.msg);
|
||||||
});
|
});
|
||||||
this.$axios
|
this.$axios
|
||||||
.post(process.env.VUE_APP_API_HOST + "/aa1/list_event_log", {
|
.post(process.env.VUE_APP_API_HOST + "/aa1/list_event_log", {
|
||||||
@ -228,7 +228,7 @@ export default {
|
|||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
alert(err.response.data.msg);
|
Message.error(err.response.data.msg);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { Message } from 'element-ui';
|
||||||
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
@ -41,7 +43,7 @@ export default {
|
|||||||
.then((res) => {
|
.then((res) => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
if (res.data.errcode == -3) {
|
if (res.data.errcode == -3) {
|
||||||
alert('alreay joined')
|
Message.info('You had already joined')
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console.log("success", res.data);
|
console.log("success", res.data);
|
||||||
@ -50,7 +52,7 @@ export default {
|
|||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
alert(err.response.data.msg);
|
Message.error(err.response.data.msg);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -29,7 +29,6 @@ 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);
|
||||||
//TODO:: 这里调用接口上报给服务端, 服务端进行检查
|
|
||||||
this.checkStatus()
|
this.checkStatus()
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user