1 line
25 KiB
Plaintext
1 line
25 KiB
Plaintext
{"version":3,"sources":["uni-app:///main.js","webpack:////Users/Ian/dnmp/www/frontend/hengmei-mp/pagesA/nodifyData/nodifyData.vue?ee9f","webpack:////Users/Ian/dnmp/www/frontend/hengmei-mp/pagesA/nodifyData/nodifyData.vue?2412","webpack:////Users/Ian/dnmp/www/frontend/hengmei-mp/pagesA/nodifyData/nodifyData.vue?c87a","webpack:////Users/Ian/dnmp/www/frontend/hengmei-mp/pagesA/nodifyData/nodifyData.vue?281b","uni-app:///pagesA/nodifyData/nodifyData.vue","webpack:////Users/Ian/dnmp/www/frontend/hengmei-mp/pagesA/nodifyData/nodifyData.vue?4d7c","webpack:////Users/Ian/dnmp/www/frontend/hengmei-mp/pagesA/nodifyData/nodifyData.vue?4c77"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,4G,6FAFmBA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC;AAGnBC,UAAU,CAACC,mBAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAuH;AACvH;AAC8D;AACL;AACa;;;AAGtE;AACmN;AACnN,gBAAgB,iNAAU;AAC1B,EAAE,gFAAM;AACR,EAAE,qFAAM;AACR,EAAE,8FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,yFAAU;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,kRAEN;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;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;AC7DA;AAAA;AAAA;AAAA;AAAu1B,CAAgB,wyBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACoE32B;AACA;AACA;AACA,gCAFA,EADA;;AAKA,MALA,kBAKA;AACA;AACA,uCADA;AAEA;AACA,0DADA;AAEA,iEAFA;AAGA,0DAHA;AAIA,wDAJA;AAKA,0DALA;AAMA,iEANA;AAOA,iEAPA;AAQA,wDARA,CAFA;;AAYA,mBAZA;AAaA,gBAbA;AAcA,kCAdA;AAeA,iBAfA;AAgBA,gCAhBA;AAiBA,iBAjBA;AAkBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCA1BA;AA2BA,6BA3BA;AA4BA,kBA5BA;AA6BA,eA7BA;AA8BA,qBA9BA;AA+BA,oBA/BA,EA+BA;AACA,iBAhCA,EAgCA;AACA,qBAjCA,EAiCA;AACA,kBAlCA;;AAoCA,GA1CA;AA2CA;AACA;AACA,eAFA,yBAEA;AACA;AACA,KAJA;AAKA,gBALA,0BAKA;AACA;AACA,KAPA,EA3CA;;AAoDA,QApDA,oBAoDA;AACA;AACA;AACA,GAvDA;AAwDA,UAxDA,sBAwDA;AACA;AACA,GA1DA;AA2DA,QA3DA,kBA2DA,OA3DA,EA2DA;AACA;AACA;AACA;AACA,oCAJA,CAIA;AACA,yDALA,CAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAHA,CAGA;AACA,8CAJA,CAIA;AACA,4CALA,CAKA;AACA,gCANA,CAMA;AACA,iHAPA,CAOA;AACA,6HARA,CAQA;AACA,8FATA,CASA;AACA,mFAVA,CAUA;AACA,KAXA,MAWA;AACA,oDADA,CACA;AACA,mDAFA,CAEA;AACA,iDAHA,CAGA;AACA,qCAJA,CAIA;AACA;AACA,GA1FA;AA2FA;AACA,cADA,wBACA;AACA;AACA,2CADA,EACA;AACA,0CAFA,EAEA;AACA,wCAHA,EAGA;AACA,4BAJA,EAIA;AACA,qCALA,EAKA;AACA,iCANA,EAMA;AACA,mCAPA,EAOA;AACA,oCARA,CAQA;AARA;AAUA;AACA;AACA;AACA;AACA;AACA;AACA,0CADA;;AAGA,aAJA,MAIA;AACA;AACA;AACA,WARA,EAQA,IARA;AASA;AACA,OAbA,EAaA,mBAbA;AAcA,KA1BA;AA2BA,eA3BA,uBA2BA,QA3BA,EA2BA,SA3BA,EA2BA;AACA;AACA;AACA,oJADA;AAEA;AACA,4CADA,EAFA;;AAKA;AACA;AACA;AACA;AACA;AACA;AACA,SAXA;;AAaA,KA1CA;AA2CA,eA3CA,yBA2CA;AACA;AACA;AACA;AACA;AACA,KAhDA;AAiDA,aAjDA,qBAiDA,CAjDA,EAiDA;AACA;AACA;AACA,KApDA;AAqDA,cArDA,wBAqDA;AACA;AACA,gBADA;AAEA;AACA;AACA,SAJA;;AAMA,KA5DA;AA6DA,gBA7DA,wBA6DA,CA7DA,EA6DA;AACA;AACA,KA/DA;AAgEA,cAhEA,sBAgEA,CAhEA,EAgEA;AACA;AACA,KAlEA;AAmEA,iBAnEA,yBAmEA,CAnEA,EAmEA;;AAEA,KArEA;AAsEA,WAtEA,mBAsEA,KAtEA,EAsEA;AACA;AACA,iEADA,CACA;AACA,0CAFA,CAEA;AACA;AACA,KA3EA;AA4EA,UA5EA,kBA4EA,KA5EA,EA4EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAxHA,GA3FA,E;;;;;;;;;;;;;ACpEA;AAAA;AAAA;AAAA;AAA0sC,CAAgB,qmCAAG,EAAC,C;;;;;;;;;;;ACA9tC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pagesA/nodifyData/nodifyData.js","sourcesContent":["import 'uni-pages';wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pagesA/nodifyData/nodifyData.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./nodifyData.vue?vue&type=template&id=cf9503ea&\"\nvar renderjs\nimport script from \"./nodifyData.vue?vue&type=script&lang=js&\"\nexport * from \"./nodifyData.vue?vue&type=script&lang=js&\"\nimport style0 from \"./nodifyData.vue?vue&type=style&index=0&lang=css&\"\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 null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pagesA/nodifyData/nodifyData.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--16-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!./nodifyData.vue?vue&type=template&id=cf9503ea&\"","var components\ntry {\n components = {\n simpleAddress: function() {\n return import(\n /* webpackChunkName: \"components/simple-address/simple-address\" */ \"@/components/simple-address/simple-address.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 var l0 = _vm.__map(_vm.dataList, function(itemd, indexd) {\n var $orig = _vm.__get_orig(itemd)\n\n var g0 = indexd == 2 ? itemd.title.charAt(0) : null\n var g1 = indexd == 2 ? itemd.title.charAt(1) : null\n var g2 = indexd == 2 ? itemd.title.charAt(2) : null\n var g3 = indexd == 2 ? itemd.title.charAt(3) : null\n var g4 = indexd == 3 || indexd == 7 ? itemd.title.charAt(0) : null\n var g5 = indexd == 3 || indexd == 7 ? itemd.title.charAt(1) : null\n return {\n $orig: $orig,\n g0: g0,\n g1: g1,\n g2: g2,\n g3: g3,\n g4: g4,\n g5: g5\n }\n })\n\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n l0: l0\n }\n }\n )\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--12-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!./nodifyData.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--12-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!./nodifyData.vue?vue&type=script&lang=js&\"","<template>\n\t<view>\n\t\t<!-- 状态栏 -->\n\t\t<status-nav :titleVal=\"'修改资料'\" :whereCome=\"whereCome\" :statusTitle=\"true\"></status-nav>\n\t\t<!-- 自定义二级分类 -->\n\t\t<!-- 列表 -->\n\t\t<view :style=\"{paddingTop: statusHeight+'px'}\" class=\"fon28 pad-x20\">\n\t\t\t<view v-for=\"(itemd,indexd) in dataList\" :key=\"indexd\"\n\t\t\tclass=\"disjbac borbot mar-zy40\" :class=\"(indexd!=1 && indexd!=5 && indexd!=6) ? 'pad-sx40':''\">\n\t\t\t\t<!-- 标题 -->\n\t\t\t\t<view class=\"col9 flexs\" style=\"width: 17.8%;\">\n\t\t\t\t\t<view v-if=\"indexd!=2 && indexd!=3 && indexd!=7\">{{itemd.title}}:</view>\n\t\t\t\t\t<!-- 恒美ID -->\n\t\t\t\t\t<view v-if=\"indexd==2\" class=\"disjb\">\n\t\t\t\t\t\t<view class=\"disjb width100\">\n\t\t\t\t\t\t\t<view>{{itemd.title.charAt(0)}}</view>\n\t\t\t\t\t\t\t<view>{{itemd.title.charAt(1)}}</view>\n\t\t\t\t\t\t\t<view>{{itemd.title.charAt(2)}}{{itemd.title.charAt(3)}}</view>\n\t\t\t\t\t\t</view>\n\t\t\t\t\t\t<view>:</view>\n\t\t\t\t\t</view>\n\t\t\t\t\t<!-- 性别、地址 -->\n\t\t\t\t\t<view v-if=\"indexd==3 || indexd==7\" class=\"disjb\">\n\t\t\t\t\t\t<view class=\"disjb width100\">\n\t\t\t\t\t\t\t<view>{{itemd.title.charAt(0)}}</view>\n\t\t\t\t\t\t\t<view>{{itemd.title.charAt(1)}}</view>\n\t\t\t\t\t\t</view>\n\t\t\t\t\t\t<view>:</view>\n\t\t\t\t\t</view>\n\t\t\t\t</view>\n\t\t\t\t<view class=\"disac fe width100 tright\">\n\t\t\t\t\t<!-- 内容 -->\n\t\t\t\t\t<view v-if=\"itemd.content!='' && (indexd!=1 && indexd!=5 && indexd!=6)\" :class=\"indexd==1?'nic':'col3'\" class=\"mar-y20 width100\" :style=\"{marginRight:indexd==2?'39rpx':''}\">{{itemd.content}}</view>\n\t\t\t\t\t<!-- 性别下拉弹框 -->\n\t\t\t\t\t<picker v-if=\"indexd==3\" class=\"col3 mar-y20 width100\" @change=\"changePicker\" :value=\"current\" :range=\"pickerData\">\n\t\t\t\t\t\t<view>{{pickerData[current]}}</view>\n\t\t\t\t\t</picker>\n\t\t\t\t\t<!-- 出生日期下拉框 -->\n\t\t\t\t\t<picker v-if=\"indexd==4\" mode=\"date\" class=\"col3 mar-y20 width100\" @change=\"changeTime\" :value=\"currentt\" :range=\"pickerTime\">\n\t\t\t\t\t\t<view>{{pickerTime[currentt]}}</view>\n\t\t\t\t\t</picker>\n\t\t\t\t\t<!-- 地址下拉框 -->\n\t\t\t\t\t<!-- <picker v-if=\"indexd==7\" mode=\"multiSelector\" class=\"col3 mar-y20 width100\" @change=\"changeAddress\" :value=\"currenta\" :range=\"pickerAddress\">\n\t\t\t\t\t\t<view>{{pickerAddress[0]}}{{pickerAddress[1]}}{{pickerAddress[2]}}</view>\n\t\t\t\t\t</picker> -->\n\t\t\t\t\t<!-- <view v-if=\"indexd==7\" @tap=\"openPicker\" class=\"width100 mar-y20\">{{region}}</view> -->\n\t\t\t\t\t<view v-if=\"indexd==7\" @tap=\"openAddres2\" class=\"width100 mar-y20\">{{pickerText}}</view>\n\t\t\t\t\t<!-- 用户昵称、真实姓名、联系电话输入框 -->\n\t\t\t\t\t<input @focus=\"inputFo(indexd)\" @blur=\"inputB(indexd)\" v-if=\"indexd==1 || indexd==5 || indexd==6\" :disabled=\"indexd==6\" :type=\"(indexd==1 || indexd==5)?'text':'number'\" :maxlength=\"indexd==6?11:10\" v-model=\"itemd.content\" class=\"mar-y20 tright pad-sx40 width100\" style=\"border: none;\" :placeholder=\"itemd.fcon\"/>\n\t\t\t\t\t<!-- 用户头像 -->\n\t\t\t\t\t<image v-if=\"indexd==0\" :src=\"itemd.imgSrc || moHead\" :class=\"indexd==0?'head_img':'head_next'\" class=\"\" mode=\"aspectFill\"></image>\n\t\t\t\t\t<!-- <image @tap=\"chooseHead\" v-if=\"itemd.imgSrc!=''\" :src=\"itemd.imgSrc\" :class=\"indexd==0?'head_img':'head_next'\" class=\"\" mode=\"aspectFill\"></image> -->\n\t\t\t\t\t<!-- 前进键 -->\n\t\t\t\t\t<image v-if=\"indexd!=0 && indexd!=2\" src=\"/static/public/nexth.png\" class=\"head_next flexs\"></image>\n\t\t\t\t</view>\n\t\t\t</view>\n\t\t</view>\n\t\t<view class=\"\" @tap=\"updataInfo\" style=\"height: 90rpx;line-height: 90rpx;margin: 80rpx 100rpx 120rpx 100rpx;\" class=\"radius20 fon40 bold colf tc\" :style=\"{background:publicColor}\">{{btnCon}}</view>\n\t\t<!-- 底部弹框 --> \n\t\t<!-- <city @choseVal=\"choseValue\" :lotusAddressData=\"lotusAddressData\"></city> -->\n\t\t<simple-address ref=\"simpleAddress\" :pickerValueDefault=\"cityPickerValueDefault\" @onConfirm=\"onConfirm\" themeColor=\"#007AFF\"></simple-address>\n\t\t<!-- 底部客服 -->\n\t\t<public-customer :nbottom=\"100\"></public-customer>\n\t</view>\n</template>\n\n<script>\n\timport simpleAddress from '@/components/simple-address/simple-address.vue';\n\texport default {\n\t\tcomponents:{\n\t\t\t// city,\n\t\t\tsimpleAddress\n\t\t},\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tmoHead:'/static/public/logo.png',\n\t\t\t\tdataList:[\n\t\t\t\t\t{title:'用户头像',content:'',imgSrc:'',fcon:''},\n\t\t\t\t\t{title:'用户昵称',content:'',imgSrc:'',fcon:'请输入用户昵称'},\n\t\t\t\t\t{title:'恒美ID',content:'',imgSrc:'',fcon:''},\n\t\t\t\t\t{title:'性别',content:'',imgSrc:'',fcon:''},\n\t\t\t\t\t{title:'出生日期',content:'',imgSrc:'',fcon:''},\n\t\t\t\t\t{title:'真实姓名',content:'',imgSrc:'',fcon:'请输入真实姓名'},\n\t\t\t\t\t{title:'联系电话',content:'',imgSrc:'',fcon:'请输入联系电话'},\n\t\t\t\t\t{title:'地址',content:'',imgSrc:'',fcon:''},\n\t\t\t\t],\n\t\t\t\tisKuang:true,\n\t\t\t\tcurrent:0,\n\t\t\t\tpickerData:['未知','男','女'],\n\t\t\t\tcurrentt:0,\n\t\t\t\tpickerTime:['1997-01-01'],\n\t\t\t\tcurrenta:0,\n\t\t\t\t// pickerAddress:['四川省 ','成都市 ','青羊区'],\n\t\t\t\t// lotusAddressData:{\n\t\t\t\t// visible:false,\n\t\t\t\t// provinceName:'',\n\t\t\t\t// cityName:'',\n\t\t\t\t// townName:'',\n\t\t\t\t// },\n\t\t\t\t// region:'四川省成都市成华区',\n\t\t\t\tcityPickerValueDefault: [0, 0, 1],\n\t\t\t\tpickerText: '四川省成都市成华区',\n\t\t\t\tbtnCon:'保存',\n\t\t\t\tuinfo:{},\n\t\t\t\taddressInfo:[],\n\t\t\t\tnewProvice:'',//当前省份\n\t\t\t\tnewCity:'',//当前城市\n\t\t\t\tnewDistrict:'',//当前区县\n\t\t\t\twhereCome:0,\n\t\t\t}\n\t\t},\n\t\tcomputed: {\n\t\t\t// 主题颜色\n\t\t\tpublicColor() {\n\t\t\t\treturn this.$store.state.publicColor\n\t\t\t},\n\t\t\tstatusHeight() {\n\t\t\t\treturn this.$store.state.statusHeight\n\t\t\t}\n\t\t},\n\t\tonShow() {\n\t\t\t// 禁用小程序分享\n\t\t\tthis.$toolAll.tools.disableShareEv();\n\t\t},\n\t\tonUnload() {\n\t\t\tuni.removeStorageSync('firstInfo')\n\t\t},\n\t\tonLoad(options) {\n\t\t\tif(options.whereNum==2){\n\t\t\t\tthis.whereCome = options.whereNum\n\t\t\t}\n\t\t\tlet chuo = new Date().getTime()// 获取当前时间戳\n\t\t\tlet time = this.$toolAll.tools.timestampToTime(chuo)// 转换日期格式为XXXX-XX-XX\n\t\t\t// 获取当前位置的经纬度\n\t\t\t// wx.getLocation({\n\t\t\t// \tsuccess:(res)=> {\n\t\t\t// \t\t// 逆解析经纬度\n\t\t\t// \t\tthis.getDistrict(res.latitude, res.longitude)\n\t\t\t// \t},\n\t\t\t// })\n\t\t\tlet firstObj = uni.getStorageSync('firstInfo')\n\t\t\tif(firstObj==''){\n\t\t\t\tlet obj = uni.getStorageSync('uinfo')\n\t\t\t\tif(obj!='') this.uinfo = obj\n\t\t\t\tthis.dataList[0].imgSrc = obj.headimgurl//用户头像\n\t\t\t\tthis.dataList[1].content = obj.nickname//用户昵称\n\t\t\t\tthis.dataList[2].content = obj.coding//恒美ID\n\t\t\t\tthis.current = obj.gender//性别1男,2女,0未知\n\t\t\t\tobj.birthday!='' ? this.pickerTime = [obj.birthday.slice(0,10)] : this.pickerTime = [time.slice(0,10)]//出生日期\n\t\t\t\tobj.real_name!=null && obj.real_name !='' ? this.dataList[5].content = obj.real_name : this.dataList[5].fcon = '未知'//真实姓名\n\t\t\t\tobj.mobile!='' ? this.dataList[6].content = obj.mobile : this.dataList[6].fcon = '未知'//电话\n\t\t\t\tif(obj.county!='') this.pickerText = obj.province + obj.city + obj.county//省市区县\n\t\t\t} else {\n\t\t\t\tthis.dataList[0].imgSrc = firstObj.headimgurl//用户头像\n\t\t\t\tthis.dataList[1].content = firstObj.nickname//用户昵称\n\t\t\t\tthis.dataList[2].content = firstObj.coding//恒美ID\n\t\t\t\tthis.current = firstObj.gender//性别1男,2女,0未知\n\t\t\t}\n\t\t},\n\t\tmethods: {\n\t\t\tupdataInfo(){//修改资料事件\n\t\t\t\tlet params = {\n\t\t\t\t\treal_name:this.dataList[5].content,//姓名\n\t\t\t\t\tnickname:this.dataList[1].content,//昵称\n\t\t\t\t\tmobile:this.dataList[6].content,//手机号\n\t\t\t\t\tgender:this.current,//性别,0未知,1男,2女\n\t\t\t\t\tprovince:this.addressInfo[0],//省份\n\t\t\t\t\tcity:this.addressInfo[1],//市\n\t\t\t\t\tcounty:this.addressInfo[2],//区县\n\t\t\t\t\tbirthday:this.pickerTime[0]//生日(出生年月),日期格式:2021-08-10\n\t\t\t\t}\n\t\t\t\tthis.$requst.post('user/edit-info',params).then(res=>{\n\t\t\t\t\tif(res.code==0){\n\t\t\t\t\t\tthis.$toolAll.tools.showToast('资料修改成功')\n\t\t\t\t\t\tsetTimeout(()=>{\n\t\t\t\t\t\t\tif(this.whereCome==2){\n\t\t\t\t\t\t\t\tuni.navigateTo({\n\t\t\t\t\t\t\t\t\turl:'/pages/tabbar/my/my'\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tuni.navigateBack({delta:1})\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},1000)\n\t\t\t\t\t}\n\t\t\t\t},error=>{})\n\t\t\t},\n\t\t\tgetDistrict(latitude, longitude) {//获取当前位置的省市区县\n\t\t\t\tlet ya = this\n\t\t\t wx.request({\n\t\t\t\t\turl: `https://apis.map.qq.com/ws/geocoder/v1/?location=${latitude},${longitude}&key=B2ABZ-SIDKS-WD2O3-6CJ2U-CDZOT-U3FKF`,\n\t\t\t\t\theader: {\n\t\t\t\t\t\t'Content-Type':'application/json'\n\t\t\t\t\t},\n\t\t\t\t\tsuccess:function(res) {\n\t\t\t\t\t\t// console.log('地址数据:',res)\n\t\t\t\t\t\tya.newProvice = res.data.result.address_component.province\n\t\t\t\t\t\tya.newCity = res.data.result.address_component.city\n\t\t\t\t\t\tya.newDistrict = res.data.result.address_component.district\n\t\t\t\t\t\tif(ya.pickerText=='') ya.pickerText = ya.newProvice + ya.newCity + ya.newDistrict\n\t\t\t\t\t}\n\t\t\t })\n\t\t\t},\n\t\t\topenAddres2() {//地址弹框事件\n\t\t\t\t// 根据 label 获取\n\t\t\t\tvar index = this.$refs.simpleAddress.queryIndex([this.newProvice, this.newCity, this.newDistrict], 'label');\n\t\t\t\tthis.cityPickerValueDefault = index.index;\n\t\t\t\tthis.$refs.simpleAddress.open();\n\t\t\t},\n\t\t\tonConfirm(e) {//地址确认事件\n\t\t\t\tthis.pickerText = e.labelArr[0]+e.labelArr[1]+e.labelArr[2];\n\t\t\t\tthis.addressInfo = [e.labelArr[0],e.labelArr[1],e.labelArr[2]]\n\t\t\t},\n\t\t\tchooseHead(){//选择头像事件\n\t\t\t\tuni.chooseImage({\n\t\t\t\t\tcount:1,\n\t\t\t\t\tsuccess: (res) => {\n\t\t\t\t\t\tthis.dataList[0].imgSrc = res.tempFilePaths[0]\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t},\n\t\t\tchangePicker(e){//性别选择\n\t\t\t\tthis.current = e.detail.value\n\t\t\t},\n\t\t\tchangeTime(e){//出生日期选择\n\t\t\t\tthis.pickerTime = [e.detail.value]\n\t\t\t},\n\t\t\tchangeAddress(e){\n\t\t\t\t\n\t\t\t},\n\t\t\tinputFo(index){//输入框获取焦点\n\t\t\t\tif(this.dataList[index].content!=''){\n\t\t\t\t\tthis.dataList[index].fcon = this.dataList[index].content//将当前输入框的实际值赋值给当前输入框的placeholder属性\n\t\t\t\t\tthis.dataList[index].content = ''//清空当前输入框的实际值\n\t\t\t\t}\n\t\t\t},\n\t\t\tinputB(index){//输入框失去焦点\n\t\t\t\tif(index==1){\n\t\t\t\t\tif(this.dataList[1].content==''){\n\t\t\t\t\t\tthis.dataList[1].content = this.uinfo.nickname\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(index==5){\n\t\t\t\t\tif(this.dataList[5].content==''){\n\t\t\t\t\t\tthis.dataList[5].content = this.uinfo.real_name\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(index==6){\n\t\t\t\t\tif(this.dataList[6].content==''){\n\t\t\t\t\t\tthis.dataList[6].content = this.uinfo.mobile\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//打开picker\n\t\t\t// openPicker() {\n\t\t\t// this.lotusAddressData.visible = true;\n\t\t\t// this.lotusAddressData.provinceName = this.newProvice;\n\t\t\t// this.lotusAddressData.cityName = this.newCity;\n\t\t\t// this.lotusAddressData.townName = this.newDistrict;\n\t\t\t// },\n\t\t\t//回传已选的省市区的值\n\t\t\t// choseValue(res){\n\t\t\t// //res数据源包括已选省市区与省市区code\n\t\t\t// // console.log(res);\n\t\t\t// this.lotusAddressData.visible = res.visible;//visible为显示与关闭组件标识true显示false隐藏\n\t\t\t// //res.isChose = 1省市区已选 res.isChose = 0;未选\n\t\t\t// if(res.isChose){\n\t\t\t// this.lotusAddressData.provinceName = res.province;//省\n\t\t\t// this.lotusAddressData.cityName = res.city;//市\n\t\t\t// this.lotusAddressData.townName = res.town;//区\n\t\t\t// this.region = `${res.province} ${res.city} ${res.town}`; //region为已选的省市区的值\n\t\t\t// \t\tthis.regionObj = {\n\t\t\t// \t\t\tprovince:res.province,\n\t\t\t// \t\t\tprovinceCode:res.provinceCode,\n\t\t\t// \t\t\tcity:res.city,\n\t\t\t// \t\t\tcityCode:res.cityCode,\n\t\t\t// \t\t\ttown:res.town,\n\t\t\t// \t\t\ttownCode:res.townCode\n\t\t\t// \t\t}\n\t\t\t// }\n\t\t\t// },\n\t\t}\n\t}\n</script>\n\n<style>\npage{background-color: #FFFFFF;}\n</style>\n","import mod from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-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--6-oneOf-1-2!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../../../../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!./nodifyData.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-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--6-oneOf-1-2!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../../../../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!./nodifyData.vue?vue&type=style&index=0&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1653900081777\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":""} |