Browse Source

隐藏控制台输出

master
liaoxinyu 2 years ago
parent
commit
07e422e754
  1. 6
      api/serve/index.js
  2. 2
      components/uni-swipe-action-item/mpother.js
  3. 2
      components/uni-swipe-action-item/mpwxs.js
  4. 2
      layout/vHeader.vue
  5. 4
      pages/assets/draw.vue
  6. 2
      pages/assets/recharge.vue
  7. 4
      pages/assets/records.vue
  8. 6
      pages/auth/primary.vue
  9. 4
      pages/auth/senior.vue
  10. 8
      pages/base/mine.vue
  11. 2
      pages/currency/list.vue
  12. 2
      pages/exchange/contract-history.vue
  13. 2
      pages/exchange/contractHis.vue
  14. 2
      pages/exchange/exchange-transaction.vue
  15. 2
      pages/exchange/his.vue
  16. 14
      pages/exchange/open-position.vue
  17. 2
      pages/income/index.vue
  18. 2
      pages/index/index.vue
  19. 4
      pages/login/index.vue
  20. 2
      pages/otc/bind-pay.vue
  21. 6
      pages/purchase/bill.vue
  22. 2
      pages/safe/forget-password.vue
  23. 4
      pages/safe/login-password.vue
  24. 2
      pages/safe/phone.vue
  25. 2
      pages/service/index.vue
  26. 4
      pages/service/otc.vue
  27. 2
      pages/service/service.vue
  28. 2
      pages/wallets/mine.vue
  29. 2
      static/chart_main/chart_main/huobi.js
  30. 2
      static/chart_main/chart_main/old-datafeed.js
  31. 4
      static/chart_main/chart_main/sevencoin.js
  32. 2
      static/chart_main/chart_main/ws.js
  33. 2
      static/chart_main/huobi.js
  34. 2
      static/chart_main/old-datafeed.js
  35. 4
      static/chart_main/sevencoin.js
  36. 2
      utils/class/date.js

6
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) {
@ -144,7 +144,7 @@ x.fn = x.prototype = {
}
},
fail: (err) => {
console.log(err)
// console.log(err)
reject(err)
if (config.toast !== false) {
// uni.showToast({

2
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

2
components/uni-swipe-action-item/mpwxs.js

@ -82,7 +82,7 @@ export default {
// fixed by xxxx 模拟点击事件,解决 ios 13 点击区域错位的问题
let diff = Math.abs(this.clientX - clientX)
let time = (new Date().getTime()) - this.timestamp
console.log(diff);
// console.log(diff);
if (diff < 40 && time < 300) {
// console.log('点击');
this.$emit('click', {

2
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 {

4
pages/assets/draw.vue

@ -455,7 +455,7 @@ export default {
let list = [...this.list, ...res.data.data];//
this.list.splice(0,this.list.length,...list);
// this.list.push(...list);
console.log('length---------------',this.list.length, '页数:',res.data.current_page);
// console.log('length---------------',this.list.length, '',res.data.current_page);
if (res.data.data.length < res.data.per_page) this.loadMore = false;
});
},
@ -479,7 +479,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;
});
}

2
pages/assets/recharge.vue

@ -249,7 +249,7 @@ export default {
});
},
change(e){
console.log(e)
// console.log(e)
}
},
created() {

4
pages/assets/records.vue

@ -82,7 +82,7 @@ import formData from "@/utils/class/date";
let list = [...this.list, ...res.data.data];//
this.list.splice(0,this.list.length,...list);
// this.list.push(...list);
console.log('length---------------',this.list.length, '页数:',res.data.current_page);
// console.log('length---------------',this.list.length, '',res.data.current_page);
if (res.data.data.length < res.data.per_page) this.loadMore = false;
});
},
@ -107,7 +107,7 @@ import formData from "@/utils/class/date";
},
},
onLoad(e) {
console.log('---------',e);
// console.log('---------',e);
this.type = e.type;
if(e.type=='draw'){
this.getWithdrawRecords();

6
pages/auth/primary.vue

@ -130,7 +130,7 @@ export default {
getCountryCode() {
Member.getCountryCode()
.then((res) => {
console.info(res)
// console.info(res)
// this.countryList = res.data;
this.countryList = res.data.map(item=>{
return {
@ -149,7 +149,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'),
@ -201,7 +201,7 @@ export default {
}).catch(()=>{});
},
changeID(e){
console.log(e);
// console.log(e);
this.form.identification_type = this.id_range[e].text;
}
},

4
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);
})

8
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() {

2
pages/currency/list.vue

@ -78,7 +78,7 @@ export default {
},
},
onLoad(query) {
console.log(this.list)
// console.log(this.list)
},
};
</script>

2
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)
});
},
//

2
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) || "",
};

2
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;//--,

2
pages/exchange/his.vue

@ -131,7 +131,7 @@ export default {
},
watch:{
tab(n){
console.log(n)
// console.log(n)
}
},
methods: {

14
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);
});
@ -1477,7 +1477,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) => ({
@ -1561,7 +1561,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 {
@ -1572,14 +1572,14 @@ 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
this.margin = (this.form.amount / this.form.lever_rate).toFixed(5)
},
pingChange(n, i) {
console.log(n)
// console.log(n)
this.pingAmount = Math.round((this.activeItem.avail_position * n) / 100);
this.pingActive = i
},

2
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)
}
});
},

2
pages/index/index.vue

@ -64,7 +64,7 @@ export default {
this.test++;
},
select($ev) {
console.log($ev);
// console.log($ev);
},
toPing() {
let d = new Date();

4
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)
},
};

2
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: {

6
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
},
};

2
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;
});

4
pages/safe/login-password.vue

@ -102,7 +102,7 @@ export default {
// ¼֤ͼƬ
})
.catch(error => {
console.log(error);
// console.log(error);
});
},
// ͼ֤
@ -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;
});

2
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'));

2
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
}

4
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
}
@ -57,7 +57,7 @@ export default {
},
onLoad(a) {
console.log(a)
// console.log(a)
}
};
</script>

2
pages/service/service.vue

@ -68,7 +68,7 @@ export default {
// this.detail = res.data;
// });
Member.contact({}).then((res)=>{
console.log(res);
// console.log(res);
this.contacts = res.data;
})
},

2
pages/wallets/mine.vue

@ -353,7 +353,7 @@ export default {
},
filters:{
priceDecimals(val){
console.info(val)
// console.info(val)
return (parseFloat(val)).toFixed(2)
}
},

2
static/chart_main/chart_main/huobi.js

@ -5465,7 +5465,7 @@
}, e.isArray = p, e.isBoolean = v, e.isNull = g, e.isNullOrUndefined = m, e.isNumber = _, e.isString = y, e.isSymbol = b, e.isUndefined = w, e.isRegExp = x, e.isObject = S, e.isDate = E, e.isError = k, e.isFunction = T, e.isPrimitive = C, e.isBuffer = n(839);
var B = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
e.log = function () {
console.log("%s - %s", P(), e.format.apply(e, arguments))
// console.log("%s - %s", P(), e.format.apply(e, arguments))
}, e.inherits = n(838), e._extend = function (t, e) {
if (!e || !S(e)) return t;
for (var n = Object.keys(e), r = n.length; r--;) t[n[r]] = e[n[r]];

2
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);
}
};

4
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 {

2
static/chart_main/chart_main/ws.js

@ -101,7 +101,7 @@ var Ws = /*#__PURE__*/function () {
this._msgs = [];
this.socket.close({
success: function success() {
console.log('socket close success');
// console.log('socket close success');
}
});
} // 添加监听

2
static/chart_main/huobi.js

@ -5465,7 +5465,7 @@
}, e.isArray = p, e.isBoolean = v, e.isNull = g, e.isNullOrUndefined = m, e.isNumber = _, e.isString = y, e.isSymbol = b, e.isUndefined = w, e.isRegExp = x, e.isObject = S, e.isDate = E, e.isError = k, e.isFunction = T, e.isPrimitive = C, e.isBuffer = n(839);
var B = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
e.log = function () {
console.log("%s - %s", P(), e.format.apply(e, arguments))
// console.log("%s - %s", P(), e.format.apply(e, arguments))
}, e.inherits = n(838), e._extend = function (t, e) {
if (!e || !S(e)) return t;
for (var n = Object.keys(e), r = n.length; r--;) t[n[r]] = e[n[r]];

2
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);
}
};

4
static/chart_main/sevencoin.js

@ -458,8 +458,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 {

2
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];

Loading…
Cancel
Save