Browse Source

申购页面时间显示问题

master
liaoxinyu 9 months ago
parent
commit
ec41b93b2f
  1. 2
      pages/exchange/exchange-transaction.vue
  2. 3
      utils/class/date.js

2
pages/exchange/exchange-transaction.vue

@ -823,7 +823,7 @@ export default {
this.getDefaultPrice();
// let n = this.progress[this.sliderActive];// --
let n = this.sliderActive;// --
this.sliderChange(n, this.sliderActive);
// this.sliderChange(n, this.sliderActive);
},
//
getValue(amount) {

3
utils/class/date.js

@ -134,7 +134,8 @@ function convertTo12HourFormat(dateTimeStr) {
// hours = String(hours % 12 || 12).padStart(2, '0'); // 0转换为12
// 格式化输出
return `${day}-${month}-${year} ${hours}:${minutes}:${seconds} ${ampm}`;
// return `${day}-${month}-${year} ${hours}:${minutes}:${seconds} ${ampm}`;
return `${day}-${month}-${year}`;
}

Loading…
Cancel
Save