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.4 KiB

{"version":3,"sources":["webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/components/CountDown.vue?a134","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/components/CountDown.vue?8ac1","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/components/CountDown.vue?067e","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/components/CountDown.vue?9900","uni-app:///components/CountDown.vue"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAsH;AACtH;AAC6D;AACL;;;AAGxD;AAC6M;AAC7M,gBAAgB,iNAAU;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;AAAwzB,CAAgB,uyBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;ACc50B;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 \"!../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./CountDown.vue?vue&type=script&lang=js&\"","<template>\n <view class=\"time\">\n {{ tipText }}\n <text class=\"styleAll\" v-if=\"isDay === true\">{{ day }}</text>\n <text class=\"timeTxt\">{{ dayText }}</text>\n <text class=\"styleAll\">{{ hour }}</text>\n <text class=\"timeTxt\">{{ hourText }}</text>\n <text class=\"styleAll\">{{ minute }}</text>\n <text class=\"timeTxt\">{{ minuteText }}</text>\n <text class=\"styleAll\">{{ second }}</text>\n <text class=\"timeTxt\">{{ secondText }}</text>\n </view>\n</template>\n<script>\nexport default {\n name: 'CountDown',\n props: {\n //距离开始提示文字\n tipText: {\n type: String,\n default: '倒计时',\n },\n dayText: {\n type: String,\n default: '天',\n },\n hourText: {\n type: String,\n default: '时',\n },\n minuteText: {\n type: String,\n default: '分',\n },\n secondText: {\n type: String,\n default: '秒',\n },\n datatime: {},\n isDay: {\n type: Boolean,\n default: true,\n },\n },\n data: function () {\n return {\n time: null,\n day: '00',\n hour: '00',\n minute: '00',\n second: '00',\n }\n },\n created: function () {\n this.show_time()\n },\n watch: {\n datatime(val) {\n clearInterval(this.timeInterval)\n this.time = val\n this.show_time()\n },\n },\n mounted: function () {},\n methods: {\n show_time: function () {\n let that = this\n\n if (parseInt(this.time).length == 13) {\n // 毫秒级\n console.log('毫秒')\n this.time = this.time / 1000\n } else if (parseInt(this.time).length == 10) {\n console.log('秒')\n // 秒级\n } else {\n // 时间\n console.log('时间')\n console.log(this.time)\n this.time = Date.parse(this.time) / 1000\n }\n console.log(that.time)\n\n function runTime() {\n //时间函数\n let intDiff = that.time - Date.parse(new Date()) / 1000 //获取数据中的时间戳的时间差;\n let day = 0,\n hour = 0,\n minute = 0,\n second = 0\n if (intDiff > 0) {\n //转换时间\n if (that.isDay === true) {\n day = Math.floor(intDiff / (60 * 60 * 24))\n } else {\n day = 0\n }\n hour = Math.floor(intDiff / (60 * 60)) - day * 24\n minute = Math.floor(intDiff / 60) - day * 24 * 60 - hour * 60\n second = Math.floor(intDiff) - day * 24 * 60 * 60 - hour * 60 * 60 - minute * 60\n if (hour <= 9) hour = '0' + hour\n if (minute <= 9) minute = '0' + minute\n if (second <= 9) second = '0' + second\n that.day = day\n that.hour = hour\n that.minute = minute\n that.second = second\n } else {\n that.day = '00'\n that.hour = '00'\n that.minute = '00'\n that.second = '00'\n }\n }\n runTime()\n this.timeInterval = setInterval(runTime, 1000)\n },\n },\n}\n</script>\n"],"sourceRoot":""}