浏览代码

no message

USER-20230908AJ\Administrator 1 年之前
父节点
当前提交
272d6afdad
共有 2 个文件被更改,包括 16 次插入16 次删除
  1. 3 3
      components/en-from/en-input/wh-input.vue
  2. 13 13
      page_task/identity/identity.vue

+ 3 - 3
components/en-from/en-input/wh-input.vue

@@ -1,11 +1,11 @@
 <template>
 	<view class="wh-box">
 		<view class="row p-tb30" style="line-height: 30rpx;height: 30rpx;" :class="{'bor-bottom-1':is_border}">
-			<view class="wh-text size-28">{{name}}<text></text></view>
+			<view class="wh-text size-28">{{label}}<text></text></view>
 			<view class="row-c flex">
 				<input class="wh-input sys-size-28 text-color-12 m-l40" placeholder-class="sys-size-28 text-color-999"
 					:maxlength="maxlength" :type="type" :focus="focus"
-					:placeholder="is_select ? '请选择' : placeholder?placeholder:`请输入${name}`" :disabled="disabled"
+					:placeholder="is_select ? '请选择' : placeholder?placeholder:`请输入${label}`" :disabled="disabled"
 					v-model="inputValue" @blur="nameInput" @input="nameInput"></input>
 				<view class="" style="margin-top: 4rpx;">
 					<uni-icons type="forward" size="18" color="#D8D8D8" v-if="is_select"></uni-icons>
@@ -36,7 +36,7 @@
 				type: Boolean,
 				default: false
 			},
-			name: {
+      label: {
 				type: String,
 				default: '姓名'
 			},

+ 13 - 13
page_task/identity/identity.vue

@@ -44,17 +44,17 @@
 <!--					</view>-->
           <add-identity :user-name.sync="formData.name"  :user-sex.sync="formData.sex" :id-number.sync="formData.id_number" :identity-one.sync="formData.identity_one" :identity-two.sync="formData.identity_two"  :identity-validity.sync="formData.identity_validity" :user-birthday.sync="formData.birthday" v-if="verifyKey('identity_one')"></add-identity>
 					<view class="p-t20">
-						<WhInput :value="formData.name" name="姓名" placeholder="待自动录入" v-if="verifyKey('name')" disabled></WhInput>
-<!--						<WhInput :value="formData.sex===1?'男':'女'" name="性别" placeholder="待自动录入" disabled></WhInput>-->
-            <EnRadio v-model="formData.sex" name="性别" v-if="verifyKey('sex')"  :list="sexData"  disabled="disabled">	</EnRadio>
-						<WhInput :value="formData.id_number"   v-if="verifyKey('id_number')" :is_border="false" :name="'身份证号'" placeholder="待自动录入"	disabled>	</WhInput>
-						<WhInput :value="formData.birthday"   v-if="verifyKey('birthday')" :is_border="false" :name="'生日'" placeholder="待自动录入"	disabled>	</WhInput>
+						<WhInput :value="formData.name" label="姓名" placeholder="待自动录入" v-if="verifyKey('name')" disabled></WhInput>
+<!--						<WhInput :value="formData.sex===1?'男':'女'" label="性别" placeholder="待自动录入" disabled></WhInput>-->
+            <EnRadio v-model="formData.sex" label="性别" v-if="verifyKey('sex')"  :list="sexData"  disabled="disabled">	</EnRadio>
+						<WhInput :value="formData.id_number"   v-if="verifyKey('id_number')" :is_border="false" :label="'身份证号'" placeholder="待自动录入"	disabled>	</WhInput>
+						<WhInput :value="formData.birthday"   v-if="verifyKey('birthday')" :is_border="false" :label="'生日'" placeholder="待自动录入"	disabled>	</WhInput>
 					</view>
 				</view>
 				<view class="sys-background-fff r-20 m-t20 p-lr30">
-					<WhInput :value="formData.phone" v-if="verifyKey('phone')"  :name="'联系方式'"></WhInput>
+					<WhInput :value="formData.phone" v-if="verifyKey('phone')"  :label="'联系方式'"></WhInput>
           <en-city label="常居城市" placeholder="请选择省、市、区" v-if="verifyKey('resident_city')"   v-model="formData.resident_city"></en-city>
-					<WhInput :name="'详细地址'" :value="formData.resident_address" v-if="verifyKey('resident_address')"></WhInput>
+					<WhInput :label="'详细地址'" :value="formData.resident_address" v-if="verifyKey('resident_address')"></WhInput>
           <en-select label="婚姻状态" :local-data="marriageData" v-if="verifyKey('marriage_type')" v-model="formData.marriage_type"></en-select>
           <en-upload label="添加结婚证" :imageWidth="180" v-if="verifyKey('marriage_img') && formData.marriage_type!=='1'"  v-model="formData.marriage_img"></en-upload>
 				</view>
@@ -76,11 +76,11 @@
 			<view class="m-t20 m-lr30 text-color-12"  v-show="verifyKey('education_type') || verifyKey('employ_type') || verifyKey('firm_name')|| verifyKey('firm_city')|| verifyKey('firm_address')">
 				<view class="sys-background-fff r-20 m-t20 p-lr30 p-t30">
 					<view class="size-30 sys-weight-600 p-b30">教育职业背景</view>
-					<WhInput name="学历"  placeholder="请选择教育背景" :local-data="educationData" v-if="verifyKey('education_type')" v-model="formData.education_type" is_select></WhInput>
-					<EnRadio v-model="formData.is_farming" name="雇佣类型" :list="employTypeData" >	</EnRadio>
-					<WhInput name="企业名称" placeholder="请输入企业名称" v-if="verifyKey('firm_name')"  v-model="formData.firm_name"></WhInput>
+					<WhInput label="学历"  placeholder="请选择教育背景" :local-data="educationData" v-if="verifyKey('education_type')" v-model="formData.education_type" is_select></WhInput>
+					<EnRadio v-model="formData.is_farming" label="雇佣类型" :list="employTypeData" >	</EnRadio>
+					<WhInput label="企业名称" placeholder="请输入企业名称" v-if="verifyKey('firm_name')"  v-model="formData.firm_name"></WhInput>
           <en-city label="企业城市" placeholder="请选择省、市、区" v-if="verifyKey('firm_city')" v-model="formData.firm_city"></en-city>
-					<WhInput :is_border="false" name="详细地址"  v-if="verifyKey('firm_address')" v-model="formData.firm_address"></WhInput>
+					<WhInput :is_border="false" label="详细地址"  v-if="verifyKey('firm_address')" v-model="formData.firm_address"></WhInput>
 				</view>
 			</view>
 			<!-- 教育职业背景end -->
@@ -89,8 +89,8 @@
 			<view class="m-t20 m-lr30 text-color-12" v-show="verifyKey('social_num') || verifyKey('reserved_money')">
 				<view class="sys-background-fff r-20 m-t20 p-lr30 p-t30">
 					<view class="size-30 sys-weight-600 p-b30">社保信息</view>
-					<WhInput name="缴纳时间" rightText="月" v-if="verifyKey('social_num')"    v-model="formData.social_num"></WhInput>
-					<WhInput name="公积金" rightText="元" v-if="verifyKey('reserved_money')" v-model="formData.reserved_money"  placeholder="请输入公积金缴纳基数"></WhInput>
+					<WhInput label="缴纳时间" rightText="月" v-if="verifyKey('social_num')"    v-model="formData.social_num"></WhInput>
+					<WhInput label="公积金" rightText="元" v-if="verifyKey('reserved_money')" v-model="formData.reserved_money"  placeholder="请输入公积金缴纳基数"></WhInput>
 				</view>
 			</view>
 			<!-- 社保信息end -->