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) => { return new Promise((resolve, reject) => {
let reg=new RegExp('/','g')//g代表全部 let reg=new RegExp('/','g')//g代表全部
let newMsg=options.url.replace(reg,'_'); let newMsg=options.url.replace(reg,'_');
console.info(newMsg) // console.info(newMsg)
if(Cache.get(newMsg).data){ if(Cache.get(newMsg).data){
if(newMsg!='_user_walletImage'&& newMsg!='_user_getAuthInfo' && newMsg!='_user_withdrawalBalance' if(newMsg!='_user_walletImage'&& newMsg!='_user_getAuthInfo' && newMsg!='_user_withdrawalBalance'
&& newMsg!='_wallet_getBalance' && newMsg!='_contract_getMarketInfo'&& newMsg!='_contract_openNum' && newMsg!='_wallet_getBalance' && newMsg!='_contract_getMarketInfo'&& newMsg!='_contract_openNum'
@ -100,7 +100,7 @@ x.fn = x.prototype = {
dataType: this.dataType, dataType: this.dataType,
sslVerify: false, sslVerify: false,
success: (res) => { success: (res) => {
console.info(res) // console.info(res)
let message = res.data.message let message = res.data.message
let code = res.data.code let code = res.data.code
if (code != 200) { if (code != 200) {

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

@ -125,7 +125,7 @@ export default {
views views
.selectAll('.selector-query-hock') .selectAll('.selector-query-hock')
.boundingClientRect(data => { .boundingClientRect(data => {
console.log(data) // console.log(data)
this.position.content = data[1] this.position.content = data[1]
this.position.button = data[0] this.position.button = data[0]
if (this.autoClose) return if (this.autoClose) return

4
layout/vDropdwon.vue

@ -58,7 +58,7 @@ export default {
leverShow:{ leverShow:{
deep: true, deep: true,
handler:function(newVal,oldVal) { handler:function(newVal,oldVal) {
console.log(newVal, '下拉组件leverShow更新'); // console.log(newVal, 'leverShow');
this.$nextTick(() => { this.$nextTick(() => {
this.text=this.list[newVal].label; this.text=this.list[newVal].label;
}) })
@ -67,7 +67,7 @@ export default {
list:{ list:{
deep: true, deep: true,
handler:function(newVal,oldVal) { handler:function(newVal,oldVal) {
console.log(newVal, '下拉组件list更新'); // console.log(newVal, 'list');
if(this.contract==1&&this.list){ if(this.contract==1&&this.list){
this.text=this.list[1].label this.text=this.list[1].label
}else if(this.contract==0&&this.list){ }else if(this.contract==0&&this.list){

2
layout/vHeader.vue

@ -38,7 +38,7 @@ export default {
}, },
methods: { methods: {
onClickLeft() { onClickLeft() {
console.info(this.leftClick) // console.info(this.leftClick)
if (this.leftClick) { if (this.leftClick) {
this.leftClick(); this.leftClick();
} else { } else {

4
pages/assets/account-bill.vue

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

4
pages/assets/draw.vue

@ -455,7 +455,7 @@ export default {
let list = [...this.list, ...res.data.data];// let list = [...this.list, ...res.data.data];//
this.list.splice(0,this.list.length,...list); this.list.splice(0,this.list.length,...list);
// this.list.push(...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; if (res.data.data.length < res.data.per_page) this.loadMore = false;
}); });
}, },
@ -479,7 +479,7 @@ export default {
if(res.code==200){ if(res.code==200){
this.hideImg = false; this.hideImg = false;
} }
console.log("gc",res.data.img) // console.log("gc",res.data.img)
this.Graph_che = res.data.img; this.Graph_che = res.data.img;
}); });
} }

4
pages/assets/recharge.vue

@ -174,7 +174,7 @@ export default {
coin(n) { coin(n) {
if (n) { if (n) {
this.form.address = ""; this.form.address = "";
console.info(this.coin) // console.info(this.coin)
if (this.coin != "USDT") { if (this.coin != "USDT") {
this.rechargeType = 1; this.rechargeType = 1;
}else{ }else{
@ -249,7 +249,7 @@ export default {
}); });
}, },
change(e){ change(e){
console.log(e) // console.log(e)
} }
}, },
created() { created() {

4
pages/assets/records.vue

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

6
pages/auth/primary.vue

@ -131,7 +131,7 @@ export default {
getCountryCode() { getCountryCode() {
Member.getCountryCode() Member.getCountryCode()
.then((res) => { .then((res) => {
console.info(res) // console.info(res)
// this.countryList = res.data; // this.countryList = res.data;
this.countryList = res.data.map(item=>{ this.countryList = res.data.map(item=>{
return { return {
@ -150,7 +150,7 @@ export default {
primaryAuth() { primaryAuth() {
let data = this.form; let data = this.form;
data.country_code = this.activeCountry.country_code; data.country_code = this.activeCountry.country_code;
console.log(data); // console.log(data);
if(!data.realname){ if(!data.realname){
uni.showToast({ uni.showToast({
title: this.$t('auth.b0'), title: this.$t('auth.b0'),
@ -202,7 +202,7 @@ export default {
}).catch(()=>{}); }).catch(()=>{});
}, },
changeID(e){ changeID(e){
console.log(e); // console.log(e);
this.form.identification_type = this.id_range[e].text; this.form.identification_type = this.id_range[e].text;
} }
}, },

4
pages/auth/senior.vue

@ -129,7 +129,7 @@ export default {
getCountryCode() { getCountryCode() {
Member.getCountryCode() Member.getCountryCode()
.then((res) => { .then((res) => {
console.info(res) // console.info(res)
this.countryList = res.data; this.countryList = res.data;
this.form.country_id = this.countryList[res.data.length - 1].id; this.form.country_id = this.countryList[res.data.length - 1].id;
}) })
@ -150,7 +150,7 @@ export default {
}); });
}, },
getFile(name) { getFile(name) {
console.log(name) // console.log(name)
this.$getFile({count: 9}).then((res) => { this.$getFile({count: 9}).then((res) => {
this.upLoadImg(res, name); this.upLoadImg(res, name);
}) })

8
pages/base/mine.vue

@ -386,7 +386,7 @@ export default {
}, },
filters: { filters: {
priceDecimals(val) { priceDecimals(val) {
console.info(val); // console.info(val);
return (parseFloat(val)).toFixed(2) return (parseFloat(val)).toFixed(2)
} }
}, },
@ -397,9 +397,9 @@ export default {
// this.detail = res.data // this.detail = res.data
this.status = res.data.status this.status = res.data.status
this.user_auth_level = res.data.primary_status this.user_auth_level = res.data.primary_status
console.log(this.status, '9999') // console.log(this.status, '9999')
console.log(res.data, '8888') // console.log(res.data, '8888')
console.log(this.user_auth_level, '7777') // console.log(this.user_auth_level, '7777')
}) })
}, },
onRefresh() { onRefresh() {

2
pages/currency/list.vue

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

2
pages/exchange/contract-history.vue

@ -303,7 +303,7 @@ export default {
generalizeInfo() { generalizeInfo() {
Profile.qrcode().then((res) => { Profile.qrcode().then((res) => {
this.detail = res.data; 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) { holdPosition(boo) {
console.log(this.checked,this.symbolLeft,boo) // console.log(this.checked,this.symbolLeft,boo)
let data = { let data = {
symbol: (this.checked && this.symbolLeft) || "", symbol: (this.checked && this.symbolLeft) || "",
}; };

2
pages/exchange/exchange-transaction.vue

@ -712,7 +712,7 @@ export default {
}, },
// //
sliderChange(n,i) { sliderChange(n,i) {
console.log(n,i,'-------'); // console.log(n,i,'-------');
let num = n/100; let num = n/100;
// this.sliderActive=i;//-- // this.sliderActive=i;//--
this.sliderActive=n;//--, this.sliderActive=n;//--,

12
pages/exchange/open-position.vue

@ -1044,8 +1044,8 @@ export default {
// ); // );
// }, // },
amount() { amount() {
console.info(this.form.lever_rate) // console.info(this.form.lever_rate)
console.info(this.margin) // console.info(this.margin)
if (!this.form.lever_rate || !this.margin) return 0; if (!this.form.lever_rate || !this.margin) return 0;
let p = this.margin * this.form.lever_rate; let p = this.margin * this.form.lever_rate;
p = p.toFixed(0) p = p.toFixed(0)
@ -1443,7 +1443,7 @@ export default {
this.buyList = res.data.swapBuyList; this.buyList = res.data.swapBuyList;
this.tradeList = res.data.swapTradeList; this.tradeList = res.data.swapTradeList;
this.newPrice = this.tradeList[0] || {}; this.newPrice = this.tradeList[0] || {};
console.info(this.newPrice) // console.info(this.newPrice)
this.form.entrust_price = this.newPrice.price; this.form.entrust_price = this.newPrice.price;
this.linkSocket(data.symbol); this.linkSocket(data.symbol);
}); });
@ -1475,7 +1475,7 @@ export default {
symbol: this.symbolLeft, symbol: this.symbolLeft,
}; };
Contract.getSymbolDetail(data).then((res) => { 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.unit_amount = res.data.unit_amount;
this.lever_rage = res.data.lever_rage.map((item) => ({ this.lever_rage = res.data.lever_rage.map((item) => ({
@ -1559,7 +1559,7 @@ export default {
} }
Contract.openPosition(data, {btn}).then(() => { Contract.openPosition(data, {btn}).then(() => {
this.$toast(this.$t("contract.g2")); this.$toast(this.$t("contract.g2"));
console.info(this.form.type) // console.info(this.form.type)
if (this.form.type == 1) { if (this.form.type == 1) {
this.holdPosition() this.holdPosition()
} else { } else {
@ -1570,7 +1570,7 @@ export default {
}); });
}, },
sliderChange(n, i) { sliderChange(n, i) {
console.info(n, i) // console.info(n, i)
this.form.amount = Math.round((this.maxNum * n) / 100); this.form.amount = Math.round((this.maxNum * n) / 100);
this.sliderActive = i this.sliderActive = i
this.sliderActive1 = n this.sliderActive1 = n

2
pages/income/index.vue

@ -143,7 +143,7 @@ export default {
uni.getSystemInfo({ uni.getSystemInfo({
success: function (res) { success: function (res) {
this.windowHeight=60 this.windowHeight=60
console.log(this.windowHeight) // console.log(this.windowHeight)
} }
}); });
}, },

4
pages/login/index.vue

@ -185,7 +185,7 @@ export default {
}); });
}, },
loginVer(data) { loginVer(data) {
console.log(data) // console.log(data)
this.secondaryShow = true; this.secondaryShow = true;
this.secondaryData = data; this.secondaryData = data;
this.form2.signature = data.signature; this.form2.signature = data.signature;
@ -217,7 +217,7 @@ export default {
}, },
}, },
mounted() { mounted() {
console.log(this.marketList) // console.log(this.marketList)
}, },
}; };

2
pages/otc/bind-pay.vue

@ -150,7 +150,7 @@ export default {
}, },
onLoad(query) { onLoad(query) {
this.query = query this.query = query
console.log(this.query) // console.log(this.query)
this.getList(); this.getList();
}, },
methods: { methods: {

6
pages/purchase/bill.vue

@ -75,9 +75,9 @@ export default {
let data = { let data = {
page: this.page, page: this.page,
}; };
console.log(over) // console.log(over)
Wallet.subscribeRecords(data).then((res) => { Wallet.subscribeRecords(data).then((res) => {
console.log(res) // console.log(res)
if (res.data.current_page == 1) this.list = []; if (res.data.current_page == 1) this.list = [];
this.list = [...this.list, ...res.data.data]; this.list = [...this.list, ...res.data.data];
over && over({ finished: res.data.data.length < res.data.per_page }); over && over({ finished: res.data.data.length < res.data.per_page });
@ -85,7 +85,7 @@ export default {
}, },
}, },
created() { created() {
console.info(this.$route) // console.info(this.$route)
this.issue_price=this.$route.query.issue_price this.issue_price=this.$route.query.issue_price
}, },
}; };

2
pages/safe/forget-password.vue

@ -179,7 +179,7 @@ export default {
if(res.code==200){ if(res.code==200){
this.hideImg = false; this.hideImg = false;
} }
console.log("gc",res.data.img) // console.log("gc",res.data.img)
this.Graph_che = res.data.img; this.Graph_che = res.data.img;
this.form.gc_key= res.data.key; this.form.gc_key= res.data.key;
}); });

2
pages/safe/login-password.vue

@ -116,7 +116,7 @@ export default {
if(res.code==200){ if(res.code==200){
this.hideImg = false; this.hideImg = false;
} }
console.log("gc",res.data.img) // console.log("gc",res.data.img)
this.Graph_che = res.data.img; this.Graph_che = res.data.img;
this.gc_key= res.data.key; this.gc_key= res.data.key;
}); });

2
pages/safe/phone.vue

@ -77,7 +77,7 @@ export default {
setUserInfo: "setUserInfo", setUserInfo: "setUserInfo",
}), }),
changePhone() { changePhone() {
console.log(this.$refs.country) // console.log(this.$refs.country)
this.form.country_code = this.$refs.country&&this.$refs.country.country_code; this.form.country_code = this.$refs.country&&this.$refs.country.country_code;
if (!this.user.phone && !this.form.phone) { if (!this.user.phone && !this.form.phone) {
this.$toast(this.$t('safe.d5')); this.$toast(this.$t('safe.d5'));

2
pages/service/index.vue

@ -47,7 +47,7 @@ export default {
}, },
android(){ android(){
// #ifdef APP-PLUS // #ifdef APP-PLUS
console.log(plus.os.name) // console.log(plus.os.name)
return plus.os.name return plus.os.name
// #endif // #endif
} }

2
pages/service/otc.vue

@ -48,7 +48,7 @@ export default {
}, },
android(){ android(){
// #ifdef APP-PLUS // #ifdef APP-PLUS
console.log(plus.os.name) // console.log(plus.os.name)
return plus.os.name return plus.os.name
// #endif // #endif
} }

2
pages/service/service.vue

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

2
pages/transfer/index.vue

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

2
pages/wallets/mine.vue

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

2
plugins/datafeed.js

@ -3,7 +3,7 @@ class Datafeed {
this.self = vm; this.self = vm;
} }
onReady(callback) { onReady(callback) {
console.log('onReady') // console.log('onReady')
var _this = this; var _this = this;
return new Promise(function (resolve) { return new Promise(function (resolve) {
var configuration = _this.defaultConfiguration(); 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) { Datafeeds.UDFCompatibleDatafeed.prototype._logMessage = function(message) {
if (this._enableLogging) { if (this._enableLogging) {
var now = new Date(); 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() { createMsg() {
console.log(this.contract) // console.log(this.contract)
console.log(`swapKline_${this.symbolName}_${this.resolution(this.interval)}`) // console.log(`swapKline_${this.symbolName}_${this.resolution(this.interval)}`)
if (this.contract) { if (this.contract) {
return `swapKline_${this.symbolName}_${this.resolution(this.interval)}` return `swapKline_${this.symbolName}_${this.resolution(this.interval)}`
} else { } else {

2
static/chart_main/old-datafeed.js

@ -82,7 +82,7 @@ Datafeeds.UDFCompatibleDatafeed.prototype.onInitialized = function() {
Datafeeds.UDFCompatibleDatafeed.prototype._logMessage = function(message) { Datafeeds.UDFCompatibleDatafeed.prototype._logMessage = function(message) {
if (this._enableLogging) { if (this._enableLogging) {
var now = new Date(); 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) { timestampToTime(timestamp) {
const date = new Date(timestamp); const date = new Date(timestamp);
const getHours = date.getHours() > 12 ? date.getHours() - 12 : date.getHours() + 12
const yyyy = `${date.getFullYear()}`; const yyyy = `${date.getFullYear()}`;
const yy = `${date.getFullYear()}`.substr(2); const yy = `${date.getFullYear()}`.substr(2);
const MM = `0${date.getMonth() + 1}`.slice(-2); const MM = `0${date.getMonth() + 1}`.slice(-2);
const dd = `0${date.getDate()}`.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); const mm = `0${date.getMinutes()}`.slice(-2);
@ -458,8 +460,8 @@ $(function () {
} }
// 生成订阅数据 // 生成订阅数据
createMsg() { createMsg() {
console.log(this.contract) // console.log(this.contract)
console.log(`swapKline_${this.symbolName}_${this.resolution(this.interval)}`) // console.log(`swapKline_${this.symbolName}_${this.resolution(this.interval)}`)
if (this.contract) { if (this.contract) {
return `swapKline_${this.symbolName}_${this.resolution(this.interval)}` return `swapKline_${this.symbolName}_${this.resolution(this.interval)}`
} else { } else {

2
utils/class/date.js

@ -64,7 +64,7 @@ function parseTime(time, isOffset = false, cformat = null) {
s: date.getSeconds(), s: date.getSeconds(),
a: date.getDay() a: date.getDay()
}; };
console.log(date); // console.log(date);
// 星期值需要转化为中文 // 星期值需要转化为中文
dataObj.a = '星期' + ['日', '一', '二', '三', '四', '五', '六'][dataObj.a]; dataObj.a = '星期' + ['日', '一', '二', '三', '四', '五', '六'][dataObj.a];

2
utils/vendor/upload.js

@ -113,7 +113,7 @@ class Upload {
// 验证大小 // 验证大小
ins.checkSize(); ins.checkSize();
console.log(ins.errno); // console.log(ins.errno);
// 验证不通过 则直接触发reject // 验证不通过 则直接触发reject
console.log() console.log()
if (ins.error) throw new Error(ins.errno); if (ins.error) throw new Error(ins.errno);

Loading…
Cancel
Save