Files
supplier-dispatch-h5/node_modules/.cache/babel-loader/f40e093b31240a1b99783aa6bce1eaadfb67ddd4abb868f533607d8d4cbae738.json
2023-08-11 10:45:20 +08:00

1 line
2.9 KiB
JSON

{"ast":null,"code":"import \"core-js/modules/es.array.push.js\";\nexport const myMixins = {\n data() {\n return {\n touchStart: [],\n touchEnd: []\n };\n },\n methods: {\n goPage(page, query) {\n this.$router.push({\n name: page,\n query: query\n });\n },\n touchstartHandle(e) {\n let sx = e.touches[0].pageX;\n let sy = e.touches[0].pageY;\n this.touchStart = [sx, sy];\n console.log('e', e);\n console.log(this.touchStart);\n },\n touchendHandle(e) {\n console.log('end', e);\n },\n touchmoveHandle(e) {\n let sx = e.touches[0].pageX;\n let sy = e.touches[0].pageY;\n this.touchEnd = [sx, sy];\n console.log('move', e);\n console.log(this.touchEnd);\n }\n }\n};","map":{"version":3,"names":["myMixins","data","touchStart","touchEnd","methods","goPage","page","query","$router","push","name","touchstartHandle","e","sx","touches","pageX","sy","pageY","console","log","touchendHandle","touchmoveHandle"],"sources":["E:/work/sino/sino-h5/src/utils/myMixins.js"],"sourcesContent":["export const myMixins = {\r\n data() {\r\n return {\r\n touchStart: [],\r\n touchEnd: [],\r\n }\r\n },\r\n methods: {\r\n goPage(page, query) {\r\n this.$router.push({\r\n name: page,\r\n query: query\r\n })\r\n },\r\n touchstartHandle(e) {\r\n let sx = e.touches[0].pageX\r\n let sy = e.touches[0].pageY\r\n this.touchStart = [sx, sy]\r\n console.log('e', e)\r\n console.log(this.touchStart)\r\n },\r\n touchendHandle(e) {\r\n console.log('end', e)\r\n },\r\n touchmoveHandle(e) {\r\n let sx = e.touches[0].pageX;\r\n let sy = e.touches[0].pageY;\r\n this.touchEnd = [sx, sy]\r\n console.log('move', e)\r\n console.log(this.touchEnd)\r\n }\r\n }\r\n}\r\n"],"mappings":";AAAA,OAAO,MAAMA,QAAQ,GAAG;EACtBC,IAAIA,CAAA,EAAG;IACL,OAAO;MACLC,UAAU,EAAE,EAAE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