mall-laonong/unpackage/dist/dev/.sourcemap/mp-weixin/pagesB/ucenter/ucenter.js.map

1 line
15 KiB
Plaintext
Raw 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/mall-laonong/pagesB/ucenter/ucenter.vue?1ee2","webpack:///D:/Lee/mall-laonong/pagesB/ucenter/ucenter.vue?04fc","webpack:///D:/Lee/mall-laonong/pagesB/ucenter/ucenter.vue?4778","webpack:///D:/Lee/mall-laonong/pagesB/ucenter/ucenter.vue?2912","uni-app:///pagesB/ucenter/ucenter.vue"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;kDAAA;;;AAGA;AACA,oG,8FAHA;AACAA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC,CAGAC,UAAU,CAACC,gBAAD,CAAV,C;;;;;;;;;;;;;ACLA;AAAA;AAAA;AAAA;AAAA;AAAoH;AACpH;AAC2D;AACL;;;AAGtD;AAC6K;AAC7K,gBAAgB,uLAAU;AAC1B,EAAE,6EAAM;AACR,EAAE,kFAAM;AACR,EAAE,2FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,sFAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACtBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA,aAAa,oMAEN;AACP;AACA;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;;;;;;;;;;;;;;ACjCA;AAAA;AAAA;AAAA;AAAspB,CAAgB,mqBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACqE1qB;AACA,MADA,kBACA;AACA;AACA,uDADA;AAEA,2DAFA;AAGA,oBAHA,EAGA;AACA,kBAJA,EAIA;AACA,sBALA,EAKA;AACA,kBANA,EAMA;AACA,gBAPA,EAOA;AACA,cARA,EAQA;AACA,iBATA,EASA;AACA,mBAVA,EAUA;AACA,eAXA,EAWA;AACA,kBAZA,EAYA;AACA,aAbA,EAaA;AACA,eAdA,EAcA;AACA,qBAfA,EAeA;AACA,iBAhBA,EAgBA;AACA,kBAjBA,EAiBA;AACA,cAlBA,EAkBA;AACA,gBAnBA,EAmBA;AACA,sBApBA;;AAsBA,GAxBA;AAyBA,QAzBA,kBAyBA,EAzBA,EAyBA;AACA;AACA,GA3BA;AA4BA,QA5BA,oBA4BA;;AAEA,GA9BA;AA+BA;AACA;AACA,eAFA,yBAEA;AACA;AACA,oBADA;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAbA;AAcA,KApBA;;AAsBA;AACA,YAvBA,oBAuBA,IAvBA,EAuBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAxCA;AAyCA;AACA,UA1CA,kBA0CA,CA1CA,EA0CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAFA,EAEA,GAFA;AAGA,KAnDA;AAoDA;AACA,cArDA,wBAqDA;AACA;AACA;AACA,6BADA;;AAGA;AACA;AACA;AACA;AACA,2BADA;;AAGA;AACA;AACA;AACA,iCADA;AAEA,yBAFA;AAGA,6BAHA;;AAKA;;AAEA;AACA,oBADA;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SARA;AASA,OAVA,MAUA;AACA;AACA;AACA;AACA;AACA;AACA,KA5FA;;AA8FA;AACA,aA/FA,uBA+FA;AACA;AACA;AACA;AACA;AACA;AACA,KArGA;;AAuGA;AACA,oBAxGA,4BAwGA,CAxGA,EAwGA;AACA;AACA;AACA,OAFA,MAEA;AACA;AACA,yBADA;AAEA,+CAFA;;AAIA;AACA;AACA;AACA;AACA;AACA,WAJA,MAIA;AACA;AACA;AACA,SARA;;AAUA;AACA,KA3HA,EA/BA,E","file":"pagesB/ucenter/ucenter.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pagesB/ucenter/ucenter.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./ucenter.vue?vue&type=template&id=3c85db02&\"\nvar renderjs\nimport script from \"./ucenter.vue?vue&type=script&lang=js&\"\nexport * from \"./ucenter.vue?vue&type=script&lang=js&\"\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 null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pagesB/ucenter/ucenter.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!./ucenter.vue?vue&type=template&id=3c85db02&\"","var components\ntry {\n components = {\n statusNav: function() {\n return import(\n /* webpackChunkName: \"components/status-nav/status-nav\" */ \"@/components/status-nav/status-nav.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!./ucenter.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!./ucenter.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view v-if=\"isLoading\">\r\n\t\t<status-nav :ifReturn=\"true\" navBarTitle=\"个人中心\" :marginBottom=\"0\"></status-nav>\r\n\t\t<view class=\"ucenter-bg border-box\" :style=\"{'min-height':windoHeight - statusHeight - 50+'px'}\">\r\n\t\t\t<view class=\"ucenter\">\r\n\t\t\t\t<view class=\"item item-first flex\">\r\n\t\t\t\t\t<view class=\"title\">头像</view>\r\n\t\t\t\t\t<view class=\"img\">\r\n\t\t\t\t\t\t<image :src=\"headImgUrl\" mode=\"widthFix\"></image>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"item flex\">\r\n\t\t\t\t\t<view class=\"title\">昵称</view>\r\n\t\t\t\t\t<view class=\"msg\">{{nickName}}</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"item flex\" @tap=\"openEdit('real_name')\">\r\n\t\t\t\t\t<view class=\"title\">真实姓名</view>\r\n\t\t\t\t\t<input class=\"msg\" type=\"text\" v-model=\"realName\" disabled=\"true\">\r\n\t\t\t\t\t<view class=\"more\">\r\n\t\t\t\t\t\t<image src=\"/static/icon/icon-join.png\" mode=\"widthFix\"></image>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"item flex\" style=\"position: relative;\">\r\n\t\t\t\t\t<view class=\"title\">联系电话</view>\r\n\t\t\t\t\t<input class=\"msg\" type=\"number\" v-model=\"mobile\" disabled=\"true\">\r\n\t\t\t\t\t<view class=\"more\">\r\n\t\t\t\t\t\t<image src=\"/static/icon/icon-join.png\" mode=\"widthFix\"></image>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<button class=\"get-phone-btn\" open-type=\"getPhoneNumber\" @getphonenumber=\"onGetPhoneNumber\"></button>\r\n\t\t\t\t</view>\r\n\t\t\t\t<picker mode=\"region\" @change=\"change\">\r\n\t\t\t\t\t<view class=\"item flex\">\r\n\t\t\t\t\t\t<view class=\"title\">联系地址</view>\r\n\t\t\t\t\t\t<input class=\"msg\" type=\"text\" v-model=\"area\" disabled=\"true\">\r\n\t\t\t\t\t\t<view class=\"more\">\r\n\t\t\t\t\t\t\t<image src=\"/static/icon/icon-join.png\" mode=\"widthFix\"></image>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</picker>\r\n\t\t\t\t<view class=\"item flex\" @tap=\"openEdit('address')\">\r\n\t\t\t\t\t<view class=\"title\">详细地址</view>\r\n\t\t\t\t\t<input class=\"msg\" type=\"text\" v-model=\"address\" disabled=\"true\">\r\n\t\t\t\t\t<view class=\"more\">\r\n\t\t\t\t\t\t<image src=\"/static/icon/icon-join.png\" mode=\"widthFix\"></image>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<!-- 修改信息 -->\r\n\t\t<view class=\"pull-bg\" style=\"background-color: rgba(0,0,0,.3);\" v-show=\"isOpen\" @tap=\"closeEdit\"></view>\r\n\t\t<view class=\"vip-box-bg border-box\" v-if=\"isOpen\">\r\n\t\t\t<view class=\"vip-box radius20 background-white font30\">\r\n\t\t\t\t<view class=\"title\">{{title}}</view>\r\n\t\t\t\t<view class=\"vip-list\">\r\n\t\t\t\t\t<view class=\"vip-item mar-s20\">\r\n\t\t\t\t\t\t<view class=\"tips color-99\">{{subtitle}}</view>\r\n\t\t\t\t\t\t<input class=\"input\" type=\"text\" v-model=\"msg\" :placeholder=\"placeholder\" placeholder-style=\"color:#000000\">\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"submit-btn font36 background-orange radius30 mar-s60 flex\" @tap=\"submitEdit\">提交修改</view>\r\n\t\t\t\t<view class=\"close-btn\" @tap=\"closeEdit\">\r\n\t\t\t\t\t<image src=\"/static/icon/close-btn.png\" mode=\"widthFix\"></image>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\texport default {\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\twindoHeight:uni.getSystemInfoSync().windowHeight,\r\n\t\t\t\tstatusHeight:uni.getSystemInfoSync().statusBarHeight,\r\n\t\t\t\theadImgUrl:'', //头像链接\r\n\t\t\t\tnickName:'', //昵称\r\n\t\t\t\tbusinessCode:'', //会员码\r\n\t\t\t\trealName:'',//真实姓名\r\n\t\t\t\tmobile:'',//电话\r\n\t\t\t\tarea:'',//联系地址\r\n\t\t\t\taddress:'',//详细地址\r\n\t\t\t\tisOpen:false, //是否显示\r\n\t\t\t\ttitle:'', //标题\r\n\t\t\t\tsubtitle:'', //副标题\r\n\t\t\t\tmsg:'', //修改内容\r\n\t\t\t\tfield:'', //修改位置\r\n\t\t\t\tplaceholder:'', //默认信息\r\n\t\t\t\theadImg:'', //缓存头像链接\r\n\t\t\t\tprovince:'', //省\r\n\t\t\t\tcity:'', //市\r\n\t\t\t\tcounty:'', //区\r\n\t\t\t\tisLoading:false,\r\n\t\t\t}\r\n\t\t},\r\n\t\tonLoad(op) {\r\n\t\t\tthis.getUserData();\r\n\t\t},\r\n\t\tonShow() {\r\n\t\t\t\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\t// 获取用户信息\r\n\t\t\tgetUserData(){\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/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.headImgUrl = res.data.headimgurl;\r\n\t\t\t\t\t\tthis.nickName = res.data.nickname;\r\n\t\t\t\t\t\tthis.businessCode = res.data.business_code;\r\n\t\t\t\t\t\tthis.realName= res.data.real_name;\r\n\t\t\t\t\t\tthis.mobile= res.data.mobile;\r\n\t\t\t\t\t\tthis.area= res.data.province+res.data.city+res.data.county;\r\n\t\t\t\t\t\tthis.address= res.data.address;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tuni.hideLoading();\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\topenEdit(type){\r\n\t\t\t\tif(type == 'real_name'){\r\n\t\t\t\t\tthis.title = '真实姓名';\r\n\t\t\t\t\tthis.subtitle = '真实姓名';\r\n\t\t\t\t\tthis.placeholder = '请输入真实姓名';\r\n\t\t\t\t\tthis.msg = this.realName==''?'':this.realName;\r\n\t\t\t\t\tthis.isOpen = true;\r\n\t\t\t\t\tthis.field = 'real_name';\r\n\t\t\t\t}\r\n\t\t\t\tif(type == 'address'){\r\n\t\t\t\t\tthis.title = '详细地址';\r\n\t\t\t\t\tthis.subtitle = '详细地址';\r\n\t\t\t\t\tthis.placeholder = '请输入详细地址';\r\n\t\t\t\t\tthis.msg = this.address==''?'':this.address;\r\n\t\t\t\t\tthis.isOpen = true;\r\n\t\t\t\t\tthis.field = 'address';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t// 选择省市区\r\n\t\t\tchange(e){\r\n\t\t\t\tthis.area = e.detail.value[0] + e.detail.value[1] + e.detail.value[2];\r\n\t\t\t\tthis.province = e.detail.value[0];\r\n\t\t\t\tthis.city = e.detail.value[1];\r\n\t\t\t\tthis.county = e.detail.value[2];\r\n\t\t\t\tthis.field = 'area'\r\n\t\t\t\tsetTimeout(()=>{\r\n\t\t\t\t\tthis.submitEdit()\r\n\t\t\t\t},200)\r\n\t\t\t},\r\n\t\t\t// 提交修改\r\n\t\t\tsubmitEdit(){\r\n\t\t\t\tif(this.field == 'real_name'){\r\n\t\t\t\t\tvar params = {\r\n\t\t\t\t\t\treal_name:this.msg\r\n\t\t\t\t\t}\r\n\t\t\t\t\tconsole.log(params,123)\r\n\t\t\t\t}\r\n\t\t\t\tif(this.field == 'address'){\r\n\t\t\t\t\tvar params = {\r\n\t\t\t\t\t\taddress:this.msg\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(this.field == 'area'){\r\n\t\t\t\t\tvar params = {\r\n\t\t\t\t\t\tprovince:this.province,\r\n\t\t\t\t\t\tcity:this.city,\r\n\t\t\t\t\t\tcounty:this.county\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\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\tif(params){\r\n\t\t\t\t\tthis.$requst.post('/api/user/edit-info',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\t// 关闭弹窗\r\n\t\t\t\t\t\t\tthis.closeEdit();\r\n\t\t\t\t\t\t\t// 刷新用户信息\r\n\t\t\t\t\t\t\tthis.getUserData();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t})\r\n\t\t\t\t}else{\r\n\t\t\t\t\tthis.$toolAll.tools.showToast('您没有更改信息');\r\n\t\t\t\t\t// 关闭弹窗\r\n\t\t\t\t\tthis.closeEdit();\r\n\t\t\t\t}\r\n\t\t\t\tuni.hideLoading();\r\n\t\t\t},\r\n\t\t\t\r\n\t\t\t// 关闭弹窗\r\n\t\t\tcloseEdit(){\r\n\t\t\t\tthis.title = '';\r\n\t\t\t\tthis.subtitle = '';\r\n\t\t\t\tthis.msg='';\r\n\t\t\t\tthis.isOpen = false;\r\n\t\t\t\tthis.type=''\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/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\t// 刷新用户信息\r\n\t\t\t\t\t\t\tthis.getUserData();\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>\r\n\t\r\n</style>\r\n"],"sourceRoot":""}