zizhong.wang 2 gadi atpakaļ
vecāks
revīzija
0b090fe32a
2 mainītis faili ar 26 papildinājumiem un 7 dzēšanām
  1. 1 1
      pages/index/index.vue
  2. 25 6
      pages/index/self_info.vue

+ 1 - 1
pages/index/index.vue

@@ -22,7 +22,7 @@
 	  <view class="antu-box" v-if="isAuth">
 		<view class="img-name-box">
 		  <image :src="userHeadImg" class="heade-img" mode="aspectFill"></image>
-		  <p class="nickname">2{{ userNickName }}</p>
+		  <p class="nickname">{{ userNickName }}</p>
 		  <p class="nickname">{{userPhone}}</p>
 		</view>
 		<view class="org-info-box" v-for="(item,index) in userPosList" :key="index">

+ 25 - 6
pages/index/self_info.vue

@@ -90,6 +90,19 @@
 		<view class="info-box">
 			<view class="info-title-box">
 				<!-- <image src="/static/require-icon.png" mode="aspectFill"></image> -->
+				<text>性别</text>
+			</view>
+			<view class="info-gender-box">
+				<radio-group @change="radioCheck" class="padding-left-2">
+					<label class="radio margin-right-10"><radio value="1" :checked="userSex==='1'" color="#00A1B4" class="form-radio"/>男</label>
+					<label class="radio"><radio value="2" :checked="userSex==='2'"  color="#00A1B4" class="form-radio"/>女</label>
+				</radio-group>
+			</view>		
+		</view>
+		
+		<view class="info-box">
+			<view class="info-title-box">
+				<!-- <image src="/static/require-icon.png" mode="aspectFill"></image> -->
 				<text>民族</text>
 			</view>
 			<view class="info-value-box">
@@ -100,16 +113,14 @@
 		<view class="info-box">
 			<view class="info-title-box">
 				<!-- <image src="/static/require-icon.png" mode="aspectFill"></image> -->
-				<text>性别</text>
+				<text>籍贯</text>
 			</view>
-			<view class="info-gender-box">
-				<radio-group @change="radioCheck" class="padding-left-2">
-					<label class="radio margin-right-10"><radio value="1" :checked="userSex==='1'" color="#00A1B4" class="form-radio"/>男</label>
-					<label class="radio"><radio value="0" :checked="userSex==='0'"  color="#00A1B4" class="form-radio"/>女</label>
-				</radio-group>
+			<view class="info-value-box">
+				<input type="text" placeholder="请输入籍贯" name="selfNative" :value="userNative" >
 			</view>		
 		</view>
 		
+		
 		<view class="info-box">
 			<view class="info-title-box">
 				<!-- <image src="/static/require-icon.png" mode="aspectFill"></image> -->
@@ -196,6 +207,7 @@
 				isAuthPhone:getApp().globalData.user_phone,
 				userSex:'1',
 				userNation:'',
+				userNative:'',
 				userBorn:'',
 				userOffice:'',
 				userPosition:'',
@@ -275,10 +287,16 @@
 					  this.dateYear = userInfoObj.jion_year;
 					  this.dateMonth = userInfoObj.jion_month;
 					  this.userNation = userInfoObj.nation;
+					  this.userNative = userInfoObj.native;
 					  this.userSex = userInfoObj.sex;
+					  if (this.userSex == '0')
+					  {
+						  this.userSex = '2';
+					  }
 					  if(userInfoObj.birth_day && userInfoObj.birth_day!='0'){
 						  this.userBorn = (userInfoObj.birth_day).substr(0,4) + '-' + (userInfoObj.birth_day).substr(4,2) + '-' + (userInfoObj.birth_day).substr(6);
 					  }
+					  
 					  this.educationValue = this.educationObj[userInfoObj.education_level];
 					  this.userOffice = userInfoObj.office;
 					  this.userPosition = userInfoObj.position;
@@ -442,6 +460,7 @@
 					office :params.selfOffice,
 					position:params.selfPosition,
 					nation:params.selfNation,
+					native:params.selfNative,
 					technical_title:params.selfTitle,
 					education_level:this.educationObjEdit[this.educationValue],
 					photo_attach_id:this.headImgId,