1 line
40 KiB
Plaintext
1 line
40 KiB
Plaintext
{"version":3,"sources":["uni-app:///main.js","webpack:///D:/chenq/chen/hengmei/hengmei/pagesA/nodifyData/nodifyData.vue?a0b6","webpack:///D:/chenq/chen/hengmei/hengmei/pagesA/nodifyData/nodifyData.vue?b7e1","webpack:///D:/chenq/chen/hengmei/hengmei/pagesA/nodifyData/nodifyData.vue?0a39","webpack:///D:/chenq/chen/hengmei/hengmei/pagesA/nodifyData/nodifyData.vue?9dc1","uni-app:///pagesA/nodifyData/nodifyData.vue",null,"webpack:///D:/chenq/chen/hengmei/hengmei/components/city/city.vue?8594","webpack:///D:/chenq/chen/hengmei/hengmei/components/city/city.vue?c12a","webpack:///D:/chenq/chen/hengmei/hengmei/components/city/city.vue?f05b","uni-app:///components/city/city.vue","webpack:///D:/chenq/chen/hengmei/hengmei/components/city/city.vue?699b","webpack:///D:/chenq/chen/hengmei/hengmei/components/city/city.vue?5410","webpack:///D:/chenq/chen/hengmei/hengmei/pagesA/nodifyData/nodifyData.vue?5c37","webpack:///D:/chenq/chen/hengmei/hengmei/pagesA/nodifyData/nodifyData.vue?e81f"],"names":["createPage","Page"],"mappings":"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;AAGA,2BAHA;AAIA,0BAJA;AAKA,2BALA;AAMA,0BANA;AAOA,wBAPA;AAQA,sBARA;;AAUA,KAxCA;AAyCA;AACA,YA1CA,oBA0CA,IA1CA,EA0CA,IA1CA,EA0CA;AACA;AACA;AACA;AACA;AACA;AACA,OAJA;AAKA;AACA,KAlDA;AAmDA;AACA,cApDA,sBAoDA,QApDA,EAoDA;AACA;AACA;AACA;AACA;AACA;AACA,OAJA;AAKA;AACA,KA5DA;AA6DA;AACA,cA9DA,sBA8DA,QA9DA,EA8DA;AACA;AACA;AACA;AACA;AACA;AACA,OAJA;AAKA;AACA,KAtEA;AAuEA;AACA,UAxEA,oBAwEA;AACA;AACA;AACA;AACA;AACA;AACA,SAJA;AAKA;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,KA5GA;AA6GA;AACA,iBA9GA,2BA8GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KA7HA;AA8HA;AACA,eA/HA,uBA+HA,IA/HA,EA+HA,KA/HA,EA+HA,IA/HA,EA+HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAvJA;AAwJA;AACA,eAzJA,uBAyJA,GAzJA,EAyJA,OAzJA,EAyJA;AACA;AACA;AACA;AACA;AACA;AACA,OAJA;AAKA;AACA,KAjKA,EAjBA;;AAoLA;AACA,eADA,yBACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAfA,EApLA,E;;;;;;;;;;;;AC9BA;AAAA;AAAA;AAAA;AAA4vC,CAAgB,wpCAAG,EAAC,C;;;;;;;;;;;ACAhxC;AACA,OAAO,KAAU,EAAE,kBAKd;;;;;;;;;;;;;ACNL;AAAA;AAAA;AAAA;AAA0+B,CAAgB,+6BAAG,EAAC,C;;;;;;;;;;;ACA9/B;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pagesA/nodifyData/nodifyData.js","sourcesContent":["import 'uni-pages';\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 \"!../../../../../../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 = \"pagesA/nodifyData/nodifyData.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!./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 \"-!../../../../../../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!./nodifyData.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!./nodifyData.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view>\r\n\t\t<!-- 状态栏 -->\r\n\t\t<status-nav :titleVal=\"'修改资料'\" :whereCome=\"whereCome\" :statusTitle=\"true\"></status-nav>\r\n\t\t<!-- 自定义二级分类 -->\r\n\t\t<!-- 列表 -->\r\n\t\t<view :style=\"{paddingTop: statusHNH+'px'}\" class=\"fon28\">\r\n\t\t\t<view v-for=\"(itemd,indexd) in dataList\" :key=\"indexd\"\r\n\t\t\tclass=\"disjbac borbot mar-zy40\" :class=\"(indexd!=1 && indexd!=5 && indexd!=6) ? 'pad-sx40':''\">\r\n\t\t\t\t<!-- 标题 -->\r\n\t\t\t\t<view class=\"col9 flexs\" style=\"width: 17.8%;\">\r\n\t\t\t\t\t<view v-if=\"indexd!=2 && indexd!=3 && indexd!=7\">{{itemd.title}}:</view>\r\n\t\t\t\t\t<!-- 恒美ID -->\r\n\t\t\t\t\t<view v-if=\"indexd==2\" class=\"disjb\">\r\n\t\t\t\t\t\t<view class=\"disjb width100\">\r\n\t\t\t\t\t\t\t<view>{{itemd.title.charAt(0)}}</view>\r\n\t\t\t\t\t\t\t<view>{{itemd.title.charAt(1)}}</view>\r\n\t\t\t\t\t\t\t<view>{{itemd.title.charAt(2)}}{{itemd.title.charAt(3)}}</view>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t<view>:</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<!-- 性别、地址 -->\r\n\t\t\t\t\t<view v-if=\"indexd==3 || indexd==7\" class=\"disjb\">\r\n\t\t\t\t\t\t<view class=\"disjb width100\">\r\n\t\t\t\t\t\t\t<view>{{itemd.title.charAt(0)}}</view>\r\n\t\t\t\t\t\t\t<view>{{itemd.title.charAt(1)}}</view>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t<view>:</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"disac fe width100 tright\">\r\n\t\t\t\t\t<!-- 内容 -->\r\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>\r\n\t\t\t\t\t<!-- 性别下拉弹框 -->\r\n\t\t\t\t\t<picker v-if=\"indexd==3\" class=\"col3 mar-y20 width100\" @change=\"changePicker\" :value=\"current\" :range=\"pickerData\">\r\n\t\t\t\t\t\t<view>{{pickerData[current]}}</view>\r\n\t\t\t\t\t</picker>\r\n\t\t\t\t\t<!-- 出生日期下拉框 -->\r\n\t\t\t\t\t<picker v-if=\"indexd==4\" mode=\"date\" class=\"col3 mar-y20 width100\" @change=\"changeTime\" :value=\"currentt\" :range=\"pickerTime\">\r\n\t\t\t\t\t\t<view>{{pickerTime[currentt]}}</view>\r\n\t\t\t\t\t</picker>\r\n\t\t\t\t\t<!-- 地址下拉框 -->\r\n\t\t\t\t\t<!-- <picker v-if=\"indexd==7\" mode=\"multiSelector\" class=\"col3 mar-y20 width100\" @change=\"changeAddress\" :value=\"currenta\" :range=\"pickerAddress\">\r\n\t\t\t\t\t\t<view>{{pickerAddress[0]}}{{pickerAddress[1]}}{{pickerAddress[2]}}</view>\r\n\t\t\t\t\t</picker> -->\r\n\t\t\t\t\t<!-- <view v-if=\"indexd==7\" @tap=\"openPicker\" class=\"width100 mar-y20\">{{region}}</view> -->\r\n\t\t\t\t\t<view v-if=\"indexd==7\" @tap=\"openAddres2\" class=\"width100 mar-y20\">{{pickerText}}</view>\r\n\t\t\t\t\t<!-- 用户昵称、真实姓名、联系电话输入框 -->\r\n\t\t\t\t\t<input @focus=\"inputFo(indexd)\" @blur=\"inputB(indexd)\" v-if=\"indexd==1 || indexd==5 || 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\"/>\r\n\t\t\t\t\t<!-- 用户头像 -->\r\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>\r\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> -->\r\n\t\t\t\t\t<!-- 前进键 -->\r\n\t\t\t\t\t<image v-if=\"indexd!=0 && indexd!=2\" src=\"/static/public/nexth.png\" class=\"head_next flexs\"></image>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\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>\r\n\t\t<!-- 底部弹框 -->\r\n\t\t<!-- <city @choseVal=\"choseValue\" :lotusAddressData=\"lotusAddressData\"></city> -->\r\n\t\t<simple-address ref=\"simpleAddress\" :pickerValueDefault=\"cityPickerValueDefault\" @onConfirm=\"onConfirm\" themeColor=\"#007AFF\"></simple-address>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\timport city from '@/components/city/city.vue';\r\n\timport simpleAddress from '@/components/simple-address/simple-address.vue';\r\n\texport default {\r\n\t\tcomponents:{\r\n\t\t\t// city,\r\n\t\t\tsimpleAddress\r\n\t\t},\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tstatusHNH:uni.getStorageSync('statusHNH'),\r\n\t\t\t\tpublicColor:uni.getStorageSync('publicColor'),//主题颜色\r\n\t\t\t\tmoHead:'/static/public/logo.png',\r\n\t\t\t\tdataList:[\r\n\t\t\t\t\t{title:'用户头像',content:'',imgSrc:'',fcon:''},\r\n\t\t\t\t\t{title:'用户昵称',content:'',imgSrc:'',fcon:'请输入用户昵称'},\r\n\t\t\t\t\t{title:'恒美ID',content:'',imgSrc:'',fcon:''},\r\n\t\t\t\t\t{title:'性别',content:'',imgSrc:'',fcon:''},\r\n\t\t\t\t\t{title:'出生日期',content:'',imgSrc:'',fcon:''},\r\n\t\t\t\t\t{title:'真实姓名',content:'',imgSrc:'',fcon:'请输入真实姓名'},\r\n\t\t\t\t\t{title:'联系电话',content:'',imgSrc:'',fcon:'请输入联系电话'},\r\n\t\t\t\t\t{title:'地址',content:'',imgSrc:'',fcon:''},\r\n\t\t\t\t],\r\n\t\t\t\tisKuang:true,\r\n\t\t\t\tcurrent:0,\r\n\t\t\t\tpickerData:['未知','男','女'],\r\n\t\t\t\tcurrentt:0,\r\n\t\t\t\tpickerTime:['1997-01-01'],\r\n\t\t\t\tcurrenta:0,\r\n\t\t\t\t// pickerAddress:['四川省 ','成都市 ','青羊区'],\r\n\t\t\t\t// lotusAddressData:{\r\n\t\t\t\t// visible:false,\r\n\t\t\t\t// provinceName:'',\r\n\t\t\t\t// cityName:'',\r\n\t\t\t\t// townName:'',\r\n\t\t\t\t// },\r\n\t\t\t\t// region:'四川省成都市成华区',\r\n\t\t\t\tcityPickerValueDefault: [0, 0, 1],\r\n\t\t\t\tpickerText: '四川省成都市成华区',\r\n\t\t\t\tbtnCon:'保存',\r\n\t\t\t\tuinfo:{},\r\n\t\t\t\taddressInfo:[],\r\n\t\t\t\tnewProvice:'',//当前省份\r\n\t\t\t\tnewCity:'',//当前城市\r\n\t\t\t\tnewDistrict:'',//当前区县\r\n\t\t\t\twhereCome:1\r\n\t\t\t}\r\n\t\t},\r\n\t\tonLoad(options) {\r\n\t\t\tif(options.whereNum==2){\r\n\t\t\t\tthis.whereCome = options.whereNum\r\n\t\t\t}\r\n\t\t\tlet chuo = new Date().getTime()// 获取当前时间戳\r\n\t\t\tlet time = this.$toolAll.tools.timestampToTime(chuo)// 转换日期格式为XXXX-XX-XX\r\n\t\t\t// 获取当前位置的经纬度\r\n\t\t\twx.getLocation({\r\n\t\t\t\tsuccess:(res)=> {\r\n\t\t\t\t\t// 逆解析经纬度\r\n\t\t\t\t\tthis.getDistrict(res.latitude, res.longitude)\r\n\t\t\t\t},\r\n\t\t\t})\r\n\t\t\tlet obj = uni.getStorageSync('uinfo')\r\n\t\t\tif(obj!='') this.uinfo = obj\r\n\t\t\tthis.dataList[0].imgSrc = obj.headimgurl//用户头像\r\n\t\t\tthis.dataList[1].content = obj.nickname//用户昵称\r\n\t\t\tthis.dataList[2].content = obj.coding//恒美ID\r\n\t\t\tthis.current = obj.gender//性别1男,2女,0未知\r\n\t\t\tobj.birthday!='' ? this.pickerTime = [obj.birthday.slice(0,10)] : this.pickerTime = [time.slice(0,10)]//出生日期\r\n\t\t\tobj.real_name!=null && obj.real_name !='' ? this.dataList[5].content = obj.real_name : this.dataList[5].fcon = '未知'//真实姓名\r\n\t\t\tobj.mobile!='' ? this.dataList[6].content = obj.mobile : this.dataList[6].fcon = '未知'//电话\r\n\t\t\tif(obj.county!='') this.pickerText = obj.province + obj.city + obj.county//省市区县\r\n\t\t\t\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tupdataInfo(){//修改资料事件\r\n\t\t\t\tlet params = {\r\n\t\t\t\t\treal_name:this.dataList[5].content,//姓名\r\n\t\t\t\t\tnickname:this.dataList[1].content,//昵称\r\n\t\t\t\t\tmobile:this.dataList[6].content,//手机号\r\n\t\t\t\t\tgender:this.current,//性别,0未知,1男,2女\r\n\t\t\t\t\tprovince:this.addressInfo[0],//省份\r\n\t\t\t\t\tcity:this.addressInfo[1],//市\r\n\t\t\t\t\tcounty:this.addressInfo[2],//区县\r\n\t\t\t\t\tbirthday:this.pickerTime[0]//生日(出生年月),日期格式:2021-08-10\r\n\t\t\t\t}\r\n\t\t\t\tthis.$requst.post('user/edit-info',params).then(res=>{\r\n\t\t\t\t\tif(res.code==0){\r\n\t\t\t\t\t\tthis.$toolAll.tools.showToast('资料修改成功')\r\n\t\t\t\t\t\tsetTimeout(()=>{\r\n\t\t\t\t\t\t\tuni.navigateBack({delta:1})\r\n\t\t\t\t\t\t},1000)\r\n\t\t\t\t\t}\r\n\t\t\t\t},error=>{})\r\n\t\t\t},\r\n\t\t\tgetDistrict(latitude, longitude) {//获取当前位置的省市区县\r\n\t\t\t\tlet ya = this\r\n\t\t\t wx.request({\r\n\t\t\t\t\turl: `https://apis.map.qq.com/ws/geocoder/v1/?location=${latitude},${longitude}&key=B2ABZ-SIDKS-WD2O3-6CJ2U-CDZOT-U3FKF`,\r\n\t\t\t\t\theader: {\r\n\t\t\t\t\t\t'Content-Type':'application/json'\r\n\t\t\t\t\t},\r\n\t\t\t\t\tsuccess:function(res) {\r\n\t\t\t\t\t\t// console.log('地址数据:',res)\r\n\t\t\t\t\t\tya.newProvice = res.data.result.address_component.province\r\n\t\t\t\t\t\tya.newCity = res.data.result.address_component.city\r\n\t\t\t\t\t\tya.newDistrict = res.data.result.address_component.district\r\n\t\t\t\t\t\tif(ya.pickerText=='') ya.pickerText = ya.newProvice + ya.newCity + ya.newDistrict\r\n\t\t\t\t\t}\r\n\t\t\t })\r\n\t\t\t},\r\n\t\t\topenAddres2() {//地址弹框事件\r\n\t\t\t\t// 根据 label 获取\r\n\t\t\t\tvar index = this.$refs.simpleAddress.queryIndex([this.newProvice, this.newCity, this.newDistrict], 'label');\r\n\t\t\t\tthis.cityPickerValueDefault = index.index;\r\n\t\t\t\tthis.$refs.simpleAddress.open();\r\n\t\t\t},\r\n\t\t\tonConfirm(e) {//地址确认事件\r\n\t\t\t\tthis.pickerText = e.labelArr[0]+e.labelArr[1]+e.labelArr[2];\r\n\t\t\t\tthis.addressInfo = [e.labelArr[0],e.labelArr[1],e.labelArr[2]]\r\n\t\t\t},\r\n\t\t\tchooseHead(){//选择头像事件\r\n\t\t\t\tuni.chooseImage({\r\n\t\t\t\t\tcount:1,\r\n\t\t\t\t\tsuccess: (res) => {\r\n\t\t\t\t\t\tthis.dataList[0].imgSrc = res.tempFilePaths[0]\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tchangePicker(e){//性别选择\r\n\t\t\t\tthis.current = e.detail.value\r\n\t\t\t},\r\n\t\t\tchangeTime(e){//出生日期选择\r\n\t\t\t\tthis.pickerTime = [e.detail.value]\r\n\t\t\t},\r\n\t\t\tchangeAddress(e){\r\n\t\t\t\t\r\n\t\t\t},\r\n\t\t\tinputFo(index){//输入框获取焦点\r\n\t\t\t\tif(this.dataList[index].content!=''){\r\n\t\t\t\t\tthis.dataList[index].fcon = this.dataList[index].content//将当前输入框的实际值赋值给当前输入框的placeholder属性\r\n\t\t\t\t\tthis.dataList[index].content = ''//清空当前输入框的实际值\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tinputB(index){//输入框失去焦点\r\n\t\t\t\tif(index==1){\r\n\t\t\t\t\tif(this.dataList[1].content==''){\r\n\t\t\t\t\t\tthis.dataList[1].content = this.uinfo.nickname\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(index==5){\r\n\t\t\t\t\tif(this.dataList[5].content==''){\r\n\t\t\t\t\t\tthis.dataList[5].content = this.uinfo.real_name\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(index==6){\r\n\t\t\t\t\tif(this.dataList[6].content==''){\r\n\t\t\t\t\t\tthis.dataList[6].content = this.uinfo.mobile\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//打开picker\r\n\t\t\t// openPicker() {\r\n\t\t\t// this.lotusAddressData.visible = true;\r\n\t\t\t// this.lotusAddressData.provinceName = this.newProvice;\r\n\t\t\t// this.lotusAddressData.cityName = this.newCity;\r\n\t\t\t// this.lotusAddressData.townName = this.newDistrict;\r\n\t\t\t// },\r\n\t\t\t//回传已选的省市区的值\r\n\t\t\t// choseValue(res){\r\n\t\t\t// //res数据源包括已选省市区与省市区code\r\n\t\t\t// // console.log(res);\r\n\t\t\t// this.lotusAddressData.visible = res.visible;//visible为显示与关闭组件标识true显示false隐藏\r\n\t\t\t// //res.isChose = 1省市区已选 res.isChose = 0;未选\r\n\t\t\t// if(res.isChose){\r\n\t\t\t// this.lotusAddressData.provinceName = res.province;//省\r\n\t\t\t// this.lotusAddressData.cityName = res.city;//市\r\n\t\t\t// this.lotusAddressData.townName = res.town;//区\r\n\t\t\t// this.region = `${res.province} ${res.city} ${res.town}`; //region为已选的省市区的值\r\n\t\t\t// \t\tthis.regionObj = {\r\n\t\t\t// \t\t\tprovince:res.province,\r\n\t\t\t// \t\t\tprovinceCode:res.provinceCode,\r\n\t\t\t// \t\t\tcity:res.city,\r\n\t\t\t// \t\t\tcityCode:res.cityCode,\r\n\t\t\t// \t\t\ttown:res.town,\r\n\t\t\t// \t\t\ttownCode:res.townCode\r\n\t\t\t// \t\t}\r\n\t\t\t// }\r\n\t\t\t// },\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style>\r\npage{background-color: #FFFFFF;}\r\n</style>\r\n","import { render, staticRenderFns, recyclableRender, components } from \"./city.vue?vue&type=template&id=ca6a7d38&\"\nvar renderjs\nimport script from \"./city.vue?vue&type=script&lang=js&\"\nexport * from \"./city.vue?vue&type=script&lang=js&\"\nimport style0 from \"./city.vue?vue&type=style&index=0&lang=less&\"\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 = \"components/city/city.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!./city.vue?vue&type=template&id=ca6a7d38&\"","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!./city.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!./city.vue?vue&type=script&lang=js&\"","<template>\r\n\t<!--地址picker-->\r\n\t<view :status=\"checkStatus\" v-if=\"lotusAddressData.visible\" class=\"lotus-address-mask\">\r\n\t\t<view :class=\"lotusAddressData.visible?'lotus-address-box':'lotus-address-box lotus-address-box-out'\">\r\n\t\t\t<view class=\"lotus-address-action\">\r\n\t\t\t\t<text @tap=\"cancelPicker\" class=\"lotus-address-action-cancel\">取消</text>\r\n\t\t\t\t<text @tap=\"chosedVal\" class=\"lotus-address-action-affirm\">确认</text>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"lotus-address-picker-box\">\r\n\t\t\t\t<!--省-->\r\n\t\t\t\t<scroll-view scroll-y :scroll-into-view=\"'pid'+pChoseIndex\" class=\"lotus-address-picker-box-item\">\r\n\t\t\t\t\t<view @tap=\"clickPicker(0,pIndex,pItem);\" :id=\"'pid'+pIndex\" :class=\"pIndex === pChoseIndex?'lotus-address-picker lotus-address-picker2':'lotus-address-picker'\" v-for=\"(pItem,pIndex) in province\" :key=\"pIndex\">{{pItem}}</view>\r\n\t\t\t\t</scroll-view>\r\n\t\t\t\t<!--市-->\r\n\t\t\t\t<scroll-view scroll-y :scroll-into-view=\"'cid'+cChoseIndex\" class=\"lotus-address-picker-box-item\">\r\n\t\t\t\t\t<view @tap=\"clickPicker(1,cIndex,cItem);\" :id=\"'cid'+cIndex\" :class=\"cIndex === cChoseIndex?'lotus-address-picker lotus-address-picker2':'lotus-address-picker'\" v-for=\"(cItem,cIndex) in city\" :key=\"cIndex\">{{cItem}}</view>\r\n\t\t\t\t</scroll-view>\r\n\t\t\t\t<!--区-->\r\n\t\t\t\t<scroll-view scroll-y :scroll-into-view=\"'tid'+tChoseIndex\" class=\"lotus-address-picker-box-item\">\r\n\t\t\t\t\t<view @tap=\"clickPicker(2,tIndex,tItem);\" :id=\"'tid'+tIndex\" :class=\"tIndex === tChoseIndex?'lotus-address-picker lotus-address-picker2':'lotus-address-picker'\" v-for=\"(tItem,tIndex) in town\" :key=\"tIndex\">{{tItem}}</view>\r\n\t\t\t\t</scroll-view>\r\n\t\t\t\t<!--区END-->\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t</view>\r\n\t<!--地址picker END-->\r\n</template>\r\n\r\n<script>\r\n\timport {lotusAddressJson} from \"./city.js\";\r\n\texport default {\r\n\t\tprops:['lotusAddressData'],\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tvisible: false,\r\n\t\t\t\tprovince:[],\r\n\t\t\t\tcity:[],\r\n\t\t\t\ttown:[],\r\n\t\t\t\tprovinceName:'',\r\n\t\t\t\tcityName:'',\r\n\t\t\t\ttownName:'',\r\n\t\t\t\ttype:0,//0新增1编辑\r\n\t\t\t\tpChoseIndex:-1,\r\n\t\t\t\tcChoseIndex:-1,\r\n\t\t\t\ttChoseIndex:-1\r\n\t\t\t};\r\n\t\t},\r\n\t\tmethods:{\r\n\t\t\t//取消\r\n\t\t\tcancelPicker(){\r\n\t\t\t\tconst provinceCode = this.getTarId(this.provinceName);\r\n\t\t\t\tconst cityCode = this.getTarId(this.cityName);\r\n\t\t\t\tconst townCode = this.getTarId(this.townName);\r\n\t\t\t\tthis.visible = false;\r\n\t\t\t\tthis.$emit(\"choseVal\",{\r\n\t\t\t\t\tprovince:this.provinceName,\r\n\t\t\t\t\tprovinceCode,\r\n\t\t\t\t\tcity:this.cityName,\r\n\t\t\t\t\tcityCode,\r\n\t\t\t\t\ttown:this.townName,\r\n\t\t\t\t\ttownCode,\r\n\t\t\t\t\tisChose:0,\r\n\t\t\t\t\tvisible:false\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\t//获取最后选择的省市区的值\r\n\t\t\tchosedVal() {\r\n\t\t\t\tthis.type = 1;\r\n\t\t\t\tconst provinceCode = this.getTarId(this.provinceName);\r\n\t\t\t\tconst cityCode = this.getTarId(this.cityName);\r\n\t\t\t\tconst townCode = this.getTarId(this.townName);\r\n\t\t\t\tthis.visible = false;\r\n\t\t\t\tlet isChose = 0;\r\n\t\t\t\t//已选省市区 isChose = 1\r\n\t\t\t\tif((this.provinceName&&this.cityName)||(this.provinceName&&this.cityName&&this.townName)){\r\n\t\t\t\t\tisChose = 1;\r\n\t\t\t\t}\r\n\t\t\t\tthis.$emit(\"choseVal\",{\r\n\t\t\t\t\tprovince:this.provinceName,\r\n\t\t\t\t\tprovinceCode,\r\n\t\t\t\t\tcity:this.cityName,\r\n\t\t\t\t\tcityCode,\r\n\t\t\t\t\ttown:this.townName,\r\n\t\t\t\t\ttownCode,\r\n\t\t\t\t\tisChose,\r\n\t\t\t\t\tvisible:false\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\t//获取省市区value\r\n\t\t\tgetTarId(name,type){\r\n\t\t\t let id = 0;\r\n\t\t\t lotusAddressJson.map((item,index)=>{\r\n\t\t\t if(item.name === name){\r\n\t\t\t id = item.value;\r\n\t\t\t }\r\n\t\t\t });\r\n\t\t\t return id;\r\n\t\t\t},\r\n\t\t\t//获取市数据\r\n\t\t\tgetCityArr(parentId){\r\n\t\t\t let city = [];\r\n\t\t\t lotusAddressJson.map((item,index)=>{\r\n\t\t\t if(item.parent === parentId){\r\n\t\t\t city.push(item.name);\r\n\t\t\t }\r\n\t\t\t });\r\n\t\t\t return city;\r\n\t\t\t},\r\n\t\t\t//获取区数据\r\n\t\t\tgetTownArr(parentId){\r\n\t\t\t let town = [];\r\n\t\t\t lotusAddressJson.map((item,index)=>{\r\n\t\t\t if(index>34&&item.parent === parentId){\r\n\t\t\t town.push(item.name);\r\n\t\t\t }\r\n\t\t\t });\r\n\t\t\t return town;\r\n\t\t\t},\r\n\t\t\t//初始化数据\r\n\t\t\tinitFn(){\r\n\t\t\t\tif(!this.province.length){\r\n\t\t\t\t\tlotusAddressJson.map((item,index)=>{\r\n\t\t\t\t\t\tif(index<=34){\r\n\t\t\t\t\t\t\tthis.province.push(item.name);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\t//已选择省市区,高亮显示对应选择省市区\r\n\t\t\t\tconst p = this._props.lotusAddressData.provinceName;\r\n\t\t\t\tconst c = this._props.lotusAddressData.cityName;\r\n\t\t\t\tconst t = this._props.lotusAddressData.townName;\r\n\t\t\t\t//已选省\r\n\t\t\t\tif(p){\r\n\t\t\t\t\tthis.pChoseIndex = this.getTarIndex(this.province,p);\r\n\t\t\t\t}\r\n\t\t\t\t//已选市\r\n\t\t\t\tif(p&&c){\r\n\t\t\t\t\tconst pid = this.getTarId(p);\r\n\t\t\t\t\tthis.city = this.getCityArr(pid);\r\n\t\t\t\t\tthis.cChoseIndex = this.getTarIndex(this.city,c);\r\n\t\t\t\t}\r\n\t\t\t\t//已选区\r\n\t\t\t\tif(p&&c&&t){\r\n\t\t\t\t\tconst cid= this.getTarId(c);\r\n\t\t\t\t\tthis.town = this.getTownArr(cid);\r\n\t\t\t\t\tthis.tChoseIndex = this.getTarIndex(this.town,t);\r\n\t\t\t\t}\r\n\t\t\t\t//未选省市区\r\n\t\t\t\tif(!p&&!c&&!t){\r\n\t\t\t\t\tthis.pChoseIndex = -1;\r\n\t\t\t\t\tthis.cChoseIndex = -1;\r\n\t\t\t\t\tthis.tChoseIndex = -1;\r\n\t\t\t\t\tthis.city = [];\r\n\t\t\t\t\tthis.town = [];\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t//获取已选省市区\r\n\t\t\tgetChosedData(){\r\n\t\t\t\tconst pid = this.getTarId(this.provinceName,'province');\r\n\t\t\t\tthis.city = this.getCityArr(pid);\r\n\t\t\t\tconst cid= this.getTarId(this.cityName,'city');\r\n\t\t\t\tthis.town = this.getTownArr(cid);\r\n\t\t\t\t//已选省市区获取对应index\r\n\t\t\t\tif(this.provinceName){\r\n\t\t\t\t\tthis.pChoseIndex = this.getTarIndex(this.province,this.provinceName);\r\n\t\t\t\t}\r\n\t\t\t\tif(this.cityName){\r\n\t\t\t\t\tthis.cChoseIndex = this.getTarIndex(this.city,this.cityName);\r\n\t\t\t\t}\r\n\t\t\t\tif(this.townName){\r\n\t\t\t\t\tthis.tChoseIndex = this.getTarIndex(this.town,this.townName);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t//选择省市区交互\r\n\t\t\tclickPicker(type,index,name){\r\n\t\t\t\t//省\r\n\t\t\t\tif(type === 0){\r\n\t\t\t\t\tthis.pChoseIndex = index;\r\n\t\t\t\t\tthis.provinceName = name;\r\n\t\t\t\t\tthis.cChoseIndex = -1;\r\n\t\t\t\t\tthis.tChoseIndex = -1;\r\n\t\t\t\t\tthis.cityName = '';\r\n\t\t\t\t\tthis.townName = '';\r\n\t\t\t\t}\r\n\t\t\t\t//市\r\n\t\t\t\tif(type ===1){\r\n\t\t\t\t\tthis.cChoseIndex = index;\r\n\t\t\t\t\tthis.cityName = name;\r\n\t\t\t\t\tthis.tChoseIndex = -1;\r\n\t\t\t\t\tthis.townName = '';\r\n\t\t\t\t}\r\n\t\t\t\t//区\r\n\t\t\t\tif(type === 2){\r\n\t\t\t\t\tthis.tChoseIndex = index;\r\n\t\t\t\t\tthis.townName = name;\r\n\t\t\t\t}\r\n\t\t\t\t//获取省市区数据\r\n\t\t\t\tthis.getChosedData();\r\n\t\t\t},\r\n\t\t\t//获取已选省市区index\r\n\t\t\tgetTarIndex(arr,tarName){\r\n\t\t\t let cIndex = 0;\r\n\t\t\t arr.map((item,index)=>{\r\n\t\t\t if(item === tarName){\r\n\t\t\t cIndex = index;\r\n\t\t\t }\r\n\t\t\t });\r\n\t\t\t return cIndex;\r\n\t\t\t}\r\n\t\t},\r\n\t\tcomputed:{\r\n\t\t\tcheckStatus(){\r\n\t\t\t\tlet t = null;\r\n\t\t\t\tconst _this = this;\r\n\t\t\t\tif(!_this.visible){\r\n\t\t\t\t\t_this.visible = _this._props.lotusAddressData.visible;\r\n\t\t\t\t\t//获取省市区\r\n\t\t\t\t\t_this.provinceName = _this._props.lotusAddressData.provinceName;\r\n\t\t\t\t\t_this.cityName = _this._props.lotusAddressData.cityName;\r\n\t\t\t\t\t_this.townName = _this._props.lotusAddressData.townName;\r\n\t\t\t\t\t//生成初始化数据\r\n\t\t\t\t\t_this.initFn();\r\n\t\t\t\t\tt = _this.visible;\r\n\t\t\t\t}\r\n\t\t\t\treturn t;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style lang=\"less\">\r\n@import \"./city.css\";\r\n</style>\r\n","import mod from \"-!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--10-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--10-oneOf-1-2!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-3!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-4!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--10-oneOf-1-5!../../../../../../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!./city.vue?vue&type=style&index=0&lang=less&\"; export default mod; export * from \"-!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--10-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--10-oneOf-1-2!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-3!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-4!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--10-oneOf-1-5!../../../../../../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!./city.vue?vue&type=style&index=0&lang=less&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1629355716547\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 ","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!./nodifyData.vue?vue&type=style&index=0&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!./nodifyData.vue?vue&type=style&index=0&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1629359674859\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":""} |