dengrui/unpackage/dist/dev/.sourcemap/mp-weixin/components/darke-cartsBall.js.map

1 line
13 KiB
Plaintext

{"version":3,"sources":["webpack:///D:/chen/登锐小程序(uniapp)/dengrui/components/darke-cartsBall.vue?5801","webpack:///D:/chen/登锐小程序(uniapp)/dengrui/components/darke-cartsBall.vue?df1b","webpack:///D:/chen/登锐小程序(uniapp)/dengrui/components/darke-cartsBall.vue?ce90","webpack:///D:/chen/登锐小程序(uniapp)/dengrui/components/darke-cartsBall.vue?2130","uni-app:///components/darke-cartsBall.vue","webpack:///D:/chen/登锐小程序(uniapp)/dengrui/components/darke-cartsBall.vue?7e42","webpack:///D:/chen/登锐小程序(uniapp)/dengrui/components/darke-cartsBall.vue?9efc"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAwI;AACxI;AACmE;AACL;AACqC;;;AAGnG;AACmK;AACnK,gBAAgB,6KAAU;AAC1B,EAAE,qFAAM;AACR,EAAE,sGAAM;AACR,EAAE,+GAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,0GAAU;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;AAA4mB,CAAgB,ynBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC0BhoB;AACA;AACA;AACA;AACA;AACA;AACA,KAFA,EAEA,KAFA;AAGA,GALA;AAMA,C;AACA;AACA;AACA;AACA,kBADA;AAEA,iBAFA,EADA;;AAKA;AACA,mBADA;AAEA,mBAFA,EALA;;AASA;AACA,kBADA;AAEA,aAFA,sBAEA;AACA;AACA,gBADA;AAEA,gBAFA;;AAIA,OAPA,EATA;;AAkBA;AACA,kBADA;AAEA,mBAFA,EAlBA;;AAsBA;AACA,kBADA;AAEA,mBAFA,EAtBA;;AA0BA;AACA,kBADA;AAEA,iBAFA,EA1BA;;AA8BA;AACA,kBADA;AAEA,oBAFA,EA9BA,EADA;;;AAoCA,MApCA,kBAoCA;AACA;AACA,eADA;AAEA,4CAFA;AAGA,kGAHA;;AAKA,GA1CA;AA2CA,SA3CA,qBA2CA;AACA;AACA,GA7CA;AA8CA;AACA,QADA,gBACA,GADA,EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAFA,MAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,eADA;AAEA;AACA,cADA;AAEA,cAFA,EAFA;;AAMA;AACA,cADA;AAEA,cAFA,EANA;;AAUA,cAVA;;AAYA;AACA;AACA,OAFA,EAEA,aAFA;AAGA;AACA,KArCA;AAsCA,aAtCA,uBAsCA;AACA;AACA;AACA;AACA;AACA,iBADA;AAEA;AACA,gBADA;AAEA,gBAFA,EAFA;;AAMA;AACA,gBADA;AAEA,gBAFA,EANA;;AAUA,gBAVA;;AAYA;AACA;AACA;AACA,KAzDA,EA9CA,E;;;;;;;;;;;;ACnCA;AAAA;AAAA;AAAA;AAAu5B,CAAgB,s4BAAG,EAAC,C;;;;;;;;;;;ACA36B;AACA,OAAO,KAAU,EAAE,kBAKd","file":"components/darke-cartsBall.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./darke-cartsBall.vue?vue&type=template&id=25d6eee9&scoped=true&\"\nvar renderjs\nimport script from \"./darke-cartsBall.vue?vue&type=script&lang=js&\"\nexport * from \"./darke-cartsBall.vue?vue&type=script&lang=js&\"\nimport style0 from \"./darke-cartsBall.vue?vue&type=style&index=0&id=25d6eee9&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../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 \"25d6eee9\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"components/darke-cartsBall.vue\"\nexport default component.exports","export * from \"-!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./darke-cartsBall.vue?vue&type=template&id=25d6eee9&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/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./darke-cartsBall.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./darke-cartsBall.vue?vue&type=script&lang=js&\"","<template>\r\n <view>\r\n <view class=\"ball-wrap\" v-for=\"(item, k) of balls\" :key=\"k\" :style=\"{\r\n\t\t\t\topacity: item.show,\r\n\t\t\t\ttop: item.start.y + 'px',\r\n\t\t\t\tleft: item.start.x + 'px',\r\n\t\t\t\ttransitionDuration: (item.show?(duration/1000):0)+'s',\r\n\t\t\t\t'transition-timing-function': xTimeFunction[!item.ani?0:1],\r\n\t\t\t\ttransform: 'translate3d('+item.offset.x+'px,0,0)',\r\n\t\t\t\tzIndex\r\n\t\t\t}\">\r\n <view class=\"ball\" :class=\"{ball3d:is3dSheet}\" :style=\"{\r\n\t\t\t\t\tmarginLeft: -size/2 + 'px',\r\n\t\t\t\t\tmarginTop: -size/2 + 'px',\r\n\t\t\t\t\tpadding: size + 'px',\r\n\t\t\t\t\tbackgroundImage: ballImage,\r\n\t\t\t\t\tbackgroundColor: ballColor,\r\n\t\t\t\t\ttransitionDuration: (item.show?(duration/1000):0)+'s',\r\n\t\t\t\t\ttransform: 'translate3d(0,'+item.offset.y+'px,0)',\r\n\t\t\t\t\t'transition-timing-function': yTimeFunction[item.ani?0:1]\r\n\t\t\t\t}\"></view>\r\n </view>\r\n </view>\r\n</template>\r\n\r\n<script>\r\n // 节流函数\r\n function debounce(func, delay, context) {\r\n return function() {\r\n func.id && clearTimeout(func.id);\r\n func.id = setTimeout(() => {\r\n func.apply(context, arguments)\r\n }, delay)\r\n }\r\n }\r\n export default {\r\n props: {\r\n size: {\r\n type: Number,\r\n default: 18\r\n },\r\n is3dSheet: {\r\n type: Boolean,\r\n default: true\r\n },\r\n endPos: {\r\n type: Object,\r\n default () {\r\n return {\r\n x: 150,\r\n y: 150\r\n }\r\n }\r\n },\r\n duration: {\r\n type: Number,\r\n default: 1000\r\n },\r\n zIndex: {\r\n type: Number,\r\n default: 9999\r\n },\r\n ballImage: {\r\n type: String,\r\n default: ''\r\n },\r\n ballColor: {\r\n type: String,\r\n default: 'red'\r\n }\r\n },\r\n data() {\r\n return {\r\n balls: [],\r\n xTimeFunction: ['ease-in', 'ease-out'],\r\n yTimeFunction: ['cubic-bezier(0.23,-0.85, 0.84,-0.01)', 'cubic-bezier(0, 0.59, 0.46, 2.15)']\r\n };\r\n },\r\n mounted() {\r\n this.initBalls()\r\n },\r\n methods: {\r\n drop(pos) {\r\n let ball\r\n for (var i = 0; i < this.balls.length; i++) {\r\n if (this.balls[i].show) {\r\n continue\r\n }\r\n ball = this.balls[i]\r\n }\r\n ball.start.x = pos.x\r\n ball.start.y = pos.y\r\n ball.offset.x = this.endPos.x - pos.x\r\n ball.offset.y = this.endPos.y - pos.y\r\n if (ball.offset.y > 0) {\r\n ball.ani = 1\r\n } else {\r\n ball.ani = 0\r\n }\r\n ball.show = 1\r\n\r\n // 无限加载\r\n this.balls.push({\r\n show: 0,\r\n start: {\r\n x: 0,\r\n y: 0\r\n },\r\n offset: {\r\n x: 0,\r\n y: 0\r\n },\r\n ani: 0\r\n })\r\n setTimeout(() => {\r\n ball.show = 0\r\n }, this.duration)\r\n debounce(this.initBalls, this.duration + 200, this)()\r\n },\r\n initBalls() {\r\n const balls = []\r\n // 解决微信自带浏览器渲染慢问题,先加载几个\r\n for (var i = 0; i < 3; i++) {\r\n const ball = {\r\n show: 0,\r\n start: {\r\n x: 0,\r\n y: 0\r\n },\r\n offset: {\r\n x: 0,\r\n y: 0\r\n },\r\n ani: 0\r\n }\r\n balls.push(ball)\r\n }\r\n this.balls = balls\r\n }\r\n }\r\n }\r\n</script>\r\n\r\n<style scoped>\r\n .ball-wrap {\r\n position: fixed;\r\n transform: translateZ(0);\r\n z-index: 999;\r\n transition-property: transform;\r\n pointer-events:none;\r\n \r\n } \r\n .ball{\r\n width: 0 ;height: 0;\r\n padding: 40rpx;\r\n border-radius: 40rpx;\r\n overflow: hidden background-repeat no-repeat background-size cover;\r\n transform: translateZ(0);\r\n transition-property: transform opacity;\r\n } \r\n</style>\n","import mod from \"-!../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./darke-cartsBall.vue?vue&type=style&index=0&id=25d6eee9&scoped=true&lang=css&\"; export default mod; export * from \"-!../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./darke-cartsBall.vue?vue&type=style&index=0&id=25d6eee9&scoped=true&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1625642861997\n var cssReload = require(\"D:/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":""}