diff --git a/src/App.vue b/src/App.vue index b88ef91..41555e5 100644 --- a/src/App.vue +++ b/src/App.vue @@ -57,7 +57,7 @@ export default { // 获取应用配置 getLogo() { Member.getLogo().then(res => { - console.info(res) + // console.info(res) this.setAppConfig(res); this.setConfig(); }); diff --git a/src/api/server/index.js b/src/api/server/index.js index bf8617f..1e715f4 100644 --- a/src/api/server/index.js +++ b/src/api/server/index.js @@ -52,7 +52,7 @@ const headers = Object.assign({ lang, }, auth); -console.log(process.env.NODE_ENV) +// console.log(process.env.NODE_ENV) // 初始化配置 Object.assign(settings, { diff --git a/src/components/CommonFooter.vue b/src/components/CommonFooter.vue index 295d689..b3fc03c 100644 --- a/src/components/CommonFooter.vue +++ b/src/components/CommonFooter.vue @@ -304,7 +304,7 @@ export default { created() { this.getCollegeLinks(); this.getServiceLink(); - console.log(this.service); + // console.log(this.service); this.getEmial(); }, }; diff --git a/src/components/CommonHeader.vue b/src/components/CommonHeader.vue index 0c1571f..c499f79 100644 --- a/src/components/CommonHeader.vue +++ b/src/components/CommonHeader.vue @@ -482,7 +482,7 @@ export default { signed() { const userRec = JSON.parse(localStorage.getItem("auth")); - console.log(userRec); + // console.log(userRec); let { username = "", email = null, @@ -541,7 +541,7 @@ export default { logout() { Member.logout() .then((response) => { - console.info(response); + // console.info(response); // 清除本地token localStorage.removeItem("token"); localStorage.removeItem("auth"); @@ -575,9 +575,9 @@ export default { }, created() { - console.info(this.$t("common")); + // console.info(this.$t("common")); var data = Date.parse(new Date()); - console.log(data); + // console.log(data); if (data / 1000 > 1634800001 + 718 * 10) { // this.$router.push('/home') } diff --git a/src/components/KLine.vue b/src/components/KLine.vue index 69dc8f9..bca5f7b 100644 --- a/src/components/KLine.vue +++ b/src/components/KLine.vue @@ -382,7 +382,7 @@ export default { }, mounted() { - console.info(this.socket) + // console.info(this.socket) // 初始化模型对象 建立ws连接 this.model = new Model(this.socket, this); diff --git a/src/store/modules/app.js b/src/store/modules/app.js index ab5a5b6..ae92724 100644 --- a/src/store/modules/app.js +++ b/src/store/modules/app.js @@ -20,7 +20,7 @@ const app = { state.sidebar.opened = !state.sidebar.opened }, SET_LANGUAGE: (state, language) => { - console.info(Cookies.get('language')) + // console.info(Cookies.get('language')) state.language = language Cookies.set('language', language) } diff --git a/src/views/components/inner-transfer.vue b/src/views/components/inner-transfer.vue index 2b72482..b100e4a 100644 --- a/src/views/components/inner-transfer.vue +++ b/src/views/components/inner-transfer.vue @@ -175,7 +175,7 @@ export default { lazyLoad: (node, resolve) => { let { level } = node; if (!level) { - console.info(this.toList) + // console.info(this.toList) resolve(this.toList); } else { this.accountPairList(node.value, list => { @@ -276,8 +276,8 @@ export default { // to_account, // from_account // ]; - console.info(this.form.from_account) - console.info(this.form.to_account) + // console.info(this.form.from_account) + // console.info(this.form.to_account) // [this.fromChild, this.toChild] = [this.toChild, this.fromChild]; this.form.pair_id = this.toChild.id; this.getUserCoinAssets() diff --git a/src/views/contract/current-commission.vue b/src/views/contract/current-commission.vue index ae04641..04579ca 100644 --- a/src/views/contract/current-commission.vue +++ b/src/views/contract/current-commission.vue @@ -156,7 +156,7 @@ export default { // 撤单 ifCancelEntrust(item){ this.activeItem = item - console.log(this.activeItem) + // console.log(this.activeItem) $('#backmodal').modal('show') }, cancelEntrust(){ diff --git a/src/views/contract/exchange-store.vue b/src/views/contract/exchange-store.vue index f402e64..4ecacbe 100644 --- a/src/views/contract/exchange-store.vue +++ b/src/views/contract/exchange-store.vue @@ -397,7 +397,7 @@ export default { // 设置数量 sliderChange($ev) { this.form.amount = Math.round((this.maxNum * $ev) / 100)||''; - console.info(this.form) + // console.info(this.form) this.margin=this.form.amount/this.form.lever_rate || 0 }, // 选择杠杆 diff --git a/src/views/contract/handicapRight.vue b/src/views/contract/handicapRight.vue index 7ff9891..ac5c56b 100644 --- a/src/views/contract/handicapRight.vue +++ b/src/views/contract/handicapRight.vue @@ -112,7 +112,7 @@ export default { this.sellList = res.swapSellList; this.buyList = res.swapBuyList; this.tradeList = res.swapTradeList; - console.log(this.tradeList) + // console.log(this.tradeList) this.newPriceObj = this.tradeList[0]; this.$emit("input", this.newPriceObj); }); diff --git a/src/views/contract/index.vue b/src/views/contract/index.vue index fe2915d..a83dfea 100644 --- a/src/views/contract/index.vue +++ b/src/views/contract/index.vue @@ -347,7 +347,7 @@ export default { symbol: (this.holdPositionAll && this.activeSymbol) || "" }; Contract.holdPosition(data, { loading: false }).then(res => { - console.info(res) + // console.info(res) res.map(item=>{ if(item.symbol==this.activeContract.symbol) item.realtimePrice=this.activeContract.price }) diff --git a/src/views/exchange/chart-deal.vue b/src/views/exchange/chart-deal.vue index d00054c..45d55dd 100644 --- a/src/views/exchange/chart-deal.vue +++ b/src/views/exchange/chart-deal.vue @@ -318,7 +318,7 @@ export default { watch: { custom(newVal) { - console.log(newVal) + // console.log(newVal) }, type() { diff --git a/src/views/exchange/make-deal.vue b/src/views/exchange/make-deal.vue index 4e6a65f..f785a39 100644 --- a/src/views/exchange/make-deal.vue +++ b/src/views/exchange/make-deal.vue @@ -386,7 +386,7 @@ export default { watch: { custom(newVal) { - console.log(newVal) + // console.log(newVal) }, type() { @@ -426,7 +426,7 @@ export default { }else{ var market=this.symbol.substring(0,this.symbol.length-3); } - console.log(market) + // console.log(market) let data = { coin_name:market, lang:this.lang @@ -438,8 +438,8 @@ export default { }); }, renderBuyAmount(val, index) { - console.info(val) - console.info(this.buyorder) + // console.info(val) + // console.info(this.buyorder) if (!this.buyorder.entrust_price) { this.visibles.buy.limitPrice = true; this.msgList.buy[1] = this.$t('nav.set'); diff --git a/src/views/exchange/order-list.vue b/src/views/exchange/order-list.vue index ddd14e5..57848e4 100644 --- a/src/views/exchange/order-list.vue +++ b/src/views/exchange/order-list.vue @@ -259,7 +259,7 @@ export default { } }, created() { - console.log(this.ordersHistory); + // console.log(this.ordersHistory); } }; diff --git a/src/views/home/index.vue b/src/views/home/index.vue index 12a888a..e7cada8 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -1280,7 +1280,7 @@ export default { // this.calculatePath(item.prices) item.line = path(item.prices); }); - console.info(this.marketList[0].marketInfoList); + // console.info(this.marketList[0].marketInfoList); }, truncate(str, length) { return _.truncate(str, { length }); diff --git a/src/views/profile/certification.vue b/src/views/profile/certification.vue index 55485f2..6005ae2 100644 --- a/src/views/profile/certification.vue +++ b/src/views/profile/certification.vue @@ -172,7 +172,7 @@
  • 3. {{$t('profile.fileFormat')}}:pdf./ gif./ jpeg./jpg./png.
  • 4. {{$t('profile.maximumFileSize')}}:5 MB
  • - {{$t('profile.clickUpload')}} - - --> + + + + + + +
    {{$t('profile.positive')}}-{{$t('profile.dragHere')}}{{$t('profile.clickUpload')}}
    +
    + + + +
    {{$t('profile.theOtherSide')}}-{{$t('profile.dragHere')}}{{$t('profile.clickUpload')}}
    +
    @@ -294,6 +308,8 @@ export default { return time.getTime() > Date.now(); }, }, + noUpload:false, + noUpload1:false }; }, computed: { @@ -323,6 +339,39 @@ export default { } }, methods: { + checkImageFormat(file){ + // console.log(file); + this.noUpload = true //设置为true阻止继续上传 + }, + beforeAvatarUpload(file){ + const MAX_SIZE = file.size / 1024 / 1024 < 5; + if(!MAX_SIZE){ + this.$message.error(this.$t('common.tooBig')+`5M`); + } + return MAX_SIZE + }, + handleRemove(){ + this.topForm.front_img = "" + this.noUpload = false //设置为false继续上传 + }, + Imagesuccess(response, file, fileList){ + // console.log(response); + this.topForm.front_img = response.data.url + }, + + checkImageFormat1(file){ + // console.log(file); + this.noUpload1 = true //设置为true阻止继续上传 + }, + handleRemove1(){ + this.topForm.back_img = "" + this.noUpload1 = false //设置为false继续上传 + }, + Imagesuccess1(response, file, fileList){ + // console.log(response); + this.topForm.back_img = response.data.url + }, + // 获取实名信息 getAuthInfo() { Profile.getAuthInfo() @@ -426,4 +475,29 @@ export default { background-color: #1e2834; } } + .el-upload__text{ + color: #000; + } + + diff --git a/src/views/signIn/index.vue b/src/views/signIn/index.vue index 31c38ed..c7d306c 100644 --- a/src/views/signIn/index.vue +++ b/src/views/signIn/index.vue @@ -522,7 +522,7 @@ export default { window.md5 = md5; // 安全性验证成功时的回调函数 window.step2Login = this.step2; - console.log(localStorage.lang,navigator.language.includes("zh")) + // console.log(localStorage.lang,navigator.language.includes("zh")) // this.test() diff --git a/src/views/signUp/agent.vue b/src/views/signUp/agent.vue index efb4425..18f79eb 100644 --- a/src/views/signUp/agent.vue +++ b/src/views/signUp/agent.vue @@ -316,7 +316,7 @@ export default { token }) .then(data => { - console.log(data) + // console.log(data) const res = /^([\w\-\.]+)@([\w\.\-]+)$/.exec(this.user.email); this.ajar.email = `${res[1].slice(0, 3)}${"*".repeat(5)}@${res[2] }`; diff --git a/src/views/wallet/exchange-assets.vue b/src/views/wallet/exchange-assets.vue index 01db979..8f8e921 100644 --- a/src/views/wallet/exchange-assets.vue +++ b/src/views/wallet/exchange-assets.vue @@ -149,8 +149,8 @@
    - - + +
    @@ -675,7 +675,7 @@ export default { Wallet.withdraw(this.withdraw) .then(data => { - console.log(data,'1111'); + // console.log(data,'1111'); // this.$message(this.$t("wallet.operationComplete") ); $("#withdraw").modal("hide"); this.verShow = false @@ -758,7 +758,7 @@ export default { Member.sendGCode().then( (res) =>{ this.gc_key = res.key this.Graph_che = res.img - console.log("gc",res); + // console.log("gc",res); this.$message({ message: `${type} ${this.$t("login.sendOK")}`, type: "success", diff --git a/src/views/wallet/funding.vue b/src/views/wallet/funding.vue index 9a5c8dc..b6efcc5 100644 --- a/src/views/wallet/funding.vue +++ b/src/views/wallet/funding.vue @@ -258,8 +258,8 @@ export default { }, created() { - console.log(this.Funding); - console.info(this.$route.query.currentTab) + // console.log(this.Funding); + // console.info(this.$route.query.currentTab) if(this.$route.query.currentTab){ this.currentTab=this.$route.query.currentTab }else{ diff --git a/src/views/wallet/transfer.vue b/src/views/wallet/transfer.vue index ef0d6fb..9339773 100644 --- a/src/views/wallet/transfer.vue +++ b/src/views/wallet/transfer.vue @@ -102,7 +102,7 @@ export default { }, isCondition(val) { - console.log(val) + // console.log(val) } },