dengrui/unpackage/dist/dev/.sourcemap/mp-weixin/pagesB/personalInfo/personalInfo.js.map

1 line
12 KiB
Plaintext

{"version":3,"sources":["uni-app:///main.js","webpack:///D:/chenq/chen/uniapp(兼小程序)/dengrui/pagesB/personalInfo/personalInfo.vue?3e7a","webpack:///D:/chenq/chen/uniapp(兼小程序)/dengrui/pagesB/personalInfo/personalInfo.vue?00a4","webpack:///D:/chenq/chen/uniapp(兼小程序)/dengrui/pagesB/personalInfo/personalInfo.vue?8c5c","webpack:///D:/chenq/chen/uniapp(兼小程序)/dengrui/pagesB/personalInfo/personalInfo.vue?c718","uni-app:///pagesB/personalInfo/personalInfo.vue"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,mH;AACAA,UAAU,CAACC,qBAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAyH;AACzH;AACgE;AACL;;;AAG3D;AACmL;AACnL,gBAAgB,uLAAU;AAC1B,EAAE,kFAAM;AACR,EAAE,uFAAM;AACR,EAAE,gGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,2FAAU;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;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAAyrB,CAAgB,wqBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACiC7sB;AACA,MADA,kBACA;AACA;AACA;AACA,wEADA;AAEA,iDAFA;AAGA,iDAHA,CADA;;AAMA,kBANA;AAOA,mBAPA;AAQA,oBARA;AASA,mBATA;AAUA,gBAVA;AAWA,eAXA;AAYA,uBAZA;AAaA,oBAbA;AAcA,iBAdA;AAeA,gDAfA;;AAiBA,GAnBA;AAoBA,QApBA,oBAoBA;AACA;AACA;AACA;AACA;AACA;AACA,KAFA,MAEA;AACA;AACA;AACA;AACA;AACA,KAFA,MAEA;AACA;AACA;AACA;AACA,GAnCA;AAoCA,QApCA,oBAoCA;AACA;AACA,GAtCA;AAuCA;AACA,WADA,mBACA,CADA,EACA;AACA;AACA,KAHA;AAIA,aAJA,qBAIA,KAJA,EAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBADA;AAEA,gCAFA;AAGA;AACA;AACA;AACA;AACA,6BAFA,CAEA;AACA,aAHA,EAGA,mBAHA;AAIA,WATA;AAUA;AACA;AACA,WAZA;;AAcA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAjCA;AAkCA,UAlCA,oBAkCA;AACA;AACA;AACA;AACA;AACA;AACA,OAHA,EAGA,IAHA;AAIA,KAzCA;AA0CA,UA1CA,oBA0CA;AACA;AACA;AACA;AACA,OAFA,MAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAHA,MAGA;AACA;AACA;AACA;AACA;AACA;AACA,mDADA;AAEA,+BAFA;AAGA,sBAHA;AAIA,qCAJA;AAKA,mCALA;AAMA,6CANA;AAOA,uCAPA;AAQA,+BARA;AASA,uCATA;;AAWA;AACA;AACA;AACA;AACA;AACA;AACA,aAJA,EAIA,IAJA;AAKA;AACA,SAjCA,EAiCA,mBAjCA;AAkCA;AACA,KAnFA;AAoFA,YApFA,sBAoFA;AACA;AACA;AACA,KAvFA,EAvCA,E","file":"pagesB/personalInfo/personalInfo.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pagesB/personalInfo/personalInfo.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./personalInfo.vue?vue&type=template&id=fca601a8&\"\nvar renderjs\nimport script from \"./personalInfo.vue?vue&type=script&lang=js&\"\nexport * from \"./personalInfo.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/personalInfo/personalInfo.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!./personalInfo.vue?vue&type=template&id=fca601a8&\"","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 \"-!../../../../../../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!./personalInfo.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!./personalInfo.vue?vue&type=script&lang=js&\"","<template>\n <view class=\"\">\n <!-- 使用标题栏 -->\r\n <status-nav :statusBackw=\"true\" :statusTitle=\"true\" :title-val=\"'个人资料'\" :tabcolor=\"'#ffffff'\"></status-nav>\r\n <view class=\"margin-zy20 bacb radius10\" :style=\"{marginTop:(statusHNH+10)+'px'}\">\r\n <view @tap=\"chooseVal(index)\" class=\"disba fon28 margin-zy20 borbot padding-sx20\" v-for=\"(item,index) in dataArr\" :key=\"index\">\r\n <view class=\"\" style=\"color: #292929;\">{{item.title}}</view>\r\n <view class=\"disac\">\r\n <view v-if=\"item.content!=''\" style=\"color: #a6a6a6;\">{{item.content}}</view>\r\n <image v-if=\"item.imgSrc!=''\" style=\"width: 96rpx;height: 96rpx;border-radius: 100%;margin-left: 20rpx;\" :src=\"item.imgSrc\" mode=\"aspectFill\"></image>\r\n <image class=\"margin-z10 youj\" src=\"/static/img/my/youj.png\" mode=\"\"></image>\r\n </view>\r\n </view>\r\n </view>\r\n <view class=\"margin20\">\r\n <!-- <button class=\"fon32 color33\" style=\"background-color: #FFFFFF;border: none;position: inherit;height: 120rpx;line-height: 120rpx;\">退出登录</button> -->\r\n\t\t\t<navigator @tap=\"clearAll\" class=\"fon32 color33\" target=\"miniProgram\" open-type=\"exit\"style=\"background-color: #FFFFFF;height: 120rpx;line-height: 120rpx;text-align: center;border-radius: 10rpx;\"> 退出登录</navigator>\r\n </view>\r\n\t\t<!-- 弹框输入 -->\r\n\t\t<view v-if=\"isInput\" class=\"posiall disbcac\" style=\"background-color: rgba(0,0,0,.5);z-index: 100;\">\r\n\t\t\t<view :class=\"isClose ? '':'bounceOut'\" class=\"animated bounceIn\" style=\"background-color: #FFFFFF;width: 70%;padding: 20rpx;border-radius: 10rpx;\">\r\n\t\t\t\t<view style=\"padding-bottom: 20rpx;font-size: 28rpx;\">修改:{{xtitle}}</view>\r\n\t\t\t\t<input @input=\"inputEv\" :focus=\"isfocus\" :type=\"inputType\" :value=\"inputVal\" style=\"border: 1rpx solid #dddddd;border-radius: 10rpx;padding: 10rpx 20rpx;\" />\r\n\t\t\t\t<view style=\"margin-top: 20rpx;display: flex;justify-content: space-between;align-items: center;font-size: 28rpx;\">\r\n\t\t\t\t\t<view @tap=\"closeT\" class=\"color9 width100\" style=\"text-align: center;\">取消</view>\r\n\t\t\t\t\t<view @tap=\"submit\" class=\"colorf78 width100\"style=\"text-align: center;\">确认</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\n </view>\n</template>\n\n<script>\n export default {\n data() {\n return {\n dataArr:[\r\n {title:'昵称:',content:'',imgSrc:'/static/img/my/myhead.png'},\r\n {title:'真实姓名:',content:'',imgSrc:''},\r\n {title:'手机号码:',content:'',imgSrc:''},\r\n ],\r\n\t\t\t\tinputVal:'',\r\n\t\t\t\tisClose:true,\r\n\t\t\t\tisInput:false,\r\n\t\t\t\tisfocus:true,\r\n\t\t\t\txtitle:'',\r\n\t\t\t\tfield:'',\r\n\t\t\t\tinputType:'text',\r\n\t\t\t\tinputIndex:'',\r\n\t\t\t\theadImg:'',\r\n\t\t\t\tstatusHNH:uni.getStorageSync('statusHNH')\r\n }\n },\r\n\t\tonLoad() {\r\n\t\t\tlet obj = uni.getStorageSync('userInfoObj')\r\n\t\t\tthis.dataArr[0].content = obj.nickname\r\n\t\t\tthis.dataArr[0].imgSrc = obj.headimgurl\r\n\t\t\tif(obj.realname==null){\r\n\t\t\t\tthis.dataArr[1].content = '未知'\r\n\t\t\t} else {\r\n\t\t\t\tthis.dataArr[1].content = obj.realname\r\n\t\t\t}\r\n\t\t\tif(obj.mobile==''){\r\n\t\t\t\tthis.dataArr[2].content = '未知'\r\n\t\t\t} else {\r\n\t\t\t\tthis.dataArr[2].content = obj.mobile\r\n\t\t\t\tthis.zanPhone = obj.mobile\r\n\t\t\t}\r\n\t\t},\r\n\t\tonShow(){\r\n\t\t\tthis.$toolAll.tools.guoq()\r\n\t\t},\n methods: {\r\n\t\t\tinputEv(e){\r\n\t\t\t\tthis.inputVal = e.target.value\r\n\t\t\t},\r\n\t\t\tchooseVal(index){\r\n\t\t\t\tif(index!=0) this.isInput = true\r\n\t\t\t\tthis.inputIndex = index\r\n\t\t\t\tthis.xtitle = this.dataArr[index].content\r\n\t\t\t\tif(index==0) {\r\n\t\t\t\t\tthis.field = 'headimgurl'\r\n\t\t\t\t\tuni.chooseImage({\r\n\t\t\t\t\t count:1,\r\n\t\t\t\t\t sizeType:['original'],\r\n\t\t\t\t\t success: (res) => {\r\n\t\t\t\t\t\t\tthis.dataArr[0].imgSrc = res.tempFilePaths[0]\r\n\t\t\t\t\t\t\tthis.$requst.upload('file/upload/image',{file: this.dataArr[0].imgSrc}).then(res=>{\r\n\t\t\t\t\t\t\t\tthis.headImg = res.data.src\r\n\t\t\t\t\t\t\t\tthis.submit()//调用提交事件\r\n\t\t\t\t\t\t\t},error=>{})\r\n\t\t\t\t\t },\r\n\t\t\t\t\t complete: (res) => {\r\n\t\t\t\t\t // console.log(res);\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\tif(index==1) {\r\n\t\t\t\t\tthis.field = 'realname'\r\n\t\t\t\t\tthis.inputType = 'text'\r\n\t\t\t\t}\r\n\t\t\t\tif(index==2) {\r\n\t\t\t\t\tthis.field = 'mobile'\r\n\t\t\t\t\tthis.inputType = 'number'\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tcloseT(){\r\n\t\t\t\tthis.isClose = false\r\n\t\t\t\tlet ya = this\r\n\t\t\t\tsetTimeout(function(){\r\n\t\t\t\t\tya.isInput = false\r\n\t\t\t\t\tya.isClose = true\r\n\t\t\t\t},1000)\r\n\t\t\t},\r\n\t\t\tsubmit(){//用户信息提交事件\r\n\t\t\t\tlet ya = this\r\n\t\t\t\tif(this.inputIndex==2 && this.$toolAll.tools.isPhone(this.inputVal)){\r\n\t\t\t\t\tthis.$toolAll.tools.showToast('请输入正确的手机号')\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif(this.headImg!='') this.inputVal = this.headImg\r\n\t\t\t\t\tthis.$requst.post('user/edit-info',{field:this.field,value:this.inputVal}).then(res=>{\r\n\t\t\t\t\t\t// console.log(res);\r\n\t\t\t\t\t\tif(res.code==0){\r\n\t\t\t\t\t\t\tlet newObj = uni.getStorageSync('params')\r\n\t\t\t\t\t\t\tif(this.inputIndex==0) this.$toolAll.tools.showToast('头像修改成功')\r\n\t\t\t\t\t\t\tlet newName = ''\r\n\t\t\t\t\t\t\tif(this.inputIndex==1) {\r\n\t\t\t\t\t\t\t\tthis.$toolAll.tools.showToast('姓名修改成功')\r\n\t\t\t\t\t\t\t\tnewName = this.inputVal\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tnewName = newObj.nickname\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif(this.inputIndex==2) this.$toolAll.tools.showToast('号码修改成功')\r\n\t\t\t\t\t\t\tthis.isClose = false\r\n\t\t\t\t\t\t\tlet objInfo = {\r\n\t\t\t\t\t\t\t\tavatar:this.$http + this.headImg,\r\n\t\t\t\t\t\t\t\tcity:newObj.city,\r\n\t\t\t\t\t\t\t\tcode:'',\r\n\t\t\t\t\t\t\t\tcountry:newObj.country,\r\n\t\t\t\t\t\t\t\tgender:newObj.gender,\r\n\t\t\t\t\t\t\t\tinvite_code:newObj.invite_code,\r\n\t\t\t\t\t\t\t\tlanguage:newObj.language,\r\n\t\t\t\t\t\t\t\tnickname:newName,\r\n\t\t\t\t\t\t\t\tprovince:newObj.province\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tuni.setStorageSync('params',objInfo)\r\n\t\t\t\t\t\t\tif(this.headImg=='') this.dataArr[this.inputIndex].content = this.inputVal\r\n\t\t\t\t\t\t\tsetTimeout(function(){\r\n\t\t\t\t\t\t\t\tya.isInput = false\r\n\t\t\t\t\t\t\t\tya.isClose = true\r\n\t\t\t\t\t\t\t\tya.inputVal = ya.headImg =''\r\n\t\t\t\t\t\t\t},1000)\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},error=>{})\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tclearAll(){//清除所以缓存\r\n\t\t\t\t// uni.clearStorageSync()\r\n\t\t\t\tuni.removeStorageSync('token')\r\n\t\t\t}\n }\n }\n</script>\n\n<style>\n\n</style>\n"],"sourceRoot":""}