Browse Source

修改时间问题

master
liaoxinyu 1 month ago
parent
commit
36ae6e6b51
  1. 20
      pages/assets/draw1.vue
  2. 28
      static/chart_main/sevencoin.js
  3. 2
      static/js/jquery3_5_1.min.js
  4. 1
      static/js/pako1_0_9.min.js
  5. 1
      static/js/qs6_9_4.min.js
  6. 7
      static/tradingview.html

20
pages/assets/draw1.vue

@ -18,7 +18,7 @@
<el-steps direction="vertical" :active="active" style="min-height: 260px !important;width: 100%;box-sizing: border-box;"> <el-steps direction="vertical" :active="active" style="min-height: 260px !important;width: 100%;box-sizing: border-box;">
<el-step :title="$t('common.c21')" style="flex-basis: 110px;"> <el-step :title="$t('common.c21')" style="flex-basis: 110px;">
<template slot="description"> <template slot="description">
<view class="d-flex justify-between m-t-md" @click="coinListShow=true" style="border: 1px solid #4e4e5d;padding: 10px;"> <view class="d-flex justify-between m-t-md rounded-xs" @click="coinListShow=true" style="border: 1px solid #DCDFE6;padding: 10px;background-color: #fff;">
<view class="fn-20 color-light">{{ coin }}</view> <view class="fn-20 color-light">{{ coin }}</view>
<view class="d-flex align-center"> <view class="d-flex align-center">
{{ $t('recharge.a0') }} {{ $t('recharge.a0') }}
@ -30,7 +30,7 @@
<el-step :title="$t('common.c17')"> <el-step :title="$t('common.c17')">
<template slot="description"> <template slot="description">
<view style="margin: 10px 0px;width: 540rpx;"> <view style="margin: 10px 0px;width: 540rpx;">
<v-input @input="addressnum" v-model="form.address" class="bg-form-panel-3 color-light w-max fn-13 rounded-xs" :placeholder="$t('assets.b9')"></v-input> <v-input @input="addressnum" v-model="form.address" style="background-color: #fff;padding: 24rpx;color: #000;" class="rounded-xs" :placeholder="$t('assets.b9')"></v-input>
<el-select v-model="form.addressType" @change="enteraddressType" style="margin-top: 10px;width: 100%;" class="addressType" v-if="coin=='USDT'" :placeholder="$t('common.select')"> <el-select v-model="form.addressType" @change="enteraddressType" style="margin-top: 10px;width: 100%;" class="addressType" v-if="coin=='USDT'" :placeholder="$t('common.select')">
<el-option v-for="(item, index) in network" :key="index" :label="item.name" :value="item.id"> <el-option v-for="(item, index) in network" :key="index" :label="item.name" :value="item.id">
<span>{{ item.name }}</span> <span>{{ item.name }}</span>
@ -41,8 +41,8 @@
</el-step> </el-step>
<el-step :title="$t('common.c18')" v-if="form.address"> <el-step :title="$t('common.c18')" v-if="form.address">
<template slot="description"> <template slot="description">
<view style="margin: 10px 0px;color: #fff;width: 540rpx;"> <view style="margin: 10px 0px;color: #000;width: 540rpx;">
<v-input @input="amountnum" v-model="form.amount" :min="withdrawFee.withdrawal_min" :max="withdrawFee.withdrawal_max" class="color-light fn-13" :placeholder="$t('assets.c2')"></v-input> <v-input @input="amountnum" v-model="form.amount" :min="withdrawFee.withdrawal_min" :max="withdrawFee.withdrawal_max" style="background-color: #fff;padding: 24rpx;color: #000;" class="rounded-xs" :placeholder="$t('assets.c2')"></v-input>
<view class="d-flex justify-between align-end" style="margin: 10px 0px;"> <view class="d-flex justify-between align-end" style="margin: 10px 0px;">
<view style="width: 100%;">{{ $t("assets.c1") }}{{ withdrawFee.usable_balance }}{{ coin }}</view> <view style="width: 100%;">{{ $t("assets.c1") }}{{ withdrawFee.usable_balance }}{{ coin }}</view>
<view style="width: 100%;text-align: right;">{{$t('common.c23')}}{{timeFormat}}</view> <view style="width: 100%;text-align: right;">{{$t('common.c23')}}{{timeFormat}}</view>
@ -53,16 +53,16 @@
<el-step :title="$t('common.c13')" v-if="form.amount"> <el-step :title="$t('common.c13')" v-if="form.amount">
<template slot="description"> <template slot="description">
<view style="margin: 10px 0px;color: #fff;width: 540rpx;"> <view style="margin: 10px 0px;color: #fff;width: 540rpx;">
<v-input type="password" @input="withdrawalnum" v-model="form.withdrawal_psw" class="color-light w-max fn-13 rounded-xs" :placeholder="$t('common.c14')"></v-input> <v-input type="password" @input="withdrawalnum" v-model="form.withdrawal_psw" style="background-color: #fff;padding: 24rpx;color: #000;" class="rounded-xs" :placeholder="$t('common.c14')"></v-input>
</view> </view>
</template> </template>
</el-step> </el-step>
<el-step :title="$t('safe.a5')" v-if="form.withdrawal_psw"> <el-step :title="$t('safe.a5')" v-if="form.withdrawal_psw">
<template slot="description"> <template slot="description">
<view style="margin: 10px 0px;color: #fff;width: 540rpx;display: flex;"> <view style="margin: 10px 0px;color: #fff;width: 490rpx;display: flex;background-color: #fff;padding: 0rpx 24rpx;" class="rounded-xs">
<v-input type="text" v-model="form.emailcode" class="w-max color-light fn-13" :placeholder="$t('safe.a6')"></v-input> <v-input type="text" v-model="form.emailcode" class="w-max color-light fn-13" :placeholder="$t('safe.a6')"></v-input>
<view class="d-flex" style="justify-content: space-between;align-items: center;"> <view class="d-flex" style="justify-content: space-between;align-items: center;">
<view style="width: 180rpx;text-align: center;" class="all color-light m-l-md flex-shrink fn-12 getCode" @click="getEmailCode"> <view style="width: 180rpx;text-align: center;color: #000;" class="all color-light m-l-md flex-shrink fn-12 getCode" @click="getEmailCode">
<text v-if="!getEmailCodeLock">{{ $t("common.getCode") }}</text> <text v-if="!getEmailCodeLock">{{ $t("common.getCode") }}</text>
<text v-else>{{ daojishi }}</text> <text v-else>{{ daojishi }}</text>
</view> </view>
@ -380,7 +380,7 @@
color: #303133 !important; color: #303133 !important;
} }
::v-deep .el-input__inner{ ::v-deep .el-input__inner{
background-color: #242424; background-color: #fff;
} }
::v-deep .is-process .el-step__icon.is-text{ ::v-deep .is-process .el-step__icon.is-text{
border-color: #C0C4CC; border-color: #C0C4CC;
@ -393,13 +393,13 @@
left: 0; left: 0;
right: 0; right: 0;
bottom: 0; bottom: 0;
background-color: #f1f1f1; background-color: rgba(255, 255, 255, 0.8);
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
} }
.modal-content { .modal-content {
background-color: #1f1f1f; background-color: #fff;
padding: 20px; padding: 20px;
border-radius: 5px; border-radius: 5px;
width: 550rpx; width: 550rpx;

28
static/chart_main/sevencoin.js

@ -275,11 +275,31 @@ $(function () {
return dateStr return dateStr
} }
// adjustToEasternTime(date) {
// let timestamp;
// // 调整时间为美国东部时间
// timestamp = date - (-28800000)+(new Date(new Date().getTime()).getTimezoneOffset()* 60 * 1000) - 46800000;
// // 创建新的日期对象,并使用调整后的时间戳
// const adjustedDate = new Date(timestamp);
// // 返回调整后的日期对象
// return adjustedDate;
// }
adjustToEasternTime(date) { adjustToEasternTime(date) {
let timestamp; let timestamp;
// 调整时间为美国东部时间 // 判断日期是否在夏令时
timestamp = date - (-28800000)+(new Date(new Date().getTime()).getTimezoneOffset()* 60 * 1000) - 46800000; const dates = new Date(date);
const isInEDT = this.dateIsInEDT(dates);
// 根据是否在夏令时来调整时间
if (isInEDT) {
// 在夏令时期间
timestamp = date - (-28800000)+(new Date(new Date().getTime()).getTimezoneOffset()* 60 * 1000) - 43200000; // 使用43200000毫秒 = 12小时
} else {
// 在冬令时期间
timestamp = date - (-28800000)+(new Date(new Date().getTime()).getTimezoneOffset()* 60 * 1000) - 46800000; // 使用46800000毫秒 = 13小时
}
// 创建新的日期对象,并使用调整后的时间戳 // 创建新的日期对象,并使用调整后的时间戳
const adjustedDate = new Date(timestamp); const adjustedDate = new Date(timestamp);
@ -292,8 +312,8 @@ $(function () {
const start = new Date(Date.UTC(year, 2, 13, 7)); // March, 2nd Sunday const start = new Date(Date.UTC(year, 2, 13, 7)); // March, 2nd Sunday
const end = new Date(Date.UTC(year, 10, 6, 6)); // November, 1st Sunday const end = new Date(Date.UTC(year, 10, 6, 6)); // November, 1st Sunday
start.setUTCDate(14 - start.getUTCDay()); start.setUTCDate(13 - start.getUTCDay());
end.setUTCDate(7 - end.getUTCDay()); end.setUTCDate(3 - end.getUTCDay());
return date >= start && date < end; return date >= start && date < end;
} }

2
static/js/jquery3_5_1.min.js

File diff suppressed because one or more lines are too long

1
static/js/pako1_0_9.min.js

File diff suppressed because one or more lines are too long

1
static/js/qs6_9_4.min.js

File diff suppressed because one or more lines are too long

7
static/tradingview.html

@ -22,9 +22,12 @@
<body> <body>
<div class="tradingview" id="tradingview_10798345"></div> <div class="tradingview" id="tradingview_10798345"></div>
</body> </body>
<script src="https://www.skybtcs.com/newlink/mobile/jquery3_5_1.min.js"></script> <!-- <script src="https://www.skybtcs.com/newlink/mobile/jquery3_5_1.min.js"></script>
<script src="https://www.skybtcs.com/newlink/mobile/pako1_0_9.min.js"></script> <script src="https://www.skybtcs.com/newlink/mobile/pako1_0_9.min.js"></script>
<script src="https://www.skybtcs.com/newlink/mobile/qs6_9_4.min.js"></script> <script src="https://www.skybtcs.com/newlink/mobile/qs6_9_4.min.js"></script> -->
<script src="./js/jquery3_5_1.min.js"></script>
<script src="./js/pako1_0_9.min.js"></script>
<script src="./js/qs6_9_4.min.js"></script>
<script src="./chart_main/charting_library.min.js"></script> <script src="./chart_main/charting_library.min.js"></script>
<script src="./chart_main/ws.js"></script> <script src="./chart_main/ws.js"></script>
<script src="./chart_main/sevencoin.js?v=2"></script> <script src="./chart_main/sevencoin.js?v=2"></script>

Loading…
Cancel
Save