摘要: // 封装日期开始时间 结束时间 // 获取过去的时间要用负数 eg. this.handleDate(-1) handleDate(day) { let start = new Date(); let end = new Date(); let startDate = start.setTime( 阅读全文
posted @ 2023-03-14 16:50 呆宝。 阅读(41) 评论(0) 推荐(0)
摘要: //将时间戳转换成日期格式 timestampToTime(timestamp) { var date = new Date(timestamp); //时间戳为10位需*1000,时间戳为13位的话不需乘1000 var Y = date.getFullYear() + "-"; var M = 阅读全文
posted @ 2023-03-14 16:21 呆宝。 阅读(462) 评论(0) 推荐(0)
摘要: <!-- @author: 呆宝 @desc: 数据看板图表分析优化 @date: 2023-03-06 --> <template> <!-- 数据趋势分析 --> <x-view class="importent-data-show"> <x-view class="top-info-bar"> 阅读全文
posted @ 2023-03-14 16:18 呆宝。 阅读(54) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文
posted @ 2021-08-14 13:46 呆宝。 阅读(49) 评论(0) 推荐(0)