作者 朱振飞

合并分支 'Branch_zhu' 到 'master'

Branch zhu

保单修改

查看合并请求 !2
@@ -165,7 +165,11 @@ Page({ @@ -165,7 +165,11 @@ Page({
165 for (let i in tempProjectlist) { 165 for (let i in tempProjectlist) {
166 for (let j in tempMain_list) { 166 for (let j in tempMain_list) {
167 if (tempProjectlist[i].id == tempMain_list[j].id) { 167 if (tempProjectlist[i].id == tempMain_list[j].id) {
168 - tempProjectlist[i] = tempMain_list[j] 168 + tempProjectlist[i].choose_status = true
  169 + for (let g in tempProjectlist[i].title) {
  170 + tempProjectlist[i].title[g].t_id == tempMain_list[j].t_id ? tempProjectlist[i].title[g].label_state = true : ''
  171 +
  172 + }
169 } 173 }
170 } 174 }
171 } 175 }
@@ -175,7 +179,11 @@ Page({ @@ -175,7 +179,11 @@ Page({
175 for (let i in tempProjectlist) { 179 for (let i in tempProjectlist) {
176 for (let j in tempRist) { 180 for (let j in tempRist) {
177 if (tempProjectlist[i].id == tempRist[j].id) { 181 if (tempProjectlist[i].id == tempRist[j].id) {
178 - tempProjectlist[i] = tempRist[j] 182 + tempProjectlist[i].choose_status = true
  183 + for (let g in tempProjectlist[i].title) {
  184 + console.log(tempProjectlist[i].title[g])
  185 + tempProjectlist[i].title[g].t_id == tempMain_list[j].t_id ? tempProjectlist[i].title[g].label_state = true : ''
  186 + }
179 } 187 }
180 } 188 }
181 } 189 }
@@ -192,7 +200,6 @@ Page({ @@ -192,7 +200,6 @@ Page({
192 xulie: index, 200 xulie: index,
193 projectlist: tempProjectlist 201 projectlist: tempProjectlist
194 }) 202 })
195 - // }  
196 }, 203 },
197 204
198 // 调取保障项目接口 205 // 调取保障项目接口
@@ -1092,27 +1099,27 @@ Page({ @@ -1092,27 +1099,27 @@ Page({
1092 duration: 2000, 1099 duration: 2000,
1093 }) 1100 })
1094 this.setData({ 1101 this.setData({
1095 - in_num:'',  
1096 - firm:'',  
1097 - applicant_name:'',  
1098 - recognizee_name:'', 1102 + in_num: '',
  1103 + firm: '',
  1104 + applicant_name: '',
  1105 + recognizee_name: '',
1099 // beneficiary_list: [{ 1106 // beneficiary_list: [{
1100 // name_array: [], 1107 // name_array: [],
1101 // unit: '' 1108 // unit: ''
1102 // }], 1109 // }],
1103 - main_risks:'',  
1104 - main_array:'',  
1105 - year_money:'',  
1106 - compact_time:'',  
1107 - warranty_two:'',  
1108 - long_money:'',  
1109 - bank:'',  
1110 - bank_num:'',  
1111 - impletion_time:'',  
1112 - warranty_one:'', 1110 + main_risks: '',
  1111 + main_array: '',
  1112 + year_money: '',
  1113 + compact_time: '',
  1114 + warranty_two: '',
  1115 + long_money: '',
  1116 + bank: '',
  1117 + bank_num: '',
  1118 + impletion_time: '',
  1119 + warranty_one: '',
1113 // risk_list:'', 1120 // risk_list:'',
1114 - imgs:'',  
1115 - unit:'', 1121 + imgs: '',
  1122 + unit: '',
1116 unit2: '', 1123 unit2: '',
1117 unit3: '', 1124 unit3: '',
1118 unit4: '', 1125 unit4: '',
@@ -1293,4 +1300,4 @@ Page({ @@ -1293,4 +1300,4 @@ Page({
1293 onShareAppMessage: function() { 1300 onShareAppMessage: function() {
1294 1301
1295 } 1302 }
1296 -})  
  1303 + })