edit.vue 40 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162
  1. <template>
  2. <view>
  3. <u-navbar back-text="编辑资料"></u-navbar>
  4. <view class="edit-head">
  5. <u-avatar :src="personal_info.faceImage" size="160" :show-level="true" level-icon="edit-pen-fill" level-bg-color ="#4E8DF6" @click="uploadPhoto"></u-avatar>
  6. </view>
  7. <view class="edit-form">
  8. <u-form :model="form" ref="uForm" label-width ="160">
  9. <u-form-item label="姓名"><u-input :disabled='true' v-model="personal_info.realName" input-align="right" placeholder="周扬青"/></u-form-item>
  10. <u-form-item label="身份证号"><u-input :disabled='true' v-model="idCard" input-align="right" placeholder="42100***************111"/></u-form-item>
  11. <u-form-item label="手机号"><u-input :disabled='true' v-model="personal_info.phone" input-align="right" placeholder="1380****9999"/></u-form-item>
  12. <u-form-item label="性别"><u-input :disabled='true' v-model="form.sex" input-align="right" placeholder="男"/></u-form-item>
  13. <u-form-item label="年龄"><u-input :disabled='true' v-model="personal_info.age" input-align="right" placeholder="31岁"/></u-form-item>
  14. <u-form-item label="身高">
  15. <u-input v-model="form.height" input-align="right" placeholder="172cm" type="select" @click="show_height = true" />
  16. <u-select v-model="show_height" mode="single-column" :list="height_ranges" @confirm="heightConfirm"></u-select>
  17. </u-form-item>
  18. <u-form-item label="体重">
  19. <u-input v-model="form.weight" input-align="right" placeholder="75kg" type="select" @click="show_weight = true"/>
  20. <u-select v-model="show_weight" mode="single-column" :list="weight_ranges" @confirm="weightConfirm"></u-select>
  21. </u-form-item>
  22. <view class="edit-line"></view>
  23. <u-form-item label="出身地"><u-input v-model="personal_info.birthplaceN" input-align="right" placeholder="荆州市沙市区" type="select" @click='birthdayAddressChange'/></u-form-item>
  24. <u-form-item label="户口所在地"><u-input v-model="personal_info.registeredResidenceN" input-align="right" placeholder="荆州市沙市区" type="select" @click='registeredResidenceAddressChange'/></u-form-item>
  25. <u-form-item label="工作所在地"><u-input v-model="personal_info.workplaceN" input-align="right" placeholder="荆州市沙市区" type="select" @click='workAddressChange'/></u-form-item>
  26. <view class="edit-line"></view>
  27. <u-form-item label="学历" >
  28. <u-input v-model="personal_info.educationN" input-align="right" placeholder="大学本科" type="select" @click="show_education = true"/>
  29. <u-select v-model="show_education" mode="single-column" :list="base_dictionary.xlList" @confirm="educationConfirm"></u-select>
  30. </u-form-item>
  31. <u-form-item label="行业" >
  32. <u-input v-model="personal_info.industryN" input-align="right" placeholder="IT/互联网" type="select" @click="show_profession = true"/></u-form-item>
  33. <u-select v-model="show_profession" mode="single-column" :list="base_dictionary.hyList" @confirm="professionConfirm"></u-select>
  34. <u-form-item label="工作单位">
  35. <u-input v-model="personal_info.workUnit" input-align="right" placeholder="湖北荆鹏软件开发有限公司" /></u-form-item>
  36. <u-form-item label="岗位">
  37. <u-input v-model="personal_info.post" input-align="right" placeholder="软件工程师" /></u-form-item>
  38. <view class="edit-line"></view>
  39. <u-form-item label="月薪" >
  40. <u-input v-model="personal_info.salaryRangeN" input-align="right" placeholder="请选择" type="select" @click="show_salary = true" />
  41. <u-select v-model="show_salary" mode="single-column" :list="base_dictionary.yxList" @confirm="salaryConfirm"></u-select>
  42. </u-form-item>
  43. <u-form-item label="住房状况">
  44. <u-input v-model="personal_info.housingSituationN" input-align="right" placeholder="请选择" type="select" @click="show_house = true"/>
  45. <u-select v-model="show_house" mode="single-column" :list="base_dictionary.zfqkList" @confirm="houseConfirm"></u-select>
  46. </u-form-item>
  47. <u-form-item label="婚姻状况">
  48. <u-input v-model="personal_info.maritalStatusN" input-align="right" placeholder="未婚" type="select" @click="show_marriage = true"/>
  49. <u-select v-model="show_marriage" mode="single-column" :list="base_dictionary.hyqkList" @confirm="marriageConfirm"></u-select>
  50. </u-form-item>
  51. <u-form-item label="子女状况" >
  52. <u-input v-model="personal_info.childStatusN" input-align="right" placeholder="无" type="select" @click="show_children = true"/>
  53. <u-select v-model="show_children" mode="single-column" :list="base_dictionary.znqkList" @confirm="childrenConfirm"></u-select>
  54. </u-form-item>
  55. <view class="edit-line"></view>
  56. <view class="edit-row">
  57. <p>兴趣爱好</p>
  58. <view class="edit-label">
  59. <span v-for="(item,index) in base_dictionary.hobbyInfoList" :key="index" :class="item.isMemberSelect ? 'active' : ''" @tap="selectInterest(index)">
  60. {{item.name}}
  61. </span>
  62. <!--
  63. <span class="active">摄影</span>
  64. <span>烹饪</span>
  65. <span>健身</span>
  66. <span>打游戏</span>
  67. <span>摄影</span>
  68. <span>烹饪</span>
  69. <span>健身</span>
  70. <span>打游戏</span>-->
  71. </view>
  72. </view>
  73. <view class="edit-line"></view>
  74. <view class="edit-row" @click="editSelfEvaluation">
  75. <view class="u-flex u-row-between " >
  76. <p>自我评价</p>
  77. <u-icon custom-prefix="custom-icon" name="youjiantou"></u-icon>
  78. </view>
  79. <view class="edit-text">
  80. {{personal_info.selfEvaluation}}
  81. </view>
  82. </view>
  83. <view class="edit-title">择偶标准</view>
  84. <u-form-item label="年龄范围" >
  85. <u-input v-model="personal_info.taAgeRangeN" input-align="right" placeholder="20~35" type="select" @click="show_ta_age_ranges = true"/>
  86. <u-select v-model="show_ta_age_ranges" mode="single-column" :list="base_dictionary.nlfwList" @confirm="taAgeRangeConfirm"></u-select>
  87. </u-form-item>
  88. <u-form-item label="月薪" >
  89. <u-input v-model="personal_info.taIncomeRangeN" input-align="right" placeholder="不限" type="select" @click="show_ta_salary = true"/>
  90. <u-select v-model="show_ta_salary" mode="single-column" :list="base_dictionary.yxList" @confirm="taSalaryRangeConfirm"></u-select>
  91. </u-form-item>
  92. <u-form-item label="学历" >
  93. <u-input v-model="personal_info.taEduN" input-align="right" placeholder="不限" type="select" @click="show_ta_education = true"/>
  94. <u-select v-model="show_ta_education" mode="single-column" :list="base_dictionary.xlList" @confirm="taEducationConfirm"></u-select>
  95. </u-form-item>
  96. <u-form-item label="职业">
  97. <u-input v-model="personal_info.taOccupation" input-align="right" placeholder="不限" /></u-form-item>
  98. <u-form-item label="所在地">
  99. <u-input v-model="personal_info.taWorkplaceN" input-align="right" placeholder="请选择" type="select" @click='taWorkAddressChange'/></u-form-item>
  100. <u-form-item label="其他要求">
  101. <u-input v-model="personal_info.taOther" input-align="right" placeholder="请选择" /></u-form-item>
  102. </u-form>
  103. </view>
  104. <view class="personal-btn">
  105. <u-button type="error" shape="circle" :custom-style="customStyle" @click="formsubmit">
  106. <span>保存</span>
  107. </u-button>
  108. </view>
  109. <view>
  110. <!--
  111. <u-popup :show="showSelfEvaluation" mode="bottom" @close="close" @open="open">
  112. <view>
  113. <text>人生若只如初见,何事秋风悲画扇</text>
  114. </view>
  115. </u-popup>-->
  116. <u-popup border-radius="20" v-model="showSelfEvaluation" @close="close" mode="bottom" length="90%" height="570rpx">
  117. <view style="display: flex; flex-direction: column;">
  118. <view style="display:flex;flex-direction:row;margin-top: 50rpx;justify-content: space-between; ">
  119. <view style="margin-left: 50rpx;font-weight: bold!important; font-size:30rpx;margin-bottom: 20rpx;">自我评价</view>
  120. <view style="font-color:#E5E7EA;margin-right: 50rpx;">{{selfEvaluation.length}}/200</view>
  121. </view>
  122. <view style="uni-textarea; margin-left: 50rpx;margin-right: 50rpx;margin-bottom: 20rpx;">
  123. <textarea style="padding-top: 10rpx;padding-bottom: 10rpx; border-radius:30rpx;padding-left: 20rpx;padding-right: 20rpx; background-color: #E5E7EA;overflow: auto;" :adjust-position="false" placeholder="请填写内容" maxlength="200" name="summary" v-model="selfEvaluation">
  124. </textarea>
  125. </view>
  126. <view>
  127. <button style="border-radius:100rpx;background-color: #FF5E5E;width:75%;color:#FFFFFF" @click="saveSelfEvaluation">保存</button>
  128. </view>
  129. </view>
  130. </u-popup>
  131. </view>
  132. <mpvue-city-picker themeColor="#007AFF" ref="mpvuebirtydayCityPicker" :pickerValueDefault="cityPickerValueDefault" @onConfirm="onBirthdayCityConfirm"></mpvue-city-picker>
  133. <mpvue-city-picker themeColor="#007AFF" ref="mpvueRegisteredResidenceCityPicker" :pickerValueDefault="cityPickerValueDefault" @onConfirm="onResidenceRegisteredCityConfirm"></mpvue-city-picker>
  134. <mpvue-city-picker themeColor="#007AFF" ref="mpvueWorkCityPicker" :pickerValueDefault="cityPickerValueDefault" @onConfirm="onWorkCityConfirm"></mpvue-city-picker>
  135. <mpvue-city-picker themeColor="#007AFF" ref="mpvueTaWorkCityPicker" :pickerValueDefault="cityPickerValueDefault" @onConfirm="onTaWorkCityConfirm"></mpvue-city-picker>
  136. <!--
  137. <u-action-sheet
  138. :show="show_education"
  139. :actions="base_dictionary.xlList"
  140. title="请选择学历"
  141. description=""
  142. @close="show_education = false"
  143. @select="educationSelect"
  144. >
  145. </u-action-sheet>
  146. <u-action-sheet
  147. :show="show_salary"
  148. :actions="base_dictionary.yxList"
  149. title="请选择月薪"
  150. description=""
  151. @close="show_salary = false"
  152. @select="salarySelect"
  153. >
  154. </u-action-sheet>
  155. <u-action-sheet
  156. :show="show_profession"
  157. :actions="base_dictionary.hyList"
  158. title="请选择行业"
  159. description=""
  160. @close="show_profession = false"
  161. @select="professionSelect"
  162. >
  163. </u-action-sheet>
  164. <u-action-sheet
  165. :show="show_house"
  166. :actions="base_dictionary.zfqkList"
  167. title="请选择住房状况"
  168. description=""
  169. @close="show_house = false"
  170. @select="houseSelect"
  171. >
  172. </u-action-sheet>
  173. <u-action-sheet
  174. :show="show_marriage"
  175. :actions="base_dictionary.hyList"
  176. title="请选择婚姻状况"
  177. description=""
  178. @close="show_marriage = false"
  179. @select="marriageSelect"
  180. >
  181. </u-action-sheet>
  182. <u-action-sheet
  183. :show="show_children"
  184. :actions="base_dictionary.znqkList"
  185. title="请选择子女状况"
  186. description=""
  187. @close="show_children = false"
  188. @select="childrenSelect"
  189. >
  190. </u-action-sheet>
  191. <u-action-sheet
  192. :show="show_ta_age_ranges"
  193. :actions="base_dictionary.nlfwList"
  194. title="请选择年龄范围"
  195. description=""
  196. @close="show_ta_age_ranges = false"
  197. @select="taAgeRangeSelect"
  198. >
  199. </u-action-sheet>
  200. <u-action-sheet
  201. :show="show_ta_education"
  202. :actions="base_dictionary.xlList"
  203. title="请选择学历"
  204. description=""
  205. @close="show_ta_education = false"
  206. @select="taEducationSelect"
  207. >
  208. </u-action-sheet>
  209. <u-action-sheet
  210. :show="show_ta_salary"
  211. :actions="base_dictionary.nlfwList"
  212. title="请选择月薪"
  213. description="xxxxxxx"
  214. @close="show_ta_salary = false"
  215. @select="taSalarySelect"
  216. >
  217. </u-action-sheet>-->
  218. </view>
  219. </template>
  220. <script>
  221. import * as loginApi from '@/apis/login.js'
  222. import mpvueCityPicker from "../../pagesB/components/mpvue-citypicker/mpvueCityPicker.vue";
  223. import {provinceData,setCityData,getCityData} from '../../pagesB/components/mpvue-citypicker/city-data/province.js';
  224. let _self;
  225. export default {
  226. components:{
  227. mpvueCityPicker
  228. },
  229. data() {
  230. return {
  231. cityPickerValueDefault:[16,6,0],
  232. customStyle: {
  233. background: '#FF5E5E'
  234. },
  235. form: {
  236. name: '',
  237. sex: '',
  238. height:'',
  239. weight:'',
  240. address:'',
  241. registered_residence:'',
  242. work_address:'',
  243. work_corporation:'',
  244. work_post:'',
  245. education:'',
  246. profession:'',
  247. salary_range:'',
  248. house_status:'',
  249. marriage_status:'',
  250. children_status:'',
  251. self_assess:'',
  252. addressId:'',
  253. registered_residenceId:'',
  254. work_addressId:'',
  255. educationId:'',
  256. professionId:'',
  257. salary_rangeId:'',
  258. house_statusId:'',
  259. marriage_statusId:'',
  260. children_statusId:'',
  261. },
  262. selfEvaluation:'',
  263. personal_info:{
  264. faceImage:' /static/img/sexMan.png'
  265. },
  266. height_ranges:[],
  267. weight_ranges:[],
  268. showSelfEvaluation:false,
  269. show_height:false,
  270. show_weight:false,
  271. show_birthday_address:false,
  272. show_registered_residence:false,
  273. show_work_address:false,
  274. show_salary:false,
  275. show_profession:false,
  276. show_education:false,
  277. show_house:false,
  278. show_marriage:false,
  279. show_children:false,
  280. show_ta_age_ranges:false,
  281. show_ta_education:false,
  282. show_ta_salary:false,
  283. show_ta_work_address:false,
  284. base_dictionary:{
  285. zfqkList:[],
  286. yxList:[],
  287. znqkList:[],
  288. qyList:[],
  289. xlList:[],
  290. hyList:[],
  291. nlfwList:[],
  292. hyqkList:[],
  293. hobbyInfoList:[],
  294. }
  295. }
  296. methods: {
  297. }
  298. },
  299. computed:{
  300. idCard(){
  301. if(this.personal_info.idCard && this.personal_info.idCard.length>=15){
  302. let prefix = this.personal_info.idCard.substr(0,5);
  303. let suffix = this.personal_info.idCard.substr(this.personal_info.idCard.length-3,3);
  304. return prefix + '********'+ suffix;
  305. }
  306. return '42100********111'
  307. }
  308. },
  309. onLoad(){
  310. _self = this;
  311. //let personalInfoPlus = this.carhelp.getPersonInfoPlus();
  312. //console.log('personalInfoPlus'+JSON.stringify(personalInfoPlus))
  313. this.personal_info = this.carhelp.getPersonInfo();
  314. console.log('个人信息'+JSON.stringify(this.personal_info))
  315. let subject = {subject:''}
  316. loginApi.getBaseDictionary(subject).then(function(data){
  317. //console.log('基础字典'+JSON.stringify(data));
  318. let personal_info = _self.carhelp.getPersonInfo();
  319. if(data.data)
  320. {
  321. _self.base_dictionary = data.data;
  322. if(_self.base_dictionary.zfqkList){
  323. for(let i = 0;i< _self.base_dictionary.zfqkList.length;i++)
  324. {
  325. _self.base_dictionary.zfqkList[i].label = _self.base_dictionary.zfqkList[i].name;
  326. }
  327. if(_self.personal_info.housingSituation!=null && _self.personal_info.housingSituation<= _self.base_dictionary.zfqkList.length)
  328. {
  329. _self.personal_info.housingSituationN =_self.base_dictionary.zfqkList[_self.personal_info.housingSituation-1].label
  330. }
  331. }
  332. //console.log('住房情况'+JSON.stringify(_self.base_dictionary.zfqkList));
  333. if(_self.base_dictionary.yxList){
  334. for(let i = 0;i< _self.base_dictionary.yxList.length;i++)
  335. {
  336. _self.base_dictionary.yxList[i].label = _self.base_dictionary.yxList[i].name;
  337. }
  338. if(_self.personal_info.salaryRange!=null && _self.personal_info.salaryRange<= _self.base_dictionary.yxList.length)
  339. {
  340. _self.personal_info.salaryRangeN =_self.base_dictionary.yxList[_self.personal_info.salaryRange-1].label
  341. }
  342. if(_self.personal_info.taIncomeRange!=null && _self.personal_info.taIncomeRange<= _self.base_dictionary.yxList.length)
  343. {
  344. _self.personal_info.taIncomeRangeN =_self.base_dictionary.yxList[_self.personal_info.taIncomeRange-1].label
  345. }
  346. }
  347. //console.log('月薪情况'+JSON.stringify(_self.base_dictionary.yxList));
  348. if(_self.base_dictionary.znqkList){
  349. for(let i = 0;i< _self.base_dictionary.znqkList.length;i++)
  350. {
  351. _self.base_dictionary.znqkList[i].label = _self.base_dictionary.znqkList[i].name;
  352. }
  353. if(_self.personal_info.childStatus!=null && _self.personal_info.childStatus<= _self.base_dictionary.znqkList.length)
  354. {
  355. _self.personal_info.childStatusN =_self.base_dictionary.znqkList[_self.personal_info.childStatus-1].label
  356. }
  357. }
  358. //console.log('子女情况'+JSON.stringify(_self.base_dictionary.znqkList));
  359. /*
  360. if(_self.base_dictionary.qyList){
  361. for(let i = 0;i< _self.base_dictionary.qyList.length;i++)
  362. {
  363. _self.base_dictionary.qyList[i].label = _self.base_dictionary.qyList[i].name;
  364. }
  365. }
  366. console.log('区域'+JSON.stringify(_self.base_dictionary.qyList));
  367. */
  368. if(_self.base_dictionary.xlList){
  369. for(let i = 0;i< _self.base_dictionary.xlList.length;i++)
  370. {
  371. _self.base_dictionary.xlList[i].label = _self.base_dictionary.xlList[i].name;
  372. }
  373. //console.log('学历'+JSON.stringify(_self.base_dictionary.xlList.length))
  374. if(_self.personal_info.education!=null && _self.personal_info.education <= _self.base_dictionary.xlList.length)
  375. {
  376. //console.log('学历'+JSON.stringify(_self.personal_info.education))
  377. _self.personal_info.educationN =_self.base_dictionary.xlList[Number(_self.personal_info.education)-1].label
  378. }
  379. if(_self.personal_info.taEdu!=null && _self.personal_info.taEdu<= _self.base_dictionary.xlList.length)
  380. {
  381. _self.personal_info.taEduN =_self.base_dictionary.xlList[_self.personal_info.taEdu-1].label
  382. }
  383. }
  384. //console.log('学历情况'+JSON.stringify(_self.base_dictionary.xlList));
  385. if(_self.base_dictionary.hyList){
  386. for(let i = 0;i< _self.base_dictionary.hyList.length;i++)
  387. {
  388. _self.base_dictionary.hyList[i].label = _self.base_dictionary.hyList[i].name;
  389. }
  390. if(_self.personal_info.industry!=null && _self.personal_info.industry<= _self.base_dictionary.hyList.length)
  391. {
  392. _self.personal_info.industryN =_self.base_dictionary.hyList[_self.personal_info.industry-1].label
  393. }
  394. }
  395. // console.log('行业情况'+JSON.stringify(_self.base_dictionary.hyList));
  396. if(_self.base_dictionary.nlfwList){
  397. for(let i = 0;i< _self.base_dictionary.nlfwList.length;i++)
  398. {
  399. _self.base_dictionary.nlfwList[i].label = _self.base_dictionary.nlfwList[i].name;
  400. }
  401. if(_self.personal_info.taAgeRange!=null && _self.personal_info.taAgeRange<= _self.base_dictionary.nlfwList.length)
  402. {
  403. _self.personal_info.taAgeRangeN =_self.base_dictionary.nlfwList[_self.personal_info.taAgeRange-1].label
  404. }
  405. }
  406. //console.log('年龄范围'+JSON.stringify(_self.base_dictionary.nlfwList));
  407. if(_self.base_dictionary.hyqkList){
  408. for(let i = 0;i< _self.base_dictionary.hyqkList.length;i++)
  409. {
  410. _self.base_dictionary.hyqkList[i].label = _self.base_dictionary.hyqkList[i].name;
  411. }
  412. if(_self.personal_info.maritalStatus!=null && _self.personal_info.maritalStatus<= _self.base_dictionary.hyqkList.length)
  413. {
  414. _self.personal_info.maritalStatusN =_self.base_dictionary.hyqkList[_self.personal_info.maritalStatus-1].label
  415. }
  416. }
  417. //console.log('婚姻情况'+JSON.stringify(_self.base_dictionary.hyqkList));
  418. if(_self.base_dictionary.hobbyInfoList){
  419. for(let i = 0;i< _self.base_dictionary.hobbyInfoList.length;i++)
  420. {
  421. _self.base_dictionary.hobbyInfoList[i].isMemberSelect = false;
  422. _self.base_dictionary.hobbyInfoList[i].label = _self.base_dictionary.hobbyInfoList[i].name;
  423. if(_self.personal_info.hobby!=null){
  424. // console.log('hobby'+JSON.stringify(_self.personal_info.hobby))
  425. if(_self.personal_info.hobby.indexOf(_self.base_dictionary.hobbyInfoList[i].id)>=0)
  426. {
  427. _self.base_dictionary.hobbyInfoList[i].isMemberSelect = true;
  428. console.log('选中'+JSON.stringify(_self.base_dictionary.hobbyInfoList[i]))
  429. }
  430. }
  431. }
  432. }
  433. // console.log('兴趣爱好'+JSON.stringify(_self.base_dictionary.hobbyInfoList));
  434. if(_self.personal_info.birthplace!=null){
  435. _self.personal_info.birthplaceN = getCityData(Number(_self.personal_info.birthplace));
  436. // console.log('address'+JSON.stringify(_self.form.addressId))
  437. }
  438. if(_self.personal_info.registeredResidence!=null){
  439. _self.personal_info.registeredResidenceN = getCityData(Number(_self.personal_info.registeredResidence));
  440. }
  441. if(_self.personal_info.workplace!=null){
  442. _self.personal_info.workplaceN = getCityData(Number(_self.personal_info.workplace));
  443. }
  444. if(_self.personal_info.taWorkplace!=null){
  445. _self.personal_info.taWorkplaceN = getCityData(Number(_self.personal_info.taWorkplace));
  446. }
  447. }
  448. },function(err){
  449. console.log('获取基础字典错误'+JSON.stringify(err))
  450. })
  451. for(let i = 130;i<=220;i++)
  452. {
  453. let height_range = {value: i, label: i.toString()+"cm"};
  454. this.height_ranges.push(height_range);
  455. //this.height_ranges.push(i.toString());
  456. }
  457. for(let i = 20;i<=120;i++)
  458. {
  459. // this.weight_ranges.push(i.toString());
  460. let weight_range = {value:i, label:i.toString()+"kg"};
  461. this.weight_ranges.push(weight_range);
  462. }
  463. if(this.personal_info){
  464. this.form.sex = this.personal_info.gender?'男':'女'
  465. if(this.personal_info.height)
  466. {
  467. this.form.height = this.personal_info.height+'cm'
  468. }
  469. if(this.personal_info.weight)
  470. {
  471. this.form.weight = this.personal_info.weight+'kg'
  472. }
  473. }
  474. if(provinceData.length<=0){
  475. loginApi.getCityList().then(function(data){
  476. // console.log('获取城市成功'+JSON.stringify(data));
  477. if(data.result && data.data){
  478. setCityData(data.data);
  479. //_self.$refs.mpvuebirtydayCityPicker.setCityData(data.data);
  480. //console.log('province data '+JSON.stringify(provinceData))
  481. if(_self.personal_info.birthplace!=null){
  482. _self.personal_info.birthplaceN = getCityData(Number(_self.personal_info.birthplace));
  483. // console.log('address'+JSON.stringify(_self.form.addressId))
  484. }
  485. if(_self.personal_info.registeredResidence!=null){
  486. _self.personal_info.registeredResidenceN = getCityData(Number(_self.personal_info.registeredResidence));
  487. }
  488. if(_self.personal_info.workplace!=null){
  489. _self.personal_info.workplaceN = getCityData(Number(_self.personal_info.workplace));
  490. }
  491. if(_self.personal_info.taWorkplace!=null){
  492. _self.personal_info.taWorkplaceN = getCityData(Number(_self.personal_info.taWorkplace));
  493. }
  494. }
  495. },function(err){
  496. console.log('获取城市列表错误'+JSON.stringify(err))
  497. })
  498. }
  499. // console.log('个人信息'+JSON.stringify(this.personal_info))
  500. },
  501. methods:{
  502. saveSelfEvaluation(){
  503. this.showSelfEvaluation = false;
  504. this.personal_info.selfEvaluation = this.selfEvaluation;
  505. console.log('自我评价'+JSON.stringify(this.selfEvaluation))
  506. },
  507. editSelfEvaluation(){
  508. this.selfEvaluation = this.personal_info.selfEvaluation;
  509. this.showSelfEvaluation = true
  510. console.log('editSelfEvaluation')
  511. },
  512. open() {
  513. console.log('open');
  514. },
  515. close() {
  516. this.showSelfEvaluation = false
  517. console.log('close');
  518. },
  519. selectInterest(index){
  520. // let interest = this.interests;
  521. this.base_dictionary.hobbyInfoList[index].isMemberSelect = !this.base_dictionary.hobbyInfoList[index].isMemberSelect;
  522. console.log('item'+JSON.stringify(this.base_dictionary.hobbyInfoList[index]))
  523. },
  524. birthdayAddressChange(){
  525. this.$refs.mpvuebirtydayCityPicker.show()
  526. },
  527. registeredResidenceAddressChange(){
  528. this.$refs.mpvueRegisteredResidenceCityPicker.show()
  529. },
  530. workAddressChange(){
  531. this.$refs.mpvueWorkCityPicker.show()
  532. },
  533. taWorkAddressChange(){
  534. this.$refs.mpvueTaWorkCityPicker.show()
  535. },
  536. onBirthdayCityConfirm(e) {
  537. _self.personal_info.birthplaceN = e.label;
  538. _self.personal_info.birthplace = e.cityCode.toString();
  539. console.log('地址选择'+JSON.stringify(_self.form.addressId))
  540. },
  541. onResidenceRegisteredCityConfirm(e) {
  542. _self.personal_info.registeredResidenceN= e.label;
  543. _self.personal_info.registeredResidence = e.cityCode.toString();
  544. console.log('地址选择'+JSON.stringify(_self.form.registered_residenceId))
  545. },
  546. onWorkCityConfirm(e) {
  547. _self.personal_info.workplaceN = e.label;
  548. _self.personal_info.workplace = e.cityCode.toString();
  549. console.log('地址选择'+JSON.stringify(_self.form.work_addressId))
  550. },
  551. onTaWorkCityConfirm(e) {
  552. _self.personal_info.taWorkplaceN = e.label;
  553. _self.personal_info.taWorkplace = e.cityCode.toString();
  554. console.log('地址选择'+JSON.stringify(_self.form.work_addressId))
  555. },
  556. formsubmit(){
  557. let personal_info = {type:1,id:this.personal_info.id};
  558. let _personal_info = this.personal_info;
  559. if(_personal_info.faceImage)
  560. {
  561. personal_info.faceImage = _personal_info.faceImage;
  562. console.log('faceImage'+personal_info.faceImage)
  563. }
  564. personal_info.hobby = ''
  565. for(let i=0;i<_self.base_dictionary.hobbyInfoList.length;i++)
  566. {
  567. if(_self.base_dictionary.hobbyInfoList[i].isMemberSelect)
  568. {
  569. if(personal_info.hobby.length>0)
  570. {
  571. personal_info.hobby+=','
  572. }
  573. personal_info.hobby += _self.base_dictionary.hobbyInfoList[i].id;
  574. }
  575. }
  576. if(_personal_info.selfEvaluation)
  577. {
  578. personal_info.selfEvaluation = _personal_info.selfEvaluation;
  579. console.log('selfEvaluation'+personal_info.selfEvaluation);
  580. }
  581. if(_personal_info.weight)
  582. {
  583. personal_info.weight = _personal_info.weight;
  584. console.log('weight'+personal_info.weight)
  585. }
  586. if(_personal_info.height)
  587. {
  588. personal_info.height = _personal_info.height;
  589. console.log('height'+personal_info.height)
  590. }
  591. if(_personal_info.education)
  592. {
  593. personal_info.education = _personal_info.education;
  594. console.log('education'+personal_info.education)
  595. }
  596. /*
  597. if(_personal_info.educationN)
  598. {
  599. personal_info.educationN = _personal_info.educationN;
  600. console.log('education'+personal_info.educationN)
  601. } */
  602. if(_personal_info.workUnit)
  603. {
  604. personal_info.workUnit = _personal_info.workUnit;
  605. console.log('workUnit'+personal_info.workUnit)
  606. }
  607. if(_personal_info.post)
  608. {
  609. personal_info.post = _personal_info.post;
  610. console.log('post'+personal_info.post)
  611. }
  612. if(_personal_info.industry)
  613. {
  614. personal_info.industry = _personal_info.industry;
  615. console.log('industry'+personal_info.industry)
  616. }
  617. /*
  618. if(_personal_info.industryN)
  619. {
  620. personal_info.industryN = _personal_info.industryN;
  621. console.log('industryN'+personal_info.industryN)
  622. } */
  623. if(_personal_info.salaryRange)
  624. {
  625. personal_info.salaryRange = _personal_info.salaryRange;
  626. console.log('salaryRange'+personal_info.salaryRange)
  627. }
  628. /*
  629. if(_personal_info.salaryRangeN)
  630. {
  631. personal_info.salaryRangeN = _personal_info.salaryRangeN;
  632. console.log('salaryRangeN'+personal_info.salaryRangeN)
  633. } */
  634. if(_personal_info.housingSituation)
  635. {
  636. personal_info.housingSituation = _personal_info.housingSituation;
  637. console.log('housingSituation'+personal_info.housingSituation)
  638. }
  639. /*
  640. if(_personal_info.housingSituationN)
  641. {
  642. personal_info.housingSituationN = _personal_info.housingSituationN;
  643. console.log('housingSituationN'+personal_info.housingSituationN)
  644. } */
  645. if(_personal_info.maritalStatus)
  646. {
  647. personal_info.maritalStatus = _personal_info.maritalStatus;
  648. console.log('maritalStatus'+personal_info.maritalStatus)
  649. }
  650. /*
  651. if(_personal_info.maritalStatusN)
  652. {
  653. personal_info.maritalStatusN = _personal_info.maritalStatusN;
  654. console.log('maritalStatusN'+personal_info.maritalStatusN)
  655. } */
  656. if(_personal_info.childStatus)
  657. {
  658. personal_info.childStatus = _personal_info.childStatus;
  659. console.log('childStatus'+personal_info.childStatus)
  660. }
  661. /*
  662. if(_personal_info.childStatusN)
  663. {
  664. personal_info.childStatusN = _personal_info.childStatusN;
  665. console.log('childStatusN'+personal_info.childStatusN)
  666. } */
  667. if(_personal_info.taIncomeRange)
  668. {
  669. personal_info.taIncomeRange = _personal_info.taIncomeRange;
  670. console.log('taIncomeRange'+personal_info.taIncomeRange)
  671. }
  672. /*
  673. if(_personal_info.taIncomeRangeN)
  674. {
  675. personal_info.taIncomeRangeN = _personal_info.taIncomeRangeN;
  676. console.log('taIncomeRangeN'+personal_info.taIncomeRangeN)
  677. } */
  678. if(_personal_info.birthplace)
  679. {
  680. personal_info.birthplace = _personal_info.birthplace;
  681. console.log('birthplace'+personal_info.birthplace)
  682. }
  683. /*
  684. if(_personal_info.birthplaceN)
  685. {
  686. personal_info.birthplaceN = _personal_info.birthplaceN;
  687. console.log('birthplaceN'+personal_info.birthplaceN)
  688. } */
  689. if(_personal_info.registeredResidence)
  690. {
  691. personal_info.registeredResidence = _personal_info.registeredResidence;
  692. console.log('registeredResidence'+personal_info.registeredResidence)
  693. }
  694. /*
  695. if(_personal_info.registeredResidenceN)
  696. {
  697. personal_info.registeredResidenceN = _personal_info.registeredResidenceN;
  698. console.log('registeredResidenceN'+personal_info.registeredResidenceN)
  699. } */
  700. if(_personal_info.workplace)
  701. {
  702. personal_info.workplace = _personal_info.workplace;
  703. console.log('workplace'+personal_info.workplace)
  704. }
  705. /*
  706. if(_personal_info.workplaceN)
  707. {
  708. personal_info.workplaceN = _personal_info.workplaceN;
  709. console.log('workplaceN'+personal_info.workplaceN)
  710. } */
  711. if(_personal_info.taWorkplace)
  712. {
  713. personal_info.taWorkplace = _personal_info.taWorkplace;
  714. console.log('taWorkplace'+personal_info.taWorkplace)
  715. }
  716. /*
  717. if(_personal_info.taWorkplaceN)
  718. {
  719. personal_info.taWorkplaceN = _personal_info.taWorkplaceN;
  720. console.log('taWorkplaceN'+personal_info.taWorkplaceN)
  721. } */
  722. if(_personal_info.taAgeRange)
  723. {
  724. personal_info.taAgeRange = _personal_info.taAgeRange;
  725. console.log('taAgeRange'+personal_info.taAgeRange)
  726. }
  727. /*
  728. if(_personal_info.taAgeRangeN)
  729. {
  730. personal_info.taAgeRangeN = _personal_info.taAgeRangeN;
  731. console.log('taAgeRangeN'+personal_info.taAgeRangeN)
  732. } */
  733. if(_personal_info.taEdu)
  734. {
  735. personal_info.taEdu = _personal_info.taEdu;
  736. console.log('taEdu'+personal_info.taEdu)
  737. }
  738. /*
  739. if(_personal_info.taEduN)
  740. {
  741. personal_info.taEduN = _personal_info.taEduN;
  742. console.log('education'+personal_info.taEduN)
  743. } */
  744. if(_personal_info.taOccupation)
  745. {
  746. personal_info.taOccupation = _personal_info.taOccupation;
  747. console.log('taOccupation'+personal_info.taOccupation)
  748. }
  749. /*
  750. if(_personal_info.taOccupationN)
  751. {
  752. personal_info.taOccupationN = _personal_info.taOccupationN;
  753. console.log('education'+personal_info.taOccupationN)
  754. } */
  755. if(_personal_info.taOther)
  756. {
  757. personal_info.taOther = _personal_info.taOther;
  758. console.log('taOther'+personal_info.taOther)
  759. }
  760. /*
  761. if(_personal_info.taOccupationN)
  762. {
  763. personal_info.taOccupationN = _personal_info.taOccupationN;
  764. console.log('education'+personal_info.taOccupationN)
  765. } */
  766. console.log('xxxx')
  767. loginApi.save_personal_info(personal_info).then(function(data){
  768. console.log('保存成功'+JSON.stringify(data));
  769. if(data.result){
  770. if(data.data){
  771. _self.findByOpenId();
  772. uni.switchTab({
  773. url:'./index'
  774. })
  775. }
  776. }
  777. //_self.findByOpenId();
  778. /*uni.navigateTo({
  779. url:'../user/index'
  780. })*/
  781. },function(err){
  782. console.log('保存失败'+JSON.stringify(personal_info)+ JSON.stringify(err));
  783. });
  784. },
  785. updatePersonInfo(){
  786. },
  787. updatePersonPlusInfo(){
  788. },
  789. childrenConfirm(e){
  790. console.log('e'+JSON.stringify(e))
  791. this.personal_info.childStatusN = '';
  792. e.map((val, index) => {
  793. // this.result += this.result == '' ? val.label : '-' + val.label;
  794. let result = val.label
  795. _self.personal_info.childStatus = val.value;
  796. this.personal_info.childStatusN += result;
  797. })
  798. },
  799. marriageConfirm(e){
  800. console.log('e'+JSON.stringify(e))
  801. this.personal_info.maritalStatusN = '';
  802. e.map((val, index) => {
  803. // this.result += this.result == '' ? val.label : '-' + val.label;
  804. let result = val.label
  805. console.log('val'+JSON.stringify(val))
  806. _self.personal_info.maritalStatus =val.value;
  807. this.personal_info.maritalStatusN += result;
  808. })
  809. },
  810. houseConfirm(e){
  811. console.log('e'+JSON.stringify(e))
  812. this.personal_info.housingSituationN = '';
  813. e.map((val, index) => {
  814. // this.result += this.result == '' ? val.label : '-' + val.label;
  815. let result = val.label
  816. _self.personal_info.housingSituation = val.value;
  817. _self.personal_info.housingSituationN += result;
  818. })
  819. },
  820. educationConfirm(e){
  821. console.log('e'+JSON.stringify(e))
  822. this.personal_info.educationN = '';
  823. e.map((val, index) => {
  824. // this.result += this.result == '' ? val.label : '-' + val.label;
  825. let result = val.label
  826. _self.personal_info.education = val.value;
  827. _self.personal_info.educationN += result;
  828. })
  829. },
  830. professionConfirm(e){
  831. console.log('e'+JSON.stringify(e))
  832. this.personal_info.industryN = '';
  833. e.map((val, index) => {
  834. // this.result += this.result == '' ? val.label : '-' + val.label;
  835. let result = val.label
  836. _self.personal_info.industry = val.value;
  837. this.personal_info.industryN += result;
  838. })
  839. },
  840. salaryConfirm(e){
  841. console.log('e'+JSON.stringify(e))
  842. this.personal_info.salaryRangeN = '';
  843. e.map((val, index) => {
  844. // this.result += this.result == '' ? val.label : '-' + val.label;
  845. let result = val.label
  846. _self.personal_info.salaryRange = val.value;
  847. this.personal_info.salaryRangeN += result;
  848. })
  849. },
  850. taSalaryRangeConfirm(e){
  851. console.log('e111'+JSON.stringify(e))
  852. this.personal_info.taIncomeRangeN = '';
  853. e.map((val, index) => {
  854. // this.result += this.result == '' ? val.label : '-' + val.label;
  855. console.log('val'+val + 'index '+index)
  856. let result = val.label
  857. _self.personal_info.taIncomeRange = val.value;
  858. _self.personal_info.taIncomeRangeN += result;
  859. })
  860. },
  861. taAgeRangeConfirm(e){
  862. console.log('e'+JSON.stringify(e))
  863. this.personal_info.taAgeRangeN = '';
  864. e.map((val, index) => {
  865. console.log('val'+val + 'index '+index)
  866. // this.result += this.result == '' ? val.label : '-' + val.label;
  867. let result = val.label
  868. _self.personal_info.taAgeRange = val.value;
  869. _self.personal_info.taAgeRangeN += result;
  870. })
  871. },
  872. taEducationConfirm(e){
  873. console.log('e'+JSON.stringify(e))
  874. this.personal_info.taEduN = '';
  875. e.map((val, index) => {
  876. console.log('val'+val + 'index '+index)
  877. // this.result += this.result == '' ? val.label : '-' + val.label;
  878. let result = val.label
  879. _self.personal_info.taEdu = val.value;
  880. _self.personal_info.taEduN += result;
  881. })
  882. },
  883. /*
  884. educationSelect(e) {
  885. this.personal_info.education = e.value;
  886. this.personal_info.educationN = e.name;
  887. //this.$refs.uForm.validateField('personal_info.education')
  888. },
  889. salarySelect(e) {
  890. this.personal_info.salaryRange = e.value;
  891. this.personal_info.salaryRangeN = e.name;
  892. //this.$refs.uForm.validateField('personal_info.salaryRange')
  893. },
  894. professionSelect(e) {
  895. this.personal_info.industry = e.value;
  896. this.personal_info.industryN = e.name;
  897. //this.$refs.uForm.validateField('personal_info.industry')
  898. },
  899. houseSelect(e) {
  900. this.personal_info.housingSituation = e.value;
  901. this.personal_info.housingSituationN = e.name;
  902. //this.$refs.uForm.validateField('personal_info.housingSituation')
  903. },
  904. childrenSelect(e) {
  905. this.personal_info.childStatus = e.value;
  906. this.personal_info.childStatusN = e.name;
  907. //this.$refs.uForm.validateField('personal_info.childStatus')
  908. },
  909. marriageSelect(e) {
  910. this.personal_info.maritalStatus = e.value;
  911. this.personal_info.maritalStatusN = e.name;
  912. //this.$refs.uForm.validateField('personal_info.maritalStatus')
  913. },
  914. taAgeRangeSelect(e) {
  915. this.personal_info.taAgeRange = e.value;
  916. this.personal_info.taAgeRangeN = e.name;
  917. //this.$refs.uForm.validateField('personal_info.taAgeRange')
  918. },
  919. taEducationSelect(e) {
  920. this.personal_info.taEdu = e.value;
  921. this.personal_info.taEduN = e.name;
  922. //this.$refs.uForm.validateField('personal_info.taEdu')
  923. },
  924. taSalarySelect(e) {
  925. this.personal_info.taIncomeRange = e.value;
  926. this.personal_info.taIncomeRangeN = e.name;
  927. //this.$refs.uForm.validateField('personal_info.taIncomeRange')
  928. },*/
  929. heightConfirm(e){
  930. console.log('e'+JSON.stringify(e))
  931. this.form.height = '';
  932. e.map((val, index) => {
  933. // this.result += this.result == '' ? val.label : '-' + val.label;
  934. let result = val.label
  935. _self.personal_info.height = val.value
  936. this.form.height += result;
  937. })
  938. },
  939. weightConfirm(e){
  940. console.log('e'+JSON.stringify(e))
  941. this.form.weight = '';
  942. e.map((val, index) => {
  943. // this.result += this.result == '' ? val.label : '-' + val.label;
  944. let result = val.label
  945. _self.personal_info.weight = val.value;
  946. this.form.weight += result;
  947. })
  948. },
  949. uploadPhoto(){
  950. // 上传图片
  951. //const ctx = uni.createCanvasContext('myCanvas');
  952. //console.log('url'+this.uploadUrl)
  953. //console.log(this.carhelp.getToken())
  954. let _this = this;
  955. uni.chooseImage({
  956. count: 1, //默认9
  957. // sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
  958. sourceType: ['album','camera'], //从相册选择
  959. success:(res)=> {
  960. let imgFile = res.tempFilePaths;
  961. console.log(process.car.BASE_URL+"mobile/member/uploadBase64")
  962. console.log(imgFile)
  963. console.log(process.car.NODE_ENV)
  964. console.log()
  965. var token=this.carhelp.getToken()
  966. for(let i = 0;i < imgFile.length;i++)
  967. {
  968. wx.uploadFile({
  969. url:process.car.BASE_URL+"uploadPicture",
  970. // url:process.car.BASE_URL+"mobile/member/uploadBase64",
  971. name: 'photoFile',
  972. header: {
  973. // 'appId': process.car.VUE_APP_WXAPPID ,
  974. 'Authorization':token ,
  975. // 'openId': "wxa8954f417fa7c32f" ,
  976. 'accept': 'application/json',
  977. //#ifdef MP-WEIXIN
  978. "Content-Type": "multipart/form-data",//记得设置
  979. //#endif
  980. },
  981. filePath: imgFile[0],
  982. success: function(result) {
  983. let imgUrls = JSON.parse(result.data) //百度支持 this.site_url +'/' +
  984. //let image ={url: imgUrls.data};
  985. //_self.fileList.push(image); //微信
  986. _self.personal_info.faceImage = imgUrls.data;
  987. }
  988. })
  989. }
  990. },
  991. });
  992. },
  993. findByOpenId(){
  994. var openId=this.carhelp.getOpenId()
  995. if(openId==""){
  996. console.log("------------------")
  997. setTimeout(()=>{
  998. this.findByOpenId()
  999. },1000)
  1000. return
  1001. }
  1002. uni.request({
  1003. method:'get',
  1004. url: process.car.BASE_URL + "/mobile/regUser/findByOpenId",
  1005. data: {
  1006. openId:openId,
  1007. },
  1008. header: {
  1009. 'Content-Type': 'application/x-www-form-urlencoded',
  1010. 'X-Requested-With': 'XMLHttpRequest',
  1011. }
  1012. }).then((response) => {
  1013. // console.log('findByOpenId' +JSON.stringify(response))
  1014. let [error, res] = response;
  1015. if (res.data.code == 200&&res.data.result) {
  1016. var token = res ? res.data.data.token : '';
  1017. this.carhelp.setPersonInfo(res.data.data.memberInfo );
  1018. this.carhelp.setToken(token);
  1019. this.carhelp.setPersonInfoPlus(res.data.data);
  1020. }
  1021. }).catch(error => {
  1022. })
  1023. }
  1024. }
  1025. }
  1026. </script>
  1027. <style>
  1028. page{
  1029. background-color: #f4f0f0;
  1030. }
  1031. </style>
  1032. <style lang="scss" scoped>
  1033. .edit-text{
  1034. margin-top: 10px;
  1035. color:#999;
  1036. }
  1037. .edit-row{
  1038. padding: 12px 0;
  1039. .edit-label{
  1040. display: flex;
  1041. margin-top: 10px;
  1042. flex-wrap: wrap;
  1043. span{
  1044. margin-right: 8px;
  1045. background-color: #E5E7EA ;
  1046. padding: 4px 10px;
  1047. border-radius: 4px;
  1048. font-size: 12px;
  1049. margin-bottom: 10px;
  1050. }
  1051. .active{
  1052. background-color: #FFC1BC;
  1053. }
  1054. }
  1055. }
  1056. .edit-line{
  1057. height: 12px;
  1058. background-color:#f4f0f0 ;
  1059. margin-left: -15px;
  1060. margin-right: -15px;
  1061. }
  1062. .edit-title{
  1063. padding:12px 0;
  1064. padding-left: 15px;
  1065. background-color:#f4f0f0 ;
  1066. margin-left: -15px;
  1067. margin-right: -15px;
  1068. }
  1069. .edit-head{
  1070. display: flex;
  1071. padding: 20px 0;
  1072. justify-content: center;
  1073. }
  1074. .personal-btn{
  1075. padding: 15px 50px;
  1076. }
  1077. .edit-form{
  1078. padding: 0 15px;
  1079. background-color: #fff;
  1080. }
  1081. </style>