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 lines
8.9 KiB
1 lines
8.9 KiB
{"version":3,"sources":["webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/components/CountDown.vue?0864","webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/components/CountDown.vue?1acb","webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/components/CountDown.vue?1902","webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/components/CountDown.vue?cbb8","uni-app:///components/CountDown.vue"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAsH;AACtH;AAC6D;AACL;;;AAGxD;AAC+M;AAC/M,gBAAgB,uNAAU;AAC1B,EAAE,+EAAM;AACR,EAAE,oFAAM;AACR,EAAE,6FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,wFAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACtBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAAqzB,CAAgB,q0BAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;ACcz0B;AACA,mBADA;AAEA;AACA;AACA;AACA,kBADA;AAEA,oBAFA,EAFA;;AAMA;AACA,kBADA;AAEA,kBAFA,EANA;;AAUA;AACA,kBADA;AAEA,kBAFA,EAVA;;AAcA;AACA,kBADA;AAEA,kBAFA,EAdA;;AAkBA;AACA,kBADA;AAEA,kBAFA,EAlBA;;AAsBA,gBAtBA;AAuBA;AACA,mBADA;AAEA,mBAFA,EAvBA,EAFA;;;AA8BA;AACA;AACA,gBADA;AAEA,eAFA;AAGA,gBAHA;AAIA,kBAJA;AAKA,kBALA;;AAOA,GAtCA;AAuCA;AACA;AACA,GAzCA;AA0CA;AACA,YADA,oBACA,GADA,EACA;AACA;AACA;AACA;AACA,KALA,EA1CA;;AAiDA,gCAjDA;AAkDA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAJA,MAIA;AACA;AACA;AACA,OAHA,MAGA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,gEAFA,CAEA;AACA;AACA,gBADA;AAEA,kBAFA;AAGA,kBAHA;AAIA;AACA;AACA;AACA;AACA,WAFA,MAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAjBA,MAiBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KApDA,EAlDA,E","file":"components/CountDown.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./CountDown.vue?vue&type=template&id=9b31e1f4&\"\nvar renderjs\nimport script from \"./CountDown.vue?vue&type=script&lang=js&\"\nexport * from \"./CountDown.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\runtime\\\\componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"components/CountDown.vue\"\nexport default component.exports","export * from \"-!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./CountDown.vue?vue&type=template&id=9b31e1f4&\"","var components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./CountDown.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./CountDown.vue?vue&type=script&lang=js&\"","<template>\r\n <view class=\"time\">\r\n {{ tipText }}\r\n <text class=\"styleAll\" v-if=\"isDay === true\">{{ day }}</text>\r\n <text class=\"timeTxt\">{{ dayText }}</text>\r\n <text class=\"styleAll\">{{ hour }}</text>\r\n <text class=\"timeTxt\">{{ hourText }}</text>\r\n <text class=\"styleAll\">{{ minute }}</text>\r\n <text class=\"timeTxt\">{{ minuteText }}</text>\r\n <text class=\"styleAll\">{{ second }}</text>\r\n <text class=\"timeTxt\">{{ secondText }}</text>\r\n </view>\r\n</template>\r\n<script>\r\nexport default {\r\n name: 'CountDown',\r\n props: {\r\n //距离开始提示文字\r\n tipText: {\r\n type: String,\r\n default: '倒计时',\r\n },\r\n dayText: {\r\n type: String,\r\n default: '天',\r\n },\r\n hourText: {\r\n type: String,\r\n default: '时',\r\n },\r\n minuteText: {\r\n type: String,\r\n default: '分',\r\n },\r\n secondText: {\r\n type: String,\r\n default: '秒',\r\n },\r\n datatime: {},\r\n isDay: {\r\n type: Boolean,\r\n default: true,\r\n },\r\n },\r\n data: function () {\r\n return {\r\n time: null,\r\n day: '00',\r\n hour: '00',\r\n minute: '00',\r\n second: '00',\r\n }\r\n },\r\n created: function () {\r\n this.show_time()\r\n },\r\n watch: {\r\n datatime(val) {\r\n clearInterval(this.timeInterval)\r\n this.time = val\r\n this.show_time()\r\n },\r\n },\r\n mounted: function () {},\r\n methods: {\r\n show_time: function () {\r\n let that = this\r\n\r\n if (parseInt(this.time).length == 13) {\r\n // 毫秒级\r\n console.log('毫秒')\r\n this.time = this.time / 1000\r\n } else if (parseInt(this.time).length == 10) {\r\n console.log('秒')\r\n // 秒级\r\n } else {\r\n // 时间\r\n console.log('时间')\r\n console.log(this.time)\r\n this.time = Date.parse(this.time) / 1000\r\n }\r\n console.log(that.time)\r\n\r\n function runTime() {\r\n //时间函数\r\n let intDiff = that.time - Date.parse(new Date()) / 1000 //获取数据中的时间戳的时间差;\r\n let day = 0,\r\n hour = 0,\r\n minute = 0,\r\n second = 0\r\n if (intDiff > 0) {\r\n //转换时间\r\n if (that.isDay === true) {\r\n day = Math.floor(intDiff / (60 * 60 * 24))\r\n } else {\r\n day = 0\r\n }\r\n hour = Math.floor(intDiff / (60 * 60)) - day * 24\r\n minute = Math.floor(intDiff / 60) - day * 24 * 60 - hour * 60\r\n second = Math.floor(intDiff) - day * 24 * 60 * 60 - hour * 60 * 60 - minute * 60\r\n if (hour <= 9) hour = '0' + hour\r\n if (minute <= 9) minute = '0' + minute\r\n if (second <= 9) second = '0' + second\r\n that.day = day\r\n that.hour = hour\r\n that.minute = minute\r\n that.second = second\r\n } else {\r\n that.day = '00'\r\n that.hour = '00'\r\n that.minute = '00'\r\n that.second = '00'\r\n }\r\n }\r\n runTime()\r\n this.timeInterval = setInterval(runTime, 1000)\r\n },\r\n },\r\n}\r\n</script>\r\n"],"sourceRoot":""} |