mall-laonong/unpackage/dist/dev/.sourcemap/mp-weixin/components/share-coupon/share-coupon.js.map

1 line
11 KiB
Plaintext

{"version":3,"sources":["webpack:///D:/老农商城/mall-laonong/components/share-coupon/share-coupon.vue?51ee","webpack:///D:/老农商城/mall-laonong/components/share-coupon/share-coupon.vue?1f77","webpack:///D:/老农商城/mall-laonong/components/share-coupon/share-coupon.vue?61b1","webpack:///D:/老农商城/mall-laonong/components/share-coupon/share-coupon.vue?39e7","uni-app:///components/share-coupon/share-coupon.vue","webpack:///D:/老农商城/mall-laonong/components/share-coupon/share-coupon.vue?3069","webpack:///D:/老农商城/mall-laonong/components/share-coupon/share-coupon.vue?1965"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAyH;AACzH;AACgE;AACL;AACa;;;AAGxE;AACoL;AACpL,gBAAgB,2LAAU;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;AAA8rB,CAAgB,4rBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACiBltB,uE;;;;;;;;;;;;;;;;eACA,EACA,oBADA,EAEA,SACA,SACA,YADA,EAEA,UAFA,EADA,EAFA,EAQA,IARA,kBAQA,CACA,SACA,eADA,EACA;AACA,qBAFA,CAEA;AAFA,MAIA,CAbA,EAcA,MAdA,oBAcA,CAEA,CAhBA,EAiBA;AACA;AACA,YAFA,sBAEA;AACA;AACA,4CADA;;AAGA,KANA;AAOA;AACA,cARA,sBAQA,EARA,EAQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBADA;AAEA;AACA;AACA,eAJA;AAKA;AACA;AACA,eAPA;;AASA,WAZA;AAaA,SAfA;AAgBA,OAlBA,MAkBA;AACA,KA7BA,EAjBA,E;;;;;;;;;;;;;AClBA;AAAA;AAAA;AAAA;AAAm/B,CAAgB,68BAAG,EAAC,C;;;;;;;;;;;ACAvgC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"components/share-coupon/share-coupon.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./share-coupon.vue?vue&type=template&id=ef72b3f8&\"\nvar renderjs\nimport script from \"./share-coupon.vue?vue&type=script&lang=js&\"\nexport * from \"./share-coupon.vue?vue&type=script&lang=js&\"\nimport style0 from \"./share-coupon.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../HBuilderX-app开发版/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/share-coupon/share-coupon.vue\"\nexport default component.exports","export * from \"-!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./share-coupon.vue?vue&type=template&id=ef72b3f8&\"","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-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./share-coupon.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./share-coupon.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"share-coupon pad-all20 border-box\">\r\n\t\t<view class=\"coupon radius100 flex\" @tap=\"goCoupon\">\r\n\t\t\t<view class=\"icon flex\">\r\n\t\t\t\t<image src=\"/static/icon/icon-coupon.png\" mode=\"widthFix\"></image>\r\n\t\t\t\t<text class=\"font24 color-ff\">领券</text>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view class=\"share radius100 flex\" @tap=\"shareImgEv(spuId)\">\r\n\t\t\t<view class=\"icon flex\">\r\n\t\t\t\t<image src=\"/static/icon/icon-share.png\" mode=\"widthFix\"></image>\r\n\t\t\t\t<text class=\"font24 color-ff\">分享给好友</text>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n<script>\r\n\timport { base64ToPath } from '@/jsFile/base64-src.js';\r\n export default {\r\n name:'share-coupon',\r\n\t\tprops:{\r\n\t\t\tspuId:{\r\n\t\t\t\ttype:Number,\r\n\t\t\t\tdefault:0\r\n\t\t\t}\r\n\t\t},\r\n data() {\r\n return {\r\n\t\t\t\tfootBarList:[], //底部列表\r\n\t\t\t\tshareFlag:true, //是否可分享\r\n };\r\n },\r\n\t\tonLoad() {\r\n\t\t\t\r\n\t\t},\r\n methods:{\r\n\t\t\t// 领券\r\n\t\t\tgoCoupon(){\r\n\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\turl:`/pagesA/coupon/coupon?index=1`\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t// 分享到微信\r\n\t\t\tshareImgEv(id){\r\n\t\t\t\tthis.$toolAll.tools.showToast('分享图生成中...','none',10000);\r\n\t\t\t\tif(this.shareFlag){\r\n\t\t\t\t\t\tthis.shareFlag = false;\r\n\t\t\t\t\t\tthis.$requst.post('/api/spu/share-img',{spu_id:id}).then(res=>{\r\n\t\t\t\t\t\t\tconsole.log(base64ToPath(res.data.poster),'分享图片')\r\n\t\t\t\t\t\t\t\tbase64ToPath(res.data.poster).then(path=>{\r\n\t\t\t\t\t\t\t\t\t\tuni.hideToast();\r\n\t\t\t\t\t\t\t\t\t\tthis.$toolAll.tools.showToast('正在调起分享...');\r\n\t\t\t\t\t\t\t\t\t\twx.showShareImageMenu({\r\n\t\t\t\t\t\t\t\t\t\t\t\tpath: path,\r\n\t\t\t\t\t\t\t\t\t\t\t\tsuccess:(res=>{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.shareFlag = true;\r\n\t\t\t\t\t\t\t\t\t\t\t\t}),\r\n\t\t\t\t\t\t\t\t\t\t\t\tfail:(err=>{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.shareFlag = true;\r\n\t\t\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t})\r\n\t\t\t\t} else {this.$toolAll.tools.showToast('请勿重复点击');}\r\n\t\t\t},\r\n }\r\n }\r\n</script>\r\n\r\n<style>\r\n\t.share-coupon{\r\n\t\twidth: 164rpx;\r\n\t\tposition: fixed;\r\n\t\tright: 0;\r\n\t\tbottom: 188rpx;\r\n\t\tz-index: 99;\r\n\t}\r\n\t.coupon{\r\n\t\tjustify-content: center;\r\n\t\talign-items: center;\r\n\t\twidth: 124rpx;\r\n\t\theight: 124rpx;\r\n\t\tbackground-color: #febf00;\r\n\t\tbox-shadow: 0 0 20rpx rgba(254,191,0,.4);\r\n\t\tmargin-bottom: 30rpx;\r\n\t}\r\n\t.coupon image{\r\n\t\twidth: 47rpx;\r\n\t\theight: 47rpx;\r\n\t}\r\n\t.coupon text{\r\n\t\twidth: 100%;\r\n\t\ttext-align: center;\r\n\t\tline-height: 1.2;\r\n\t\tmargin-top: 10rpx;\r\n\t}\r\n\t.share{\r\n\t\tjustify-content: center;\r\n\t\talign-items: center;\r\n\t\twidth: 124rpx;\r\n\t\theight: 124rpx;\r\n\t\tbackground-color: #00b809;\r\n\t\tbox-shadow: 0 0 20rpx rgba(0,184,9,.4);\r\n\t\tline-height: 1.6;\r\n\t}\r\n\t.share image{\r\n\t\twidth: 56rpx;\r\n\t\theight: 46rpx;\r\n\t}\r\n\t.share text{\r\n\t\twidth: 100%;\r\n\t\ttext-align: center;\r\n\t\tline-height: 1.2;\r\n\t\tmargin-top: 8rpx;\r\n\t\ttransform: scale(.84);\r\n\t}\r\n\t.coupon .icon,\r\n\t.share .icon{\r\n\t\tflex-wrap: wrap;\r\n\t\tjustify-content: center;\r\n\t}\r\n</style>\r\n","import mod from \"-!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./share-coupon.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./share-coupon.vue?vue&type=style&index=0&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1659600967227\n var cssReload = require(\"D:/HBuilderX-app开发版/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":""}