You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
7.0 KiB
1 line
7.0 KiB
{"remainingRequest":"D:\\Work\\WorkSpace\\GitWorkSpace\\TenShop\\resource\\WarehouseManager\\src\\WarehouseManagerVue\\node_modules\\babel-loader\\lib\\index.js!D:\\Work\\WorkSpace\\GitWorkSpace\\TenShop\\resource\\WarehouseManager\\src\\WarehouseManagerVue\\node_modules\\cache-loader\\dist\\cjs.js??ref--1-0!D:\\Work\\WorkSpace\\GitWorkSpace\\TenShop\\resource\\WarehouseManager\\src\\WarehouseManagerVue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\Work\\WorkSpace\\GitWorkSpace\\TenShop\\resource\\WarehouseManager\\src\\WarehouseManagerVue\\src\\components\\DateUtils.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\Work\\WorkSpace\\GitWorkSpace\\TenShop\\resource\\WarehouseManager\\src\\WarehouseManagerVue\\src\\components\\DateUtils.vue","mtime":1686472097259},{"path":"D:\\Work\\WorkSpace\\GitWorkSpace\\TenShop\\resource\\WarehouseManager\\src\\WarehouseManagerVue\\babel.config.js","mtime":1677915063811},{"path":"D:\\Work\\WorkSpace\\GitWorkSpace\\TenShop\\resource\\WarehouseManager\\src\\WarehouseManagerVue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1677927572803},{"path":"D:\\Work\\WorkSpace\\GitWorkSpace\\TenShop\\resource\\WarehouseManager\\src\\WarehouseManagerVue\\node_modules\\babel-loader\\lib\\index.js","mtime":1677927576192},{"path":"D:\\Work\\WorkSpace\\GitWorkSpace\\TenShop\\resource\\WarehouseManager\\src\\WarehouseManagerVue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1677927572803},{"path":"D:\\Work\\WorkSpace\\GitWorkSpace\\TenShop\\resource\\WarehouseManager\\src\\WarehouseManagerVue\\node_modules\\vue-loader\\lib\\index.js","mtime":1677927577316}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64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WFzZShuZXd0aW1lLmdldERhdGUoKSwgMikgKyAi5pelICIgKyB0aGlzLndlZWtbbmV3dGltZS5nZXREYXkoKV07IC8vdGhpcy5ob3VyPQogICAgICAvLyByZXR1cm4gYCR7dGhpcy50aW1lLmhvdXJ9OiR7dGhpcy50aW1lLm1pbml0dXN9OiR7dGhpcy50aW1lLnNlY29uZHN9YDsKICAgIH0sCgogICAgZ2V0SW5jcmVhc2UobnVtLCBkaWdpdCkgewogICAgICB2YXIgaW5jcmVhc2UgPSAiIjsKCiAgICAgIGZvciAodmFyIGkgPSAwOyBpIDwgZGlnaXQ7IGkrKykgewogICAgICAgIGluY3JlYXNlICs9ICIwIjsKICAgICAgfQoKICAgICAgcmV0dXJuIChpbmNyZWFzZSArIG51bSkuc2xpY2UoLWRpZ2l0KTsKICAgIH0KCiAgfQp9Ow=="},{"version":3,"mappings":"AAmBA;EACAA,iBADA;EAEAC,YAFA;;EAGAC;IACA;MACAC;QACAC,QADA;QAEAC,WAFA;QAGAC;MAHA,CADA;MAMAC,WANA;MAOAC,OACA,IADA,EAEA,IAFA,EAGA,IAHA,EAIA,IAJA,EAKA,IALA,EAMA,IANA,EAOA,IAPA;IAPA;EAiBA,CArBA;;EAsBAC;IACA;EACA,CAxBA;;EAyBAC;IACAC;MACA;MACAC;QACA;MACA,CAFA,EAEA,IAFA;IAGA,CANA;;IAOAC;MACA;MACA;MACA;MACA;MACA,eACA,6CACA,GADA,GAEA,2CAFA,GAGA,GAHA,GAIA,sCAJA,GAKA,IALA,GAMA,2BAPA,CALA,CAaA;MACA;IACA,CAtBA;;IAuBAC;MACA;;MACA;QACAC;MACA;;MACA;IACA;;EA7BA;AAzBA","names":["name","props","data","time","hour","minitus","seconds","nowTime","week","mounted","methods","dateTime","setTimeout","timeFormate","getIncrease","increase"],"sourceRoot":"src/components","sources":["DateUtils.vue"],"sourcesContent":["<!--\r\n * @Description: \r\n * @Author: Rabbiter\r\n * @Date: 2023-03-04 15:31:03\r\n-->\r\n<template >\r\n <div style=\"padding: 30px;font-size: 30px;color: orange;\">\r\n <span class=\"time\" id=\"time\" >\r\n <span class=\"date\">{{ nowTime }}</span>\r\n <span class=\"hour\" style=\"margin-left: 5px;\">{{time.hour}}</span>\r\n <a class=\"split\">:</a>\r\n <span class=\"minitus\">{{time.minitus}}</span>\r\n <a class=\"split\">:</a>\r\n <span class=\"seconds\">{{time.seconds}}</span>\r\n </span>\r\n </div>\r\n</template>\r\n\r\n<script>\r\n export default {\r\n name: \"DateUtils\",\r\n props: [\"s\"],\r\n data() {\r\n return {\r\n time: {\r\n hour: \"\",\r\n minitus: \"\",\r\n seconds: \"\"\r\n },\r\n nowTime: \"\",\r\n week: [\r\n \"周日\",\r\n \"周一\",\r\n \"周二\",\r\n \"周三\",\r\n \"周四\",\r\n \"周五\",\r\n \"周六\"\r\n ]\r\n };\r\n },\r\n mounted() {\r\n this.dateTime();\r\n },\r\n methods: {\r\n dateTime() {\r\n this.timeFormate();\r\n setTimeout(() => {\r\n this.dateTime();\r\n }, 1000);\r\n },\r\n timeFormate() {\r\n const newtime = new Date();\r\n this.time.hour = this.getIncrease(newtime.getHours(), 2);\r\n this.time.minitus = this.getIncrease(newtime.getMinutes(), 2);\r\n this.time.seconds = this.getIncrease(newtime.getSeconds(), 2);\r\n this.nowTime =\r\n this.getIncrease(newtime.getFullYear(), 4) +\r\n \"年\" +\r\n this.getIncrease(newtime.getMonth() + 1, 2) +\r\n \"月\" +\r\n this.getIncrease(newtime.getDate(), 2) +\r\n \"日 \" +\r\n this.week[newtime.getDay()];\r\n //this.hour=\r\n // return `${this.time.hour}:${this.time.minitus}:${this.time.seconds}`;\r\n },\r\n getIncrease(num, digit) {\r\n var increase = \"\";\r\n for (var i = 0; i < digit; i++) {\r\n increase += \"0\";\r\n }\r\n return (increase + num).slice(-digit);\r\n }\r\n }\r\n }\r\n</script>\r\n\r\n<style scoped>\r\n .txt-data .time {\r\n font-size: 1rem;\r\n margin-right: 0.5rem;\r\n }\r\n .split {\r\n animation: shark 1s step-end infinite;\r\n vertical-align: center;\r\n margin-left: 2px;\r\n margin-right: 2px;\r\n }\r\n @keyframes shark {\r\n 0%,\r\n 100% {\r\n opacity: 1;\r\n }\r\n 50% {\r\n opacity: 0;\r\n }\r\n }\r\n</style>"]}]} |