作者 刘晓艳

修改添加保单部分

正在显示 48 个修改的文件 包含 1003 行增加599 行删除
{
"pages": [
"pages/start/start",
"pages/index/verigyCode/verigyCode",
"pages/index/summaryList2/summaryList2",
... ... @@ -46,7 +47,7 @@
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#0286FF",
"navigationBarTitleText": "保单体检专家",
"navigationBarTextStyle": "#fff"
"navigationBarTextStyle": "white"
},
"tabBar": {
"color": "#666666",
... ...
... ... @@ -12,15 +12,25 @@
justify-content: center;
}
button {
border-radius: 0;
}
button::after {
border: 0;
border-radius: 0;
}
/* iconfont */
@font-face {
font-family: 'iconfont'; /* project id 926819 */
font-family: 'iconfont'; /* project id 926819 */
src: url('//at.alicdn.com/t/font_926819_0pzhvmpbjahd.eot');
src: url('//at.alicdn.com/t/font_926819_0pzhvmpbjahd.eot?#iefix') format('embedded-opentype'),
url('//at.alicdn.com/t/font_926819_0pzhvmpbjahd.woff2') format('woff2'),
url('//at.alicdn.com/t/font_926819_0pzhvmpbjahd.woff') format('woff'),
url('//at.alicdn.com/t/font_926819_0pzhvmpbjahd.ttf') format('truetype'),
url('//at.alicdn.com/t/font_926819_0pzhvmpbjahd.svg#iconfont') format('svg');
url('//at.alicdn.com/t/font_926819_0pzhvmpbjahd.woff2') format('woff2'),
url('//at.alicdn.com/t/font_926819_0pzhvmpbjahd.woff') format('woff'),
url('//at.alicdn.com/t/font_926819_0pzhvmpbjahd.ttf') format('truetype'),
url('//at.alicdn.com/t/font_926819_0pzhvmpbjahd.svg#iconfont') format('svg');
}
.iconfont {
... ...
... ... @@ -7,7 +7,7 @@
font-size: 28rpx;
color: #fff;
position: relative;
padding:30rpx 30rpx 85rpx 30rpx;
padding: 30rpx 30rpx 85rpx 30rpx;
border-radius: 16rpx;
box-shadow: 0rpx 15rpx 30rpx 0rpx rgba(9, 60, 121, 0.08);
overflow: hidden;
... ... @@ -108,14 +108,15 @@
bottom: 50rpx;
right: 50rpx;
}
.bottom_box button{
position: absolute;
top:0;
left:0;
width: 100%;
height: 100%;
z-index:1000;
opacity: 0;
.bottom_box button {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1000;
opacity: 0;
}
.icon-zhuanfa {
... ... @@ -131,10 +132,15 @@
text-indent: 2rem;
margin-top: 70rpx;
}
.wxParse-p{
width: 100%!important;
.wxParse-p {
text-indent: 0 !important;
word-spacing: normal;
word-wrap: normal;
display: block !important;
}
.wxParse-img{
width: 100%!important;
.wxParse-img {
width: 100% !important;
height: 100%;
}
\ No newline at end of file
}
... ...
... ... @@ -7,12 +7,16 @@ Page({
*/
data: {
currentTab: 2,
Status:'',
KeyWord:'',
Status: '',
KeyWord: '',
mainid: '',
vip_state: false
},
goIndex() {
wx.switchTab({
url: '/pages/index/index',
})
},
//点击切换
tabCharge(e) {
var that = this;
... ... @@ -52,7 +56,7 @@ Page({
console.log(1)
console.log(data.data.list)
that.setData({
list: data.data.list
list: data.data.list
})
}
... ... @@ -87,7 +91,7 @@ Page({
that.setData({
vip_state: false
})
} else{
} else {
that.setData({
vip_state: true
})
... ... @@ -156,7 +160,7 @@ Page({
*/
onLoad: function(options) {
// this.getdata()
},
/**
... ...
... ... @@ -49,5 +49,6 @@
<view class='null_box'></view>
<view class='bottom'>
<view class='bottom_box' bindtap="{{vip_state?'addFamily':''}}">创建新家庭</view>
<view class='bottom_box' bindtap="goIndex">回到首页</view>
</view>
</view>
\ No newline at end of file
... ...
... ... @@ -98,8 +98,8 @@
}
.list_label_box {
width: 163rpx;
height: 210rpx;
width: 160rpx;
height: 207rpx;
background: rgba(2, 134, 255, 1);
box-shadow: 2rpx 8rpx 30rpx 0rpx rgba(0, 0, 0, 0.24);
border-radius: 5rpx;
... ... @@ -203,11 +203,13 @@
transform: translateX(-50%);
display: flex;
align-items: center;
justify-content: center;
justify-content: space-between;
padding: 0 30rpx;
box-sizing: border-box;
}
.bottom_box {
width: 90%;
width: 45%;
height: 88rpx;
background: rgba(2, 134, 255, 1);
border-radius: 44rpx;
... ...
... ... @@ -113,10 +113,14 @@ Page({
})
},
//选择家庭角色
//设置家庭地址
setSddress(e) {
let list = this.data.list;
list.address = e.detail.value;
var address = list.address
if(this.data.familyid==0){
wx.setStorageSync('address', address)
}
this.setData({
list: list
})
... ... @@ -272,7 +276,10 @@ Page({
var state = that.data.state
var list = this.data.list;
var sex_index = (this.data.sex_index)
console.log(sex_index, sex_index == '')
var picurl = list.picurl
if (picurl == undefined) {
picurl = ''
}
if (list.name == "") {
warn = "请填写您的姓名";
} else if (sex_index == undefined) {
... ... @@ -296,7 +303,7 @@ Page({
mid: list.mid,
user_status: list.user_status,
status_num: list.status_num,
picurl: list.picurl,
picurl: picurl,
text: list.text,
label_ids: this.data.label_ids,
family_id: that.data.familyid,
... ... @@ -312,7 +319,14 @@ Page({
})
wx.setStorageSync('familyid', res.data.data.family_id)
setTimeout(() => {
wx.navigateBack()
if (this.data.familyid == 0) {
wx.redirectTo({
url: '/pages/index/CustomerManagement/CustomerManagement',
})
} else {
wx.navigateBack()
}
}, 1500)
// wx.navigateTo({
// url: '/pages/index/addNewFamily/addNewFamily?familyid=' + res.data.data.family_id,
... ...
... ... @@ -70,7 +70,8 @@
<view class='item_list' style='align-items: flex-start;min-height:80rpx;'>
<view class='list_title'>家庭地址 </view>
<view class='list_input'>
<textarea type='text' placeholder='请输入家庭地址' value='{{list.address}}' bindinput='setSddress'></textarea>
<!-- wx:if='{{list.address}}' -->
<textarea type='text' placeholder='请输入家庭地址' value='{{list.address}}' bindinput='setSddress' ></textarea>
</view>
</view>
... ... @@ -130,7 +131,12 @@
</view>
<!-- 底部按钮 -->
<view class='null_box'></view>
<view class='bottom_box'>
<button class='bottom_btn' data-type='complete' formType='submit'>完成</button>
</view>
<!-- <cover-view class='bottom_box'>
<button class='bottom_btn' style='width: 100%;height: 80rpx;font-size: 32rpx;color: #fff;background: rgba(2, 134, 255, 1);border-radius: 44rpx;display: flex;align-items: center;justify-content: center;' data-type='complete' formType='submit'>完成</button>
</cover-view> -->
<cover-view class='bottom_box'>
<button data-type='complete' formType='submit' style='font-size:12pt;border:0px;width:100%;background:#0286FF;color:#fff'>完成</button>
</cover-view>
</form>
\ No newline at end of file
... ...
... ... @@ -56,6 +56,7 @@ page {
}
.list_input textarea{
height: 120rpx;
/* position: fixed; */
}
.list_input input {
border: 0;
... ...
... ... @@ -13,7 +13,7 @@
<view class="item_list {{(index+1)%2==0?'year_list':''}}" wx:for='{{mainlist}}' wx:key>
<view class='list_title'>{{item.title}}</view>
<view class='list_content'>
<text>优惠{{item.money}}</text>
<text>优惠{{item.money}}</text>
<text>或{{item.moneyt}}T币</text>
</view>
<navigator class='list_btn month_card' hover-class="navigator-hover"
... ...
... ... @@ -16,7 +16,9 @@ Page({
insure: ['投保人', '投保人2'],
insureindex: -1,
beneficiary_list: [{
name_array: ['受益人1', '受益人2'],
// name_array: ['受益人1', '受益人2'],
// beneficiary_name:'',
name: '',
unit: ''
}],
beneficiaryindex: -1,
... ... @@ -36,7 +38,7 @@ Page({
risk_list: [{
name: '',
mo: [],
project_time: '',
// project_time: '',
title: '',
num: ''
}],
... ... @@ -52,15 +54,20 @@ Page({
InfoId: 0,
def_id: '',
edit_state: false,
risk_listitm: '',
// risk_listitm: '',
storge_state: false,
warranty_info: '请输入',
warranty_state: false,
warranty_info1: '请输入',
warranty_state1: false,
coverage: '',
focus: false,
},
cancleMask() {
this.setData({
popup_state: false,
})
},
//保单号
policyNum(e) {
this.setData({
... ... @@ -158,19 +165,28 @@ Page({
//保障项目弹窗
ensureProject(e) {
this.setData({
edit_state: true
})
console.log(this.data.projectlist)
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, {});
// 已经添加的附加险
let risk_list = Object.assign(this.data.risk_list, {});
// console.log(risk_list)
let tempRist = risk_list[index].mo;
console.log(tempRist)
if (type == 'fujiaxian') {
this.setData({
focus: true
})
}
// 已经添加的主险
let tempMain_list = Object.assign(this.data.main_array, {})
if (type == 'zhuxian') {
... ... @@ -179,6 +195,7 @@ Page({
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 : ''
... ... @@ -193,8 +210,8 @@ Page({
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) {
console.log(tempProjectlist[i].title[g])
tempProjectlist[i].title[g].t_id == tempRist[j].t_id ? tempProjectlist[i].title[g].label_state = true : ''
}
}
... ... @@ -279,7 +296,7 @@ Page({
var index = e.currentTarget.dataset.index;
var projectlist = this.data.projectlist;
projectlist[index].choose_status = !projectlist[index].choose_status;
// console.log(projectlist)
this.setData({
projectlist: projectlist,
})
... ... @@ -319,7 +336,7 @@ Page({
tempRist[index]['mo'] = main_array;
that.setData({
risk_list: tempRist,
risk_listitm: tempRist
// risk_listitm: tempRist
})
console.log(this.data.risk_list)
} else {
... ... @@ -381,45 +398,48 @@ 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_listitm;
var temp = this.data.risk_listitm;
var temp_risk = this.data.risk_list;
var temp = this.data.risk_list;
for (var i = 0; i < temp.length; i++) {
for (var j = 0; j < temp[i].mo.length; j++) {
for (var k = 0; k < temp[i].mo[j].title.length; k++) {
if (temp[i].name != '') {
// var temp = {}
// var subtemp = {}
if (temp[i].mo[j].choose_status) {
if (temp[i].mo[j].title[k].label_state) {
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
temp_risk[i].mo[j].num = temp[i].mo[j].num
temp_risk[i].mo[j].title = temp[i].mo[j].title[k].name
console.log(temp_risk)
}
}
}
}
}
console.log(temp_risk)
this.setData({
more: temp_risk
})
... ... @@ -439,14 +459,18 @@ Page({
// 获取当前已选择的收益人
let tempBenefice = Object.assign(this.data.beneficiaryList, {})
// 当前选择的收益人
let nowPerson = beneficiary_list[index].name_array[e.detail.value];
// let nowPerson = beneficiary_list[index].name_array[e.detail.value];
// let nowPerson = beneficiary_list[index].beneficiary_name
let nowPerson = beneficiary_list[index].name
// 判断受益人是否已经添加
const add = tempBenefice.every((tempBenefice) => {
return tempBenefice != nowPerson
})
if (add) {
beneficiary_list[index].beneficiary_name = nowPerson;
// beneficiary_list[index].beneficiary_name = nowPerson;
beneficiary_list[index].name = nowPerson;
tempBenefice.push(nowPerson)
console.log(tempBenefice)
} else {
wx.showToast({
title: '请不要重复添加受益人',
... ... @@ -475,6 +499,37 @@ Page({
this.setData({
beneficiary_list: beneficiary_list,
})
},
//添加收益比例
addUnit2(e) {
var beneficiary_list = this.data.beneficiary_list;
var index = e.currentTarget.dataset.index
beneficiary_list[index].unit = e.detail.value;
if (beneficiary_list[index].unit > 100) {
wx.showToast({
title: '请重新输入收益比例',
icon: 'none'
})
beneficiary_list[index].unit = 0
}
this.setData({
beneficiary_list: beneficiary_list,
})
},
//添加受益人名字
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;
this.setData({
beneficiary_list: beneficiary_list,
})
},
... ... @@ -482,9 +537,38 @@ Page({
addPersons(e) {
var list = this.data.beneficiary_list;
var len = list.length
if (list[len - 1].beneficiary_name == undefined) {
// if (list[len - 1].beneficiary_name == undefined) {
if (list[len - 1].name == undefined) {
wx.showToast({
title: '请输入受益人',
icon: 'none'
})
} else if (list[len - 1].unit == '') {
wx.showToast({
title: '请输入收益比',
icon: 'none'
})
} else {
list[len] = {
// name_array: this.data.insure,
// beneficiary_name:'',
name: '',
unit: ''
}
}
this.setData({
beneficiary_list: list
})
// console.log(this.data.beneficiary_list)
},
//添加受益人
addPersons2(e) {
var list = this.data.beneficiary_list;
var len = list.length
if (list[len - 1].name == undefined) {
wx.showToast({
title: '请选择受益人',
title: '请输入受益人',
icon: 'none'
})
} else if (list[len - 1].unit == '') {
... ... @@ -495,7 +579,8 @@ Page({
})
} else {
list[len] = {
name_array: this.data.insure,
// name_array: this.data.insure,
name: '',
unit: ''
}
}
... ... @@ -504,7 +589,6 @@ Page({
})
console.log(this.data.beneficiary_list)
},
//重组添加受益人
tempBeneficiary() {
var beneficiary_list = this.data.beneficiary_list
... ... @@ -513,7 +597,7 @@ Page({
for (var i = 0; i < beneficiary_list.length; i++) {
var temp = {}
if (beneficiary_list[i].unit != '') {
temp.name = beneficiary_list[i].beneficiary_name
temp.name = beneficiary_list[i].name
temp.unit = beneficiary_list[i].unit;
}
tempfavoree1.push(temp)
... ... @@ -530,7 +614,8 @@ Page({
let tempbenefict = Object.assign(this.data.beneficiary_list, {});
let beneficiaryList = Object.assign(this.data.beneficiaryList, {});
// 获取当前选项的受益人
let person = tempbenefict[index].beneficiary_name;
// let person = tempbenefict[index].beneficiary_name;
let person = tempbenefict[index].name;
tempbenefict.splice(index, 1);
if (person) beneficiaryList.splice(beneficiaryList.indexOf(person), 1)
... ... @@ -552,7 +637,7 @@ Page({
risk_list[len] = {
name: '',
mo: [],
project_time: '',
// project_time: '',
title: '',
num: ''
}
... ... @@ -681,8 +766,11 @@ Page({
})
}
var guarantee_name = e.detail.value
var warranty_two = this.data.warranty_two
warranty_two.num = guarantee_name
this.setData({
guarantee_name: e.detail.value
guarantee_name: e.detail.value,
warranty_two: warranty_two
})
this.countImpletionTime2()
},
... ... @@ -772,8 +860,11 @@ Page({
})
}
var time_name = e.detail.value
var long_money = this.data.long_money
long_money.num = time_name
this.setData({
time_name: time_name
time_name: time_name,
long_money: long_money
})
this.countImpletionTime()
},
... ... @@ -881,18 +972,18 @@ Page({
FamilyId: FamilyId || id,
}
app.post(url, params).then((res) => {
// console.log(res)
var beneficiary_list = this.data.beneficiary_list
for (var i in beneficiary_list) {
beneficiary_list[i].name_array = res.data.data.list
}
// console.log(beneficiary_list)
// 受益人数组
// var beneficiary_list = this.data.beneficiary_list
// for (var i in beneficiary_list) {
// beneficiary_list[i].name_array = res.data.data.list
// }
if (res.data.code == 200) {
this.setData({
insure: res.data.data.list,
recognizee: res.data.data.list,
beneficiary_list: beneficiary_list,
// beneficiary_list: beneficiary_list,
})
}
})
... ... @@ -984,8 +1075,15 @@ Page({
unit3 = type_money
var beneficiary_list = res.data.data.def.favoree
for (var obj in beneficiary_list) {
beneficiary_list[obj].beneficiary_name = beneficiary_list[obj].name
beneficiary_list[obj].name_array = this.data.insure
if (beneficiary_list[obj] != '') {
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
}
}
this.setData({
... ... @@ -1025,12 +1123,16 @@ Page({
this.tempburningTime()
this.tempMain()
this.tempAddRisk()
var favoree = JSON.stringify(this.data.tempfavoree)
if (this.data.tempfavoree.length == 1) {
var favoree = JSON.stringify(this.data.beneficiary_list)
} else {
var favoree = JSON.stringify(this.data.tempfavoree)
}
var warranty_two = JSON.stringify(this.data.warranty_two)
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) {
} else if (this.data.edit_state || 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)
... ... @@ -1042,7 +1144,11 @@ Page({
this.tempburningTime()
this.tempMain()
this.tempAddRisk()
var favoree = JSON.stringify(this.data.tempfavoree)
if (this.data.tempfavoree.length == 1) {
var favoree = JSON.stringify(this.data.beneficiary_list)
} else {
var favoree = JSON.stringify(this.data.tempfavoree)
}
var warranty_two = JSON.stringify(this.data.warranty_two)
var long_money = JSON.stringify(this.data.long_money)
var more = JSON.stringify(this.data.more)
... ... @@ -1069,44 +1175,46 @@ Page({
var continue1 = e.detail.target.dataset.type
var complete = e.detail.target.dataset.type
// else if(firm == '') {
// warn = '请输入所属公司!'
// } else if (applicant == '') {
// warn = '请输入投保人!'
// } else if (recognizee == '') {
// warn = '请输入被保险人!'
// } else if (favoree == '') {
// warn = '请输入受益人!'
// } else if (bank_num == '') {
// warn = '请输入续费账号!'
// } else if (!(/^[0-9]+.?[0-9]*/.test(bank_num))) {
// warn = '请输入正确续费账号!'
// } else if (impletion_time == '') {
// warn = '请输入缴费期满日!'
// } else if (warranty_one == '') {
// warn = '请输入主险保障期!'
// } else if (more == '') {
// warn = '请输入附加险!'
// } else if (picurl.length == 2) {
// warn = '请选择图片!'
// } else if (compact_time == '') {
// warn = '请输入合同生效日!'
// } else if (warranty_two.num == '') {
// warn = '请输入保障期!'
// } else if (long_money.num == '') {
// warn = '请输入缴费时长!'
// } else if (type_money == '') {
// warn = '请输入缴费方式!'
// } else if (bank == '') {
// warn = '请输入续费银行!'
// }
if (in_num == '') {
warn = '请输入保单号!'
} else if (firm == '') {
warn = '请输入所属公司!'
} else if (applicant == '') {
warn = '请输入投保人!'
} else if (recognizee == '') {
warn = '请输入被保险人!'
} else if (favoree == '') {
warn = '请输入受益人!'
} else if (main_risks == '') {
warn = '请输入主险名称!'
} else if (coverage == '') {
warn = '请输入主险基本保额!'
} else if (year_money == '') {
warn = '请输入年交保费!'
} else if (compact_time == '') {
warn = '请输入合同生效日!'
} else if (warranty_two.num == '') {
warn = '请输入保障期!'
} else if (long_money.num == '') {
warn = '请输入缴费时长!'
} else if (type_money == '') {
warn = '请输入缴费方式!'
} else if (bank == '') {
warn = '请输入续费银行!'
} else if (bank_num == '') {
warn = '请输入续费账号!'
} else if (!(/^[0-9]+.?[0-9]*/.test(bank_num))) {
warn = '请输入正确续费账号!'
} else if (impletion_time == '') {
warn = '请输入缴费期满日!'
} else if (warranty_one == '') {
warn = '请输入主险保障期!'
} else if (more == '') {
warn = '请输入附加险!'
// else if (picurl.length == 2) {
// warn = '请选择图片!'
// }
warn = '请输入保费!'
} else {
flag = false
// 添加、修改保单接口调取
... ... @@ -1143,14 +1251,17 @@ Page({
duration: 2000,
})
this.setData({
inforid: 0,
in_num: '',
firm: '',
applicant_name: '',
recognizee_name: '',
// beneficiary_list: [{
// name_array: [],
// unit: ''
// }],
// recognizee_name: '',
beneficiary_list: [{
// name_array: [],
name: '',
unit: ''
}],
coverage: '',
main_risks: '',
main_array: '',
year_money: '',
... ... @@ -1161,7 +1272,13 @@ Page({
bank_num: '',
impletion_time: '',
warranty_one: '',
// risk_list:'',
risk_list: [{
name: '',
mo: [],
// project_time: '',
title: '',
num: ''
}],
imgs: '',
unit: '',
unit2: '',
... ... @@ -1200,6 +1317,7 @@ Page({
InfoId: this.data.inforid || id,
}
app.post(url, params).then((res) => {
console.log(res)
if (res.data.code == 200) {
var warranty_two = res.data.data.def.warranty_two
var unit = this.data.unit
... ... @@ -1212,8 +1330,15 @@ Page({
unit3 = type_money
var beneficiary_list = res.data.data.def.favoree
for (var obj in beneficiary_list) {
beneficiary_list[obj].beneficiary_name = beneficiary_list[obj].name
beneficiary_list[obj].name_array = this.data.insure
if (beneficiary_list[obj] != '') {
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
}
}
var risk_list = res.data.data.def.more
... ... @@ -1285,9 +1410,13 @@ Page({
options.def_id ? that.setData({
def_id: options.def_id,
}) : ""
options.name ? (that.setData({
recognizee_name: options.name
})) : '';
options.FamilyId ? (that.familyMember(options.FamilyId), that.setData({
FamilyId: options.FamilyId
})) : '';
if (wx.getStorageSync('storge_state') && options.inforid == undefined) {
this.getStorage()
}
... ...
... ... @@ -2,6 +2,7 @@
<view class='mask_box' wx:if='{{popup_state}}'>
<view class='popup_box'>
<view class='main_container'>
<view class='iconfont icon-guanbi2' bindtap='cancleMask'></view>
<view class='popup_item'>
<view class='popup_list' wx:for='{{projectlist}}' wx:key=''>
<view bindtap='popupState' data-index='{{index}}'>
... ... @@ -11,7 +12,7 @@
<view class='popup_content'>
<view class='popup_title'>{{item.name}}</view>
<view class='popup_input'>
<!-- {{item.num}} -->
<!-- {{item.num}} -->
<input type='number' placeholder='请输入保额' value="{{item.num!=0?item.num:''}}" bindinput='popupNum' data-index='{{index}}' data-id='{{item.id}}'></input>
<!-- <text>{{item.title}}</text> -->
</view>
... ... @@ -32,7 +33,10 @@
<form bindsubmit='listVerify' wx:else>
<view class='content_item'>
<view class='item_list'>
<view class='list_title'>保单号</view>
<view class='list_title'>
<text class='symbol_icon'>*</text>
<text>保单号</text>
</view>
<view class='list_input'>
<input type='text' placeholder='请输入' name='policy_num' value='{{in_num}}' bindinput='policyNum'></input>
</view>
... ... @@ -54,13 +58,13 @@
<view class='item_list'>
<view class='list_title'>被保险人</view>
<view class='list_input'>
<!-- bindchange='recognizeeSelect' -->
<picker class='picker' range='{{recognizee}}' value='{{recognizeeindex}}' bindchange='recognizeeSelect'>
<!-- bindchange='recognizeeSelect' range='{{recognizee}}' value='{{recognizeeindex}}' -->
<view class='picker'>
<input placeholder='请选择' value='{{recognizee_name}}' disabled='true'></input>
</picker>
</view>
</view>
</view>
<view>
<!-- <view>
<view class='item_list benefic' wx:for='{{beneficiary_list}}' wx:key='' wx:for-index='its'>
<view class='list_title'>受益人</view>
<view class='list_input_box'>
... ... @@ -79,32 +83,60 @@
<view class='iconfont icon-wuuiconxiangjifangda add_person' wx:if="{{beneficiary_list.length<beneficiary_list[0].name_array.length}}" data-mindex='{{its}}' data-sindex='{{index}}' bindtap='addPersons'>
<text>添加受益人</text>
</view>
</view> -->
<!-- 受益人 -->
<view>
<view class='item_list benefic' wx:for='{{beneficiary_list}}' wx:key='' wx:for-index='its'>
<view class='list_title'>受益人</view>
<view class='list_input_box'>
<view class='list_input'>
<input type='text' placeholder='请输入' value='{{item.name}}' data-index='{{its}}' bindinput='addPeople'></input>
</view>
<view class='list_input'>
<input class='income_input' type='text' placeholder='受益比例' value='{{item.unit}}' data-index='{{its}}' bindinput='addUnit2'></input>
<text>%</text>
</view>
</view>
<view class='iconfont icon-guanbi shouyi' bindtap='deletebenefict' wx:if="{{its>0}}" data-index='{{its}}'></view>
</view>
<view class='iconfont icon-wuuiconxiangjifangda add_person' data-mindex='{{its}}' data-sindex='{{index}}' bindtap='addPersons2'>
<text>添加受益人</text>
</view>
</view>
<!-- 受益人 -->
</view>
<view class='content_item'>
<view class='item_list'>
<view class='list_title'>
<text class='symbol_icon'>*</text>
<text>主险名称</text>
</view>
</view>
<view class='list_input'>
<input type='text' placeholder='请填写' name='main_risks' value='{{main_risks}}' bindinput='setRiskName'></input>
</view>
</view>
<view class='item_list'>
<view class='item_list'>
<view class='list_title'>
<!-- <text class='symbol_icon'>*</text> -->
<text class='symbol_icon'>*</text>
<text>主险基本保额</text>
</view>
<view class='list_input'>
<input type='number' placeholder='请填写' name='coverage' value='{{coverage}}' bindinput='setRiskMoney'></input>
</view>
<view class='list_input_box'>
<view class='list_input'>
<input type='number' placeholder='请填写' name='coverage' value='{{coverage}}' bindinput='setRiskMoney'></input>
</view>
<view class='list_input'>
<input class='income_input' type='text' placeholder='请填写' value='万' disabled='true'></input>
</view>
</view>
</view>
<view class='protec_item_box'>
<view>
<view class='protec_item' wx:for='{{main_array}}' wx:key=''>
<view>{{item.name}}</view>
<view class='protec_num'>{{item.num}}
<view class='protec_num'>{{item.num}}
<text wx:if='{{edit_state}}'>{{item.title}}</text>
<block wx:else>
<block wx:for='{{item.title}}' wx:for-item='danwei' wx:key=''>
... ... @@ -183,13 +215,13 @@
<view class='item_list'>
<view class='list_title'>续费银行</view>
<view class='list_input'>
<input type='text' placeholder='请填写' name='bank' value='{{bank}}' bindinput='setBank'></input>
<input type='text' placeholder='请填写' name='bank' value="{{bank}}" bindinput='setBank'></input>
</view>
</view>
<view class='item_list'>
<view class='list_title'>续费账号</view>
<view class='list_input'>
<input type='text' placeholder='请输入末四位' maxlength='4' name='bank_num' value='{{bank_num}}' bindinput='setBankNum'></input>
<input type='text' placeholder='请输入末四位' maxlength='4' name='bank_num' value="{{bank_num!=0?bank_num:''}}" bindinput='setBankNum'></input>
</view>
</view>
... ... @@ -242,7 +274,7 @@
<view class='list_title'>保障期</view>
<view class='list_input_box'>
<view class='list_input'>
<input type='text' placeholder='请输入' name='beneficiary' value='{{item.num}}' data-index='{{index}}' bindinput='addRiskUnit'></input>
<input type='text' placeholder='请输入' confirm-hold='{{focus}}' name='beneficiary' value='{{item.num}}' data-index='{{index}}' bindinput='addRiskUnit'></input>
</view>
<view class='list_label_box'>
<view class="list_label_item {{item.title=='年'?'list_label_active':''}}" bindtap='selectUnit4' data-index="{{index}}" data-unit='年'>年</view>
... ... @@ -294,8 +326,12 @@
<button class='add_btn' data-type='continue1' formType='submit'>继续添加保单</button>
<!--底部按钮 -->
<view class='null_box'></view>
<view class='bottom_box'>
<button class='bottom_btn save_btn' bindtap='setStorge'>暂存</button>
<button class='bottom_btn' data-type='complete' formType='submit'>完成</button>
</view>
<cover-view class='bottom_box'>
<cover-view class='bottom_btn save_btn'>
<button class='bottom_btn save_btn' bindtap='setStorge'>暂存</button>
</cover-view>
<cover-view class='bottom_btn'>
<button class='bottom_btn' style='' data-type='complete' formType='submit'>完成</button>
</cover-view>
</cover-view>
</form>
\ No newline at end of file
... ...
/* pages/my/listDetail/listDetail.wxss */
.protec_item_box {
padding: 0 30rpx;
}
... ... @@ -96,9 +98,11 @@ page {
align-items: center;
font-size: 29rpx;
}
.list_input textarea{
.list_input textarea {
height: 100rpx;
}
.icon-riqi {
font-size: 48rpx;
position: absolute;
... ... @@ -232,6 +236,7 @@ page {
box-shadow: 1rpx 0rpx 1rpx rgba(235, 233, 232, 1);
display: flex;
align-items: center;
justify-content: space-between;
position: fixed;
bottom: 0;
z-index: 55;
... ... @@ -327,26 +332,34 @@ page {
.popup_box {
width: 100%;
position: absolute;
top: 0;
bottom: 0;
left: 0;
height: 100%;
overflow: hidden;
height: 95%;
/* overflow: hidden; */
}
.main_container {
position: relative;
width: 750rpx;
height: 100%;
display: flex;
display: -webkit-flex;
flex-flow: column;
align-items: center;
overflow: hidden;
/* overflow: hidden; */
}
.icon-guanbi2 {
font-size: 45rpx;
color: #0286ff;
position: absolute;
top: -20rpx;
right: 10rpx;
}
.popup_item {
background: #fff;
padding: 0 36rpx;
width: 100%;
padding: 0 20rpx;
box-sizing: border-box;
width: 750rpx;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
... ... @@ -354,9 +367,10 @@ page {
}
.popup_list {
width:100%;
display: flex;
align-items: center;
padding: 0 30rpx;
/* padding: 0 30rpx; */
}
.popup_content {
... ... @@ -366,7 +380,7 @@ page {
padding: 23rpx 0;
font-size: 28rpx;
color: #1a1a1a;
margin-left: 36rpx;
margin-left: 10rpx;
}
.popup_info_box {
... ... @@ -385,7 +399,7 @@ page {
}
.popup_label_item {
width: 82rpx;
width: 84rpx;
height: 62rpx;
background: rgba(255, 255, 255, 1);
border: 1rpx solid rgba(0, 122, 255, 1);
... ... @@ -396,6 +410,7 @@ page {
align-items: center;
justify-content: center;
margin-right: 13rpx;
text-align: center;
}
.popup_label_active {
... ... @@ -440,6 +455,7 @@ page {
.icon-xuanzhongkuang, .icon-fangkuang {
font-size: 40rpx;
color: #e0e0e0;
margin: 0 10rpx;
}
.icon-xuanzhongkuang {
... ...
... ... @@ -42,7 +42,6 @@ Page({
//返回客户信息
addLogs() {
let url = 'counselor/logadd';
app.post(url, {
DefId: this.data.DefId,
... ...
// pages/consultantList/consultantList.js
const app=getApp()
const app = getApp()
Page({
/**
* 页面的初始数据
*/
data: {
list:[],
list: [],
},
// 跳转顾问认证
getList() {
console.log(app.globalData.UserId)
let url = 'member/counselorlist';
let params={
UserId : app.globalData.UserId
let params = {
UserId: app.globalData.UserId
}
app.post(url, params).then((res) => {
console.log(res)
if (res.data.code = 200) {
this.setData({
list: res.data.data.list
})
wx.showLoading({
title: '加载中',
success: function() {
setTimeout(function() {
app.post(url, params).then((res) => {
console.log(res)
if (res.data.code = 200) {
this.setData({
list: res.data.data.list
})
}
}).catch((errMsg) => {
console.log(errMsg)
})
}, 100)
}
}).catch((errMsg) => {
console.log(errMsg)
})
}, 3000)
},
//
listDetail(e){
var CounselorId=e.currentTarget.dataset.id
listDetail(e) {
var CounselorId = e.currentTarget.dataset.id
wx.navigateTo({
url: '/pages/index/editProfile2/editProfile2?CounselorId=' + CounselorId,
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
onLoad: function(options) {
this.getList()
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
onReady: function() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
onShow: function() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
onHide: function() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
onUnload: function() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
onPullDownRefresh: function() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
onReachBottom: function() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
onShareAppMessage: function() {
}
})
\ No newline at end of file
... ...
{
"navigationBarTitleText": "顾问列表"
"navigationBarTitleText": "顾问列表"
}
\ No newline at end of file
... ...
<!--pages/consultantList/consultantList.wxml-->
<view class='no_data' wx:if='{{list.length==0}}'>暂无数据</view>
<view class='content_box' wx:else>
<!-- <view class='no_data' wx:if='{{list.length==0}}'>暂无数据</view> -->
<!-- wx:else -->
<view class='content_box'>
<view class='item_list' wx:for='{{list}}' wx:key='' bindtap='listDetail' data-id='{{item.id}}'>
<view class='banner_box'>
<view class='head_img'>
<image src='{{item.avatar}}'></image>
</view>
<view class='head_info_box'>
<view class='user_name'>{{item.name}}</view>
<view class='user_name'>{{item.name}}
<image wx:if='{{item.approve==1}}' src='/images/verify.png'></image>
</view>
<view class='user_info'>
<text>电话</text>
<text>{{item.mobile}}</text>
... ...
/* pages/consultantList/consultantList.wxss */
page{
background: #F5F5FA;
page {
background: #f5f5fa;
}
.item_list{
.item_list {
display: flex;
align-items: center;
justify-content: space-between;
... ... @@ -10,10 +12,12 @@ page{
margin-top: 16rpx;
padding: 30rpx;
}
.banner_box{
.banner_box {
display: flex;
align-items: center;
}
.head_img {
width: 180rpx;
height: 180rpx;
... ... @@ -27,16 +31,27 @@ page{
width: 100%;
height: 100%;
}
.user_name{
.user_name {
font-size: 32rpx;
font-weight: bold;
color: #000000;
color: #000;
margin-bottom: 30rpx;
display: flex;
align-items: center;
}
.user_name image {
width: 48rpx;
height: 48rpx;
margin-left: 15rpx;
}
.user_info{
.user_info {
font-size: 30rpx;
color: #292525;
}
.icon-jinru{
.icon-jinru {
color: #818181;
}
... ...
... ... @@ -79,10 +79,10 @@ Page({
},
//计算工具
estimationTools() {
weikaifa() {
wx.showModal({
title: '提示',
content: '功能未开发',
content: '功能开发中...',
confirmColor: '#0286FF',
success: function(res) {
if (res.confirm) {
... ...
... ... @@ -13,7 +13,11 @@ Page({
news: [],
hasMoreData: false
},
goIndex() {
wx.switchTab({
url: '/pages/index/index',
})
},
//设置查询的关键词
setKeyWord(e) {
let that = this;
... ... @@ -47,21 +51,6 @@ Page({
classify: res.data.data.menu,
news: res.data.data.news,
})
// if (MenuId == 0) {
// that.setData({
// banner: res.data.data.banner,
// menu: res.data.data.menu,
// news: res.data.data.news,
// MenuId: res.data.data.menu[0].id
// })
// } else {
// that.setData({
// banner: res.data.data.banner,
// menu: res.data.data.menu,
// news: res.data.data.news
// })
// }
}
}).catch((errMsg) => {
console.log(errMsg)
... ... @@ -76,7 +65,7 @@ Page({
url: '../ArticleDetails/ArticleDetails?NewsId=' + NewsId,
})
},
/**
* 生命周期函数--监听页面加载
*/
... ... @@ -116,7 +105,7 @@ Page({
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function() {
wx.stopPullDownRefresh();
},
/**
... ...
... ... @@ -9,7 +9,8 @@
<view class='classify_box'>
<view class='classify_title'>热门分类</view>
<view class='classify_item_box'>
<view class="classify_item {{index==MenuId?'classify_active':''}}" wx:for='{{classify}}' wx:key='' bindtap='chooseClassify' data-id='{{index}}'>{{item.name}}</view>
<view class="classify_item {{0==MenuId?'classify_active':''}}" bindtap='chooseClassify' data-id='0'>最新资讯</view>
<view class="classify_item {{index+1==MenuId?'classify_active':''}}" wx:for='{{classify}}' wx:key='' bindtap='chooseClassify' data-id='{{index+1}}'>{{item.name}}</view>
</view>
</view>
... ... @@ -39,4 +40,8 @@
</view>
</view>
</view>
</view>
<view class='null_box'></view>
<view class='bottom'>
<view class='bottom_box' style='width:100%' bindtap="goIndex">回到首页</view>
</view>
\ No newline at end of file
... ...
... ... @@ -155,3 +155,34 @@ page {
.icon-shu {
font-size: 30rpx;
}
.bottom {
width: 100%;
height: 120rpx;
background: #fff;
position: fixed;
bottom: 0rpx;
left: 50%;
transform: translateX(-50%);
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 30rpx;
box-sizing: border-box;
}
.bottom_box {
width: 45%;
height: 88rpx;
background: rgba(2, 134, 255, 1);
border-radius: 44rpx;
font-size: 36rpx;
color: #fff;
display: flex;
align-items: center;
justify-content: center;
}
.null_box {
width: 100%;
height: 120rpx;
}
... ...
... ... @@ -7,15 +7,21 @@ Page({
*/
data: {
KeyWord: '',
vip_state:false
vip_state: false
},
goIndex() {
wx.switchTab({
url: '/pages/index/index',
})
},
//设置搜索关键词
setkeyword(e) {
this.setData({
KeyWord: e.detail.value
})
},
//
... ... @@ -28,7 +34,7 @@ Page({
var num = e.currentTarget.dataset.num
var index = e.currentTarget.dataset.index
var allinfo = JSON.stringify(e.currentTarget.dataset.allinfo)
this.setData({
allinfo: allinfo
})
... ... @@ -68,7 +74,7 @@ Page({
reportList(e) {
var allinfo = JSON.stringify(e.currentTarget.dataset.allinfo)
wx.navigateTo({
url: '../reportList/reportList?FamilyId=' + e.currentTarget.dataset.familyid+'&allinfo='+allinfo,
url: '../reportList/reportList?FamilyId=' + e.currentTarget.dataset.familyid + '&allinfo=' + allinfo,
})
},
... ...
... ... @@ -12,7 +12,7 @@
<view class='content_box'>
<view class='item_list' wx:for='{{list}}' wx:key='' wx:for-index='indexs' wx:for-item='items'>
<view class='list_left_box'>
<view class='list_label_box' bindtap="{{vip_state?'summaryList':''}}" data-num='{{items.infor}}' data-family_id='{{items.family_id}}' data-allinfo='{{items}}'>
<view class='list_label_box' bindtap="{{vip_state?'summaryList':''}}" data-num='{{items.infor}}' data-family_id='{{items.family_id}}' data-allinfo='{{items}}'>
<view class='iconfont icon-jiating1'></view>
<view>生成报告</view>
<text class='peoper_num'>{{items.infor}}</text>
... ... @@ -22,7 +22,7 @@
<view class='label_item' bindtap='policyList' wx:for='{{items.users}}' wx:for-item='item' wx:for-index="index" wx:key id='{{item.id}}'>
<text>{{item.name}}({{item.family_role}})</text>
<text class='iconfont icon-yuan' wx:if='{{item.user_family==1}}'></text>
</view>
<!-- <view class='label_item'>
<text>曹文正(爸爸)</text>
... ... @@ -45,4 +45,8 @@
</view>
</view>
</view>
</view>
<view class='null_box'></view>
<view class='bottom'>
<view class='bottom_box' style='width:100%' bindtap="goIndex">回到首页</view>
</view>
\ No newline at end of file
... ...
... ... @@ -7,24 +7,32 @@ Page({
*/
data: {
personalpolicylist: [],
DefId: ''//客户Id
DefId: '' //客户Id
},
// 个人保单列表接口调取
personalPolicyList() {
var that=this
let url = 'counselor/definfor'
let params = {
DefId: this.data.DefId
}
app.post(url, params).then((res) => {
console.log(res)
if (res.data.code == 200) {
this.setData({
personalpolicylist: res.data.data.list
})
console.log(res.data.data.list)
wx.showLoading({
title: '加载中',
success: function() {
setTimeout(function() {
app.post(url, params).then((res) => {
console.log(res)
if (res.data.code == 200) {
that.setData({
personalpolicylist: res.data.data.list
})
console.log(res.data.data.list)
}
})
}, 100)
}
})
}, 3000)
},
listDetail(e) {
... ... @@ -39,7 +47,7 @@ Page({
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
onLoad: function(options) {
let that = this;
console.log(options.DefId);
that.setData({
... ... @@ -52,49 +60,49 @@ Page({
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
onReady: function() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
onShow: function() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
onHide: function() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
onUnload: function() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
onPullDownRefresh: function() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
onReachBottom: function() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
onShareAppMessage: function() {
}
})
\ No newline at end of file
})
\ No newline at end of file
... ...
<!--pages/my/policyList/policyList.wxml-->
<view wx:if='{{personalpolicylist.length==0}}' class='no_data'>暂无数据</view>
<block wx:else>
<!-- <view wx:if='{{personalpolicylist.length==0}}' class='no_data'>暂无数据</view> -->
<!-- <block wx:else> -->
<view class='content_item' bindtap='listDetail' wx:for='{{personalpolicylist}}' wx:key='' data-id='{{item.id}}'>
<view class='content_title'>{{item.firm}}</view>
<view class='content_type'>
... ... @@ -24,4 +24,4 @@
<text>{{item.in_num}}</text>
</view>
</view>
</block>
\ No newline at end of file
<!-- </block> -->
\ No newline at end of file
... ...
// pages/PolicyList/PolicyList.js
const app=getApp()
const app = getApp()
Page({
/**
... ... @@ -7,9 +7,20 @@ Page({
*/
data: {
policylist: [],
DefId: ''//客户Id
DefId: '' //客户Id
},
makePhoneCall(e) {
let that = this;
var policylist = that.data.policylist
var index = e.currentTarget.dataset.index
var phoneNumber = policylist[index].umobile
wx.makePhoneCall({
phoneNumber: phoneNumber
})
},
//
listDetail(e) {
var InId = e.currentTarget.dataset.id
... ... @@ -25,14 +36,21 @@ Page({
let params = {
UserId: app.globalData.UserId
}
wx.showLoading({
title: '加载中',
success: function() {
setTimeout(function() {
app.post(url, params).then((res) => {
console.log(res)
that.setData({
policylist: res.data.data.list
})
console.log(that.data.policylist)
})
}, 100)
}
}, 3000)
app.post(url, params).then((res) => {
console.log(res)
that.setData({
policylist: res.data.data.list
})
console.log(that.data.policylist)
})
},
... ... @@ -40,7 +58,7 @@ Page({
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
onLoad: function(options) {
let that = this;
console.log(options.DefId);
... ...
<!--pages/PolicyList/PolicyList.wxml-->
<view class='no_data' wx:if='{{policylist.length==0}}'>暂无数据</view>
<block wx:else>
<view class='content_box' wx:for='{{policylist}}' wx:key='' bindtap='listDetail' data-id='{{item.id}}'>
<view class='item_list'>
<view class='list_title_box'>
<view>
<text class='user_name'>{{item.recognizee}}</text>
<text class='phone_num'>{{item.umobile}}</text>
</view>
<view class='list_icon_box'>
<view class='iconfont icon-dianhua2'></view>
</view>
<!-- <view class='no_data' wx:if='{{policylist.length==0}}'>暂无数据</view> -->
<!-- <block wx:else> -->
<view class='content_box' wx:for='{{policylist}}' wx:key='' bindtap='listDetail' data-id='{{item.id}}'>
<view class='item_list'>
<view class='list_title_box'>
<view>
<text class='user_name'>{{item.recognizee}}</text>
<text class='phone_num'>{{item.umobile}}</text>
</view>
<view class='list_content_box'>
<view>
<text class='list_info'>被保险人:{{item.recognizee}}</text>
</view>
<view>
<text class='list_title'>主险名称</text>
<text>平安保险</text>
</view>
<view>
<text class='list_title'>生效日</text>
<text>{{item.compact_time}}</text>
</view>
<view>
<text class='list_title'>保额</text>
<text>{{item.coverage}}万元</text>
</view>
<view>
<text class='list_title'>保费</text>
<text>10万元</text>
</view>
<view class='list_icon_box' catchtap='makePhoneCall' data-index='{{index}}'>
<view class='iconfont icon-dianhua2'></view>
</view>
</view>
<view class='list_content_box'>
<view>
<text class='list_info'>被保险人:{{item.recognizee}}</text>
</view>
<view>
<text class='list_title'>主险名称</text>
<text>平安保险</text>
</view>
<view>
<text class='list_title'>生效日</text>
<text>{{item.compact_time}}</text>
</view>
<view>
<text class='list_title'>保额</text>
<text>{{item.coverage}}万元</text>
</view>
<view>
<text class='list_title'>保费</text>
<text>10万元</text>
</view>
</view>
</view>
</view>
</block>
\ No newline at end of file
<!-- </block> -->
\ No newline at end of file
... ...
... ... @@ -25,8 +25,8 @@ PAGE{
margin-left: 30rpx;
}
.list_icon_box {
width: 36rpx;
height: 36rpx;
width: 50rpx;
height: 50rpx;
background: linear-gradient(-30deg, rgba(2, 134, 255, 1), rgba(71, 167, 255, 1));
opacity: 0.8;
border-radius: 50%;
... ... @@ -36,7 +36,7 @@ PAGE{
}
.icon-dianhua2 {
font-size: 20rpx;
font-size: 35rpx;
color: #fff;
}
.list_content_box{
... ...
... ... @@ -27,7 +27,7 @@
<view class='list_title'>受益人</view>
<view class='list_input'>
<text>{{item.name}} </text>
<text>{{item.unit}}% </text>
<text>{{item.unit?item.unit+'%':''}} </text>
</view>
</view>
... ...
... ... @@ -7,16 +7,16 @@ Page({
*/
data: {
inforlist: [],
mainid:''
mainid: ''
},
//添加保单
addList(e) {
let def_id = e.currentTarget.dataset.id
let FamilyId = this.data.FamilyId
var name=e.currentTarget.dataset.name
var name = e.currentTarget.dataset.name
wx.navigateTo({
url: '../addListDetail/addListDetail?def_id=' + e.currentTarget.id + '&FamilyId=' + FamilyId +'&name='+name
url: '../addListDetail/addListDetail?def_id=' + e.currentTarget.id + '&FamilyId=' + FamilyId + '&name=' + name
})
},
... ... @@ -41,7 +41,7 @@ Page({
//删除保单
delPolicy(e) {
let inforid = e.currentTarget.dataset.inforid; //保单id
var that=this
var that = this
wx.showModal({
title: '提示',
content: '确认要删除吗?',
... ... @@ -85,25 +85,37 @@ Page({
wx.navigateTo({
url: '../remind/remind?mainid=' + mainid,
})
},
},
//获取保单列表
getData() {
let url = 'counselor/familyinfor';
let that = this;
app.post(url, {
FamilyId: that.data.FamilyId
}).then((res) => {
console.log(res)
if (res.data.code == 200) {
that.setData({
inforlist: res.data.data.inforlist,
mainid: res.data.data.inforlist[0].def_id
})
wx.showLoading({
title: '加载中',
success: function() {
setTimeout(function() {
app.post(url, {
FamilyId: that.data.FamilyId
}).then((res) => {
console.log(res)
if (res.data.code == 200) {
that.setData({
inforlist: res.data.data.inforlist,
mainid: res.data.data.inforlist[0].def_id
})
}
}).catch((errMsg) => {
console.log(errMsg)
})
}, 100)
}
}).catch((errMsg) => {
console.log(errMsg)
})
}, 3000)
},
/**
... ...
<!--pages/indexs/policy_manage/policy_manage.wxml-->
<view wx:if='{{inforlist.length==0}}' class='no_data'>暂无数据</view>
<block wx:else>
<!-- <view wx:if='{{inforlist.length==0}}' class='no_data'>暂无数据</view> -->
<!-- <block wx:else> -->
<view class='item_box' wx:for='{{inforlist}}' wx:for-index='indexs' wx:for-item="items" wx:key>
<view class='item_title_box item_top'>
<view class='user_name'>{{items.name}}</view>
... ... @@ -34,4 +34,4 @@
<view class='bottom_btn' bindtap='periodicReviews'>返回保单体检</view>
<view class='bottom_btn bottom_btn_active' bindtap='goRemind'>客户跟踪</view>
</view>
</block>
\ No newline at end of file
<!-- </block> -->
\ No newline at end of file
... ...
... ... @@ -10,8 +10,8 @@
<block wx:else>
<view class='banner_box'>
<view class='head_portrait'>
<text class='iconfont icon-anquan'></text>
<!-- <image src='{{userinfo.picurl}}'></image> -->
<!-- <text class='iconfont icon-anquan'></text> -->
<image src='/images/logo.png'></image>
</view>
<view class='banner_info'>{{promote_language}}</view>
</view>
... ...
... ... @@ -16,7 +16,7 @@ picker {
.head_portrait {
width: 120rpx;
height: 120rpx;
background: linear-gradient(-30deg, rgba(73, 90, 255, 1), rgba(10, 207, 254, 1));
/* background: linear-gradient(-30deg, rgba(73, 90, 255, 1), rgba(10, 207, 254, 1)); */
border-radius: 24rpx;
display: flex;
align-items: center;
... ... @@ -37,7 +37,8 @@ picker {
.banner_info {
width: 475rpx;
margin-left: 32rpx;
font-size: 28rpx;
font-size: 32rpx;
font-weight: bold;
color: #1a1a1a;
}
... ...
... ... @@ -2,7 +2,7 @@
const app = getApp()
const pickerFile = require('../../picker/picker_datetime.js');
var util = require('../../../utils/time.js')
var cellId;
var date = new Date();
var years = [];
... ... @@ -66,16 +66,17 @@ Page({
def: [],
warn: [],
remind_times: ['提前一天 08:00', '提前两天 08:00', '提前三天 08:00', '提前四天 08:00', '提前五天 08:00'],
remind_time:'',
index:-1,
remind_time: '',
index: -1,
years: years,
months: months,
days: days,
hours: hours,
minutes: minutes,
seconds: seconds,
appointment_time:'',
level_state:false
appointment_time: '',
level_state: false,
time_state:false
},
// 打电话
... ... @@ -96,13 +97,13 @@ Page({
})
},
showLevel: function () {
showLevel: function() {
this.setData({
level_state: true
})
},
cancleMask: function () {
cancleMask: function() {
this.setData({
level_state: false
})
... ... @@ -153,11 +154,11 @@ Page({
//提醒时间
remindTime(e) {
var remind_times=this.data.remind_times
var remind_times = this.data.remind_times
var remind_time = this.data.remind_times[e.detail.value]
this.setData({
index: e.detail.value,
remind_time:remind_time
remind_time: remind_time
})
},
... ... @@ -181,7 +182,7 @@ Page({
remind_time: '',
follow_time: '',
place: '',
index:-1
index: -1
})
},
... ... @@ -193,7 +194,7 @@ Page({
var params = {
UserId: app.globalData.UserId,
family_id: family_id,
warn_time: parseInt(this.data.index)+1,
warn_time: parseInt(this.data.index) + 1,
text_time: this.data.follow_time,
text: this.data.place,
}
... ... @@ -235,30 +236,36 @@ Page({
getData() {
let url = 'counselor/deflook';
var that = this;
app.post(url, {
UserId: app.globalData.UserId,
DefId: that.data.mainid
}).then((res) => {
console.log(res)
if (res.data.code == 200) {
var time= res.data.data.warn.warn_time
var index=parseInt(time)-1
that.setData({
def: res.data.data.def,
label: res.data.data.label,
level: res.data.data.level,
log: res.data.data.log,
warn: res.data.data.warn,
follow_time: res.data.data.warn.text_time,
place: res.data.data.warn.text,
index: index
})
// that.warnBox()
// that.trackBox()
}
}).catch((errMsg) => {
console.log(errMsg)
})
// wx.showLoading({
// title: '加载中',
// success: function() {
// setTimeout(function() {
app.post(url, {
UserId: app.globalData.UserId,
DefId: that.data.mainid
}).then((res) => {
if (res.data.code == 200) {
var time = res.data.data.warn.warn_time
var index = parseInt(time) - 1
that.setData({
def: res.data.data.def,
label: res.data.data.label,
level: res.data.data.level,
log: res.data.data.log,
warn: res.data.data.warn,
follow_time: res.data.data.warn.text_time,
place: res.data.data.warn.text,
index: index
})
// that.warnBox()
// that.trackBox()
}
}).catch((errMsg) => {
console.log(errMsg)
})
// },2000)
// },
// })
},
// 滑动事件
... ... @@ -267,7 +274,7 @@ Page({
var temp_year = new Date().getFullYear()
// 获取天数
days = getDays(val[0] + temp_year, val[1] + 1);
var follow_time = this.data.years[val[0]] + '-' + this.data.months[val[1]] + '-' + this.data.days[val[2]] + ' ' + this.data.hours[val[3]] + ':' + this.data.minutes[val[4]]
var follow_time = this.data.years[val[0]] + '-' + this.data.months[val[1]] + '-' + this.data.days[val[2]] + ' ' + this.data.hours[val[3]] + ':' + this.data.minutes[val[4]]
this.setData({
days: days,
... ... @@ -293,6 +300,9 @@ Page({
show = true;
t = 0;
}
this.setData({
time_state:false
})
// this.animation.translate(arr[0], arr[1]).step();
animationEvents(this, moveY, show);
},
... ... @@ -303,6 +313,9 @@ Page({
moveY = 200;
show = true;
t = 0;
this.setData({
time_state: true
})
animationEvents(this, moveY, show);
},
... ... @@ -310,14 +323,13 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function(options) {
options.cid?(this.setData({
options.cid ? (this.setData({
cid: options.cid,
})):''
options.mainid?this.setData({
})) : ''
options.mainid ? this.setData({
mainid: options.mainid
}):''
}) : ''
this.getData()
cellId = options.cellId;
var that = this;
//获取时间
... ... @@ -335,12 +347,16 @@ Page({
second: zeroPadding(nowSecond),
value: [nowYear - temp_year, nowMonth - 1, nowDay - 1, nowHour, nowMinute, nowSecond]
})
var follow_time = that.data.year + '-' + that.data.month + '-' + that.data.day + ' ' + that.data.hour + ':' + that.data.minute
var follow_time = that.data.year + '-' + that.data.month + '-' + that.data.day + ' ' + that.data.hour + ':' + that.data.minute
that.setData({
// follow_time: follow_time
})
setTimeout(function(){
that.setData({
time_state:true
})
},300)
},
/**
... ...
... ... @@ -48,34 +48,36 @@
</view> -->
</view>
<!-- <block wx:if='{{!edit_state}}'> -->
<!-- <view class='list_info_box'> -->
<!-- {{warn.warn_time!=''?'08:00':''}} -->
<!-- <view class='list_info_item'>提醒时间:{{remind_times[index]}}</view>
<!-- <view class='list_info_box'> -->
<!-- {{warn.warn_time!=''?'08:00':''}} -->
<!-- <view class='list_info_item'>提醒时间:{{remind_times[index]}}</view>
<view class='list_info_item'>跟踪时间:{{warn.text_time}}</view>
<view class='list_info_item'>提醒内容:{{warn.text}}</view>
</view> -->
<!-- </block> -->
<!-- <block wx:else> -->
<view class='list_info_box'>
<view class='list_info_item'>
<view class='item_title'>提醒时间:</view>
<picker value='{{index}}' range='{{remind_times}}' bindchange="{{edit_state?'remindTime':''}}">
<!-- {{remind_time!=''?'08:00':''}} -->
<input placeholder='请选择' value="{{remind_times[index]}}" disabled='true'></input>
</picker>
</view>
<view class='list_info_item' bindtap="{{edit_state?'translate':''}}">
<view class='item_title'>跟踪时间:</view>
<!-- <picker mode='date' value='{{follow_time}}' bindchange='followTime'> -->
<input placeholder='请选择' value='{{follow_time}}' disabled='true'></input>
<!-- </picker> -->
</view>
<view class='list_info_item'>
<view class='item_title'>提醒内容:</view>
<view class='list_info_box'>
<view class='list_info_item'>
<view class='item_title'>提醒时间:</view>
<picker value='{{index}}' range='{{remind_times}}' bindchange="{{edit_state?'remindTime':''}}">
<!-- {{remind_time!=''?'08:00':''}} -->
<input placeholder='请选择' value="{{remind_times[index]}}" disabled='true'></input>
</picker>
</view>
<view class='list_info_item' bindtap="{{edit_state?'translate':''}}">
<view class='item_title'>跟踪时间:</view>
<!-- <picker mode='date' value='{{follow_time}}' bindchange='followTime'> -->
<input placeholder='请选择' value='{{follow_time}}' disabled='true'></input>
<!-- </picker> -->
</view>
<view class='list_info_item'>
<view class='item_title'>提醒内容:</view>
<block wx:if='{{time_state}}'>
<textarea placeholder='请输入' maxlength='50' value='{{place}}' bindinput='place' disabled='{{!edit_state}}'></textarea>
</view>
</block>
</view>
</view>
<!-- </block> -->
<view class='list_bottom'>
<view class='list_btn' bindtap="{{edit_state?'nullValue':''}}">清空</view>
... ...
... ... @@ -111,6 +111,7 @@
font-size: 28rpx;
color: #000;
margin-top: 30rpx;
}
.content_box {
... ...
// pages/reportList/reportList.js
const app=getApp()
const app = getApp()
Page({
/**
... ... @@ -17,19 +17,34 @@ Page({
medicalReportList() {
let url = 'counselor/publishlist';
let that = this;
app.post(url, {
FamilyId: that.data.FamilyId,
UserId: app.globalData.UserId
}).then((res) => {
console.log(res)
if (res.data.code == 200) {
that.setData({
medicalreportlist: res.data.data.users
})
wx.showLoading({
title: '加载中',
success: function() {
setTimeout(function() {
app.post(url, {
FamilyId: that.data.FamilyId,
UserId: app.globalData.UserId
}).then((res) => {
console.log(res)
if (res.data.code == 200) {
that.setData({
medicalreportlist: res.data.data.users
})
if (res.data.data.users==''){
wx.showToast({
title: '暂无数据',
icon:'none'
})
}
}
}).catch((errMsg) => {
console.log(errMsg)
})
}, 100)
}
}).catch((errMsg) => {
console.log(errMsg)
})
},3000)
},
... ... @@ -54,10 +69,10 @@ Page({
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
onLoad: function(options) {
this.setData({
FamilyId: options.FamilyId,
allinfo:options.allinfo
allinfo: options.allinfo
})
this.medicalReportList()
},
... ... @@ -65,49 +80,49 @@ Page({
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
onReady: function() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
onShow: function() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
onHide: function() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
onUnload: function() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
onPullDownRefresh: function() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
onReachBottom: function() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
onShareAppMessage: function() {
}
})
\ No newline at end of file
... ...
<!--pages/Program/Program.wxml-->
<view wx:if='{{medicalreportlist.length==0}}' class='no_data'>暂无数据</view>
<view wx:else>
<!-- <view wx:if='{{medicalreportlist.length==0}}' class='no_data'>暂无数据</view> -->
<!-- <view wx:else> -->
<view class='box' wx:for='{{medicalreportlist}}' wx:for_item='item' wx:for-index='index' wx:key=''>
<view class='content_box'>
<view class='list_time'>
... ... @@ -15,4 +15,4 @@
<view class='list_btn add_btn' bindtap='summaryList' data-id='{{item.id}}'>查看</view>
</view>
</view>
</view>
\ No newline at end of file
<!-- </view> -->
\ No newline at end of file
... ...
... ... @@ -20,14 +20,22 @@ Page({
let params = {
UserId: app.globalData.UserId
}
app.post(url, params).then((res) => {
console.log(res)
if (res.data.code == 200) {
this.setData({
medicalreportlist: res.data.data.list,
})
wx.showLoading({
title: '加载中',
success: function() {
setTimeout(function() {
app.post(url, params).then((res) => {
console.log(res)
if (res.data.code == 200) {
this.setData({
medicalreportlist: res.data.data.list,
})
}
})
}, 100)
}
})
}, 3000)
},
... ... @@ -45,56 +53,56 @@ Page({
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
onLoad: function(options) {
this.medicalReportList()
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
onReady: function() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
onShow: function() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
onHide: function() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
onUnload: function() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
onPullDownRefresh: function() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
onReachBottom: function() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
onShareAppMessage: function() {
}
})
\ No newline at end of file
... ...
<!--pages/Program/Program.wxml-->
<view wx:if='{{medicalreportlist.length==0}}' class='no_data'>暂无数据</view>
<view wx:else>
<view class='box' wx:for='{{medicalreportlist}}' wx:for_item='item' wx:for-index='index' wx:key=''>
<view class='content_box'>
<view class='list_time'>
<text>{{item.create_time}}</text>
</view>
<view class='list_content'>顾问姓名:{{item.counselor}}</view>
<view class='list_content'>被保险人:{{item.defs_name}}</view>
</view>
<view class='list_btn_box'>
<view class='list_btn add_btn' bindtap='summaryList' id='{{item.id}}'>查看</view>
<!-- <view wx:if='{{medicalreportlist.length==0}}' class='no_data'>暂无数据</view> -->
<!-- <view wx:else> -->
<view class='box' wx:for='{{medicalreportlist}}' wx:for_item='item' wx:for-index='index' wx:key=''>
<view class='content_box'>
<view class='list_time'>
<text>{{item.create_time}}</text>
</view>
<view class='list_content'>顾问姓名:{{item.counselor}}</view>
<view class='list_content'>被保险人:{{item.defs_name}}</view>
</view>
<view class='list_btn_box'>
<view class='list_btn add_btn' bindtap='summaryList' id='{{item.id}}'>查看</view>
</view>
</view>
\ No newline at end of file
</view>
<!-- </view> -->
\ No newline at end of file
... ...
... ... @@ -64,7 +64,7 @@
<view class='content_title'>
<text class='line'></text>
<text class='title'>家庭成员</text>
</view>
</view>
</view>
<view class='member'>
<view class="member_list {{item.member_state?'member_active':''}}" wx:for='{{familymember}}' wx:key='' data-index='{{index}}' bindtap='memberCharge'>{{item.name}}</view>
... ... @@ -104,7 +104,9 @@
</view>
<!-- 缺口保障推荐方案 -->
<view class='plan_box'>
<view class='plan_title'>保障缺口推荐方案 <text class='info'>(选填)</text></view>
<view class='plan_title'>保障缺口推荐方案
<text class='info'>(选填)</text>
</view>
<view class='plan_content' wx:for='{{caselist}}' wx:key='' wx:if="{{item.choose_state}}">
<!-- <view class='iconfont icon-guanbi'></view> -->
<view class='plan_list'>
... ... @@ -198,12 +200,17 @@
</view>
<view class='item_list'>
<view class='list_title'>{{item.main_risks}}</view>
<!-- <view class='list_title' >你好的JFK第三</view> -->
<!-- style='white-space: normal;' -->
</view>
<view class='item_list'>
<view class='list_title'>{{item.firm}}</view>
<view class='list_title' wx:if='{{item.firm}}'>{{item.firm}}</view>
<view class='list_title' style='color:#fff' wx:else>无</view>
</view>
<view class='item_list'>
<view class='list_title'>{{item.compact_time}}</view>
<view class='list_title' wx:if='{{item.compact_time}}'>{{item.compact_time}}</view>
<view class='list_title' style='color:#fff' wx:else>无</view>
</view>
<view class='item_list' wx:for='{{item.more}}' wx:key='' wx:for-item='its'>
<view class='list_title'>{{its.num}} </view>
... ... @@ -220,6 +227,6 @@
<view class='null_box'></view>
<view class='bottom_box'>
<button class='plan_btn' data-status='{{status}}' bindtap="{{save_state?'saveInfo':''}}">保存</button>
<button class="plan_btn2 {{shareState?'plan_active':''}}" open-type="{{shareState?'share':''}}" data-status='{{status}}'>发送给客户</button>
<button class="plan_btn2 {{shareState?'plan_active':''}}" open-type="{{shareState?'share':''}}" data-status='{{status}}'>发送给客户</button>
</view>
</block>
\ No newline at end of file
... ...
... ... @@ -9,6 +9,7 @@
page {
background: #f5f5fa;
}
.icon-guanbi2 {
... ... @@ -171,12 +172,12 @@ page {
}
.icon-fangkuang {
font-size: 32rpx;
font-size: 40rpx;
color: #ebebeb;
}
.icon-xuanzhongkuang {
font-size: 32rpx;
font-size: 40rpx;
color: #0286ff;
}
... ... @@ -188,19 +189,24 @@ page {
}
.list_title_box {
min-width: 185rpx;
/* min-width: 185rpx; */
width: auto;
}
.scroll_content_box {
width: 100%;
width: 150%;
display: flex;
flex-wrap: nowrap;
}
.list_content_box {
min-width: 300rpx;
/* min-width: 300rpx; */
width: auto;
margin-right: 10rpx;
}
.list_content_box:last-child{
margin-right: 30rpx;
}
.item_list {
width: 100%;
display: flex;
... ...
<!-- 保单报告 -->
<view class='top_box'>
<view class='banner_title'>您的家庭保单体检报告</view>
<view class='banner_content'>致:{{touser}}</view>
<!-- 保单报告 -->
<view class='top_box'>
<view class='banner_title'>您的家庭保单体检报告</view>
<view class='banner_content'>致:{{touser}}</view>
</view>
<!-- 保险顾问 -->
<view class='personal_box'>
<view class='banner_box'>
<view class='content_title'>
<text class='line'></text>
<text class='title'>您的保险顾问</text>
</view>
</view>
<!-- 保险顾问 -->
<view class='personal_box'>
<view class='banner_box'>
<view class='content_title'>
<text class='line'></text>
<text class='title'>您的保险顾问</text>
<view class='personal_content'>
<view class='head_box'>
<view class='head_portrait'>
<image src='{{userinfo.avatar}}'></image>
</view>
</view>
<view class='personal_content'>
<view class='head_box'>
<view class='head_portrait'>
<image src='{{userinfo.avatar}}'></image>
<view>
<view class='name'>{{userinfo.name}}
<!-- <text class='position'>222</text> -->
</view>
<view>
<view class='name'>{{userinfo.name}}
<!-- <text class='position'>222</text> -->
</view>
<view>电话 {{userinfo.mobile}}</view>
</view>
</view>
<view class='list_icon_box'>
<view class='iconfont icon-dianhua2' bindtap='makePhoneCall'></view>
<view>电话 {{userinfo.mobile}}</view>
</view>
</view>
</view>
<!-- 家庭成员 -->
<view class='box'>
<view class='banner_box'>
<view class='content_title'>
<text class='line'></text>
<text class='title'>家庭成员</text>
</view>
<view class='list_icon_box'>
<view class='iconfont icon-dianhua2' bindtap='makePhoneCall'></view>
</view>
<view class='member'>
<view class="member_list member_active" wx:for='{{familymember}}' wx:key='' data-index='{{index}}' >{{item.name}}</view>
</view>
</view>
<!-- 家庭成员 -->
<view class='box'>
<view class='banner_box'>
<view class='content_title'>
<text class='line'></text>
<text class='title'>家庭成员</text>
</view>
</view>
<view class='member'>
<view class="member_list member_active" wx:for='{{familymember}}' wx:key='' data-index='{{index}}'>{{item.name}}</view>
</view>
</view>
<view>
<!-- 保单选项 -->
<view class='tab_box'>
<view class="tab_item {{tab_state==0?'tab_active':''}}" data-index='0' bindtap='tabCharge'>报告与建议</view>
<view class="tab_item {{tab_state==1?'tab_active':''}}" data-index='1' bindtap='tabCharge'>保额汇总</view>
<view class="tab_item {{tab_state==2?'tab_active':''}}" data-index='2' bindtap='tabCharge'>保单明细</view>
</view>
<view>
<!-- 保单选项 -->
<view class='tab_box'>
<view class="tab_item {{tab_state==0?'tab_active':''}}" data-index='0' bindtap='tabCharge'>报告与建议</view>
<view class="tab_item {{tab_state==1?'tab_active':''}}" data-index='1' bindtap='tabCharge'>保额汇总</view>
<view class="tab_item {{tab_state==2?'tab_active':''}}" data-index='2' bindtap='tabCharge'>保单明细</view>
</view>
<!-- 报告与建议 -->
<view class='report_box' wx:if='{{tab_state==0}}'>
<view class='medical_report_box'>
<view class='banner_box'>
<view class='content_title'>
<text class='title'>体检报告</text>
</view>
</view>
<view class='report_content'>
<textarea value='{{report}}' focus='' disabled='true'></textarea>
<!-- 报告与建议 -->
<view class='report_box' wx:if='{{tab_state==0}}'>
<view class='medical_report_box'>
<view class='banner_box'>
<view class='content_title'>
<text class='title'>体检报告</text>
</view>
</view>
<view class='medical_report_box'>
<view class='banner_box'>
<view class='content_title'>
<text class='title'>建议</text>
</view>
</view>
<view class='report_content'>
<textarea value='{{advise}}' focus='' disabled='true'></textarea>
<view class='report_content'>
<textarea value='{{report}}' focus='' disabled='true'></textarea>
</view>
</view>
<view class='medical_report_box'>
<view class='banner_box'>
<view class='content_title'>
<text class='title'>建议</text>
</view>
</view>
<!-- 缺口保障推荐方案 -->
<view class='plan_box'>
<view class='plan_title'>缺口保障推荐方案(选填)</view>
<view class='plan_content' wx:for='{{recommend}}' wx:key='' >
<!-- <view class='iconfont icon-guanbi'></view> -->
<view class='plan_list'>
<view class='plan_name'>产品名称</view>
<view class='plan_input'>
<input type='text' placeholder='重大疾病保' value='{{item.name}}' disabled='true'></input>
</view>
<view class='report_content'>
<textarea value='{{advise}}' focus='' disabled='true'></textarea>
</view>
</view>
<!-- 缺口保障推荐方案 -->
<view class='plan_box'>
<view class='plan_title'>缺口保障推荐方案(选填)</view>
<view class='plan_content' wx:for='{{recommend}}' wx:key=''>
<!-- <view class='iconfont icon-guanbi'></view> -->
<view class='plan_list'>
<view class='plan_name'>产品名称</view>
<view class='plan_input'>
<input type='text' placeholder='重大疾病保' value='{{item.name}}' disabled='true'></input>
</view>
<view class='plan_list'>
<view class='plan_name'>保险公司</view>
<view class='plan_input'>
<input type='text' placeholder='重大疾病保' value='{{item.firm}}' disabled='true'></input>
</view>
</view>
<view class='plan_list'>
<view class='plan_name'>保险公司</view>
<view class='plan_input'>
<input type='text' placeholder='重大疾病保' value='{{item.firm}}' disabled='true'></input>
</view>
<view class='plan_list'>
<view class='plan_name'>保障内容</view>
<view class='plan_input'>
<textarea placeholder='请输入保障内容' value='{{item.text}}' class='area_box' disabled='true'>
</textarea>
</view>
</view>
<view class='plan_list'>
<view class='plan_name'>保障内容</view>
<view class='plan_input'>
<textarea placeholder='请输入保障内容' value='{{item.text}}' class='area_box' disabled='true'>
</textarea>
</view>
</view>
</view>
</view>
</view>
<!-- 保额汇总 -->
<block wx:elif='{{tab_state==1}}'>
<view class='summary_item' wx:for='{{collect}}' wx:key='' wx:for-index='mindex'>
<view class='summary_info'>{{item.name}}</view>
<view class='summary_box'>
<view class='summary_title_box'>
<view class='summary_title'>保障类别</view>
<view class='summary_title'>实际保额</view>
<view class='summary_title'>建议保额</view>
<view class='summary_title'>保障缺口</view>
</view>
<view class='summary_content_box'>
<view class='summary_list' wx:for='{{item.list}}' wx:key wx:for-item='its' wx:for-index='sindex'>
<view class='summary_content'>{{its.name}}</view>
<view class='summary_content'>{{its.text}}</view>
<view class='summary_content forehead'>
<input type='number' placeholder='' value="{{its.plan}}" focus='' disabled='true'></input>
</view>
<view class='summary_content'>{{its.gap!=''?its.gap:'-'}}</view>
<!-- 保额汇总 -->
<block wx:elif='{{tab_state==1}}'>
<view class='summary_item' wx:for='{{collect}}' wx:key='' wx:for-index='mindex'>
<view class='summary_info'>{{item.name}}</view>
<view class='summary_box'>
<view class='summary_title_box'>
<view class='summary_title'>保障类别</view>
<view class='summary_title'>实际保额</view>
<view class='summary_title'>建议保额</view>
<view class='summary_title'>保障缺口</view>
</view>
<view class='summary_content_box'>
<view class='summary_list' wx:for='{{item.list}}' wx:key wx:for-item='its' wx:for-index='sindex'>
<view class='summary_content'>{{its.name}}</view>
<view class='summary_content'>{{its.text}}</view>
<view class='summary_content forehead'>
<input type='number' placeholder='' value="{{its.plan}}" focus='' disabled='true'></input>
</view>
<view class='summary_content'>{{its.gap!=''?its.gap:'-'}}</view>
</view>
</view>
</view>
</block>
<!-- 保单明细 -->
<block class='' wx:elif='{{tab_state==2}}'>
<view class='banner_info'>向左滑动查看更多内容</view>
<view class=''>
<view class='content_item_box'>
<view class='list_title_box'>
<view class='item_list'>
<view class='list_title'>被保险人</view>
</view>
<view class='item_list'>
<view class='list_title'>保单号</view>
</view>
<view class='item_list'>
<view class='list_title'>产品名称</view>
</view>
<view class='item_list'>
<view class='list_title'>保险公司</view>
</view>
<view class='item_list'>
<view class='list_title'>生效日期</view>
</view>
<view class='item_list' wx:for='{{guarantee}}' wx:key='' wx:for-item='sit'>
<view class='list_title'>{{sit.name}}</view>
</view>
</view>
</block>
<!-- 保单明细 -->
<block class='' wx:elif='{{tab_state==2}}'>
<view class='banner_info'>向左滑动查看更多内容</view>
<view class=''>
<view class='content_item_box'>
<view class='list_title_box'>
<view class='item_list'>
<view class='list_title'>被保险人</view>
</view>
<view class='item_list'>
<view class='list_title'>保单号</view>
</view>
<view class='item_list'>
<view class='list_title'>产品名称</view>
</view>
<view class='item_list'>
<view class='list_title'>保险公司</view>
</view>
<scroll-view scroll-x>
<view class='scroll_content_box'>
<view class='list_content_box' wx:for='{{information}}' wx:key=''>
<view class='item_list'>
<view class='list_title'>{{item.recognizee}}</view>
</view>
<view class='item_list'>
<view class='list_title' >{{item.in_num}}</view>
</view>
<view class='item_list'>
<view class='list_title'>{{item.main_risks}}22</view>
</view>
<view class='item_list'>
<view class='list_title'>{{item.firm}}</view>
</view>
<view class='item_list'>
<view class='list_title'>{{item.compact_time}}</view>
</view>
<view class='item_list' wx:for='{{item.more}}' wx:key='' wx:for-item='its'>
<view class='list_title'>{{its.num}} </view>
</view>
<view class='item_list'>
<view class='list_title'>生效日期</view>
</view>
<view class='item_list' wx:for='{{guarantee}}' wx:key='' wx:for-item='sit'>
<view class='list_title'>{{sit.name}}</view>
</view>
</view>
<scroll-view scroll-x>
<view class='scroll_content_box'>
<view class='list_content_box' wx:for='{{information}}' wx:key=''>
<view class='item_list'>
<view class='list_title'>{{item.recognizee}}</view>
</view>
<view class='item_list'>
<view class='list_title'>{{item.in_num}}</view>
</view>
<view class='item_list'>
<view class='list_title'>{{item.main_risks}}</view>
</view>
<view class='item_list'>
<view class='list_title' wx:if='{{item.firm}}'>{{item.firm}}</view>
<view class='list_title' style='color:#fff' wx:else>无</view>
</view>
<view class='item_list'>
<view class='list_title' wx:if='{{item.compact_time}}'>{{item.compact_time}}</view>
<view class='list_title' style='color:#fff' wx:else>无</view>
</view>
<view class='item_list' wx:for='{{item.more}}' wx:key='' wx:for-item='its'>
<view class='list_title'>{{its.num}} </view>
</view>
</view>
</scroll-view>
</view>
</view>
</scroll-view>
</view>
</block>
</view>
</view>
</block>
</view>
\ No newline at end of file
... ...
... ... @@ -4,7 +4,9 @@
<image src='{{user_info.avatar}}'></image>
</view>
<view class='head_info_box'>
<view class='user_name'>{{user_info.name}}</view>
<view class='user_name'>{{user_info.name}}
<image wx:if='{{user_info.approve==1}}' src='/images/verify.png'></image>
</view>
<view>{{user_info.mobile}}</view>
<view>{{user_info.work}}</view>
<view>{{user_info.work_post}}</view>
... ...
... ... @@ -35,11 +35,20 @@ page {
.head_info_box {
width: 70%;
line-height: 50rpx;
overflow: hidden;
}
.user_name {
font-size: 32rpx;
font-weight: bold;
display: flex;
align-items: center;
}
.user_name image {
width: 48rpx;
height: 48rpx;
margin-left: 15rpx;
}
.edit_box {
... ...
... ... @@ -107,25 +107,33 @@ Page({
// icon: 'none'
// })
if (app.globalData.UserType == 2) {
console.log(111)
if (app.globalData.user_index != 2) {
this.setData({
clientState: true,
})
}
} else if (app.globalData.UserType != 4) {
console.log(222)
if (app.globalData.user_index == 4) {
this.setData({
elcheeState: true
})
}
} else if (app.globalData.UserType == 3) {
if (app.globalData.user_index != 3) {
if (app.globalData.user_index == 2) {
wx.showToast({
title: '没有权限',
icon: 'none'
})
}
} else if (app.globalData.UserType == 3 || app.globalData.UserType ==4) {
console.log(333)
if (app.globalData.user_index == 2) {
wx.showToast({
title: '没有权限',
icon: 'none'
})
}
}
}
... ...
... ... @@ -37,7 +37,7 @@
"list": []
},
"miniprogram": {
"current": -1,
"current": 4,
"list": [
{
"id": -1,
... ... @@ -64,10 +64,11 @@
"query": ""
},
{
"id": -1,
"id": 4,
"name": "编辑保单",
"pathName": "pages/index/addListDetail/addListDetail",
"query": "def_id=241&inforid=14&FamilyId=128"
"query": "def_id=105&inforid=68&FamilyId=53",
"scene": null
},
{
"id": -1,
... ... @@ -104,6 +105,13 @@
"name": "aaf",
"pathName": "pages/index/policyListDetail/policyListDetail",
"query": "InId=25"
},
{
"id": -1,
"name": "ad",
"pathName": "pages/index/EntryInformation/EntryInformation",
"query": "DefId=93&familyid=44",
"scene": null
}
]
}
... ...