提交 b35d90267c7564c603e83b292673c5d72bbfb20e

作者 pangy
1 个父辈 166f6189

删除没用代码

@@ -997,103 +997,6 @@ Page({ @@ -997,103 +997,6 @@ Page({
997 if (data.name && data.name.length) { 997 if (data.name && data.name.length) {
998 setData.children_name = data.name 998 setData.children_name = data.name
999 } 999 }
1000 - if (data.percent && data.percent.length) {  
1001 - var childrenpercentData = this.data.childrenpercentData  
1002 - childrenpercentData.selected = data.percent  
1003 - setData.childrenpercentData = childrenpercentData  
1004 - }  
1005 - if (data.student_no && data.student_no.length) {  
1006 - setData.children_student_no = data.student_no  
1007 - }  
1008 - if (data.education_period && data.education_period.length) {  
1009 - var childedudegreeData = this.data.childedudegreeData  
1010 - childedudegreeData.selected = data.education_period  
1011 - setData.childedudegreeData = childedudegreeData  
1012 - }  
1013 - if (data.education_start && data.education_start.length) {  
1014 - var studystartdate = this.data.studystartdate  
1015 - studystartdate.selected = format.formatTime_date(data.education_start)  
1016 - studystartdate.datelong = data.education_start  
1017 - setData.studystartdate = studystartdate  
1018 - }  
1019 - if (data.education_end && data.education_end.length) {  
1020 - var studyenddate = this.data.studyenddate  
1021 - studyenddate.selected = format.formatTime_date(data.education_end)  
1022 - studyenddate.datelong = data.education_end  
1023 - setData.studyenddate = studyenddate  
1024 - console.log("studyenddate", studyenddate)  
1025 - }  
1026 - if (data.school_country && data.school_country.length) {  
1027 - var schoolCountryData = this.data.schoolCountryData  
1028 - schoolCountryData.selected = data.school_country  
1029 - setData.schoolCountryData = schoolCountryData  
1030 - }  
1031 - if (data.school_name && data.school_name.length) {  
1032 - setData.school_name = data.school_name  
1033 - }  
1034 - if (data.spouse_name && data.spouse_name.length) {  
1035 - setData.spouse_name = data.spouse_name  
1036 - }  
1037 - if (data.spouse_id_card_no && data.spouse_id_card_no.length) {  
1038 - setData.spouse_id_card_no = data.spouse_id_card_no  
1039 - this.dealIdInfo(data.id_card_no, 'spouse_id_card_no_input')  
1040 - }  
1041 - if (this.data.loverbirthDate.selected.length) {  
1042 - var loverbirthDate = this.data.loverbirthDate  
1043 - loverbirthDate.selected = format.formatTime_date(data.spouse_birthday)  
1044 - loverbirthDate.datelong = data.spouse_birthday  
1045 - setData.loverbirthDate = loverbirthDate  
1046 - }  
1047 -  
1048 - this.setData(setData)  
1049 - break;  
1050 - case 'continuing_education':  
1051 - var setData = {}  
1052 - if (data.education_type && data.education_type.length) {  
1053 - if ('title' == data.education_type) {  
1054 - var edutypeData = this.data.edutypeData  
1055 - edutypeData.selected = "学历(学位)继续教育"  
1056 - setData.edutypeData = edutypeData  
1057 - } else {  
1058 - var edutypeData = this.data.edutypeData  
1059 - edutypeData.selected = data.education_type == 'major' ? "专业技术人员职业资格" : "技能人员职业资格"  
1060 - setData.edutypeData = edutypeData  
1061 - }  
1062 - }  
1063 - if (data.education_period && data.education_period.length) {  
1064 - var edulevelData = this.data.edulevelData  
1065 - edulevelData.selected = data.education_period  
1066 - setData.edulevelData = edulevelData  
1067 - }  
1068 - if (data.education_start && data.education_start.length) {  
1069 - var studystartdate = this.data.studystartdate  
1070 - studystartdate.selected = format.formatTime_date(data.education_start)  
1071 - studystartdate.datelong = data.education_start  
1072 - setData.studystartdate = studystartdate  
1073 - }  
1074 - if (data.education_end && data.education_end.length) {  
1075 - var studyenddate = this.data.studyenddate  
1076 - studyenddate.selected = format.formatTime_date(data.education_end)  
1077 - studyenddate.datelong = data.education_end  
1078 - setData.studyenddate = studyenddate  
1079 - }  
1080 - if (data.approval_date && data.approval_date.length) {  
1081 - var applydate = this.data.applydate  
1082 - applydate.selected = format.formatTime_date(data.approval_date)  
1083 - applydate.datelong = data.approval_date  
1084 - setData.applydate = applydate  
1085 - }  
1086 - if (data.certification_name && data.certification_name.length) {  
1087 - var certificateDate = this.data.certificateDate  
1088 - certificateDate.selected = data.certification_name  
1089 - setData.certificateDate = certificateDate  
1090 - }  
1091 - if (data.certification_no && data.certification_no.length) {  
1092 - setData.certification_no = data.certification_no  
1093 - }  
1094 - if (data.certification_authority && data.certification_authority.length) {  
1095 - setData.certification_authority = data.certification_authority  
1096 - }  
1097 this.setData(setData) 1000 this.setData(setData)
1098 break; 1001 break;
1099 case 'support_duty': 1002 case 'support_duty':
@@ -1131,86 +1034,7 @@ Page({ @@ -1131,86 +1034,7 @@ Page({
1131 } 1034 }
1132 this.setData(setData) 1035 this.setData(setData)
1133 break; 1036 break;
1134 - case "house_fund":  
1135 - var setData = {}  
1136 - if (data.spouse_name && data.spouse_name.length) {  
1137 - setData.spouse_name = data.spouse_name  
1138 - }  
1139 - if (data.spouse_id_card_no && data.spouse_id_card_no.length) {  
1140 - setData.spouse_id_card_no = data.spouse_id_card_no  
1141 - this.dealIdInfo(data.id_card_no, 'spouse_id_card_no_input')  
1142 - }  
1143 - if (this.data.loverbirthDate.selected.length) {  
1144 - var loverbirthDate = this.data.loverbirthDate  
1145 - loverbirthDate.selected = format.formatTime_date(data.spouse_birthday)  
1146 - loverbirthDate.datelong = data.spouse_birthday  
1147 - setData.loverbirthDate = loverbirthDate  
1148 - }  
1149 - if (data.loan_type && data.loan_type.length) {  
1150 - var loantypeData = this.data.loantypeData  
1151 - loantypeData.selected = data.loan_type  
1152 - setData.loantypeData = loantypeData  
1153 - }  
1154 - if (data.house_detail_address && data.house_detail_address.length) {  
1155 - setData.house_detail_address = data.house_detail_address  
1156 - }  
1157 - if (data.certification_no && data.certification_no.length) {  
1158 - setData.certification_no = data.certification_no  
1159 - }  
1160 - if (data.certification_type && data.certification_type.length) {  
1161 - var identifytypeData = this.data.identifytypeData  
1162 - identifytypeData.selected = data.certification_type  
1163 - setData.identifytypeData = identifytypeData  
1164 - }  
1165 - if (data.loan_before_marry && data.loan_before_marry.length) {  
1166 - var beforemarryData = this.data.beforemarryData  
1167 - beforemarryData.selected = data.loan_before_marry  
1168 - setData.beforemarryData = beforemarryData  
1169 - }  
1170 - if (data.loan_by_self && data.loan_by_self.length) {  
1171 - var isselfData = this.data.isselfData  
1172 - isselfData.selected = data.loan_by_self  
1173 - setData.isselfData = isselfData  
1174 - }  
1175 - if (data.loan_contract_no && data.loan_contract_no.length) {  
1176 - setData.loan_contract_no = data.loan_contract_no  
1177 - }  
1178 - if (data.rent_contract_no && data.rent_contract_no.length) {  
1179 - setData.rent_contract_no = data.rent_contract_no  
1180 - }  
1181 - if (data.rent_start && data.rent_start.length) {  
1182 - var leasestartDate = this.data.leasestartDate  
1183 - leasestartDate.selected = format.formatTime_date(data.rent_start)  
1184 - leasestartDate.datelong = data.rent_start  
1185 - setData.leasestartDate = leasestartDate  
1186 - }  
1187 - if (data.rent_end && data.rent_end.length) {  
1188 - var leaseendDate = this.data.leaseendDate  
1189 - leaseendDate.selected = format.formatTime_date(data.rent_end)  
1190 - leaseendDate.datelong = data.rent_end  
1191 - setData.leaseendDate = leaseendDate  
1192 - }  
1193 - if (data.work_city && data.work_city.province) {  
1194 - var workingcityInfo = this.data.workingcityInfo  
1195 - workingcityInfo.requestdata = data.work_city  
1196 - workingcityInfo.selected = data.work_city.province + data.work_city.city  
1197 - setData.workingcityInfo = workingcityInfo  
1198 - }  
1199 - if (this.data.house_type == 'house_fund_loan' && data.house_address && data.house_address.province) {  
1200 - var houseLocateInfo = this.data.houseLocateInfo  
1201 - houseLocateInfo.requestdata = data.house_address  
1202 - houseLocateInfo.selected = data.work_city.province + data.work_city.city + data.work_city.district  
1203 - setData.houseLocateInfo = houseLocateInfo  
1204 - }  
1205 - if (this.data.house_type == 'house_fund_rent' && data.house_address && data.house_address.province) {  
1206 - var rentLocateInfo = this.data.rentLocateInfo  
1207 - rentLocateInfo.requestdata = data.house_address  
1208 - rentLocateInfo.selected = data.work_city.province + data.work_city.city + data.work_city.district  
1209 - setData.rentLocateInfo = rentLocateInfo  
1210 - }  
1211 -  
1212 - this.setData(setData)  
1213 - break; 1037 +
1214 } 1038 }
1215 1039
1216 }, 1040 },
注册登录 后发表评论