From d354e87a63fb75f2b8766e9779ad875871aebbba Mon Sep 17 00:00:00 2001 From: liaoxinyu Date: Wed, 29 May 2024 23:13:50 -0400 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=90=88=E7=BA=A6=E8=B4=A6?= =?UTF-8?q?=E6=88=B7=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/serve/index.js | 4 ++-- components/uni-swipe-action-item/mpother.js | 2 +- layout/vDropdwon.vue | 4 ++-- layout/vHeader.vue | 2 +- pages/assets/account-bill.vue | 4 ++-- pages/assets/draw.vue | 4 ++-- pages/assets/recharge.vue | 4 ++-- pages/assets/records.vue | 4 ++-- pages/auth/primary.vue | 6 +++--- pages/auth/senior.vue | 4 ++-- pages/base/mine.vue | 8 ++++---- pages/currency/list.vue | 2 +- pages/exchange/contract-history.vue | 2 +- pages/exchange/contractHis.vue | 2 +- pages/exchange/exchange-transaction.vue | 2 +- pages/exchange/open-position.vue | 12 ++++++------ pages/income/index.vue | 2 +- pages/login/index.vue | 4 ++-- pages/otc/bind-pay.vue | 2 +- pages/purchase/bill.vue | 6 +++--- pages/safe/forget-password.vue | 2 +- pages/safe/login-password.vue | 2 +- pages/safe/phone.vue | 2 +- pages/service/index.vue | 2 +- pages/service/otc.vue | 2 +- pages/service/service.vue | 2 +- pages/transfer/index.vue | 2 +- pages/wallets/mine.vue | 2 +- plugins/datafeed.js | 2 +- static/chart_main/chart_main/old-datafeed.js | 2 +- static/chart_main/chart_main/sevencoin.js | 4 ++-- static/chart_main/old-datafeed.js | 2 +- static/chart_main/sevencoin.js | 8 +++++--- utils/class/date.js | 2 +- utils/vendor/upload.js | 2 +- 35 files changed, 60 insertions(+), 58 deletions(-) diff --git a/api/serve/index.js b/api/serve/index.js index eff76a4..43c6f77 100644 --- a/api/serve/index.js +++ b/api/serve/index.js @@ -82,7 +82,7 @@ x.fn = x.prototype = { return new Promise((resolve, reject) => { let reg=new RegExp('/','g')//g代表全部 let newMsg=options.url.replace(reg,'_'); - console.info(newMsg) + // console.info(newMsg) if(Cache.get(newMsg).data){ if(newMsg!='_user_walletImage'&& newMsg!='_user_getAuthInfo' && newMsg!='_user_withdrawalBalance' && newMsg!='_wallet_getBalance' && newMsg!='_contract_getMarketInfo'&& newMsg!='_contract_openNum' @@ -100,7 +100,7 @@ x.fn = x.prototype = { dataType: this.dataType, sslVerify: false, success: (res) => { - console.info(res) + // console.info(res) let message = res.data.message let code = res.data.code if (code != 200) { diff --git a/components/uni-swipe-action-item/mpother.js b/components/uni-swipe-action-item/mpother.js index b503e02..cd0fa1d 100644 --- a/components/uni-swipe-action-item/mpother.js +++ b/components/uni-swipe-action-item/mpother.js @@ -125,7 +125,7 @@ export default { views .selectAll('.selector-query-hock') .boundingClientRect(data => { - console.log(data) + // console.log(data) this.position.content = data[1] this.position.button = data[0] if (this.autoClose) return diff --git a/layout/vDropdwon.vue b/layout/vDropdwon.vue index adafc2b..13ec849 100644 --- a/layout/vDropdwon.vue +++ b/layout/vDropdwon.vue @@ -58,7 +58,7 @@ export default { leverShow:{ deep: true, handler:function(newVal,oldVal) { - console.log(newVal, '下拉组件leverShow更新'); + // console.log(newVal, '下拉组件leverShow更新'); this.$nextTick(() => { this.text=this.list[newVal].label; }) @@ -67,7 +67,7 @@ export default { list:{ deep: true, handler:function(newVal,oldVal) { - console.log(newVal, '下拉组件list更新'); + // console.log(newVal, '下拉组件list更新'); if(this.contract==1&&this.list){ this.text=this.list[1].label }else if(this.contract==0&&this.list){ diff --git a/layout/vHeader.vue b/layout/vHeader.vue index cbf8c62..77d0e74 100644 --- a/layout/vHeader.vue +++ b/layout/vHeader.vue @@ -38,7 +38,7 @@ export default { }, methods: { onClickLeft() { - console.info(this.leftClick) + // console.info(this.leftClick) if (this.leftClick) { this.leftClick(); } else { diff --git a/pages/assets/account-bill.vue b/pages/assets/account-bill.vue index 79ad03d..3a868b5 100644 --- a/pages/assets/account-bill.vue +++ b/pages/assets/account-bill.vue @@ -7,7 +7,7 @@ {{ query.symbol }} - {{ item.created_at }} + {{ item.bb }} { - console.info(res) + // console.info(res) // this.countryList = res.data; this.countryList = res.data.map(item=>{ return { @@ -150,7 +150,7 @@ export default { primaryAuth() { let data = this.form; data.country_code = this.activeCountry.country_code; - console.log(data); + // console.log(data); if(!data.realname){ uni.showToast({ title: this.$t('auth.b0'), @@ -202,7 +202,7 @@ export default { }).catch(()=>{}); }, changeID(e){ - console.log(e); + // console.log(e); this.form.identification_type = this.id_range[e].text; } }, diff --git a/pages/auth/senior.vue b/pages/auth/senior.vue index cdaa36e..f4a9825 100644 --- a/pages/auth/senior.vue +++ b/pages/auth/senior.vue @@ -129,7 +129,7 @@ export default { getCountryCode() { Member.getCountryCode() .then((res) => { - console.info(res) + // console.info(res) this.countryList = res.data; this.form.country_id = this.countryList[res.data.length - 1].id; }) @@ -150,7 +150,7 @@ export default { }); }, getFile(name) { - console.log(name) + // console.log(name) this.$getFile({count: 9}).then((res) => { this.upLoadImg(res, name); }) diff --git a/pages/base/mine.vue b/pages/base/mine.vue index a4019d8..d0d0c47 100644 --- a/pages/base/mine.vue +++ b/pages/base/mine.vue @@ -386,7 +386,7 @@ export default { }, filters: { priceDecimals(val) { - console.info(val); + // console.info(val); return (parseFloat(val)).toFixed(2) } }, @@ -397,9 +397,9 @@ export default { // this.detail = res.data this.status = res.data.status this.user_auth_level = res.data.primary_status - console.log(this.status, '9999') - console.log(res.data, '8888') - console.log(this.user_auth_level, '7777') + // console.log(this.status, '9999') + // console.log(res.data, '8888') + // console.log(this.user_auth_level, '7777') }) }, onRefresh() { diff --git a/pages/currency/list.vue b/pages/currency/list.vue index 87407b7..4f3c41d 100644 --- a/pages/currency/list.vue +++ b/pages/currency/list.vue @@ -78,7 +78,7 @@ export default { }, }, onLoad(query) { - console.log(this.list) + // console.log(this.list) }, }; diff --git a/pages/exchange/contract-history.vue b/pages/exchange/contract-history.vue index dfe63ee..c73cea6 100644 --- a/pages/exchange/contract-history.vue +++ b/pages/exchange/contract-history.vue @@ -303,7 +303,7 @@ export default { generalizeInfo() { Profile.qrcode().then((res) => { this.detail = res.data; - console.log(this.detail) + // console.log(this.detail) }); }, // 获取买卖盘 diff --git a/pages/exchange/contractHis.vue b/pages/exchange/contractHis.vue index d213247..caaf618 100644 --- a/pages/exchange/contractHis.vue +++ b/pages/exchange/contractHis.vue @@ -298,7 +298,7 @@ export default { ); }, holdPosition(boo) { - console.log(this.checked,this.symbolLeft,boo) + // console.log(this.checked,this.symbolLeft,boo) let data = { symbol: (this.checked && this.symbolLeft) || "", }; diff --git a/pages/exchange/exchange-transaction.vue b/pages/exchange/exchange-transaction.vue index cb35eef..56a721b 100644 --- a/pages/exchange/exchange-transaction.vue +++ b/pages/exchange/exchange-transaction.vue @@ -712,7 +712,7 @@ export default { }, // 计算滑动出来的金额 sliderChange(n,i) { - console.log(n,i,'-------'); + // console.log(n,i,'-------'); let num = n/100; // this.sliderActive=i;//按钮--数组内索引 this.sliderActive=n;//滑块--对象内键名,切换方向时需要 diff --git a/pages/exchange/open-position.vue b/pages/exchange/open-position.vue index fe36194..2d199a0 100644 --- a/pages/exchange/open-position.vue +++ b/pages/exchange/open-position.vue @@ -1044,8 +1044,8 @@ export default { // ); // }, amount() { - console.info(this.form.lever_rate) - console.info(this.margin) + // console.info(this.form.lever_rate) + // console.info(this.margin) if (!this.form.lever_rate || !this.margin) return 0; let p = this.margin * this.form.lever_rate; p = p.toFixed(0) @@ -1443,7 +1443,7 @@ export default { this.buyList = res.data.swapBuyList; this.tradeList = res.data.swapTradeList; this.newPrice = this.tradeList[0] || {}; - console.info(this.newPrice) + // console.info(this.newPrice) this.form.entrust_price = this.newPrice.price; this.linkSocket(data.symbol); }); @@ -1475,7 +1475,7 @@ export default { symbol: this.symbolLeft, }; Contract.getSymbolDetail(data).then((res) => { - console.info('res.data', res.data.default_lever, res.data.lever_rage) + // console.info('res.data', res.data.default_lever, res.data.lever_rage) this.unit_amount = res.data.unit_amount; this.lever_rage = res.data.lever_rage.map((item) => ({ @@ -1559,7 +1559,7 @@ export default { } Contract.openPosition(data, {btn}).then(() => { this.$toast(this.$t("contract.g2")); - console.info(this.form.type) + // console.info(this.form.type) if (this.form.type == 1) { this.holdPosition() } else { @@ -1570,7 +1570,7 @@ export default { }); }, sliderChange(n, i) { - console.info(n, i) + // console.info(n, i) this.form.amount = Math.round((this.maxNum * n) / 100); this.sliderActive = i this.sliderActive1 = n diff --git a/pages/income/index.vue b/pages/income/index.vue index 71b07be..76aaeec 100644 --- a/pages/income/index.vue +++ b/pages/income/index.vue @@ -143,7 +143,7 @@ export default { uni.getSystemInfo({ success: function (res) { this.windowHeight=60 - console.log(this.windowHeight) + // console.log(this.windowHeight) } }); }, diff --git a/pages/login/index.vue b/pages/login/index.vue index c52e585..2465dfa 100644 --- a/pages/login/index.vue +++ b/pages/login/index.vue @@ -185,7 +185,7 @@ export default { }); }, loginVer(data) { - console.log(data) + // console.log(data) this.secondaryShow = true; this.secondaryData = data; this.form2.signature = data.signature; @@ -217,7 +217,7 @@ export default { }, }, mounted() { - console.log(this.marketList) + // console.log(this.marketList) }, }; diff --git a/pages/otc/bind-pay.vue b/pages/otc/bind-pay.vue index 55f6483..020bf8a 100644 --- a/pages/otc/bind-pay.vue +++ b/pages/otc/bind-pay.vue @@ -150,7 +150,7 @@ export default { }, onLoad(query) { this.query = query - console.log(this.query) + // console.log(this.query) this.getList(); }, methods: { diff --git a/pages/purchase/bill.vue b/pages/purchase/bill.vue index 61c1003..404a72b 100644 --- a/pages/purchase/bill.vue +++ b/pages/purchase/bill.vue @@ -75,9 +75,9 @@ export default { let data = { page: this.page, }; - console.log(over) + // console.log(over) Wallet.subscribeRecords(data).then((res) => { - console.log(res) + // console.log(res) if (res.data.current_page == 1) this.list = []; this.list = [...this.list, ...res.data.data]; over && over({ finished: res.data.data.length < res.data.per_page }); @@ -85,7 +85,7 @@ export default { }, }, created() { - console.info(this.$route) + // console.info(this.$route) this.issue_price=this.$route.query.issue_price }, }; diff --git a/pages/safe/forget-password.vue b/pages/safe/forget-password.vue index 3687b87..d721d03 100644 --- a/pages/safe/forget-password.vue +++ b/pages/safe/forget-password.vue @@ -179,7 +179,7 @@ export default { if(res.code==200){ this.hideImg = false; } - console.log("gc",res.data.img) + // console.log("gc",res.data.img) this.Graph_che = res.data.img; this.form.gc_key= res.data.key; }); diff --git a/pages/safe/login-password.vue b/pages/safe/login-password.vue index 88421cb..4b07f87 100644 --- a/pages/safe/login-password.vue +++ b/pages/safe/login-password.vue @@ -116,7 +116,7 @@ export default { if(res.code==200){ this.hideImg = false; } - console.log("gc",res.data.img) + // console.log("gc",res.data.img) this.Graph_che = res.data.img; this.gc_key= res.data.key; }); diff --git a/pages/safe/phone.vue b/pages/safe/phone.vue index 2b495f7..5440bfd 100644 --- a/pages/safe/phone.vue +++ b/pages/safe/phone.vue @@ -77,7 +77,7 @@ export default { setUserInfo: "setUserInfo", }), changePhone() { - console.log(this.$refs.country) + // console.log(this.$refs.country) this.form.country_code = this.$refs.country&&this.$refs.country.country_code; if (!this.user.phone && !this.form.phone) { this.$toast(this.$t('safe.d5')); diff --git a/pages/service/index.vue b/pages/service/index.vue index f90739b..d87236e 100644 --- a/pages/service/index.vue +++ b/pages/service/index.vue @@ -47,7 +47,7 @@ export default { }, android(){ // #ifdef APP-PLUS - console.log(plus.os.name) + // console.log(plus.os.name) return plus.os.name // #endif } diff --git a/pages/service/otc.vue b/pages/service/otc.vue index 4a64940..b10f482 100644 --- a/pages/service/otc.vue +++ b/pages/service/otc.vue @@ -48,7 +48,7 @@ export default { }, android(){ // #ifdef APP-PLUS - console.log(plus.os.name) + // console.log(plus.os.name) return plus.os.name // #endif } diff --git a/pages/service/service.vue b/pages/service/service.vue index 532a642..a016110 100644 --- a/pages/service/service.vue +++ b/pages/service/service.vue @@ -67,7 +67,7 @@ export default { this.detail = res.data; }); Member.contact({}).then((res)=>{ - console.log(res); + // console.log(res); this.contacts = res.data; }) }, diff --git a/pages/transfer/index.vue b/pages/transfer/index.vue index 1f8e7c1..f4bfd22 100644 --- a/pages/transfer/index.vue +++ b/pages/transfer/index.vue @@ -189,7 +189,7 @@ export default { }else{ this.tag = 1 } - console.log( this.accountMap ) + // console.log( this.accountMap ) }, // 划转 fundsTransfer() { diff --git a/pages/wallets/mine.vue b/pages/wallets/mine.vue index 27e1809..969625d 100644 --- a/pages/wallets/mine.vue +++ b/pages/wallets/mine.vue @@ -353,7 +353,7 @@ export default { }, filters:{ priceDecimals(val){ - console.info(val) + // console.info(val) return (parseFloat(val)).toFixed(2) } }, diff --git a/plugins/datafeed.js b/plugins/datafeed.js index 4c26957..4b7e345 100644 --- a/plugins/datafeed.js +++ b/plugins/datafeed.js @@ -3,7 +3,7 @@ class Datafeed { this.self = vm; } onReady(callback) { - console.log('onReady') + // console.log('onReady') var _this = this; return new Promise(function (resolve) { var configuration = _this.defaultConfiguration(); diff --git a/static/chart_main/chart_main/old-datafeed.js b/static/chart_main/chart_main/old-datafeed.js index e6c53e2..b1e41ad 100644 --- a/static/chart_main/chart_main/old-datafeed.js +++ b/static/chart_main/chart_main/old-datafeed.js @@ -82,7 +82,7 @@ Datafeeds.UDFCompatibleDatafeed.prototype.onInitialized = function() { Datafeeds.UDFCompatibleDatafeed.prototype._logMessage = function(message) { if (this._enableLogging) { var now = new Date(); - console.log(now.toLocaleTimeString() + '.' + now.getMilliseconds() + '> ' + message); + // console.log(now.toLocaleTimeString() + '.' + now.getMilliseconds() + '> ' + message); } }; diff --git a/static/chart_main/chart_main/sevencoin.js b/static/chart_main/chart_main/sevencoin.js index b01a2f3..76fb7d5 100644 --- a/static/chart_main/chart_main/sevencoin.js +++ b/static/chart_main/chart_main/sevencoin.js @@ -432,8 +432,8 @@ $(function () { } // 生成订阅数据 createMsg() { - console.log(this.contract) - console.log(`swapKline_${this.symbolName}_${this.resolution(this.interval)}`) + // console.log(this.contract) + // console.log(`swapKline_${this.symbolName}_${this.resolution(this.interval)}`) if (this.contract) { return `swapKline_${this.symbolName}_${this.resolution(this.interval)}` } else { diff --git a/static/chart_main/old-datafeed.js b/static/chart_main/old-datafeed.js index e6c53e2..b1e41ad 100644 --- a/static/chart_main/old-datafeed.js +++ b/static/chart_main/old-datafeed.js @@ -82,7 +82,7 @@ Datafeeds.UDFCompatibleDatafeed.prototype.onInitialized = function() { Datafeeds.UDFCompatibleDatafeed.prototype._logMessage = function(message) { if (this._enableLogging) { var now = new Date(); - console.log(now.toLocaleTimeString() + '.' + now.getMilliseconds() + '> ' + message); + // console.log(now.toLocaleTimeString() + '.' + now.getMilliseconds() + '> ' + message); } }; diff --git a/static/chart_main/sevencoin.js b/static/chart_main/sevencoin.js index 7060bcf..b09c081 100644 --- a/static/chart_main/sevencoin.js +++ b/static/chart_main/sevencoin.js @@ -254,11 +254,13 @@ $(function () { } timestampToTime(timestamp) { const date = new Date(timestamp); + const getHours = date.getHours() > 12 ? date.getHours() - 12 : date.getHours() + 12 + const yyyy = `${date.getFullYear()}`; const yy = `${date.getFullYear()}`.substr(2); const MM = `0${date.getMonth() + 1}`.slice(-2); const dd = `0${date.getDate()}`.slice(-2); - const HH = `0${date.getHours()-13}`.slice(-2); + const HH = `0${getHours}`.slice(-2); const mm = `0${date.getMinutes()}`.slice(-2); @@ -458,8 +460,8 @@ $(function () { } // 生成订阅数据 createMsg() { - console.log(this.contract) - console.log(`swapKline_${this.symbolName}_${this.resolution(this.interval)}`) + // console.log(this.contract) + // console.log(`swapKline_${this.symbolName}_${this.resolution(this.interval)}`) if (this.contract) { return `swapKline_${this.symbolName}_${this.resolution(this.interval)}` } else { diff --git a/utils/class/date.js b/utils/class/date.js index 7095eff..6c587e4 100644 --- a/utils/class/date.js +++ b/utils/class/date.js @@ -64,7 +64,7 @@ function parseTime(time, isOffset = false, cformat = null) { s: date.getSeconds(), a: date.getDay() }; - console.log(date); + // console.log(date); // 星期值需要转化为中文 dataObj.a = '星期' + ['日', '一', '二', '三', '四', '五', '六'][dataObj.a]; diff --git a/utils/vendor/upload.js b/utils/vendor/upload.js index 04fb101..ecf8238 100644 --- a/utils/vendor/upload.js +++ b/utils/vendor/upload.js @@ -113,7 +113,7 @@ class Upload { // 验证大小 ins.checkSize(); - console.log(ins.errno); + // console.log(ins.errno); // 验证不通过 则直接触发reject console.log() if (ins.error) throw new Error(ins.errno);