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

1 line
9.5 KiB
Plaintext

{"version":3,"sources":[null,"webpack:///D:/chen/登锐小程序(uniapp)/dengrui/components/flyInCart.vue?82bf","webpack:///D:/chen/登锐小程序(uniapp)/dengrui/components/flyInCart.vue?0072","webpack:///D:/chen/登锐小程序(uniapp)/dengrui/components/flyInCart.vue?218f","uni-app:///components/flyInCart.vue","webpack:///D:/chen/登锐小程序(uniapp)/dengrui/components/flyInCart.vue?9f13","webpack:///D:/chen/登锐小程序(uniapp)/dengrui/components/flyInCart.vue?05ed"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAkI;AAClI;AAC6D;AACL;AACqC;;;AAG7F;AACmK;AACnK,gBAAgB,6KAAU;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;AAAsmB,CAAgB,mnBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;ACS1nB;AACA;AACA,0BADA,CACA;AADA,GADA;AAIA,MAJA,kBAIA;AACA;AACA,gBADA;AAEA,gBAFA;AAGA,cAHA;AAIA,cAJA;AAKA,eALA;AAMA;AACA,mBAPA;AAQA,gBARA;;AAUA,GAfA;AAgBA,SAhBA,qBAgBA;AACA;AACA;AACA;AACA;AACA;AACA,GAtBA;AAuBA;AACA,YADA,sBACA;AACA;AACA,KAHA;AAIA,aAJA,qBAIA,CAJA,EAIA,EAJA,EAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAFA,MAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAlBA;;;AAqBA,OArBA;AAsBA;AACA;AACA;AACA;AACA,WAFA,EAEA,GAFA;AAGA;AACA,SA5BA,EAqBA,uEAMA;AAEA;AACA,KAlCA,EAvBA,E;;;;;;;;;;;;ACTA;AAAA;AAAA;AAAA;AAAi5B,CAAgB,g4BAAG,EAAC,C;;;;;;;;;;;ACAr6B;AACA,OAAO,KAAU,EAAE,kBAKd","file":"components/flyInCart.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./flyInCart.vue?vue&type=template&id=6deac18d&scoped=true&\"\nvar renderjs\nimport script from \"./flyInCart.vue?vue&type=script&lang=js&\"\nexport * from \"./flyInCart.vue?vue&type=script&lang=js&\"\nimport style0 from \"./flyInCart.vue?vue&type=style&index=0&id=6deac18d&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 \"6deac18d\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"components/flyInCart.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!./flyInCart.vue?vue&type=template&id=6deac18d&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!./flyInCart.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!./flyInCart.vue?vue&type=script&lang=js&\"","<template>\n\t<view class=\"relative\">\n\t\t<view class=\"ball\" v-for=\"(d,i) in balls\" :key=\"i\" :style=\" d.inited ? 'transition: transform .5s ease-in; transform: translate3d(0, ' + offsetY + 'px,0); top: ' + ballY + 'px;' : '' \">\n\t\t\t<view class=\"inner arbg\" :style=\"d.inited ? 'transition: transform .5s linear; transform: translate3d( ' + offsetX + 'px,0,0); left: ' + ballX + 'px; opacity: 1;' : '' \"></view>\n\t\t</view>\n\t</view>\n</template>\n \r\n<script>\n\texport default {\r\n\t\tprops:{\r\n\t\t\tcartBasketRect:Object,// 购物车篮的rect信息\r\n\t\t},\n\t\t data() { \r\n\t\t \treturn {\r\n\t\t\t\toffsetX: 0,\r\n\t\t\t\toffsetY: 0,\r\n\t\t\t\tballX: 0,\r\n\t\t\t\tballY: 0,\r\n\t\t\t\tballs: {},\r\n\t\t\t\t//避免抖动\r\n\t\t\t\tlastEvent:'',\r\n\t\t\t\tlastId:''\r\n\t\t\t}\r\n\t\t },\r\n\t\t created() {\r\n\t\t\t \tlet balls = [];\r\n\t\t\t \tfor (let i = 0; i < 5; i++) {\r\n\t\t\t \t\tballs.push({ inited: false });\r\n\t\t\t \t}\r\n\t\t\t\tthis.balls = balls\r\n\t\t },\r\n\t\t methods:{\r\n\t\t\t getBalls() {\r\n\t\t\t \treturn balls;\r\n\t\t\t },\r\n\t\t\t addToCart (e,id) {\r\n\t\t\t\t if(!id){\r\n\t\t\t\t\t this.lastId = ''\r\n\t\t\t\t\t return\r\n\t\t\t\t }\r\n\t\t\t\t const self = this\r\n\t\t\t\t if(this.lastId == id){\r\n\t\t\t\t\t e = this.lastEvent\r\n\t\t\t\t }else{\r\n\t\t\t\t\t this.lastId = id\r\n\t\t\t\t\t this.lastEvent = e\r\n\t\t\t\t }\r\n\t\t\t\t // 微信 app等可能 偏移 可以根据需要微调\r\n let ballX = e.touches[0].clientX - 10\r\n let\tballY = e.touches[0].clientY - 9;\r\n this.offsetX = -Math.abs(this.cartBasketRect.left - ballX + 10)\r\n this.offsetY = Math.abs(this.cartBasketRect.top - ballY +(this.cartBasketRect.height/1.5))\r\n this.ballX = ballX\r\n this.ballY = ballY\r\n \r\n \r\n for (let i = 0; i < 5; i++) {\r\n if (!this.balls[i].inited) {\r\n this.balls[i].inited = true\r\n setTimeout(() => {\r\n self.balls[i].inited= false\r\n }, 500);\r\n break;\r\n }\r\n }\r\n\t\t\t }\r\n\t\t }\r\n\t\t \r\n\t\t \n\t}\n</script>\n\n \n<style scoped>\n.ball {\n\tposition: fixed;\r\n\tz-index:8;\n}\n.ball .inner {\r\n\tbackground: #ff9900;\n\twidth: 30rpx;\n\theight: 30rpx;\n\tposition: fixed;\n\tborder-radius: 50%;\n\topacity: 0;\n}\n</style> ","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!./flyInCart.vue?vue&type=style&index=0&id=6deac18d&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!./flyInCart.vue?vue&type=style&index=0&id=6deac18d&scoped=true&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1625644998695\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":""}