Browse Source

修改合约账户时间

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

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

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

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

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/account-bill.vue

@ -7,7 +7,7 @@
<view
class="item bg-panel-4 m-x-md m-y-xs rounded-sm box-shadow backcor-grey"
v-for="item in $list(list)"
:key="item.created_at + item.id"
:key="item.bb + item.id"
>
<view
class="head d-flex align-center border-b p-x-md p-y-xs justify-between"
@ -15,7 +15,7 @@
<view class="d-flex justify-between">
<view>
<view class="color-light fn-lg">{{ query.symbol }}</view>
<view class="fn-10">{{ item.created_at }}</view>
<view class="fn-10">{{ item.bb }}</view>
</view>
</view>
<view

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

4
pages/assets/recharge.vue

@ -174,7 +174,7 @@ export default {
coin(n) {
if (n) {
this.form.address = "";
console.info(this.coin)
// console.info(this.coin)
if (this.coin != "USDT") {
this.rechargeType = 1;
}else{
@ -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

@ -131,7 +131,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 {
@ -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;
}
},

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

12
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

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

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

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

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
}

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

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

2
pages/transfer/index.vue

@ -189,7 +189,7 @@ export default {
}else{
this.tag = 1
}
console.log( this.accountMap )
// console.log( this.accountMap )
},
//
fundsTransfer() {

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
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();

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

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

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

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

Loading…
Cancel
Save