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/seep/Documents/liuqingProject/hezhiying/pages/my/invite.vue?e807","webpack:////Users/seep/Documents/liuqingProject/hezhiying/pages/my/invite.vue?dd0c","webpack:////Users/seep/Documents/liuqingProject/hezhiying/pages/my/invite.vue?e24c","webpack:////Users/seep/Documents/liuqingProject/hezhiying/pages/my/invite.vue?4b13","uni-app:///pages/my/invite.vue","webpack:////Users/seep/Documents/liuqingProject/hezhiying/pages/my/invite.vue?fdea","webpack:////Users/seep/Documents/liuqingProject/hezhiying/pages/my/invite.vue?5517"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","data","qrcodeData","userInfo","avatar","createtime","expires_in","expiretime","id","mobile","nickname","score","token","user_id","username","methods","getUserInfoHandle","qr","onLoad"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,eAAI,CAAC,C;;;;;;;;;;;;;ACLhB;AAAA;AAAA;AAAA;AAAA;AAAA;AAA+H;AAC/H;AAC0D;AACL;AACsC;;;AAG3F;AACgN;AAChN,gBAAgB,iNAAU;AAC1B,EAAE,4EAAM;AACR,EAAE,6FAAM;AACR,EAAE,sGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,iGAAU;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;AAAo0B,CAAgB,oyBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;ACoBx1B;AACA;;;;;;;;;;;;;;;;;;;;AADA;AAAA,eAEA;EAEAC;IACA;MACAC;MACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;MACA;IACA;EACA;EAEAC;IACA;IACAC;MAAA;MACA;QACA;QACA;QACA;QACA;QACAC;QACA;QACAA;QACA;QACAA;QACA;QACA;QACA;QACAA;QACA;QACAA;MACA;IACA;EACA;EACAC;IACA;IACA;IACA;EACA;AAEA;AAAA,2B;;;;;;;;;;;;;ACvEA;AAAA;AAAA;AAAA;AAA2jD,CAAgB,27CAAG,EAAC,C;;;;;;;;;;;ACA/kD;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/my/invite.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/my/invite.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./invite.vue?vue&type=template&id=679896a3&scoped=true&\"\nvar renderjs\nimport script from \"./invite.vue?vue&type=script&lang=js&\"\nexport * from \"./invite.vue?vue&type=script&lang=js&\"\nimport style0 from \"./invite.vue?vue&type=style&index=0&id=679896a3&lang=scss&scoped=true&\"\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 \"679896a3\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/my/invite.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--17-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!./invite.vue?vue&type=template&id=679896a3&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 \"-!../../../../../../../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--13-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!./invite.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--13-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!./invite.vue?vue&type=script&lang=js&\"","<template>\n<view class=\"erweima\">\n\t<view class=\"info\">\n\t\t<image :src=\"userInfo.avatar\" mode=\"aspectFill\"></image>\n\t\t<view class=\"name\">\n\t\t\t{{userInfo.nickname}}\n\t\t</view>\n\t</view>\n\t<view class=\"content\">\n\t\t<canvas id=\"qrcode\" canvas-id=\"qrcode\" style=\"width: 200px;height: 200px;\"></canvas>\n\t\t<view class=\"text\">\n\t\t\t扫一扫上方二维码加入我们吧\n\t\t</view>\n\t\t\n\t</view>\n\t \n</view>\n</template>\n\n<script>\n\timport UQRCode from 'uqrcodejs'; // npm install uqrcodejs\n\timport {getUserInfo} from '@/common/api.js'\n\texport default{\n\t\t\n\t\tdata(){\n\t\t\treturn{\n\t\t\t\tqrcodeData: '',\n\t\t\t\tuserInfo:{\n\t\t\t\t\tavatar:\"\",\n\t\t\t\t\tcreatetime:null,\n\t\t\t\t\texpires_in:null,\n\t\t\t\t\texpiretime:null,\n\t\t\t\t\tid:null,\n\t\t\t\t\tmobile:null,\n\t\t\t\t\tnickname:null,\n\t\t\t\t\tscore:null,\n\t\t\t\t\ttoken:null,\n\t\t\t\t\tuser_id:null,\n\t\t\t\t\tusername:null,\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\n\t\tmethods:{\n\t\t\t//获取用户信息\n\t\t\tgetUserInfoHandle(){\n\t\t\t\tgetUserInfo().then(res=>{\n\t\t\t\t\tthis.userInfo =Object.assign(({},this.userInfo,res.data));\n\t\t\t\t\t// 获取uQRCode实例\n\t\t\t\t\tvar qr = new UQRCode();\n\t\t\t\t\t// 设置二维码内容\n\t\t\t\t\tqr.data = `https://www.hezhiying.com.cn/pages/register/register?mobile=${this.userInfo.mobile}`;\n\t\t\t\t\t// 设置二维码大小,必须与canvas设置的宽高一致\n\t\t\t\t\tqr.size = 200;\n\t\t\t\t\t// 调用制作二维码方法\n\t\t\t\t\tqr.make();\n\t\t\t\t\t// 获取canvas上下文\n\t\t\t\t\tvar canvasContext = uni.createCanvasContext('qrcode', this); // 如果是组件,this必须传入\n\t\t\t\t\t// 设置uQRCode实例的canvas上下文\n\t\t\t\t\tqr.canvasContext = canvasContext;\n\t\t\t\t\t// 调用绘制方法将二维码图案绘制到canvas上\n\t\t\t\t\tqr.drawCanvas();\n\t\t\t\t})\n\t\t\t},\n\t\t},\n\t\tonLoad() {\n\t\t\tthis.getUserInfoHandle()\n\t\t\tlet qrcodeData = 'https://www.example.com' // 指定二维码的内容\n\t\t\tthis.qrcodeData = qrcodeData\n\t\t},\n\n\t}\n</script>\n\n<style lang=\"scss\" scoped>\n.erweima{\n\tmin-height: calc(100vh - 44px);\n\tbackground: url(\"../../static/image/bg.png\");\n\tbackground-size: contain;\n\tborder-top:1px solid transparent;\n\t.info{\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tflex-direction: column;\n\t\tjustify-content: center;\n\t\tmargin-top:20%;\n\t\t\n\t\t&>image{\n\t\t\theight:200rpx;\n\t\t\twidth:200rpx;\n\t\t\tborder-radius: 50%;\n\t\t\tborder:2px solid $base;\n\t\t}\n\t\t.name{\n\t\t\tfont-size: 26rpx;\n\t\t\tcolor:#ffffff;\n\t\t\tmargin-top:30rpx;\n\t\t}\n\t}\n\t.content{\n\t\tbackground: #ffffff;\n\t\tpadding:50rpx;\n\t\tborder-radius: 10px;\n\t\twidth:fit-content;\n\t\tmargin:20rpx auto;\n\t\ttext-align: center;\n\t\t.text{\n\t\t\tfont-size: 24rpx;\n\t\t\tcolor: #999;\n\t\t\tmargin-top:20rpx;\n\t\t}\n\t}\n}\n</style>","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/@dcloudio/vue-cli-plugin-uni/packages/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!./invite.vue?vue&type=style&index=0&id=679896a3&lang=scss&scoped=true&\"; 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/@dcloudio/vue-cli-plugin-uni/packages/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!./invite.vue?vue&type=style&index=0&id=679896a3&lang=scss&scoped=true&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1697873049829\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":""} |