...
|
...
|
@@ -54,16 +54,40 @@ Page({ |
|
|
InfoId: 0,
|
|
|
def_id: '',
|
|
|
edit_state: false,
|
|
|
edit_state2: false,
|
|
|
// risk_listitm: '',
|
|
|
storge_state: false,
|
|
|
warranty_info: '请输入',
|
|
|
warranty_state: false,
|
|
|
warranty_info1: '请输入',
|
|
|
warranty_state1: false,
|
|
|
edit_state3: false,
|
|
|
coverage: '',
|
|
|
focus: false,
|
|
|
sub_index: ''
|
|
|
},
|
|
|
|
|
|
cancleMask() {
|
|
|
if (this.data.inforid != 0) {
|
|
|
if (this.data.edit_state3) {
|
|
|
this.setData({
|
|
|
edit_state: false,
|
|
|
edit_state2: false
|
|
|
})
|
|
|
} else {
|
|
|
this.setData({
|
|
|
edit_state: true,
|
|
|
edit_state2: true
|
|
|
})
|
|
|
}
|
|
|
} else {
|
|
|
this.setData({
|
|
|
edit_state: false,
|
|
|
edit_state2: false
|
|
|
})
|
|
|
}
|
|
|
console.log(this.data.edit_state)
|
|
|
|
|
|
this.setData({
|
|
|
popup_state: false,
|
|
|
})
|
...
|
...
|
@@ -102,20 +126,16 @@ Page({ |
|
|
|
|
|
//主险名称
|
|
|
setRiskName(e) {
|
|
|
// console.log(e)
|
|
|
this.setData({
|
|
|
main_risks: e.detail.value,
|
|
|
})
|
|
|
// console.log(this.data.main_risks)
|
|
|
},
|
|
|
|
|
|
//主险名称
|
|
|
setRiskMoney(e) {
|
|
|
// console.log(e)
|
|
|
this.setData({
|
|
|
coverage: e.detail.value,
|
|
|
})
|
|
|
// console.log(this.data.main_risks)
|
|
|
},
|
|
|
|
|
|
|
...
|
...
|
@@ -165,70 +185,176 @@ Page({ |
|
|
|
|
|
//保障项目弹窗
|
|
|
ensureProject(e) {
|
|
|
if (this.data.inforid != 0) {
|
|
|
this.setData({
|
|
|
edit_state: true
|
|
|
})
|
|
|
}
|
|
|
|
|
|
|
|
|
let that = this;
|
|
|
let type = e.currentTarget.dataset.type;
|
|
|
let index = e.currentTarget.dataset.xulie;
|
|
|
let tempProjectlist = Object.assign(this.data.projectlist, {});
|
|
|
var sub_index = that.data.sub_index
|
|
|
var edit_state3 = that.data.edit_state3
|
|
|
|
|
|
// 已经添加的附加险
|
|
|
let risk_list = Object.assign(this.data.risk_list, {});
|
|
|
let tempRist = risk_list[index].mo;
|
|
|
|
|
|
this.setData({
|
|
|
type: type
|
|
|
})
|
|
|
|
|
|
if (type == 'fujiaxian') {
|
|
|
this.setData({
|
|
|
focus: true
|
|
|
})
|
|
|
}
|
|
|
|
|
|
// 已经添加的主险
|
|
|
let tempMain_list = Object.assign(this.data.main_array, {})
|
|
|
if (type == 'zhuxian') {
|
|
|
if (tempMain_list.length > 0) {
|
|
|
for (let i in tempProjectlist) {
|
|
|
for (let j in tempMain_list) {
|
|
|
if (tempProjectlist[i].id == tempMain_list[j].id) {
|
|
|
tempProjectlist[i].choose_status = true
|
|
|
tempProjectlist[i].num = tempMain_list[j].num
|
|
|
for (let g in tempProjectlist[i].title) {
|
|
|
tempProjectlist[i].title[g].t_id == tempMain_list[j].t_id ? tempProjectlist[i].title[g].label_state = true : ''
|
|
|
|
|
|
// this.data.inforid != 0 && this.data.inforid != undefined
|
|
|
if (that.data.temp_state) {
|
|
|
if (!edit_state3) {
|
|
|
if (type == 'zhuxian') {
|
|
|
if (tempMain_list.length > 0) {
|
|
|
for (let i in tempProjectlist) {
|
|
|
for (let j in tempMain_list) {
|
|
|
if (tempProjectlist[i].id == tempMain_list[j].id) {
|
|
|
tempProjectlist[i].choose_status = true
|
|
|
tempProjectlist[i].num = tempMain_list[j].num
|
|
|
console.log(tempProjectlist, tempMain_list)
|
|
|
for (let g in tempProjectlist[i].title) {
|
|
|
if (tempProjectlist[i].title[g].t_id == tempMain_list[j].t_id) {
|
|
|
tempProjectlist[i].title[g].label_state = true
|
|
|
if (tempProjectlist[i].title[g].name == tempMain_list[j].title) {
|
|
|
tempProjectlist[i].title[g].current = parseInt(g)
|
|
|
sub_index = parseInt(g)
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
if (tempRist.length) {
|
|
|
for (let i in tempProjectlist) {
|
|
|
for (let j in tempRist) {
|
|
|
if (tempProjectlist[i].id == tempRist[j].id) {
|
|
|
tempProjectlist[i].choose_status = true
|
|
|
tempProjectlist[i].num = tempRist[j].num
|
|
|
for (let g in tempProjectlist[i].title) {
|
|
|
if (tempProjectlist[i].title[g].t_id == tempRist[j].t_id) {
|
|
|
tempProjectlist[i].title[g].label_state = true
|
|
|
if (tempProjectlist[i].title[g].name == tempRist[j].title) {
|
|
|
tempProjectlist[i].title[g].current = parseInt(g)
|
|
|
sub_index = parseInt(g)
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
if (type == 'zhuxian') {
|
|
|
if (tempMain_list.length > 0) {
|
|
|
for (let i in tempProjectlist) {
|
|
|
for (let j in tempMain_list) {
|
|
|
if (tempProjectlist[i].id == tempMain_list[j].id) {
|
|
|
tempProjectlist[i].choose_status = true
|
|
|
tempProjectlist[i].num = tempMain_list[j].num
|
|
|
for (let g in tempProjectlist[i].title) {
|
|
|
for (let k in tempMain_list[j].title) {
|
|
|
if (tempMain_list[j].title[k].label_state) {
|
|
|
if (tempProjectlist[i].title[g].t_id == tempMain_list[j].title[k].t_id) {
|
|
|
tempProjectlist[i].title[g].label_state = true
|
|
|
tempProjectlist[i].title[g].current = tempMain_list[j].title[k].current
|
|
|
sub_index = tempMain_list[j].title[k].current
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
if (tempRist.length) {
|
|
|
for (let i in tempProjectlist) {
|
|
|
for (let j in tempRist) {
|
|
|
if (tempProjectlist[i].id == tempRist[j].id) {
|
|
|
tempProjectlist[i].choose_status = true
|
|
|
tempProjectlist[i].num = tempRist[j].num
|
|
|
for (let g in tempProjectlist[i].title) {
|
|
|
for (let k in tempRist[j].title) {
|
|
|
if (tempRist[j].title[k].label_state) {
|
|
|
if (tempProjectlist[i].title[g].t_id == tempRist[j].title[k].t_id) {
|
|
|
tempProjectlist[i].title[g].label_state = true
|
|
|
tempProjectlist[i].title[g].current = tempRist[j].title[k].current
|
|
|
sub_index = tempRist[j].title[k].current
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
} else {
|
|
|
if (tempRist.length) {
|
|
|
for (let i in tempProjectlist) {
|
|
|
for (let j in tempRist) {
|
|
|
if (tempProjectlist[i].id == tempRist[j].id) {
|
|
|
tempProjectlist[i].choose_status = true
|
|
|
tempProjectlist[i].num = tempRist[j].num
|
|
|
for (let g in tempProjectlist[i].title) {
|
|
|
tempProjectlist[i].title[g].t_id == tempRist[j].t_id ? tempProjectlist[i].title[g].label_state = true : ''
|
|
|
if (type == 'zhuxian') {
|
|
|
if (tempMain_list.length > 0) {
|
|
|
for (let i in tempProjectlist) {
|
|
|
for (let j in tempMain_list) {
|
|
|
if (tempProjectlist[i].id == tempMain_list[j].id) {
|
|
|
tempProjectlist[i].choose_status = true
|
|
|
tempProjectlist[i].num = tempMain_list[j].num
|
|
|
for (let g in tempProjectlist[i].title) {
|
|
|
for (let k in tempMain_list[j].title) {
|
|
|
if (tempMain_list[j].title[k].label_state) {
|
|
|
if (tempProjectlist[i].title[g].t_id == tempMain_list[j].title[k].t_id) {
|
|
|
tempProjectlist[i].title[g].label_state = true
|
|
|
tempProjectlist[i].title[g].current = tempMain_list[j].title[k].current
|
|
|
sub_index = tempMain_list[j].title[k].current
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
if (tempRist.length) {
|
|
|
for (let i in tempProjectlist) {
|
|
|
for (let j in tempRist) {
|
|
|
if (tempProjectlist[i].id == tempRist[j].id) {
|
|
|
tempProjectlist[i].choose_status = true
|
|
|
tempProjectlist[i].num = tempRist[j].num
|
|
|
for (let g in tempProjectlist[i].title) {
|
|
|
for (let k in tempRist[j].title) {
|
|
|
if (tempRist[j].title[k].label_state) {
|
|
|
if (tempProjectlist[i].title[g].t_id == tempRist[j].title[k].t_id) {
|
|
|
tempProjectlist[i].title[g].label_state = true
|
|
|
tempProjectlist[i].title[g].current = tempRist[j].title[k].current
|
|
|
sub_index = tempRist[j].title[k].current
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
wx.setNavigationBarTitle({
|
|
|
title: '选择保障项目',
|
|
|
})
|
|
|
console.log(tempProjectlist)
|
|
|
this.setData({
|
|
|
popup_state: true,
|
|
|
addType: type,
|
|
|
xulie: index,
|
|
|
projectlist: tempProjectlist
|
|
|
projectlist: tempProjectlist,
|
|
|
sub_index: sub_index
|
|
|
})
|
|
|
},
|
|
|
|
...
|
...
|
@@ -245,13 +371,12 @@ Page({ |
|
|
for (var j = 0; j < projectlist[i].title.length; j++) {
|
|
|
projectlist[i].title[j].label_state = false
|
|
|
}
|
|
|
projectlist[i].title[0].current = 0
|
|
|
projectlist[i].title[0].label_state = true
|
|
|
// projectlist[i].title[0].current = 0
|
|
|
// projectlist[i].title[0].label_state = true
|
|
|
}
|
|
|
this.setData({
|
|
|
projectlist: res.data.data.def
|
|
|
})
|
|
|
// console.log(this.data.projectlist)
|
|
|
}
|
|
|
})
|
|
|
},
|
...
|
...
|
@@ -275,6 +400,7 @@ Page({ |
|
|
}
|
|
|
this.setData({
|
|
|
projectlist: projectlist,
|
|
|
sub_index: sindex
|
|
|
})
|
|
|
},
|
|
|
|
...
|
...
|
@@ -288,7 +414,6 @@ Page({ |
|
|
this.setData({
|
|
|
projectlist: projectlist
|
|
|
})
|
|
|
console.log(projectlist)
|
|
|
},
|
|
|
|
|
|
//选择保障项目
|
...
|
...
|
@@ -301,15 +426,23 @@ Page({ |
|
|
projectlist: projectlist,
|
|
|
})
|
|
|
if (this.data.inforid != 0) {
|
|
|
edit_state: false
|
|
|
edit_state: false;
|
|
|
edit_state2: false
|
|
|
}
|
|
|
},
|
|
|
|
|
|
//确认选择的推荐方案
|
|
|
confirmCase() {
|
|
|
this.setData({
|
|
|
edit_state: false
|
|
|
})
|
|
|
if (this.data.type == 'fujiaxian') {
|
|
|
this.setData({
|
|
|
edit_state2: false
|
|
|
})
|
|
|
} else {
|
|
|
this.setData({
|
|
|
edit_state: false
|
|
|
})
|
|
|
}
|
|
|
|
|
|
|
|
|
let index = this.data.xulie;
|
|
|
let type = this.data.addType;
|
...
|
...
|
@@ -320,7 +453,6 @@ Page({ |
|
|
for (var i = 0; i < projectlist.length; i++) {
|
|
|
if (projectlist[i].choose_status) {
|
|
|
main_array.push(projectlist[i])
|
|
|
console.log(main_array)
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
@@ -336,15 +468,12 @@ Page({ |
|
|
tempRist[index]['mo'] = main_array;
|
|
|
that.setData({
|
|
|
risk_list: tempRist,
|
|
|
// risk_listitm: tempRist
|
|
|
})
|
|
|
console.log(this.data.risk_list)
|
|
|
} else {
|
|
|
that.setData({
|
|
|
main_array: main_array,
|
|
|
})
|
|
|
}
|
|
|
console.log(this.data.main_array)
|
|
|
}
|
|
|
setTimeout(function() {
|
|
|
that.ensureProjectList()
|
...
|
...
|
@@ -355,16 +484,12 @@ Page({ |
|
|
title: '添加保单',
|
|
|
})
|
|
|
}, 800)
|
|
|
|
|
|
|
|
|
console.log(this.data.risk_list)
|
|
|
},
|
|
|
|
|
|
//重组主险的保障项目
|
|
|
tempMain() {
|
|
|
var main_array = this.data.main_array
|
|
|
var warranty_one1 = []
|
|
|
// console.log(main_array)
|
|
|
for (var i = 0; i < main_array.length; i++) {
|
|
|
var temp = {}
|
|
|
for (var j = 0; j < main_array[i].title.length; j++) {
|
...
|
...
|
@@ -398,23 +523,17 @@ Page({ |
|
|
|
|
|
//主险保障其
|
|
|
addRiskUnit(e) {
|
|
|
console.log(e)
|
|
|
var risk_list = this.data.risk_list
|
|
|
console.log(risk_list)
|
|
|
var index = e.currentTarget.dataset.index
|
|
|
risk_list[index].num = e.detail.value
|
|
|
console.log(risk_list)
|
|
|
this.setData({
|
|
|
risk_list: risk_list
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
//重组附加险整体数据结构
|
|
|
tempAddRisk() {
|
|
|
console.log('storte')
|
|
|
var risk_list = this.data.risk_list
|
|
|
console.log(risk_list)
|
|
|
var sub_array = []
|
|
|
var temp_risk = this.data.risk_list;
|
|
|
var temp = this.data.risk_list;
|
...
|
...
|
@@ -428,7 +547,6 @@ Page({ |
|
|
temp_risk[i].name = temp[i].name
|
|
|
temp_risk[i].num = temp[i].num
|
|
|
temp_risk[i].title = temp[i].title
|
|
|
console.log(temp[i].title, temp_risk[i].title)
|
|
|
temp_risk[i].mo[j].t_id = temp[i].mo[j].title[k].t_id
|
|
|
temp_risk[i].mo[j].id = temp[i].mo[j].id
|
|
|
temp_risk[i].mo[j].name = temp[i].mo[j].name
|
...
|
...
|
@@ -451,7 +569,8 @@ Page({ |
|
|
beneficiarySelect(e) {
|
|
|
if (this.data.inforid != 0) {
|
|
|
this.setData({
|
|
|
edit_state: true
|
|
|
edit_state: true,
|
|
|
edit_state2: true
|
|
|
})
|
|
|
}
|
|
|
var index = e.currentTarget.dataset.mindex
|
...
|
...
|
@@ -519,10 +638,7 @@ Page({ |
|
|
|
|
|
//添加受益人名字
|
|
|
addPeople(e) {
|
|
|
// console.log(e)
|
|
|
console.log(this.data.beneficiary_list)
|
|
|
var beneficiary_list = this.data.beneficiary_list;
|
|
|
|
|
|
var index = e.currentTarget.dataset.index
|
|
|
// beneficiary_list[beneficiary_list.length - 1].beneficiary_name = e.detail.value;
|
|
|
beneficiary_list[index].name = e.detail.value;
|
...
|
...
|
@@ -559,7 +675,6 @@ Page({ |
|
|
this.setData({
|
|
|
beneficiary_list: list
|
|
|
})
|
|
|
// console.log(this.data.beneficiary_list)
|
|
|
},
|
|
|
|
|
|
//添加受益人
|
...
|
...
|
@@ -629,7 +744,8 @@ Page({ |
|
|
addRisk() {
|
|
|
if (this.data.inforid != 0) {
|
|
|
this.setData({
|
|
|
edit_state: false
|
|
|
edit_state: false,
|
|
|
edit_state2: false
|
|
|
})
|
|
|
}
|
|
|
var risk_list = Object.assign(this.data.risk_list, {});
|
...
|
...
|
@@ -728,8 +844,9 @@ Page({ |
|
|
complete: () => {
|
|
|
i++;
|
|
|
if (i == length) {
|
|
|
// console.log('总共' + successUp + '张上传成功,' + failUp + '张上传失败!');
|
|
|
|
|
|
} else { //递归调用uploadDIY函数
|
|
|
|
|
|
this.uploadAllfile(filePaths, successUp, failUp, i, length);
|
|
|
}
|
|
|
},
|
...
|
...
|
@@ -762,7 +879,8 @@ Page({ |
|
|
warrantyTwo(e) {
|
|
|
if (this.data.inforid != 0) {
|
|
|
this.setData({
|
|
|
edit_state: false
|
|
|
edit_state: false,
|
|
|
edit_state2: false
|
|
|
})
|
|
|
}
|
|
|
var guarantee_name = e.detail.value
|
...
|
...
|
@@ -809,14 +927,11 @@ Page({ |
|
|
var unit = this.data.unit
|
|
|
var compact_time = this.data.compact_time
|
|
|
var year = parseInt(new Date(compact_time).getFullYear())
|
|
|
console.log(year)
|
|
|
var month = parseInt(new Date(compact_time).getMonth() + 1)
|
|
|
var day = parseInt(new Date(compact_time).getDate())
|
|
|
// var impletion_time = this.data.impletion_time
|
|
|
var warranty_one = this.data.warranty_one
|
|
|
|
|
|
var tempbirth_time = ''
|
|
|
var birthday = '1995-04-20'
|
|
|
var birthday = ''
|
|
|
var birthday_year = parseInt(new Date(birthday).getFullYear())
|
|
|
|
|
|
if (compact_time == '') {
|
...
|
...
|
@@ -830,7 +945,6 @@ Page({ |
|
|
var temp_day = day - 1
|
|
|
if (month < 10) month = "0" + month;
|
|
|
if (temp_day < 10) temp_day = "0" + temp_day;
|
|
|
// impletion_time = temp_year + '-' + month + '-' + temp_day
|
|
|
warranty_one = temp_year + '-' + month + '-' + temp_day
|
|
|
} else if (unit == '岁') {
|
|
|
var temp_year = (birthday_year + guarantee_name - 1)
|
...
|
...
|
@@ -839,14 +953,11 @@ Page({ |
|
|
if (temp_month < 10) temp_month = "0" + temp_month;
|
|
|
if (month < 10) month = "0" + month;
|
|
|
if (day < 10) day = "0" + day;
|
|
|
// impletion_time = temp_year + '-' + temp_month + '-' + day
|
|
|
warranty_one = temp_year2 + '-' + month + '-' + day
|
|
|
} else if (unit == '终身') {
|
|
|
// impletion_time = '终身缴费'
|
|
|
warranty_one = '终身'
|
|
|
}
|
|
|
this.setData({
|
|
|
// impletion_time: impletion_time,
|
|
|
warranty_one: warranty_one
|
|
|
})
|
|
|
}
|
...
|
...
|
@@ -856,7 +967,8 @@ Page({ |
|
|
burningTime(e) {
|
|
|
if (this.data.inforid != 0) {
|
|
|
this.setData({
|
|
|
edit_state: false
|
|
|
edit_state: false,
|
|
|
edit_state2: false,
|
|
|
})
|
|
|
}
|
|
|
var time_name = e.detail.value
|
...
|
...
|
@@ -905,10 +1017,8 @@ Page({ |
|
|
var month = parseInt(new Date(compact_time).getMonth() + 1)
|
|
|
var day = parseInt(new Date(compact_time).getDate())
|
|
|
var impletion_time = this.data.impletion_time
|
|
|
// var warranty_one = this.data.warranty_one
|
|
|
|
|
|
var tempbirth_time = ''
|
|
|
var birthday = '1995-04-20'
|
|
|
var birthday = ''
|
|
|
var birthday_year = parseInt(new Date(birthday).getFullYear())
|
|
|
|
|
|
if (compact_time == '') {
|
...
|
...
|
@@ -923,7 +1033,6 @@ Page({ |
|
|
if (month < 10) month = "0" + month;
|
|
|
if (temp_day < 10) temp_day = "0" + temp_day;
|
|
|
impletion_time = temp_year + '-' + month + '-' + temp_day
|
|
|
// warranty_one = temp_year + '-' + month + '-' + temp_day
|
|
|
} else if (unit == '岁') {
|
|
|
var temp_year = (birthday_year + time_name - 1)
|
|
|
var temp_year2 = (birthday_year + time_name)
|
...
|
...
|
@@ -932,14 +1041,11 @@ Page({ |
|
|
if (month < 10) month = "0" + month;
|
|
|
if (day < 10) day = "0" + day;
|
|
|
impletion_time = temp_year + '-' + temp_month + '-' + day
|
|
|
// warranty_one = temp_year2 + '-' + month + '-' + day
|
|
|
} else if (unit == '终身') {
|
|
|
impletion_time = '终身缴费'
|
|
|
// warranty_one = '终身'
|
|
|
}
|
|
|
this.setData({
|
|
|
impletion_time: impletion_time,
|
|
|
// warranty_one: warranty_one
|
|
|
})
|
|
|
}
|
|
|
},
|
...
|
...
|
@@ -1110,6 +1216,9 @@ Page({ |
|
|
risk_list: res.data.data.def.more,
|
|
|
beneficiary_list: beneficiary_list,
|
|
|
edit_state: true,
|
|
|
edit_state2: true,
|
|
|
edit_state3: false,
|
|
|
temp_state:true
|
|
|
})
|
|
|
}
|
|
|
})
|
...
|
...
|
@@ -1132,7 +1241,7 @@ Page({ |
|
|
var long_money = JSON.stringify(this.data.long_money)
|
|
|
var more = JSON.stringify(this.data.more)
|
|
|
var guarantee = JSON.stringify(this.data.guarantee)
|
|
|
} else if (this.data.edit_state || wx.getStorageSync('storge_state')) {
|
|
|
} else if (this.data.edit_state || this.data.edit_state2 || wx.getStorageSync('storge_state')) {
|
|
|
var favoree = JSON.stringify(this.data.beneficiary_list)
|
|
|
var warranty_two = JSON.stringify(this.data.warranty_two)
|
|
|
var long_money = JSON.stringify(this.data.long_money)
|
...
|
...
|
@@ -1309,7 +1418,6 @@ Page({ |
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
//获取编辑保单接口
|
|
|
getlistVerify(id) {
|
|
|
let url = 'counselor/infordef'
|
...
|
...
|
@@ -1334,10 +1442,6 @@ Page({ |
|
|
beneficiary_list[obj].name = beneficiary_list[obj].name
|
|
|
beneficiary_list[obj].unit = beneficiary_list[obj].unit
|
|
|
// beneficiary_list[obj].name_array = this.data.insure
|
|
|
} else {
|
|
|
// beneficiary_list[0].name = ''
|
|
|
// beneficiary_list[0].unit = ''
|
|
|
// beneficiary_list[obj].name_array = this.data.insure
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
@@ -1387,6 +1491,9 @@ Page({ |
|
|
risk_list: risk_list,
|
|
|
beneficiary_list: beneficiary_list,
|
|
|
edit_state: true,
|
|
|
edit_state2: true,
|
|
|
edit_state3: false,
|
|
|
temp_state: true,
|
|
|
guarantee_name: guarantee_name,
|
|
|
time_name: time_name,
|
|
|
})
|
...
|
...
|
@@ -1398,12 +1505,12 @@ Page({ |
|
|
* 生命周期函数--监听页面加载
|
|
|
*/
|
|
|
onLoad: function(options) {
|
|
|
|
|
|
this.ensureProjectList()
|
|
|
let that = this;
|
|
|
options.inforid ? (that.getlistVerify(options.inforid), that.setData({
|
|
|
inforid: options.inforid,
|
|
|
edit_state: true
|
|
|
edit_state: true,
|
|
|
edit_state2: true,
|
|
|
}), wx.setNavigationBarTitle({
|
|
|
title: '编辑保单',
|
|
|
})) : ""
|
...
|
...
|
@@ -1420,6 +1527,7 @@ Page({ |
|
|
if (wx.getStorageSync('storge_state') && options.inforid == undefined) {
|
|
|
this.getStorage()
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
/**
|
...
|
...
|
|