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