diff --git a/src/components/checkBtn.vue b/src/components/checkBtn.vue index 4cdef92..8099b1c 100644 --- a/src/components/checkBtn.vue +++ b/src/components/checkBtn.vue @@ -32,7 +32,6 @@ export default { this.beginCountdown(); } catch (err) { - console.log(err); this.beginCountdown(); } }, diff --git a/src/components/formatPrice.vue b/src/components/formatPrice.vue deleted file mode 100644 index 57e897c..0000000 --- a/src/components/formatPrice.vue +++ /dev/null @@ -1,39 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/components/linkButton/linkBtnView.vue b/src/components/linkButton/linkBtnView.vue index 7209ed9..9007d1b 100644 --- a/src/components/linkButton/linkBtnView.vue +++ b/src/components/linkButton/linkBtnView.vue @@ -36,9 +36,7 @@ export default { localStorage.setItem("myAddress", address); let chainId = await web3.eth.getChainId(); chainId = parseInt(chainId); - // console.log(chainId, "----"); const nonce = await loginNonce(address); - // console.log(nonce, "nonce-------------"); const nonceStr = `${nonce}|okx`; const nonceEncrypt = hexToBase58( aesEncrypt(nonceStr, "uaw_activity") @@ -62,7 +60,6 @@ export default { signature, this.activity ); - console.log(resLogin.errcode,'61') if (!resLogin.errcode) { new GlobalData().token = resLogin.data.token; this.token = resLogin.data.token; @@ -71,12 +68,10 @@ export default { `${this.TOKEN_KEY}+ ${address}`, resLogin.data.token ); - // console.log(resLogin.data.token); - // console.log(parseTokenData(resLogin.data.token),'------------------'); this.getUserState(resLogin.data.token) } } else { - console.log("Please install the MetaMask plugin"); + console.info("Please install the MetaMask plugin"); } }, @@ -92,7 +87,6 @@ export default { logOut() { let NewTime = new Date() - console.log(NewTime,'------NewTime'); } } } diff --git a/src/components/pagination.vue b/src/components/pagination.vue index 11b915b..72390a4 100644 --- a/src/components/pagination.vue +++ b/src/components/pagination.vue @@ -25,7 +25,6 @@ export default { mounted() {}, methods: { handleCurrentChange(val) { - console.log(val) this.currentPage = val this.$emit("onChangePage", val); }, diff --git a/src/components/paginationDialog.vue b/src/components/paginationDialog.vue index dfe5bf1..cac9624 100644 --- a/src/components/paginationDialog.vue +++ b/src/components/paginationDialog.vue @@ -25,7 +25,6 @@ export default { mounted() {}, methods: { handleCurrentChange(val) { - console.log(val) this.currentPage = val this.$emit("onChangePage", val); }, diff --git a/src/components/walletDialog/index.vue b/src/components/walletDialog/index.vue index 4c31ff2..e72fcca 100644 --- a/src/components/walletDialog/index.vue +++ b/src/components/walletDialog/index.vue @@ -87,7 +87,6 @@ export default { // 登录 async getWalletConnected() { await this.$store.dispatch('user/login', this.activity) - console.log(this.$store.state.wallet.address) await this.$store.dispatch('user/fetchUserState') location.reload() }, @@ -100,18 +99,15 @@ export default { async isWallet1() { let res = await new Wallet().isWalletConnected() - console.log('isWalletConnected' ,res) }, // 设置token过期 setCookie(exdays) { setToken('1') - console.log(getToken()) return }, //读取cookie getCookie() { - console.log(document.cookie,'document.cookie-------------------------------------------------------') // if (document.cookie.length > 0) { // var arr = document.cookie.split("; "); //这里显示的格式需要切割一下自己可输出看下 // for (var i = 0; i < arr.length; i++) { diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index 7401a1b..fc0f5c9 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -2,31 +2,8 @@
- - -
@@ -36,19 +13,13 @@ // @ is an alias to /src // import HelloWorld from '@/components/HelloWorld.vue' import Home from "./home/index.vue"; -import Bonus from "./bonus/index.vue"; -import Ranking from "./ranking/index.vue"; import WalletDialog from './../components/walletDialog/index.vue' import { getToken } from "@/utils/cookies.js"; -import Swiper from "swiper"; -import "swiper/css/swiper.css"; export default { name: "HomeView", components: { Home, - Bonus, - Ranking, WalletDialog, }, data() { @@ -57,12 +28,6 @@ export default { }; }, computed: { - bgCor() { - // if(this.activeIndex == 1) { - // console.log(this.activeIndex) - // return `background: #87uy67` - // } - } }, created() {}, mounted() { @@ -75,10 +40,6 @@ export default { closeDialog() { this.walletDialogVisible = false }, - handleSlideChange() { - const activeIndex = this.$refs.mySwiper.Swiper; - console.log(activeIndex, "-------------------------------"); - } } }; diff --git a/src/views/bonus/index.vue b/src/views/bonus/index.vue deleted file mode 100644 index 5973690..0000000 --- a/src/views/bonus/index.vue +++ /dev/null @@ -1,422 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/views/home/boxBtm.vue b/src/views/home/boxBtm.vue index b9fa09f..ea4dec6 100644 --- a/src/views/home/boxBtm.vue +++ b/src/views/home/boxBtm.vue @@ -449,7 +449,6 @@ export default { ) if(res.data.errcode == 0) { this.boostingList = res.data.data - console.log('助力记录', this.boostingList) } }, @@ -518,8 +517,6 @@ export default { let res = await this.$axios.post(process.env.VUE_APP_API_URL+'/api/user/enhance/list', {},{headers: { Authorization: `Bearer ${this.token}` }}) if(res.data.errcode == 0){ this.myRecordsList = res.data.data - }else{ - console.log('[getMyHistoricalLog error]',res) } }, // 我的助力记录分页 diff --git a/src/views/home/calenView.vue b/src/views/home/calenView.vue index c3fdc66..cc1a48c 100644 --- a/src/views/home/calenView.vue +++ b/src/views/home/calenView.vue @@ -39,7 +39,6 @@ export default { } }, mounted() { - console.log(this.activityData,this.userData) this.generateMonth() }, methods: { diff --git a/src/views/home/calenView1.vue b/src/views/home/calenView1.vue deleted file mode 100644 index 4fa64dd..0000000 --- a/src/views/home/calenView1.vue +++ /dev/null @@ -1,999 +0,0 @@ - - - - - - - diff --git a/src/views/home/helpDialog.vue b/src/views/home/helpDialog.vue index c212eda..6455d4c 100644 --- a/src/views/home/helpDialog.vue +++ b/src/views/home/helpDialog.vue @@ -161,7 +161,6 @@ export default { // headers: { Authorization: `Bearer ${this.token}` } // }); let res = await apiUploadInviteCode(newInvite) - // console.log('领取助力奖励 || 判断是否是新用户',res) return if (res.data.errcode == 0) { this.isNewUser = 0 diff --git a/src/views/home/index copy.vue b/src/views/home/index copy.vue deleted file mode 100644 index b63c09c..0000000 --- a/src/views/home/index copy.vue +++ /dev/null @@ -1,2154 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/views/home/index.vue b/src/views/home/index.vue index f520c52..138934c 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -726,12 +726,6 @@ export default { }; }, watch: { - activeList: { - handler(newVal) { - // console.log(newVal, "监听"); - }, - deep: true - } }, computed: { filteredBar() { @@ -791,7 +785,6 @@ export default { await this.$axios .get(process.env.VUE_APP_API_URL+`/api/activity/${this.activityId}`) .then(res => { - // if (res.data.errcode == 0) { this.activityName = res.data.data.name; const actionTitles = { TwitterConnect: "Connect", @@ -807,8 +800,6 @@ export default { } this.activityData = res.data.data this.baseTasks = res.data.data.baseTasks - console.log(this.baseTasks, this.activityData) - // } }) .catch(err => { console.info(err); @@ -836,7 +827,6 @@ export default { let res = await apiBeginActivity(data.id); if(res.errcode == 0) { await this.getProgress() - // console.log("开始任务", res, data); } } @@ -860,7 +850,6 @@ export default { async getActivitrStatue(id) { await apiCheckActivity(id); await this.getProgress() - // console.log(res, "检查任务状态------------------"); }, async loginTwitter() { // const _address = "0x8c10Ae04BF525734eaC00d5F7c062567461c207F"; @@ -868,7 +857,6 @@ export default { // const codeChallenge = crypto.randomUUID() const codeChallenge = Date.now(); const address = this.$store.state.user.address; - // console.log('codeChallenge: ' + codeChallenge) const redirectUri = "https://oauth-svr.cebggame.com/twitter/redirect_uri"; const state = btoa(`${address}|${codeChallenge}|${location.href}`); const url = `https://twitter.com/i/oauth2/authorize?client_id=${clientId}&code_challenge=${codeChallenge}&code_challenge_method=plain&redirect_uri=${encodeURIComponent( @@ -877,7 +865,6 @@ export default { state )}`; let newwin = window.open(url, "twitter connect"); - console.log(newwin.closed); var timer = setInterval(function() { if (newwin.closed) { clearInterval(timer); @@ -890,17 +877,13 @@ export default { async loginDiscord() { const _address = this.$store.state.user.address; const codeChallenge = Date.now(); - console.log(location.href); const state = btoa(`${_address}|${codeChallenge}`); - console.log(state); // const url = 'https://discord.com/api/oauth2/authorize?client_id=1116692240224501850&redirect_uri=http%3A%2F%2Flocalhost%3A3010%2Fdiscord%2Fredirect_uri&response_type=code&scope=guilds%20identify%20guilds.members.read' const url = `https://discord.com/api/oauth2/authorize?client_id=1117759635269636096&redirect_uri=https%3A%2F%2Foauth-svr.cebggame.com%2Fdiscord%2Fredirect_uri&response_type=code&scope=guilds%20identify%20guilds.members.read&state=${state}`; - console.log(url); // location.href = url // // Redirect the user to the Discord OAuth2 authorization page let params = `scrollbars=yes,resizable=yes,status=no,location=no,toolbar=no,menubar=no,width=600,height=800,left=100,top=100`; let newwin = window.open(url, "discord login", params); - console.log(newwin.closed); var timer = setInterval(function() { if (newwin.closed) { clearInterval(timer); @@ -1134,7 +1117,6 @@ export default { // let res = await apiUsercheckin(); let res = await this.$axios.post(process.env.VUE_APP_API_URL+'/api/user/checkin',{ }, { headers: { Authorization: `Bearer ${this.token}` } }) - // console.log(res.data.data,'检查签到并领取奖励') return res.data.data }, // 发送宝箱助力上链请求并领取奖励 @@ -1212,9 +1194,7 @@ export default { // params: { code: newInvite, rtoken: rtoken }, // headers: { Authorization: `Bearer ${this.token}` } // }); - console.log("[code]", newInvite) let res = await apiUploadInviteCode(newInvite) - // console.log('领取助力奖励 || 判断是否是新用户---',res) return if (res.data.errcode == 0) { this.isNewUser = 0 @@ -1236,17 +1216,7 @@ export default { // 获取用户状态 async getUserState() { - console.log('update user state') await this.$store.dispatch('user/fetchUserState') - // await this.$axios.get(process.env.VUE_APP_API_URL+'/api/user/state',{ params: '', - // headers: { Authorization: `Bearer ${this.token}` }, - // }).then(res => { - // this.$set(this.userData) - // this.myScoreTotal = res.data.data.scoreTotal - // console.log('this.myScoreTotal',this.myScoreTotal) - // localStorage.setItem('userData', JSON.stringify(res.data.data)) - // // this.userData = this.userData.scoreTotal - // }) }, // nav 导航 diff --git a/src/views/ranking/index.vue b/src/views/ranking/index.vue deleted file mode 100644 index 187f69d..0000000 --- a/src/views/ranking/index.vue +++ /dev/null @@ -1,535 +0,0 @@ - - - - - \ No newline at end of file