shareQrCode.js.map 12 KB

1
  1. {"version":3,"sources":["uni-app:///main.js","webpack:///C:/Users/Administrator/Desktop/xmt_new/pages/user/shareQrCode.vue?5fe6","webpack:///C:/Users/Administrator/Desktop/xmt_new/pages/user/shareQrCode.vue?5f02","webpack:///C:/Users/Administrator/Desktop/xmt_new/pages/user/shareQrCode.vue?a208","webpack:///C:/Users/Administrator/Desktop/xmt_new/pages/user/shareQrCode.vue?5e4c","uni-app:///pages/user/shareQrCode.vue","webpack:///C:/Users/Administrator/Desktop/xmt_new/pages/user/shareQrCode.vue?0ff5","webpack:///C:/Users/Administrator/Desktop/xmt_new/pages/user/shareQrCode.vue?db81"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;kDAAA;;;AAGA;AACA,wG,8FAHA;AACAA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC,CAGAC,UAAU,CAACC,oBAAD,CAAV,C;;;;;;;;;;;;;ACLA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAwH;AACxH;AAC+D;AACL;AACc;;;AAGxE;AACqK;AACrK,gBAAgB,+KAAU;AAC1B,EAAE,iFAAM;AACR,EAAE,sFAAM;AACR,EAAE,+FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,0FAAU;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;AAAqmB,CAAgB,+nBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;ACQznB,yD;;;;;;;eACA,EACA;AACA,MAFA,kBAEA,CACA,SACA,OADA,EAEA,WAFA,EAGA,YAHA;AAKA,GARA;AASA,QATA,oBASA;AACA;AACA,GAXA;AAYA;AACA,UADA,oBACA;AACA;AACA;AACA,OAFA,MAEA;AACA;AACA;AACA,KAPA,EAZA;;AAqBA;AACA,UADA,oBACA;AACA;AACA,oBADA;;AAGA;AACA;;;;;AAKA,eALA;;;;;AAUA,UAVA,CAUA;AACA;;AAEA;;;;;;;;AAQA;AACA,OAtBA;AAuBA,KA7BA;AA8BA,WA9BA,qBA8BA;AACA;AACA;AACA;AACA;AACA,yBAFA;AAGA;AACA;AACA;AACA;AACA,wCADA,EACA;AACA,qBAFA,qBAEA;AACA,sCADA,CACA;AACA,eAJA;AAKA,kBALA,kBAKA;AACA;AACA,eAPA;;AASA;AACA,SAhBA;;AAkBA,KAnDA,EArBA,E;;;;;;;;;;;;;ACTA;AAAA;AAAA;AAAA;AAAgpC,CAAgB,snCAAG,EAAC,C;;;;;;;;;;;ACApqC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/user/shareQrCode.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/user/shareQrCode.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./shareQrCode.vue?vue&type=template&id=2dc58022&\"\nvar renderjs\nimport script from \"./shareQrCode.vue?vue&type=script&lang=js&\"\nexport * from \"./shareQrCode.vue?vue&type=script&lang=js&\"\nimport style0 from \"./shareQrCode.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!D:\\\\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/shareQrCode.vue\"\nexport default component.exports","export * from \"-!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./shareQrCode.vue?vue&type=template&id=2dc58022&\"","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 \"-!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./shareQrCode.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./shareQrCode.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"container\">\r\n\t\t<image @longtap=\"bc_code\" class=\"backImg\" :src=\"backImg\"></image>\r\n\t\t<view class=\"tki-qrcode\"><canvas @longtap=\"bc_code\" canvas-id=\"qrcode\" /></view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\nimport { spreadBanner } from '@/api/user.js';\r\nexport default {\r\n\t// components: { tkiQrcode },\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\turl: '',\r\n\t\t\tbackImg: '',\r\n\t\t\tuserInfo: ''\r\n\t\t};\r\n\t},\r\n\tonLoad() {\r\n\t\tthis.spread();\r\n\t},\r\n\tcomputed: {\r\n\t\tcpSize() {\r\n\t\t\tif (this.unit == 'upx') {\r\n\t\t\t\treturn uni.upx2px(this.size);\r\n\t\t\t} else {\r\n\t\t\t\treturn this.size;\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\tmethods: {\r\n\t\tspread() {\r\n\t\t\tuni.showLoading({\r\n\t\t\t\ttitle: '加载中'\r\n\t\t\t});\r\n\t\t\tlet obj = this;\r\n\t\t\tspreadBanner({\r\n\t\t\t\t//#ifdef H5\r\n\t\t\t\ttype: 2,\r\n\t\t\t\t//#endif\r\n\t\t\t\t//#ifdef MP\r\n\t\t\t\ttype:1,\r\n\t\t\t\t//#endif\r\n\t\t\t\t//#ifdef APP-PLUS\r\n\t\t\t\ttype:2,\r\n\t\t\t\t//#endif\r\n\t\t\t}).then(({ data }) => {\r\n\t\t\t\tconsole.log(data);\r\n\t\t\t\t//#ifdef MP\r\n\t\t\t\tobj.backImg = data[0].poster;\r\n\t\t\t\t//#endif\r\n\t\t\t\t//#ifdef H5\r\n\t\t\t\tobj.backImg = data[0].wap_poster;\r\n\t\t\t\t//#endif\r\n\t\t\t\t//#ifdef APP-PLUS\r\n\t\t\t\tobj.backImg = data[0].wap_poster;\r\n\t\t\t\t//#endif\r\n\t\t\t\tuni.hideLoading();\r\n\t\t\t});\r\n\t\t},\r\n\t\tbc_code() {\r\n\t\t\tlet that = this;\r\n\t\t\tconsole.log('保存二维码', this.backImg);\r\n\t\t\tuni.downloadFile({\r\n\t\t\t\t//获得二维码的临时地址\r\n\t\t\t\turl: this.backImg,\r\n\t\t\t\tsuccess: res => {\r\n\t\t\t\t\t//console.log('获取url',res)\r\n\t\t\t\t\tif (res.statusCode == 200) {\r\n\t\t\t\t\t\tuni.saveImageToPhotosAlbum({\r\n\t\t\t\t\t\t\tfilePath: res.tempFilePath, //传入临时地址\r\n\t\t\t\t\t\t\tsuccess() {\r\n\t\t\t\t\t\t\t\tthat.$api.msg('保存成功'); //封装的提示\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\tfail() {\r\n\t\t\t\t\t\t\t\tthat.$api.msg('保存失败');\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}\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n};\r\n</script>\r\n\r\n<style lang=\"scss\">\r\npage {\r\n\twidth: 100%;\r\n\tmin-height: 100%;\r\n\t.container {\r\n\t\twidth: 100%;\r\n\t\theight: 100%;\r\n\t}\r\n}\r\n.backImg {\r\n\tposition: absolute;\r\n\twidth: 100%;\r\n\theight: 100%;\r\n}\r\n.portrait {\r\n\twidth: 100%;\r\n\ttext-align: center;\r\n\tpadding-top: 80rpx;\r\n\tpadding-bottom: 30rpx;\r\n\timage {\r\n\t\twidth: 250rpx;\r\n\t\theight: 250rpx;\r\n\t}\r\n}\r\n.text {\r\n\ttext-align: center;\r\n\twidth: 100%;\r\n\tcolor: #ffffff;\r\n\tfont-size: 55rpx;\r\n\tletter-spacing: 15rpx;\r\n}\r\n.uid-name {\r\n\tpadding: 50rpx 0rpx;\r\n\ttext-align: center;\r\n\twidth: 100%;\r\n\tcolor: #ffffff;\r\n}\r\n.copy-btn {\r\n\tcolor: #ffffff;\r\n\tbackground-color: #4ba6ed;\r\n\tborder-radius: 50rpx;\r\n\twidth: 170rpx;\r\n\tline-height: 70rpx;\r\n\tmargin: 0rpx auto;\r\n\ttext-align: center;\r\n}\r\n.tki-qrcode {\r\n\tposition: fixed;\r\n\tbottom: 10%;\r\n\tleft: 30%;\r\n}\r\ncanvas {\r\n\twidth: 150px;\r\n\theight: 150px;\r\n\tmargin: auto;\r\n}\r\n</style>\n","import mod from \"-!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./shareQrCode.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./shareQrCode.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1660177693118\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":""}