You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
12 KiB
1 lines
12 KiB
{"version":3,"sources":["uni-app:///main.js","webpack:////Users/yangjie/Desktop/uniApp/商城模板/pages/user/myQR/myQR.vue?bfa8","webpack:////Users/yangjie/Desktop/uniApp/商城模板/pages/user/myQR/myQR.vue?7c4d","webpack:////Users/yangjie/Desktop/uniApp/商城模板/pages/user/myQR/myQR.vue?bd6d","webpack:////Users/yangjie/Desktop/uniApp/商城模板/pages/user/myQR/myQR.vue?489c","uni-app:///pages/user/myQR/myQR.vue","webpack:////Users/yangjie/Desktop/uniApp/商城模板/pages/user/myQR/myQR.vue?cf47","webpack:////Users/yangjie/Desktop/uniApp/商城模板/pages/user/myQR/myQR.vue?3dff"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,+F;AACAA,UAAU,CAACC,aAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAiH;AACjH;AACwD;AACL;AACc;;;AAGjE;AACmN;AACnN,gBAAgB,iNAAU;AAC1B,EAAE,0EAAM;AACR,EAAE,+EAAM;AACR,EAAE,wFAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,mFAAU;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;AAAi1B,CAAgB,kyBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACqBr2B;AACA,MADA,kBACA;AACA;AACA,kBADA;AAEA,oBAFA;;AAIA,GANA;AAOA,QAPA,oBAOA;;;;AAIA,GAXA;AAYA;AACA;AACA,eAFA,yBAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BADA;AAEA,0BAFA;AAGA;AACA;AACA;AACA,+BADA;;AAGA;AACA,+BALA,CAKA;AACA,eANA,EAMA;AACA,+BADA,CACA;AACA,eARA;AASA,aAbA,EAaA;AACA;AACA,aAfA;AAgBA,WApBA,EAoBA;AACA;AACA,WAtBA;AAuBA,SAxBA,EAwBA,GAxBA;AAyBA,OA1BA;AA2BA,KAlCA,EAZA,E;;;;;;;;;;;;;ACrBA;AAAA;AAAA;AAAA;AAAshD,CAAgB,43CAAG,EAAC,C;;;;;;;;;;;ACA1iD;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/user/myQR/myQR.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pages/user/myQR/myQR.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./myQR.vue?vue&type=template&id=4c293ac4&\"\nvar renderjs\nimport script from \"./myQR.vue?vue&type=script&lang=js&\"\nexport * from \"./myQR.vue?vue&type=script&lang=js&\"\nimport style0 from \"./myQR.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../../Applications/HBuilderX.app/Contents/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 = \"pages/user/myQR/myQR.vue\"\nexport default component.exports","export * from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./myQR.vue?vue&type=template&id=4c293ac4&\"","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 \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./myQR.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./myQR.vue?vue&type=script&lang=js&\"","<template>\n\t<view>\n\t\t<view class=\"block\">\r\n\t\t\t\r\n\t\t</view>\r\n\t\t<view class=\"QR\">\r\n\t\t\t<image src=\"../../../static/img/qr.png\"></image>\r\n\t\t</view>\r\n\t\t<view class=\"title\">\r\n\t\t\t扫描二维码,加我好友\r\n\t\t</view>\r\n\t\t<view class=\"btn\" v-show=\"showBtn\" @tap=\"printscreen\">\r\n\t\t\t{{tis}}\r\n\t\t</view>\r\n\t\t<view class=\"logo\">\r\n\t\t\t<image mode=\"widthFix\" src=\"../../../static/img/qrlogo.png\"></image>\r\n\t\t</view>\n\t</view>\n</template>\n\n<script>\n\texport default {\n\t\tdata() {\n\t\t\treturn {\r\n\t\t\t\ttis:\"保存到相册\",\n\t\t\t\tshowBtn:false\n\t\t\t};\n\t\t},\r\n\t\tonLoad() {\r\n\t\t\t// #ifdef APP-PLUS\r\n\t\t\tthis.showBtn = true;\r\n\t\t\t// #endif\r\n\t\t},\r\n\t\tmethods:{\r\n\t\t\t// 截图,调用webview、Bitmap方法\r\n\t\t\tprintscreen(){\r\n\t\t\t\tthis.tis = \"正在保存\"\r\n\t\t\t\tlet ws=this.$mp.page.$getAppWebview();\r\n\t\t\t\tlet bitmap = new plus.nativeObj.Bitmap();\r\n\t\t\t\tthis.showBtn = false;\r\n\t\t\t\tthis.$nextTick(function(){\r\n\t\t\t\t\tsetTimeout(()=>{\r\n\t\t\t\t\t\tws.draw(bitmap,(e)=>{\r\n\t\t\t\t\t\t\tthis.showBtn = true;\r\n\t\t\t\t\t\t\tconsole.log('bitmap绘制图片成功');\r\n\t\t\t\t\t\t\tconsole.log(\"e: \" + JSON.stringify(e));\r\n\t\t\t\t\t\t\tbitmap.save(\"_doc/Qr.jpg\", {\r\n\t\t\t\t\t\t\t\toverwrite: true,\r\n\t\t\t\t\t\t\t\tquality: 100\r\n\t\t\t\t\t\t\t}, (i)=>{\r\n\t\t\t\t\t\t\t\tplus.gallery.save(i.target,(e)=>{\r\n\t\t\t\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\t\t\t\ttitle:'保存成功'\r\n\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\tthis.tis = \"保存到相册\"\r\n\t\t\t\t\t\t\t\t\tbitmap.clear(); //销毁\r\n\t\t\t\t\t\t\t\t},(e)=>{\r\n\t\t\t\t\t\t\t\t\tbitmap.clear(); //销毁\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t},(e)=>{\r\n\t\t\t\t\t\t\t\tconsole.log('保存图片失败:' + JSON.stringify(e));\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t},(e)=>{\r\n\t\t\t\t\t\t\tconsole.log('bitmap绘制图片失败:'+JSON.stringify(e));\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t},200)\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t}\n\t}\n</script>\n\n<style lang=\"scss\">\npage{\r\n\tbackground-color: #f06c7a;\r\n}\r\n.block{\r\n\twidth: 100%;\r\n\theight: 30vh;\r\n\tbackground-color: #fff;\r\n\tdisplay: flex;\r\n\tjustify-content: center;\r\n\t\r\n}\r\n.QR{\r\n\twidth: 60vw;\r\n\theight: 60vw;\r\n\tmargin: -40vw auto 0 auto;\r\n\tbackground-color: #fff;\r\n\tdisplay: flex;\r\n\tjustify-content: center;\r\n\talign-items: center;\r\n\timage{\r\n\t\twidth: 50vw;\r\n\t\theight: 50vw;\r\n\t}\r\n}\r\n.title{\r\n\twidth: 100%;\r\n\tmargin-top: 50upx;\r\n\tdisplay: flex;\r\n\tjustify-content: center;\r\n\tfont-size: 36upx;\r\n\tcolor: #fff;\r\n}\r\n.btn{\r\n\t\r\n\twidth: 50%;\r\n\theight: 80upx;\r\n\tborder-radius: 80upx;\r\n\tdisplay: flex;\r\n\tjustify-content: center;\r\n\talign-items: center;\r\n\tpadding: 0 20upx;\r\n\tmargin: 0 auto;\r\n\tmargin-top: 50upx;\r\n\tbackground-color: rgba(255,255,255,.8);\r\n}\r\n.logo{\r\n\twidth: 100%;\r\n\tdisplay: flex;\r\n\tjustify-content: center;\r\n\tposition: absolute;\r\n\tbottom: 25upx;\r\n\timage{\r\n\t\twidth: 39.6%;\r\n\t}\r\n\t\r\n}\n</style>\n","import mod from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./myQR.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./myQR.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1615167052186\n var cssReload = require(\"/Applications/HBuilderX.app/Contents/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":""} |