bug
This commit is contained in:
		| @@ -61,7 +61,7 @@ | ||||
|           <span>{{ $dict.getLabel('nation', info.nation) || '请选择'}}</span> | ||||
|         </div> | ||||
|       </div> | ||||
|       <div class="item"> | ||||
|       <div class="item pad-b"> | ||||
|         <div class="label"> | ||||
|           <span>家庭人口数</span> | ||||
|           <div class="edit" @click="editHouseholdNumber=true"> | ||||
| @@ -78,6 +78,9 @@ | ||||
|       <div class="confirm" @click="toConfirm">确认使用</div> | ||||
|       <div class="cancel" @click="back">取消输入</div> | ||||
|     </div> | ||||
|     <u-picker mode="time" v-model="showDate" :params="deteParams" start-year="1930" @confirm="dateConfirm">请选择</u-picker> | ||||
|     <u-select v-model="showSex" :list="$dict.getDict('sex')" label-name="dictName" value-name="dictValue" @confirm="confirmSex"/> | ||||
|     <u-select v-model="showNation" :list="$dict.getDict('nation')" label-name="dictName" value-name="dictValue" @confirm="confirmNation"/> | ||||
|   </div> | ||||
| </template> | ||||
|  | ||||
| @@ -96,14 +99,13 @@ export default { | ||||
|       deteParams: {year: true, month: true, day: true, hour: false, minute: false, second: false}, | ||||
|       editName: false, | ||||
|       editPhone: false, | ||||
|       editHouseholdNumber: false | ||||
|       editHouseholdNumber: false, | ||||
|     } | ||||
|   }, | ||||
|   computed: { | ||||
|     ...mapState(['user']), | ||||
|   }, | ||||
|   onLoad(option) { | ||||
|     uni.showLoading({title: '加载中'}) | ||||
|     this.word = option.word | ||||
|     this.$dict.load('sex', 'nation').then(() => { | ||||
|       this.getInfo() | ||||
| @@ -114,14 +116,15 @@ export default { | ||||
|   }, | ||||
|   methods: { | ||||
|     getInfo() { | ||||
|       uni.showLoading({title: '加载中'}) | ||||
|       this.$http.post(`/app/appbaiduai/queryByInfo?word=${this.word}`).then((res) => { | ||||
|         if (res.code === 0) { | ||||
|           this.info = {...res.data} | ||||
|           uni.hideLoading() | ||||
|         } | ||||
|       }).catch(res => { | ||||
|         this.$u.toast(res) | ||||
|         uni.hideLoading() | ||||
|         this.$u.toast(res) | ||||
|       }) | ||||
|     }, | ||||
|     confirmSex(e) { | ||||
| @@ -187,7 +190,6 @@ uni-page-body { | ||||
|     } | ||||
|   } | ||||
|   .list { | ||||
|     padding-bottom: 272px; | ||||
|     .item { | ||||
|       text-align: center; | ||||
|       margin-bottom: 64px; | ||||
| @@ -238,6 +240,9 @@ uni-page-body { | ||||
|         } | ||||
|       } | ||||
|     } | ||||
|     .pad-b { | ||||
|       padding-bottom: 272px; | ||||
|     } | ||||
|   } | ||||
|   .bottom-btn { | ||||
|     position: fixed; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user