1 |
- {"version":3,"sources":["webpack:///D:/kongwenhao/HQT-PRO/hlm_pl_mall_h5/pages/CountDown.vue?811d","webpack:///D:/kongwenhao/HQT-PRO/hlm_pl_mall_h5/pages/CountDown.vue?8bc0","webpack:///D:/kongwenhao/HQT-PRO/hlm_pl_mall_h5/pages/CountDown.vue?e1a9","webpack:///D:/kongwenhao/HQT-PRO/hlm_pl_mall_h5/pages/CountDown.vue?b635","uni-app:///pages/CountDown.vue","webpack:///D:/kongwenhao/HQT-PRO/hlm_pl_mall_h5/pages/CountDown.vue?6de5","webpack:///D:/kongwenhao/HQT-PRO/hlm_pl_mall_h5/pages/CountDown.vue?f0d2"],"names":["name","data","flag","day","hours","minute","second","time","props","timesurplus","timelimithour","timetype","styletype","ifTimeBlock","mounted","clearInterval","methods","timeDown","leftTime","formate"],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAkI;AAClI;AAC6D;AACL;AACsC;;;AAG9F;AAC0L;AAC1L,gBAAgB,uMAAU;AAC1B,EAAE,+EAAM;AACR,EAAE,gGAAM;AACR,EAAE,yGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,oGAAU;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;AAAytB,CAAgB,qvBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;eCQ7uB;EACAA;EACAC;IACA;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;IACA;EACA;EACAC;IACAC;IACAC;IACAC;IACAC;IACAC;EACA;EACAC;IAAA;IACA;MACA;QACAC;MACA;QACA;MACA;IACA;EACA;EACAC;IACAC;MACA;MACA;QACAC;MACA;QACAA;MACA;MACA;QACA;MACA;MAEA;MACA;MACA;MACA;QACA;QACA;MACA;IACA;IACA;AACA;AACA;IACAC;MACA;QACA;MACA;QACA;MACA;IACA;EACA;AACA;AAAA,2B;;;;;;;;;;;;ACnEA;AAAA;AAAA;AAAA;AAAw3C,CAAgB,o2CAAG,EAAC,C;;;;;;;;;;;ACA54C;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/CountDown.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./CountDown.vue?vue&type=template&id=307884f0&scoped=true&\"\nvar renderjs\nimport script from \"./CountDown.vue?vue&type=script&lang=js&\"\nexport * from \"./CountDown.vue?vue&type=script&lang=js&\"\nimport style0 from \"./CountDown.vue?vue&type=style&index=0&id=307884f0&scoped=true&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../HBuilderX.3.7.11.20230427/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 \"307884f0\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/CountDown.vue\"\nexport default component.exports","export * from \"-!../../../HBuilderX.3.7.11.20230427/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../HBuilderX.3.7.11.20230427/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../HBuilderX.3.7.11.20230427/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../HBuilderX.3.7.11.20230427/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../HBuilderX.3.7.11.20230427/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../HBuilderX.3.7.11.20230427/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./CountDown.vue?vue&type=template&id=307884f0&scoped=true&\"","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 \"-!../../../HBuilderX.3.7.11.20230427/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../HBuilderX.3.7.11.20230427/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../HBuilderX.3.7.11.20230427/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../HBuilderX.3.7.11.20230427/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../HBuilderX.3.7.11.20230427/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 \"-!../../../HBuilderX.3.7.11.20230427/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../HBuilderX.3.7.11.20230427/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../HBuilderX.3.7.11.20230427/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../HBuilderX.3.7.11.20230427/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../HBuilderX.3.7.11.20230427/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=\"div common-count-down\">\r\n <text class=\"span\" v-if=\"!styletype\"><text class=\"span\" :class=\"{'time':ifTimeBlock}\">{{ day }}</text> 天 </text><text class=\"span\" :class=\"{'time':ifTimeBlock}\">{{ hours }}</text><text class=\"span\" v-if=\"!styletype\"> 时 </text><text class=\"span\" v-else>:</text><text class=\"span\" :class=\"{'time':ifTimeBlock}\">{{ minute }}</text><text class=\"span\" v-if=\"!styletype\"> 分 </text><text class=\"span\" v-else>:</text><text class=\"span\" :class=\"{'time':ifTimeBlock}\">{{ second }}</text><text class=\"span\" v-if=\"!styletype\"> 秒</text>\r\n </view>\r\n</template>\r\n\r\n<script>\r\n\r\nexport default {\r\n name: 'CountDown',\r\n data () {\r\n return {\r\n flag: false,\r\n day: '',\r\n hours: '',\r\n minute: '',\r\n second: '',\r\n time: ''\r\n }\r\n },\r\n props: {\r\n timesurplus: {},\r\n timelimithour: {},\r\n timetype: {},\r\n styletype:{},\r\n\tifTimeBlock:{}\r\n },\r\n mounted () {\r\n this.time = setInterval(() => {\r\n if (this.flag == true) {\r\n clearInterval(this.time)\r\n } else {\r\n this.timeDown()\r\n }\r\n }, 1000)\r\n },\r\n methods: {\r\n timeDown () {\r\n let leftTime = 0\r\n if (this.timetype == 1) {\r\n leftTime = parseInt(this.timesurplus / 1000)\r\n } else if (this.timetype == 2) {\r\n leftTime = parseInt((this.timesurplus * 1000 + this.timelimithour * 60 * 60 * 1000 - new Date().getTime()) / 1000)\r\n }\r\n if(!this.styletype){\r\n this.day = parseInt(leftTime / (24 * 60 * 60))\r\n }\r\n\r\n this.hours = this.formate(parseInt((leftTime / (60 * 60)) % 24))\r\n this.minute = this.formate(parseInt((leftTime / 60) % 60))\r\n this.second = this.formate(parseInt(leftTime % 60))\r\n if (leftTime <= 0) {\r\n this.flag = true\r\n this.$emit('time-end')\r\n }\r\n },\r\n /*\r\n * 格式化时间\r\n */\r\n formate (time) {\r\n if (time >= 10) {\r\n return time\r\n } else {\r\n return `0${time}`\r\n }\r\n }\r\n }\r\n}\r\n</script>\r\n<style scoped lang='scss'>\r\n.common-count-down{\r\n font-size:$fontSize;color:#999;\r\n}\r\n.common-count-down .time {\r\n\tdisplay: inline-block;\r\n\twidth: 16px;\r\n\theight: 16px;\r\n\tborder-radius: 2px;\r\n\tbackground-color: #303133;\r\n\tcolor: #FFFFFF;\r\n\ttext-align: center;\r\n\tmargin: 0 3px;\r\n}\r\n</style>\r\n","import mod from \"-!../../../HBuilderX.3.7.11.20230427/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../HBuilderX.3.7.11.20230427/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../HBuilderX.3.7.11.20230427/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../HBuilderX.3.7.11.20230427/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../HBuilderX.3.7.11.20230427/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../HBuilderX.3.7.11.20230427/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../HBuilderX.3.7.11.20230427/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../HBuilderX.3.7.11.20230427/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../HBuilderX.3.7.11.20230427/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./CountDown.vue?vue&type=style&index=0&id=307884f0&scoped=true&lang=scss&\"; export default mod; export * from \"-!../../../HBuilderX.3.7.11.20230427/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../HBuilderX.3.7.11.20230427/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../HBuilderX.3.7.11.20230427/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../HBuilderX.3.7.11.20230427/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../HBuilderX.3.7.11.20230427/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../HBuilderX.3.7.11.20230427/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../HBuilderX.3.7.11.20230427/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../HBuilderX.3.7.11.20230427/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../HBuilderX.3.7.11.20230427/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./CountDown.vue?vue&type=style&index=0&id=307884f0&scoped=true&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1683857288729\n var cssReload = require(\"D:/kongwenhao/HBuilderX.3.7.11.20230427/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":""}
|