leave-unused/unpackage/dist/dev/.sourcemap/mp-weixin/pages/my/my.js.map

1 line
15 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

{"version":3,"sources":["uni-app:///main.js","webpack:///D:/Lee/leave-unused/pages/my/my.vue?3514","webpack:///D:/Lee/leave-unused/pages/my/my.vue?a55f","webpack:///D:/Lee/leave-unused/pages/my/my.vue?de5d","webpack:///D:/Lee/leave-unused/pages/my/my.vue?70c4","uni-app:///pages/my/my.vue","webpack:///D:/Lee/leave-unused/pages/my/my.vue?3534","webpack:///D:/Lee/leave-unused/pages/my/my.vue?fa05"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","components","releaseBtn","tabbar","data","statusHeight","headPortrait","nickName","mobile","listData","titele","imgSrc","iconWidth","iconHeight","isLoading","onShow","methods","getUserInfo","uni","title","console","goPage","url","onGetPhoneNumber","iv","encryptedData"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,WAAI,CAAC,C;;;;;;;;;;;;;ACLhB;AAAA;AAAA;AAAA;AAAA;AAAA;AAA2H;AAC3H;AACsD;AACL;AACqC;;;AAGtF;AAC6K;AAC7K,gBAAgB,uLAAU;AAC1B,EAAE,wEAAM;AACR,EAAE,yFAAM;AACR,EAAE,kGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,6FAAU;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,gQAEN;AACP,KAAK;AACL;AACA,aAAa,kOAEN;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;AAAipB,CAAgB,8pBAAG,EAAC,C;;;;;;;;;;;;;;;;;;ACsCrqB;AAAA;EAAA;IAAA;EAAA;AAAA;AAAA;EAAA;IAAA;EAAA;AAAA;AAAA;AAAA,eACA;EACAC;IACAC;IACAC;EACA;EACAC;IACA;MACAC;MAAA;MACAC;MAAA;MACAC;MAAA;MACAC;MAAA;MACAC,WACA;QAAAC;QAAAC;QAAAC;QAAAC;MAAA,GACA;QAAAH;QAAAC;QAAAC;QAAAC;MAAA,GACA;QAAAH;QAAAC;QAAAC;QAAAC;MAAA,EACA;MAAA;MACAC;IACA;EACA;EACAC;IACA;IACA;EACA;EACAC;IACA;IACAC;MAAA;MACAC;QACAC;MACA;MACA;QACAC;QACA;UACA;UACA;UACA;QACA;QACAF;QAEA;MACA;IACA;IAEA;IACAG;MACA;QACA;UAAA;YACA;cACAH;gBACAI;cACA;YACA;YACA;UACA;QACA;UAAA;YACAJ;cACAI;YACA;YACA;UACA;QACA;UAAA;YACAJ;cACAI;YACA;YACA;UACA;MAAA;IAEA;IAEA;IACAC;MAAA;MACA;QAAA;QACA;MACA;QAAA;QACA;UACAC;UACAC;QACA;QACA;UACA;YACA;YACA;YACAP;cACAI;YACA;UACA;YACA;UACA;QACA;MAEA;IACA;EACA;AACA;AAAA,2B;;;;;;;;;;;;;ACnIA;AAAA;AAAA;AAAA;AAAg9B,CAAgB,+7BAAG,EAAC,C;;;;;;;;;;;ACAp+B;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/my/my.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/my.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./my.vue?vue&type=template&id=0be17cc6&scoped=true&\"\nvar renderjs\nimport script from \"./my.vue?vue&type=script&lang=js&\"\nexport * from \"./my.vue?vue&type=script&lang=js&\"\nimport style0 from \"./my.vue?vue&type=style&index=0&id=0be17cc6&scoped=true&lang=css&\"\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 \"0be17cc6\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/my/my.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!./my.vue?vue&type=template&id=0be17cc6&scoped=true&\"","var components\ntry {\n components = {\n releaseBtn: function () {\n return import(\n /* webpackChunkName: \"components/release-btn/release-btn\" */ \"@/components/release-btn/release-btn.vue\"\n )\n },\n tabbar: function () {\n return import(\n /* webpackChunkName: \"components/tabbar/tabbar\" */ \"@/components/tabbar/tabbar.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 \"-!../../../../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!./my.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!./my.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"pad-x120\" v-if=\"isLoading\">\r\n\t\t<!-- 个人信息 -->\r\n\t\t<view class=\"my-herder border-box\" :style=\"{'padding-top':statusHeight+50+'px'}\">\r\n\t\t\t<!-- 头像 -->\r\n\t\t\t<view class=\"my-portrait radius100\">\r\n\t\t\t\t<image :src=\"headPortrait\" mode=\"widthFix\"></image>\r\n\t\t\t</view>\r\n\t\t\t<!-- 用户名 -->\r\n\t\t\t<view class=\"my-nickname mar-s10 color-ff font36 flex\">\r\n\t\t\t\t<text>{{nickName}}</text>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<!-- 其他资料 -->\r\n\t\t<view class=\"my-content background-white radius10 border-box\">\r\n\t\t\t<view class=\"item flex\" v-for=\"(item,index) in listData\" :key=\"index\" @tap.stop=\"goPage(index)\">\r\n\t\t\t\t<view class=\"title flex\">\r\n\t\t\t\t\t<view class=\"img flex\">\r\n\t\t\t\t\t\t<image :src=\"item.imgSrc\" :style=\"{width:item.iconWidth+'rpx',height:item.iconHeight+'rpx'}\" mode=\"widthFix\"></image>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"title font28\">{{item.titele}}</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"more\">\r\n\t\t\t\t\t<image src=\"/static/icon-join.png\" mode=\"widthFix\" style=\"width: 14rpx;height: 26rpx;\"></image>\r\n\t\t\t\t</view>\r\n\t\t\t\t<button class=\"get-phone-btn\" open-type=\"getPhoneNumber\" @getphonenumber=\"onGetPhoneNumber\" v-if=\"index==0&&mobile!==''\"></button>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<!-- 发布按钮 -->\r\n\t\t<release-btn></release-btn>\r\n\t\t<!-- 底部tab -->\r\n\t\t<tabbar current=\"1\"></tabbar>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\timport releaseBtn from '@/components/release-btn/release-btn.vue';\r\n\timport tabbar from '@/components/tabbar/tabbar.vue';\r\n\timport {mapState} from 'vuex'//引入mapState\r\n\texport default {\r\n\t\tcomponents:{\r\n\t\t\treleaseBtn,\r\n\t\t\ttabbar\r\n\t\t},\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tstatusHeight:uni.getSystemInfoSync().statusBarHeight, //状态栏高度\r\n\t\t\t\theadPortrait:'', //头像\r\n\t\t\t\tnickName:'', //用户名\r\n\t\t\t\tmobile:'', //电话号\r\n\t\t\t\tlistData:[\r\n\t\t\t\t\t{titele:'个人资料',imgSrc:'/static/icon-my-01.png',iconWidth:36,iconHeight:36},\r\n\t\t\t\t\t{titele:'我的发布',imgSrc:'/static/icon-my-02.png',iconWidth:36,iconHeight:36},\r\n\t\t\t\t\t{titele:'反馈建议',imgSrc:'/static/icon-my-03.png',iconWidth:36,iconHeight:36}\r\n\t\t\t\t], //列表数据\r\n\t\t\t\tisLoading:false, //是否加载完成\r\n\t\t\t}\r\n\t\t},\r\n\t\tonShow() {\r\n\t\t\t// 获取用户信息\r\n\t\t\tthis.getUserInfo();\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\t// 获取用户信息\r\n\t\t\tgetUserInfo(){\r\n\t\t\t\tuni.showLoading({\r\n\t\t\t\t\ttitle:'加载中'\r\n\t\t\t\t});\r\n\t\t\t\tthis.$requst.get('/api/v1/user/info').then(res=>{\r\n\t\t\t\t\tconsole.log(res,'用户信息');\r\n\t\t\t\t\tif(res.code==0) {\r\n\t\t\t\t\t\tthis.headPortrait = res.data.headimgurl;\r\n\t\t\t\t\t\tthis.nickName = res.data.nickname;\r\n\t\t\t\t\t\tthis.mobile = res.data.mobile;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tuni.hideLoading();\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.isLoading = true;\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t\r\n\t\t\t// 跳转方式\r\n\t\t\tgoPage(index){\r\n\t\t\t\tswitch (index){\r\n\t\t\t\t\tcase 0:{\r\n\t\t\t\t\t\tif(this.mobile==''){\r\n\t\t\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\t\t\turl:`/pages/my/ucenter`\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcase 1:{\r\n\t\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\t\turl:`/pagesA/goods/goods`\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcase 2:{\r\n\t\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\t\turl:`/pagesA/feedback/feedback`\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\r\n\t\t\t// 获取授权信息\r\n\t\t\tonGetPhoneNumber(e){\r\n\t\t\t\tif(e.detail.errMsg==\"getPhoneNumber:fail user deny\"){ //用户决绝授权\r\n\t\t\t\t\tthis.$toolAll.tools.showToast('您已拒绝授权');\r\n\t\t\t\t}else{ //允许授权 \r\n\t\t\t\t\tlet params={\r\n\t\t\t\t\t\tiv:e.detail.iv,\r\n\t\t\t\t\t\tencryptedData:e.detail.encryptedData\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.$requst.post('/api/v1/user/bind-phone',params).then(res=>{\r\n\t\t\t\t\t\tif(res.code==0) {\r\n\t\t\t\t\t\t\tthis.$toolAll.tools.showToast('绑定成功');\r\n\t\t\t\t\t\t\tthis.getUserInfo();\r\n\t\t\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\t\t\turl:`/pages/my/revise`\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tthis.$toolAll.tools.showToast(res.msg);\r\n\t\t\t\t\t\t}\r\n\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</script>\r\n\r\n<style scoped>\r\n\t.my-herder{\r\n\t\twidth: 100%;\r\n\t\tpadding-bottom: 40rpx;\r\n\t\tbackground-image: linear-gradient(to top,rgba(25,129,255,.5),rgba(25,129,255,1));\r\n\t}\r\n\t.my-portrait{\r\n\t\twidth: 180rpx;\r\n\t\theight: 180rpx;\r\n\t\toverflow: hidden;\r\n\t\tmargin: 0 auto;\r\n\t}\r\n\t.my-portrait>image{\r\n\t\twidth: 100%;\r\n\t}\r\n\t.my-nickname{\r\n\t\tjustify-content: center;\r\n\t\twidth: 100%;\r\n\t}\r\n\t.my-content{\r\n\t\twidth: calc(100% - 40rpx);\r\n\t\tmargin: 20rpx auto;\r\n\t\tpadding: 20rpx;\r\n\t\tbox-shadow: 0 0 15rpx rgba(0,0,0,.1);\r\n\t}\r\n\t.my-content .item{\r\n\t\tjustify-content: space-between;\r\n\t\talign-items: center;\r\n\t\theight: 80rpx;\r\n\t\tborder-bottom: 2rpx solid #f4f5f6;\r\n\t\tposition: relative;\r\n\t}\r\n\t.my-content .item:last-child{\r\n\t\tborder: 0;\r\n\t}\r\n\t.my-content .item .get-phone-btn{\r\n\t\topacity: 0;\r\n\t\twidth: 100%;\r\n\t\theight: 100%;\r\n\t\tposition: absolute;\r\n\t\tleft: 0;\r\n\t\tright: 0;\r\n\t\ttop: 0;\r\n\t\tbottom: 0;\r\n\t\tz-index: 1;\r\n\t}\r\n\t.my-content .item>.title{\r\n\t\talign-items: center;\r\n\t}\r\n\t.my-content .item>.title .img{\r\n\t\twidth: 46rpx;\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--6-oneOf-1-0!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-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--6-oneOf-1-2!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../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!./my.vue?vue&type=style&index=0&id=0be17cc6&scoped=true&lang=css&\"; export default mod; export * from \"-!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-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--6-oneOf-1-2!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../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!./my.vue?vue&type=style&index=0&id=0be17cc6&scoped=true&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1672107726295\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":""}