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
14 KiB
1 lines
14 KiB
{"version":3,"sources":["webpack:///C:/Users/liudan/Desktop/git/huajucanyin/components/wanl-timeout/wanl-timeout.vue?744d","webpack:///C:/Users/liudan/Desktop/git/huajucanyin/components/wanl-timeout/wanl-timeout.vue?c6b1","webpack:///C:/Users/liudan/Desktop/git/huajucanyin/components/wanl-timeout/wanl-timeout.vue?f257","webpack:///C:/Users/liudan/Desktop/git/huajucanyin/components/wanl-timeout/wanl-timeout.vue?1865","uni-app:///components/wanl-timeout/wanl-timeout.vue","webpack:///C:/Users/liudan/Desktop/git/huajucanyin/components/wanl-timeout/wanl-timeout.vue?dd1d","webpack:///C:/Users/liudan/Desktop/git/huajucanyin/components/wanl-timeout/wanl-timeout.vue?4b0f"],"names":["name","props","endTime","type","default","showDay","showSsec","showColon","tipsContent","TimeContent","backgroundColor","borderColor","companyColor","color","padding","margin","data","day","hou","min","sec","ssec","content","created","methods","time","_this","parseInt","clearInterval"],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAyH;AACzH;AACgE;AACL;AACc;;;AAGzE;AACqK;AACrK,gBAAgB,+KAAU;AAC1B,EAAE,kFAAM;AACR,EAAE,uFAAM;AACR,EAAE,gGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,2FAAU;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;AAAmnB,CAAgB,goBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACiCvoB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAXA,eAYA;EACAA;EACAC;IACAC;MACAC;MACAC;IACA;IACAC;MACAF;MACAC;IACA;IACAE;MACAH;MACAC;IACA;IACAG;MACAJ;MACAC;IACA;IACAI;MACAL;MACAC;IACA;IACAK;MACAN;MACAC;IACA;IACAM;MACAP;MACAC;IACA;IACAO;MACAR;MACAC;IACA;IACAQ;MACAT;MACAC;IACA;IACAS;MACAV;MACAC;IACA;IACAU;MACAX;MACAC;IACA;IACAW;MACAZ;MACAC;IACA;EACA;EACAY;IACA;MACAC;MAAA;MACAC;MAAA;MACAC;MAAA;MACAC;MAAA;MACAC;MAAA;MACAC;IACA;EACA;EACAC;IACA;EACA;EACAC;IACAC;MACA;MACA;QACA;QACA;QACA;UACA;UAEAC;UACA;UACAA,sFACA,mBACAC;UACAD,sFACA,gBACA;UACAA,sFACA,gBACA;UACAA;QACA;UACA;UACAA;UACAE;QACA;MACA;IACA;EACA;AACA;AAAA,2B;;;;;;;;;;;;AC3IA;AAAA;AAAA;AAAA;AAAsqC,CAAgB,unCAAG,EAAC,C;;;;;;;;;;;ACA1rC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"components/wanl-timeout/wanl-timeout.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./wanl-timeout.vue?vue&type=template&id=53dbab04&\"\nvar renderjs\nimport script from \"./wanl-timeout.vue?vue&type=script&lang=js&\"\nexport * from \"./wanl-timeout.vue?vue&type=script&lang=js&\"\nimport style0 from \"./wanl-timeout.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../k/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/wanl-timeout/wanl-timeout.vue\"\nexport default component.exports","export * from \"-!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./wanl-timeout.vue?vue&type=template&id=53dbab04&\"","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 \"-!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./wanl-timeout.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./wanl-timeout.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"wanl-timeout\" :style=\"{color: color}\">\r\n\t\t<view v-if=\"content\" class=\"wanl-timeout__content\">\r\n\t\t\t{{content}}\r\n\t\t</view>\r\n\t\t<view v-else class=\"wanl-timeout__time\">\r\n\t\t\t<view class=\"tips\" :style=\"{color: companyColor}\"> {{tipsContent}} </view>\r\n\t\t\t<view v-if=\"showDay && (day > 0)\" class=\"character\"\r\n\t\t\t\t:style=\"{ borderColor: borderColor, backgroundColor: backgroundColor, padding: padding, margin: '0 ' + margin}\">\r\n\t\t\t\t{{day}}</view>\r\n\t\t\t<view v-if=\"showDay && (day > 0)\" class=\"company\"> 天 </view>\r\n\t\t\t<view class=\"character\"\r\n\t\t\t\t:style=\"{ borderColor: borderColor, backgroundColor: backgroundColor, padding: padding, margin: '0 ' + margin}\">\r\n\t\t\t\t{{hou}}\r\n\t\t\t</view>\r\n\t\t\t<view class=\"company\" :style=\"{color: companyColor}\"> {{ showColon ? ':' : '时' }} </view>\r\n\t\t\t<view class=\"character\"\r\n\t\t\t\t:style=\"{ borderColor: borderColor, backgroundColor: backgroundColor, padding: padding, margin: '0 ' + margin}\">\r\n\t\t\t\t{{min}}</view>\r\n\t\t\t<view class=\"company\" :style=\"{color: companyColor}\"> {{ showColon ? ':' : '分' }} </view>\r\n\t\t\t<view class=\"character\"\r\n\t\t\t\t:style=\"{ borderColor: borderColor, backgroundColor: backgroundColor, padding: padding, margin: '0 ' + margin}\">\r\n\t\t\t\t{{sec}}</view>\r\n\t\t\t<view class=\"company\" :style=\"{color: companyColor}\"> {{ showColon ? '′' : '秒' }} </view>\r\n\t\t\t<view v-if=\"showSsec\" class=\"character\"\r\n\t\t\t\t:style=\"{ borderColor: borderColor, backgroundColor: backgroundColor, padding: padding, margin: '0 ' + margin}\">\r\n\t\t\t\t{{ssec}}</view>\r\n\t\t\t<view v-if=\"!showColon && showSsec\" class=\"company\" :style=\"{color: companyColor}\"> 毫秒 </view>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\t/**\r\n\t * WanlTimeout 倒计时\r\n\t * @description 倒计时组件 深圳前海万联科技有限公司 https://www.wanlshop.com(除万联官方内嵌系统,未经授权严禁使用)\r\n\t * @著作权:WanlShop 登记号:2020SR0255711 版本:V1.1.0\r\n\t * @property {String} endTime 时间戳\r\n\t * @property {String} backgroundColor 背景色\r\n\t * @property {String} color 文字颜色\r\n\t * @property {Boolean} showDay = [true|false] 是否显示天数\r\n\t * @property {Boolean} showColon = [true|false] 是否以冒号为分隔符\r\n\t * @property {String} splitorColor 分割符号颜色\r\n\t * @example <wanl-timeout endTime=\"1621803285\" color=\"#222222\" backgroundColor=\"#ffffff\" borderColor=\"#ffffff\" padding=\"0\" margin=\"0\" />\r\n\t */\r\n\texport default {\r\n\t\tname: 'WanlTimeout',\r\n\t\tprops: {\r\n\t\t\tendTime: {\r\n\t\t\t\ttype: Number,\r\n\t\t\t\tdefault: ''\r\n\t\t\t},\r\n\t\t\tshowDay: {\r\n\t\t\t\ttype: Boolean,\r\n\t\t\t\tdefault: true\r\n\t\t\t},\r\n\t\t\tshowSsec: {\r\n\t\t\t\ttype: Boolean,\r\n\t\t\t\tdefault: true\r\n\t\t\t},\r\n\t\t\tshowColon: {\r\n\t\t\t\ttype: Boolean,\r\n\t\t\t\tdefault: true\r\n\t\t\t},\r\n\t\t\ttipsContent: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: '剩余'\r\n\t\t\t},\r\n\t\t\tTimeContent: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: '活动已结束'\r\n\t\t\t},\r\n\t\t\tbackgroundColor: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: '#007AFF'\r\n\t\t\t},\r\n\t\t\tborderColor: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: '#000000'\r\n\t\t\t},\r\n\t\t\tcompanyColor: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: '#7b7b7b'\r\n\t\t\t},\r\n\t\t\tcolor: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: '#fff'\r\n\t\t\t},\r\n\t\t\tpadding: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: '4rpx'\r\n\t\t\t},\r\n\t\t\tmargin: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: '2rpx'\r\n\t\t\t}\r\n\t\t},\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tday: '', //天\r\n\t\t\t\thou: '', //时\r\n\t\t\t\tmin: '', //分\r\n\t\t\t\tsec: '', //秒\r\n\t\t\t\tssec: '', //毫秒\r\n\t\t\t\tcontent: '', //倒计时完成结束语\r\n\t\t\t};\r\n\t\t},\r\n\t\tcreated() {\r\n\t\t\tthis.time(this.endTime)\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\ttime(timestamp) {\r\n\t\t\t\tlet _this = this;\r\n\t\t\t\tlet interval = setInterval(function timestampToTime() {\r\n\t\t\t\t\t// let closeTime = new Date(timestamp).getTime();\r\n\t\t\t\t\tlet data = (new Date(timestamp * 1000)) - (new Date());\r\n\t\t\t\t\tif (data > 0) {\r\n\t\t\t\t\t\tlet time = data / 1000;\r\n\r\n\t\t\t\t\t\t_this.day = parseInt(time / (60 * 60 * 24));\r\n\t\t\t\t\t\t// 获取时、分、秒、毫秒\r\n\t\t\t\t\t\t_this.hou = parseInt((time % (60 * 60 * 24)) / 3600) < 10 ? ('0' + parseInt((time % (60 *\r\n\t\t\t\t\t\t\t\t60 * 24)) / 3600)) :\r\n\t\t\t\t\t\t\tparseInt((time % (60 * 60 * 24)) / 3600);\r\n\t\t\t\t\t\t_this.min = parseInt(((time % (60 * 60 * 24)) % 3600) / 60) < 10 ? ('0' + parseInt((time %\r\n\t\t\t\t\t\t\t(60 * 60 * 24) %\r\n\t\t\t\t\t\t\t3600) / 60)) : parseInt(((time % (60 * 60 * 24)) % 3600) / 60);\r\n\t\t\t\t\t\t_this.sec = parseInt(((time % (60 * 60 * 24)) % 3600) % 60) < 10 ? ('0' + parseInt(((time %\r\n\t\t\t\t\t\t\t\t(60 * 60 * 24)) %\r\n\t\t\t\t\t\t\t3600) % 60)) : parseInt(((time % (60 * 60 * 24)) % 3600) % 60);\r\n\t\t\t\t\t\t_this.ssec = parseInt(((data % (60 * 60 * 24)) % 3600) / 60) % 10;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// 自定义活动结束语\r\n\t\t\t\t\t\t_this.content = _this.TimeContent\r\n\t\t\t\t\t\tclearInterval(interval)\r\n\t\t\t\t\t}\r\n\t\t\t\t}, 100)\r\n\t\t\t},\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n\t.wanl-timeout {\r\n\t\t&__content {}\r\n\r\n\t\t&__time {\r\n\t\t\tdisplay: flex;\r\n\t\t\talign-items: center;\r\n\r\n\t\t\t.character {\r\n\t\t\t\tborder-radius: 6rpx;\r\n\t\t\t\tborder: 2rpx solid #fff;\r\n\t\t\t\tline-height: 1.2;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n</style>\r\n","import mod from \"-!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./wanl-timeout.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./wanl-timeout.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1699839793755\n var cssReload = require(\"C:/Users/liudan/Desktop/k/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":""} |