avatar.js.map 15 KB

1
  1. {"version":3,"sources":["uni-app:///main.js","webpack:///D:/Code2024/图鸟模板-社区/minePages/avatar.vue?d0ac","webpack:///D:/Code2024/图鸟模板-社区/minePages/avatar.vue?286c","webpack:///D:/Code2024/图鸟模板-社区/minePages/avatar.vue?1a6b","webpack:///D:/Code2024/图鸟模板-社区/minePages/avatar.vue?8e52","uni-app:///minePages/avatar.vue","webpack:///D:/Code2024/图鸟模板-社区/minePages/avatar.vue?b741","webpack:///D:/Code2024/图鸟模板-社区/minePages/avatar.vue?4a61"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","name","components","multipleOptionsDemo","mixins","data","imageUrl","isRound","switchText","showCropperImage","cropperImageUrl","methods","chooseImage","uni","count","sizeType","sourceType","success","switchBorderRect","cropperFinish"],"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;AACwM;AACxM,gBAAgB,qNAAU;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,aAAa,wRAEN;AACP,KAAK;AACL;AACA,aAAa,4QAEN;AACP,KAAK;AACL;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACtCA;AAAA;AAAA;AAAA;AAA4xB,CAAgB,wzBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;AC8ChzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAEA;EACAC;EACAC;IAAAC;EAAA;EACAC;EACAC;IACA;MACAC;MACAC;MACAC;MACAC;MACAC;IACA;EACA;EACAC;IACA;IACAC;MAAA;MACAC;QACAC;QACAC;QACAC;QACAC;UACA;UACA;QACA;MACA;IACA;IACA;IACAC;MACA;MACA;QACA;MACA;QACA;MACA;IACA;IACA;IACAC;MACA;MACA;MACA;QACA;MACA;MACA;QACA;MACA;IAEA;EACA;AACA;AAAA,2B;;;;;;;;;;;;;AChGA;AAAA;AAAA;AAAA;AAAm/C,CAAgB,+9CAAG,EAAC,C;;;;;;;;;;;ACAvgD;AACA,OAAO,KAAU,EAAE,kBAKd","file":"minePages/avatar.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './minePages/avatar.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./avatar.vue?vue&type=template&id=0fc49605&scoped=true&\"\nvar renderjs\nimport script from \"./avatar.vue?vue&type=script&lang=js&\"\nexport * from \"./avatar.vue?vue&type=script&lang=js&\"\nimport style0 from \"./avatar.vue?vue&type=style&index=0&id=0fc49605&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../self software/HBuilderX.3.99.2023122611/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 \"0fc49605\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"minePages/avatar.vue\"\nexport default component.exports","export * from \"-!../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./avatar.vue?vue&type=template&id=0fc49605&scoped=true&\"","var components\ntry {\n components = {\n tnNavBar: function () {\n return import(\n /* webpackChunkName: \"tuniao-ui/components/tn-nav-bar/tn-nav-bar\" */ \"@/tuniao-ui/components/tn-nav-bar/tn-nav-bar.vue\"\n )\n },\n tnPopup: function () {\n return import(\n /* webpackChunkName: \"tuniao-ui/components/tn-popup/tn-popup\" */ \"@/tuniao-ui/components/tn-popup/tn-popup.vue\"\n )\n },\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\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 \"-!../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./avatar.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./avatar.vue?vue&type=script&lang=js&\"","<template>\r\n <view class=\"template-avatar tn-safe-area-inset-bottom\">\r\n \r\n <!-- 顶部自定义导航 -->\r\n <tn-nav-bar fixed alpha customBack>\r\n <view slot=\"back\" class='tn-custom-nav-bar__back'\r\n @click=\"goBack\">\r\n <text class='icon tn-icon-left-arrow'></text>\r\n </view>\r\n <!-- <view class=\"tn-flex tn-flex-col-center tn-flex-row-center \">\r\n <text class=\"tn-text-bold tn-text-xl tn-color-black\">上传头像</text>\r\n </view> -->\r\n </tn-nav-bar>\r\n \r\n <view :style=\"{paddingTop: vuex_custom_bar_height + 'px'}\">\r\n <!-- <view class=\"cropper-options\">\r\n <view class=\"cropper-options__item\" @tap=\"chooseImage\">选择图片</view>\r\n <view class=\"cropper-options__item\" @tap=\"switchBorderRect\">{{ switchText }}</view>\r\n </view> -->\r\n <view class=\"tn-button-up\">\r\n <view class=\"tn-button-up__item\" @tap=\"chooseImage\">选择图片</view>\r\n </view>\r\n \r\n </view>\r\n \r\n <!-- <tn-cropper\r\n :imageUrl=\"imageUrl\"\r\n :isRound=\"isRound\"\r\n @cropper=\"cropperFinish\"\r\n ></tn-cropper> -->\r\n \r\n <tn-popup\r\n v-model=\"showCropperImage\"\r\n :marginTop=\"vuex_custom_bar_height\"\r\n length=\"80%\"\r\n mode=\"center\"\r\n :closeBtn=\"true\"\r\n >\r\n <view class=\"tn-flex tn-flex-col-center tn-flex-row-center\" style=\"margin: 40rpx 60rpx;\">\r\n <image :src=\"cropperImageUrl\" style=\"width: 80%;\" mode=\"widthFix\"></image>\r\n </view>\r\n </tn-popup>\r\n </view>\r\n</template>\r\n\r\n<script>\r\n import template_page_mixin from '@/libs/mixin/template_page_mixin.js'\r\n import multipleOptionsDemo from '@/libs/components/multiple-options-demo'\r\n export default {\r\n name: 'TemplateAvatar',\r\n components: { multipleOptionsDemo },\r\n mixins: [template_page_mixin],\r\n data() {\r\n return {\r\n imageUrl: '',\r\n isRound: true,\r\n switchText: '切换为正方形裁剪框',\r\n showCropperImage: false,\r\n cropperImageUrl: ''\r\n }\r\n },\r\n methods: {\r\n // 选择图片\r\n chooseImage() {\r\n uni.chooseImage({\r\n count: 1,\r\n sizeType: ['original', 'compressed'],\r\n sourceType: ['album','camera'],\r\n success: (res) => {\r\n const tempFilePaths = res.tempFilePaths[0]\r\n this.imageUrl = tempFilePaths\r\n }\r\n })\r\n },\r\n // 切换裁剪框形状\r\n switchBorderRect() {\r\n this.isRound = !this.isRound\r\n if (this.isRound) {\r\n this.switchText = '切换为正方形裁剪框'\r\n } else {\r\n this.switchText = '切换为圆形裁剪框'\r\n }\r\n },\r\n // 裁剪完成\r\n cropperFinish(res) {\r\n // console.log(res);\r\n this.showCropperImage = true\r\n if (res.url) {\r\n this.cropperImageUrl = res.url\r\n }\r\n if (res.base64) {\r\n this.cropperImageUrl = `${res.base64}`\r\n }\r\n \r\n }\r\n }\r\n }\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n .template-avatar{\r\n background-color: #FFFFFF;\r\n }\r\n /* 胶囊*/\r\n .tn-custom-nav-bar__back {\r\n width: 60%;\r\n height: 100%;\r\n position: relative;\r\n display: flex;\r\n justify-content: space-evenly;\r\n align-items: center;\r\n box-sizing: border-box;\r\n background-color: rgba(0, 0, 0, 0.15);\r\n border-radius: 1000rpx;\r\n border: 1rpx solid rgba(255, 255, 255, 0.5);\r\n color: #FFFFFF;\r\n font-size: 18px;\r\n \r\n .icon {\r\n display: block;\r\n flex: 1;\r\n margin: auto;\r\n text-align: center;\r\n }\r\n \r\n }\r\n .cropper-options {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n z-index: 1000;\r\n margin-top: 90rpx;\r\n \r\n &__item {\r\n color: #FFFFFF;\r\n font-size: 28rpx;\r\n padding: 18rpx 56rpx;\r\n border: 2rpx solid #FFFFFF;\r\n z-index: 1000;\r\n \r\n &:nth-child(1) {\r\n border-right: none;\r\n }\r\n }\r\n }\r\n \r\n .tn-button-up {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n z-index: 1000;\r\n margin-top: 90rpx;\r\n \r\n &__item {\r\n color: #FFFFFF;\r\n font-size: 28rpx;\r\n padding: 18rpx 56rpx;\r\n border: 2rpx solid #FFFFFF;\r\n z-index: 1000;\r\n }\r\n \r\n }\r\n</style>\r\n","import mod from \"-!../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./avatar.vue?vue&type=style&index=0&id=0fc49605&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./avatar.vue?vue&type=style&index=0&id=0fc49605&lang=scss&scoped=true&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1732849666318\n var cssReload = require(\"D:/self software/HBuilderX.3.99.2023122611/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":""}