1 line
20 KiB
Plaintext
1 line
20 KiB
Plaintext
{"version":3,"sources":[null,"webpack:///D:/chenq/chen/uniapp(兼小程序)/dengrui/components/ay-qrcode/ay-qrcode.vue?0790","webpack:///D:/chenq/chen/uniapp(兼小程序)/dengrui/components/ay-qrcode/ay-qrcode.vue?d38c","webpack:///D:/chenq/chen/uniapp(兼小程序)/dengrui/components/ay-qrcode/ay-qrcode.vue?dfe0","uni-app:///components/ay-qrcode/ay-qrcode.vue","webpack:///D:/chenq/chen/uniapp(兼小程序)/dengrui/components/ay-qrcode/ay-qrcode.vue?e9d0","webpack:///D:/chenq/chen/uniapp(兼小程序)/dengrui/components/ay-qrcode/ay-qrcode.vue?6e7e"],"names":[],"mappings":"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","file":"components/ay-qrcode/ay-qrcode.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./ay-qrcode.vue?vue&type=template&id=1db347e8&scoped=true&\"\nvar renderjs\nimport script from \"./ay-qrcode.vue?vue&type=script&lang=js&\"\nexport * from \"./ay-qrcode.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ay-qrcode.vue?vue&type=style&index=0&id=1db347e8&scoped=true&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../HbuilderX/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 \"1db347e8\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"components/ay-qrcode/ay-qrcode.vue\"\nexport default component.exports","export * from \"-!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./ay-qrcode.vue?vue&type=template&id=1db347e8&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/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./ay-qrcode.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./ay-qrcode.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view :class=\"modal?'show-qrcode':'hide-qrcode'\">\r\n\t\t<view class=\"box-qrcode\" :style=\"{'margin-left': marginLeft + 'px'}\" @longtap=\"longtapCode\">\r\n\t\t\t<!-- style=\"width: 550rpx;height: 550rpx;\" -->\r\n\t\t\t\r\n\t\t\t<canvas class=\"canvas-qrcode\" :style=\"style_w_h\" :canvas-id=\"qrcode_id\">\r\n\t\t\t\t\r\n\t\t\t\t<!-- #ifndef MP -->\r\n\t\t\t\t<view v-if=\"modal&&is_themeImg\" :style=\"style_w_h\" class=\"box-img-qrcode\">\r\n\t\t\t\t\t<image :style=\"style_w_h_img\" mode=\"scaleToFill\" :src=\"themeImg\"></image>\r\n\t\t\t\t</view>\r\n\t\t\t\t<!-- #endif -->\r\n\t\t\t\t\r\n\t\t\t</canvas>\r\n\t\t\t\r\n\t\t\t<!-- <image mode=\"scaleToFill\" :src=\"imagePath\"></image> -->\r\n\t\t\t\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\tvar qr_we = require(\"./qrcode_wx.js\");\r\n\tconst qrCode = require('./weapp-qrcode.js')\r\n\texport default {\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tisAndroid : false ,\r\n\t\t\t\tshow: true,\r\n\t\t\t\timagePath: '',\r\n\t\t\t\t// qrcode_id: 'qrcode_id',\r\n\t\t\t\tmarginLeft: 0,\r\n\t\t\t\t//一般的安卓app只需加30就能显示全\r\n\t\t\t\t//苹果app的不加就能显示全,加了就要弄margin-left\r\n\t\t\t\t//有些安卓app显示不全\r\n\t\t\t\tadd_num : 30 ,\r\n\t\t\t\tadd_num_key : 'rectify_code_key',\r\n\t\t\t}\r\n\t\t},\r\n\t\tprops: {\r\n\t\t\tmodal: {\r\n\t\t\t\ttype: Boolean,\r\n\t\t\t\tdefault: false\r\n\t\t\t},\r\n\t\t\turl: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: ''\r\n\t\t\t},\r\n\t\t\theight: {\r\n\t\t\t\ttype: Number,\r\n\t\t\t\tdefault: 260\r\n\t\t\t},\r\n\t\t\twidth: {\r\n\t\t\t\ttype: Number,\r\n\t\t\t\tdefault: 260\r\n\t\t\t},\r\n\t\t\tthemeColor: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: '#333333',\r\n\t\t\t},\r\n\t\t\tqrcode_id: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: 'qrcode_id',\r\n\t\t\t},\r\n\t\t\tis_themeImg: {\r\n\t\t\t\ttype: Boolean,\r\n\t\t\t\tdefault: false,\r\n\t\t\t},\r\n\t\t\tthemeImg: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: 'https://cdn.pixabay.com/photo/2016/11/29/13/24/balloons-1869816__340.jpg',\r\n\t\t\t},\r\n\t\t\th_w_img: {\r\n\t\t\t\ttype: Number,\r\n\t\t\t\tdefault: 30\r\n\t\t\t},\r\n\t\t\t\r\n\t\t\t\r\n\t\t},\r\n\t\twatch:{\r\n\t\t\t\r\n\t\t},\r\n\t\tcomputed: {\r\n\t\t\tstyle_w_h() {\r\n\t\t\t\treturn this.set_style_w_h();\r\n\t\t\t},\r\n\t\t\tstyle_w_h_img() {\r\n\t\t\t\tlet that = this;\r\n\t\t\t\tvar height = parseInt(that.h_w_img);\r\n\t\t\t\tvar width = parseInt(that.h_w_img);\r\n\t\t\t\tvar style = '';\r\n\t\t\t\tif (height > 0) {\r\n\t\t\t\t\tstyle = `height:${height*2}rpx;`;\r\n\t\t\t\t}\r\n\t\t\t\tif (width > 0) {\r\n\t\t\t\t\tstyle += `width:${width*2}rpx;z-index: 2;`;\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t\treturn style;\r\n\t\t\t},\r\n\t\t},\r\n\t\tcreated: function() {\r\n\t\t\tlet that = this;\r\n\t\t\ttry {\r\n\t\t\t\t//app苹果二维码不居中\r\n\t\t\t\t//#ifndef MP\r\n\t\t\t\tlet isAndroid = false ;\r\n\t\t\t const res = uni.getSystemInfoSync();\r\n\t\t\t if(res.platform == 'android'){\r\n\t\t\t\t\tisAndroid = true ;\r\n\t\t\t\t}else{\r\n\t\t\t\t\tisAndroid = false ;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tif (!isAndroid) {\r\n\t\t\t\t\tthat.marginLeft = 46;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tthat.isAndroid = isAndroid ;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tconst add_num = uni.getStorageSync(that.add_num_key);\r\n\t\t\t\t\tif (add_num) {\r\n\t\t\t\t\t\tthat.add_num = add_num;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (e) {\r\n\t\t\t\t\t// error\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t// #endif\r\n\r\n\t\t\t} catch (e) {\r\n\t\t\t // error\r\n\t\t\t}\r\n\r\n\t\t\t//#ifdef MP\r\n\t\t\t//that.marginLeft = 40;\r\n\t\t\t// #endif\r\n\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tset_style_w_h(){\r\n\t\t\t\t\r\n\t\t\t\tlet that = this;\r\n\t\t\t\tvar height = parseInt(that.height);\r\n\t\t\t\tvar width = parseInt(that.width);\r\n\t\t\t\tvar style = '';\r\n\t\t\t\tvar height = height*2 ;\r\n\t\t\t\tvar width = width*2 ;\r\n\t\t\t\t\r\n\t\t\t\t//#ifndef MP\r\n\t\t\t\tvar add = that.add_num ;\r\n\t\t\t\t\r\n\t\t\t\theight += add;\r\n\t\t\t\twidth += add;\r\n\t\t\t\t// #endif\r\n\t\t\t\t\r\n\t\t\t\tif (height > 0) {\r\n\t\t\t\t\tstyle = `height:${height}rpx;`;\r\n\t\t\t\t}\r\n\t\t\t\tif (width > 0) {\r\n\t\t\t\t\tstyle += `width:${width}rpx;`;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\treturn style;\r\n\t\t\t},\r\n\t\t\thideQrcode() {\r\n\t\t\t\tthis.$emit(\"hideQrcode\")\r\n\t\t\t},\r\n\t\t\t// 二维码生成工具\r\n\t\t\tcrtQrCode() {\r\n\t\t\t\tlet that = this;\r\n\t\t\t\t//#ifndef MP\r\n\t\t\t\tnew qrCode(that.qrcode_id, {\r\n\t\t\t\t\ttext: this.url,\r\n\t\t\t\t\twidth: that.width,\r\n\t\t\t\t\theight: that.height,\r\n\t\t\t\t\tcolorDark: that.themeColor,//#333333\r\n\t\t\t\t\tcolorLight: \"#FFFFFF\",\r\n\t\t\t\t\tcorrectLevel: qrCode.CorrectLevel.H,\r\n\t\t\t\t})\r\n\t\t\t\t// #endif\r\n\t\t\t\t//#ifdef MP\r\n\t\t\t\tthat.createQrCode(this.url, that.qrcode_id, that.width, that.height,that.themeColor,that.is_themeImg,that.themeImg,that.h_w_img);\r\n\t\t\t\t// #endif\r\n\r\n\t\t\t\t//that.createQrCode(this.url, that.qrcode_id, that.width, that.height);\r\n\t\t\t},\r\n\t\t\t//#ifdef MP\r\n\r\n\t\t\tcreateQrCode: function(url, canvasId, cavW, cavH,cavColor,haveImg,imgurl,imgsize) {\r\n\t\t\t\t//调用插件中的draw方法,绘制二维码图片\r\n\t\t\t\tqr_we.api.draw(url, canvasId, cavW, cavH,cavColor,haveImg,imgurl,imgsize, this, this.canvasToTempImage);\r\n\t\t\t\t// setTimeout(() => { this.canvasToTempImage();},100);\r\n\r\n\t\t\t},\r\n\t\t\t\r\n\t\t\t// #endif\r\n\t\t\t//获取临时缓存照片路径,存入data中\r\n\t\t\tcanvasToTempImage: function() {\r\n\t\t\t\tvar that = this;\r\n\t\t\t},\r\n\t\t\tsaveImage: function() {\r\n\t\t\t\tvar that = this;\r\n\t\t\t\tuni.canvasToTempFilePath({\r\n\t\t\t\t\tcanvasId: that.qrcode_id,\r\n\t\t\t\t\tsuccess: function(res) {\r\n\t\t\t\t\t\tvar tempFilePath = res.tempFilePath;\r\n\t\t\t\t\t\tconsole.log(tempFilePath);\r\n\t\t\t\t\t\tthat.imagePath = tempFilePath;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//保存到相册\r\n\t\t\t\t\t\t// uni.saveFile({\r\n\t\t\t\t\t\t// tempFilePath: tempFilePath,\r\n\t\t\t\t\t\t// success: function (res2) {\r\n\t\t\t\t\t\t// var savedFilePath = res2.savedFilePath;\r\n\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\t\t// });\r\n\t\t\t\t\t\tuni.saveImageToPhotosAlbum({\r\n\t\t\t\t\t\t\tfilePath : tempFilePath ,\r\n\t\t\t\t\t\t\tsuccess: function (res3) {\r\n\t\t\t\t\t\t\t\tuni.showModal({\r\n\t\t\t\t\t\t\t\t\ttitle: '提示',\r\n\t\t\t\t\t\t\t\t\tcontent: '保存成功',\r\n\t\t\t\t\t\t\t\t\tconfirmText: '确定',\r\n\t\t\t\t\t\t\t\t\tshowCancel: false,\r\n\t\t\t\t\t\t\t\t\tconfirmColor: '#33CCCC',\r\n\t\t\t\t\t\t\t\t\tsuccess(res4) {\r\n\t\t\t\t\t\t\t\t\t\t\r\n\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\t},\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t},\r\n\t\t\t\t\tfail: function(res) {\r\n\t\t\t\t\t\tconsole.log(res);\r\n\t\t\t\t\t}\r\n\t\t\t\t}, that);\r\n\t\t\t},\r\n\t\t\t//微信小程序支持:长按二维码,提示是否保存相册\r\n\t\t\t//安卓APP长按校正二维码\r\n\t\t\tlongtapCode(){\r\n\t\t\t\tvar that = this;\r\n\t\t\t\t\r\n\t\t\t\t//#ifndef MP\r\n\t\t\t\tuni.showModal({\r\n\t\t\t\t\ttitle: '校正二维码',\r\n\t\t\t\t\tcontent: '二维码是否异常',\r\n\t\t\t\t\tconfirmText: '确定',\r\n\t\t\t\t\tconfirmColor: '#33CCCC',\r\n\t\t\t\t\tsuccess(res) {\r\n\t\t\t\t\t\tif (res.confirm) {\r\n\t\t\t\t\t\t\tthat.rectify_code();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t\t// #endif\r\n\t\t\t\t\r\n\t\t\t\t//#ifdef MP-WEIXIN\r\n\t\t\t\tuni.showModal({\r\n\t\t\t\t\ttitle: '提示',\r\n\t\t\t\t\tcontent: '是否保存到相册',\r\n\t\t\t\t\tconfirmText: '确定',\r\n\t\t\t\t\tconfirmColor: '#33CCCC',\r\n\t\t\t\t\tsuccess(res) {\r\n\t\t\t\t\t\tif (res.confirm) {\r\n\t\t\t\t\t\t\tthat.saveImage();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t\t// #endif\r\n\t\t\t},\r\n\t\t\t//安卓有些手机不正常,长按可选择矫正\r\n\t\t\trectify_code(){\r\n\t\t\t\tvar that = this;\r\n\t\t\t\tlet add_num = that.add_num ;\r\n\t\t\t\tadd_num += 30 ;\r\n\t\t\t\tthat.add_num = add_num;\r\n\t\t\t\tthat.crtQrCode();//重新生成才会立即覆盖\r\n\t\t\t\ttry {\r\n\t\t\t\t\t//第一次长按校正设置了就不用在设置\r\n\t\t\t\t\tuni.setStorage({\r\n\t\t\t\t\t\tkey: that.add_num_key,\r\n\t\t\t\t\t\tdata: add_num,\r\n\t\t\t\t\t\tsuccess: function() {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t} catch (e) {\r\n\t\t\t\t\t// error\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t},\r\n\t\tmounted() {}\r\n\t}\r\n</script>\r\n\r\n<style scoped lang=\"scss\">\r\n\t// .qrcode-box {\r\n\t// \tposition: fixed;\r\n\t// \tleft: 0;\r\n\t// \ttop: 0;\r\n\t// \tright: 0;\r\n\t// \tbottom: 0;\r\n\t// \theight: 100vh;\r\n\t// \twidth: 100vw;\r\n\t// \tbackground-color: rgba(59, 59, 59, 0.6);\r\n\t// \t// opacity: 0.8;\r\n\t// \ttext-align: center;\r\n\t// \tdisplay: flex;\r\n\t// \talign-items: center;\r\n\t// \tdisplay: none;\r\n\r\n\t// \t.qrcode-item {\r\n\t// \t\tflex: 1;\r\n\t// \t\tposition: relative;\r\n\t// \t\ttext-align: center;\r\n\r\n\t// \t\t.item-box {\r\n\t// \t\t\twidth: 90%;\r\n\t// \t\t\tmargin: auto;\r\n\t// \t\t\tdisplay: inline-block;\r\n\t// \t\t\tmargin-top: 30%;\r\n\t// \t\t\tpadding-bottom: 30rpx;\r\n\r\n\t// \t\t\t// animation: show 0.7s;\r\n\t// \t\t\t.title {\r\n\t// \t\t\t\tfont-size: 46rpx;\r\n\t// \t\t\t\ttext-align: center;\r\n\t// \t\t\t\tmargin-bottom: 24rpx;\r\n\t// \t\t\t}\r\n\r\n\t// \t\t\t.canvas {\r\n\t// \t\t\t\tmargin: auto;\r\n\t// \t\t\t\tdisplay: inline-block;\r\n\t// \t\t\t\tmargin: auto;\r\n\t// \t\t\t}\r\n\r\n\t// \t\t\tbackground-color: #FFFFFF;\r\n\t// \t\t}\r\n\r\n\t// \t}\r\n\t// }\r\n\t.box-qrcode{\r\n\t\ttext-align: center;\r\n\t\tposition: relative;\r\n\t\t.box-img-qrcode{\r\n\t\t\tposition: absolute;\r\n\t\t\tdisplay: flex;\r\n\t\t\tflex-direction: column;\r\n\t\t\tjustify-content: center;\r\n\t\t\talign-items: center;\r\n\t\t\tz-index: 2;\r\n\t\t}\r\n\t}\r\n\timage{\r\n\t\twidth: 60upx;\r\n\t\theight: 60upx;\r\n\t\tborder-radius: 50%;\r\n\t\t\r\n\t}\r\n\t.canvas-qrcode {\r\n\t\t\r\n\t\tmargin: auto;\r\n\t\tdisplay: inline-block;\r\n\t\tfloat: left;\r\n\t}\r\n\t\r\n\t\r\n\t.opacity-qrcode {\r\n\t\topacity: 0;\r\n\t\tdisplay: block;\r\n\t}\r\n\r\n\t.show-qrcode {\r\n\t\tdisplay: block;\r\n\t\tanimation: fade 0.7s;\r\n\r\n\t\t// -moz-animation: fade 0.5s; /* Firefox */\r\n\t\t// -webkit-animation: fade 0.5s; /* Safari 和 Chrome */\r\n\t\t// -o-animation: fade 0.5s;\r\n\t}\r\n\r\n\t.hide-qrcode {\r\n\t\tanimation: hide 0.7s;\r\n\t}\r\n\r\n\t@keyframes fade {\r\n\t\tfrom {\r\n\t\t\topacity: 0.8;\r\n\t\t}\r\n\r\n\t\tto {\r\n\t\t\topacity: 1;\r\n\t\t}\r\n\t}\r\n\r\n\t@keyframes hide {\r\n\t\tfrom {\r\n\t\t\topacity: 1;\r\n\t\t}\r\n\r\n\t\tto {\r\n\t\t\topacity: 0;\r\n\t\t}\r\n\t}\r\n</style>\r\n","import mod from \"-!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./ay-qrcode.vue?vue&type=style&index=0&id=1db347e8&scoped=true&lang=scss&\"; export default mod; export * from \"-!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./ay-qrcode.vue?vue&type=style&index=0&id=1db347e8&scoped=true&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1627025692944\n var cssReload = require(\"D:/HbuilderX/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":""} |