1 |
- {"version":3,"sources":["webpack:///G:/item/appBase/components/countDown/index.vue?a3d7","webpack:///G:/item/appBase/components/countDown/index.vue?1293","webpack:///G:/item/appBase/components/countDown/index.vue?9a37","webpack:///G:/item/appBase/components/countDown/index.vue?1f6b","uni-app:///components/countDown/index.vue","webpack:///G:/item/appBase/components/countDown/index.vue?bfc6","webpack:///G:/item/appBase/components/countDown/index.vue?83e9"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAkH;AAClH;AACyD;AACL;AACa;;;AAGjE;AAC2K;AAC3K,gBAAgB,oLAAU;AAC1B,EAAE,2EAAM;AACR,EAAE,gFAAM;AACR,EAAE,yFAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,oFAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;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;AAA6nB,CAAgB,kpBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;ACejpB;AACA,mBADA;AAEA;AACA;AACA,kBADA;AAEA,iBAFA,EADA;;AAKA;AACA;AACA,kBADA;AAEA,oBAFA,EANA;;AAUA;AACA,kBADA;AAEA,kBAFA,EAVA;;AAcA;AACA,kBADA;AAEA,kBAFA,EAdA;;AAkBA;AACA,kBADA;AAEA,kBAFA,EAlBA;;AAsBA;AACA,kBADA;AAEA,kBAFA,EAtBA;;AA0BA;AACA,kBADA;AAEA,gBAFA,EA1BA;;AA8BA;AACA,mBADA;AAEA,mBAFA,EA9BA,EAFA;;;AAqCA;AACA;AACA,eADA;AAEA,gBAFA;AAGA,kBAHA;AAIA,kBAJA;;AAMA,GA5CA;AA6CA;AACA;AACA,GA/CA;AAgDA,gCAhDA;AAiDA;AACA;AACA;;AAEA;AACA;AACA,oEAFA,CAEA;AACA;AACA,gBADA;AAEA,kBAFA;AAGA,kBAHA;AAIA;AACA;AACA;AACA;AACA,WAFA,MAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BADA;AAEA,wBAFA;AAGA,qBAJA;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SArBA,MAqBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAzCA,EAjDA,E;;;;;;;;;;;;ACfA;AAAA;AAAA;AAAA;AAA25B,CAAgB,q5BAAG,EAAC,C;;;;;;;;;;;ACA/6B;AACA,OAAO,KAAU,EAAE,kBAKd","file":"components/countDown/index.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./index.vue?vue&type=template&id=e5c41dae&\"\nvar renderjs\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!D:\\\\work\\\\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/index.vue\"\nexport default component.exports","export * from \"-!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=template&id=e5c41dae&\"","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:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"time\" :style=\"justifyLeft\">\r\n\t\t<text class=\"red\" v-if=\"tipText\">{{ tipText }}</text>\r\n\t\t<text class=\"styleAll\" v-if=\"isDay === true\">{{ day }}</text>\r\n\t\t<text class=\"timeTxt red\" v-if=\"dayText\">{{ dayText }}</text>\r\n\t\t<text class=\"styleAll\">{{ hour }}</text>\r\n\t\t<text class=\"timeTxt red\" v-if=\"hourText\">{{ hourText }}</text>\r\n\t\t<text class=\"styleAll\">{{ minute }}</text>\r\n\t\t<text class=\"timeTxt red\" v-if=\"minuteText\">{{ minuteText }}</text>\r\n\t\t<text class=\"styleAll\">{{ second }}</text>\r\n\t\t<text class=\"timeTxt red\" v-if=\"secondText\">{{ secondText }}</text>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\texport default {\r\n\t\tname: \"countDown\",\r\n\t\tprops: {\r\n\t\t\tjustifyLeft: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: \"\"\r\n\t\t\t},\r\n\t\t\t//距离开始提示文字\r\n\t\t\ttipText: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: \"倒计时\"\r\n\t\t\t},\r\n\t\t\tdayText: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: \"天\"\r\n\t\t\t},\r\n\t\t\thourText: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: \"时\"\r\n\t\t\t},\r\n\t\t\tminuteText: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: \"分\"\r\n\t\t\t},\r\n\t\t\tsecondText: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: \"秒\"\r\n\t\t\t},\r\n\t\t\tdatatime: {\r\n\t\t\t\ttype: Number,\r\n\t\t\t\tdefault: 0\r\n\t\t\t},\r\n\t\t\tisDay: {\r\n\t\t\t\ttype: Boolean,\r\n\t\t\t\tdefault: true\r\n\t\t\t}\r\n\t\t},\r\n\t\tdata: function() {\r\n\t\t\treturn {\r\n\t\t\t\tday: \"00\",\r\n\t\t\t\thour: \"00\",\r\n\t\t\t\tminute: \"00\",\r\n\t\t\t\tsecond: \"00\"\r\n\t\t\t};\r\n\t\t},\r\n\t\tcreated: function() {\r\n\t\t\tthis.show_time();\r\n\t\t},\r\n\t\tmounted: function() {},\r\n\t\tmethods: {\r\n\t\t\tshow_time: function() {\r\n\t\t\t\tlet that = this;\r\n\r\n\t\t\t\tfunction runTime() {\r\n\t\t\t\t\t//时间函数\r\n\t\t\t\t\tlet intDiff = that.datatime - Date.parse(new Date()) / 1000; //获取数据中的时间戳的时间差;\r\n\t\t\t\t\tlet day = 0,\r\n\t\t\t\t\t\thour = 0,\r\n\t\t\t\t\t\tminute = 0,\r\n\t\t\t\t\t\tsecond = 0;\r\n\t\t\t\t\tif (intDiff > 0) {\r\n\t\t\t\t\t\t//转换时间\r\n\t\t\t\t\t\tif (that.isDay === true) {\r\n\t\t\t\t\t\t\tday = Math.floor(intDiff / (60 * 60 * 24));\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tday = 0;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\thour = Math.floor(intDiff / (60 * 60)) - day * 24;\r\n\t\t\t\t\t\tminute = Math.floor(intDiff / 60) - day * 24 * 60 - hour * 60;\r\n\t\t\t\t\t\tsecond =\r\n\t\t\t\t\t\t\tMath.floor(intDiff) -\r\n\t\t\t\t\t\t\tday * 24 * 60 * 60 -\r\n\t\t\t\t\t\t\thour * 60 * 60 -\r\n\t\t\t\t\t\t\tminute * 60;\r\n\t\t\t\t\t\tif (hour <= 9) hour = \"0\" + hour;\r\n\t\t\t\t\t\tif (minute <= 9) minute = \"0\" + minute;\r\n\t\t\t\t\t\tif (second <= 9) second = \"0\" + second;\r\n\t\t\t\t\t\tthat.day = day;\r\n\t\t\t\t\t\tthat.hour = hour;\r\n\t\t\t\t\t\tthat.minute = minute;\r\n\t\t\t\t\t\tthat.second = second;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthat.day = \"00\";\r\n\t\t\t\t\t\tthat.hour = \"00\";\r\n\t\t\t\t\t\tthat.minute = \"00\";\r\n\t\t\t\t\t\tthat.second = \"00\";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\trunTime();\r\n\t\t\t\tsetInterval(runTime, 1000);\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n</script>\r\n\r\n<style>\r\n\t.time{\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: center;\r\n\t} \r\n\t.red{\r\n\t\tcolor: #fc4141;\r\n\t\tmargin: 0 4rpx;\r\n\t}\r\n</style>\r\n","import mod from \"-!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--6-oneOf-1-0!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--6-oneOf-1-1!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-2!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--6-oneOf-1-0!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--6-oneOf-1-1!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-2!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=style&index=0&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1618025084049\n var cssReload = require(\"D:/work/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""}
|