作者 LXY

保险二开

... ... @@ -54,7 +54,9 @@ page {
font-size: 30rpx;
color: #000;
}
.list_input textarea{
height: 120rpx;
}
.list_input input {
border: 0;
outline: none;
... ... @@ -226,7 +228,8 @@ page {
background: none;
border: 1rpx solid #0286ff;
color: #0286ff;
font-size: 32rpx;
font-size: 34rpx;
font-weight: bold;
border-radius: 40rpx;
display: flex;
align-items: center;
... ...
... ... @@ -55,8 +55,11 @@ Page({
edit_state: false,
risk_listitm: '',
storge_state: false,
warranty_info:'请输入',
warranty_state:false
warranty_info: '请输入',
warranty_state: false,
warranty_info1: '请输入',
warranty_state1: false,
coverage:'',
},
//保单号
... ... @@ -100,6 +103,16 @@ Page({
// console.log(this.data.main_risks)
},
//主险名称
setRiskMoney(e) {
// console.log(e)
this.setData({
coverage: e.detail.value,
})
// console.log(this.data.main_risks)
},
//保费
yearMoney(e) {
this.setData({
... ... @@ -668,10 +681,10 @@ Page({
this.setData({
unit: unit,
})
if(unit=='终身'){
if (unit == '终身') {
this.setData({
warranty_info:'',
warranty_state:true
warranty_info: '',
warranty_state: true
})
}
this.countImpletionTime2()
... ... @@ -758,6 +771,12 @@ Page({
this.setData({
unit2: unit
})
if (unit == '终身') {
this.setData({
warranty_info1: '',
warranty_state1: true
})
}
this.countImpletionTime()
},
... ... @@ -847,7 +866,7 @@ Page({
var FamilyId = this.data.FamilyId
let url = 'counselor/familyname'
let params = {
FamilyId: FamilyId||id,
FamilyId: FamilyId || id,
}
app.post(url, params).then((res) => {
// console.log(res)
... ... @@ -885,6 +904,8 @@ Page({
var applicant = this.data.applicant_name
var recognizee = this.data.recognizee_name
var main_risks = this.data.main_risks
var coverage = this.data.coverage
var year_money = this.data.year_money
var compact_time = this.data.compact_time
var impletion_time = this.data.impletion_time
... ... @@ -903,6 +924,7 @@ Page({
recognizee: recognizee,
favoree: favoree,
main_risks: main_risks,
coverage: coverage,
guarantee: guarantee,
year_money: year_money,
warranty_two: warranty_two,
... ... @@ -964,6 +986,7 @@ Page({
in_num: res.data.data.def.in_num,
firm: res.data.data.def.firm,
main_risks: res.data.data.def.main_risks,
coverage: res.data.data.def.coverage,
main_array: res.data.data.def.guarantee,
applicant_name: res.data.data.def.applicant,
recognizee_name: res.data.data.def.recognizee,
... ... @@ -1021,7 +1044,7 @@ Page({
var applicant = this.data.applicant_name
var recognizee = this.data.recognizee_name
var main_risks = e.detail.value.main_risks
var coverage = e.detail.value.coverage
var year_money = e.detail.value.year_money
var compact_time = this.data.compact_time
var impletion_time = this.data.impletion_time
... ... @@ -1068,8 +1091,10 @@ Page({
warn = '请输入主险保障期!'
} else if (more == '') {
warn = '请输入附加险!'
} else if (picurl.length == 2) {
warn = '请选择图片!'
// else if (picurl.length == 2) {
// warn = '请选择图片!'
// }
} else {
flag = false
// 添加、修改保单接口调取
... ... @@ -1083,6 +1108,7 @@ Page({
recognizee: recognizee,
favoree: favoree,
main_risks: main_risks,
coverage: coverage,
guarantee: guarantee,
year_money: year_money,
warranty_two: warranty_two,
... ... @@ -1159,7 +1185,7 @@ Page({
getlistVerify(id) {
let url = 'counselor/infordef'
let params = {
InfoId: this.data.inforid||id,
InfoId: this.data.inforid || id,
}
app.post(url, params).then((res) => {
if (res.data.code == 200) {
... ... @@ -1210,6 +1236,7 @@ Page({
in_num: res.data.data.def.in_num,
firm: res.data.data.def.firm,
main_risks: res.data.data.def.main_risks,
coverage: res.data.data.def.coverage,
main_array: res.data.data.def.guarantee,
applicant_name: res.data.data.def.applicant,
recognizee_name: res.data.data.def.recognizee,
... ... @@ -1237,18 +1264,18 @@ Page({
this.ensureProjectList()
let that = this;
options.inforid ? (that.getlistVerify(options.inforid),that.setData({
options.inforid ? (that.getlistVerify(options.inforid), that.setData({
inforid: options.inforid,
edit_state: true
}),wx.setNavigationBarTitle({
}), wx.setNavigationBarTitle({
title: '编辑保单',
})): ""
})) : ""
options.def_id ? that.setData({
def_id: options.def_id,
}) : ""
options.FamilyId ? (that.familyMember(options.FamilyId),that.setData({
options.FamilyId ? (that.familyMember(options.FamilyId), that.setData({
FamilyId: options.FamilyId
})):'';
})) : '';
if (wx.getStorageSync('storge_state') && options.inforid == undefined) {
this.getStorage()
}
... ... @@ -1302,4 +1329,4 @@ Page({
onShareAppMessage: function() {
}
})
\ No newline at end of file
})
\ No newline at end of file
... ...
... ... @@ -90,6 +90,15 @@
<input type='text' placeholder='请填写' name='main_risks' value='{{main_risks}}' bindinput='setRiskName'></input>
</view>
</view>
<view class='item_list'>
<view class='list_title'>
<!-- <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>
<view class='protec_item_box'>
<view>
<view class='protec_item' wx:for='{{main_array}}' wx:key=''>
... ... @@ -153,7 +162,7 @@
<view class='list_title'>缴费时长</view>
<view class='list_input_box'>
<view class='list_input'>
<input type='text' placeholder='请输入' name='beneficiary' value='{{long_money.num}}' bindinput='burningTime'></input>
<input type='text' placeholder='{{warranty_info1}}' name='beneficiary' value='{{long_money.num}}' bindinput='burningTime' disabled='{{warranty_state1}}'></input>
</view>
<view class='list_label_box'>
<view class="list_label_item {{unit2=='年'?'list_label_active':''}}" bindtap='selectUnit2' data-unit='年'>年</view>
... ... @@ -201,10 +210,10 @@
<view class='risk_box'>
<view class='risk_item' wx:for='{{risk_list}}' wx:key=''>
<view class='iconfont icon-guanbi symool_box' bindtap='deleteRisk' wx:if="{{index>0}}" data-index='{{index}}'></view>
<view class='item_list'>
<view class='item_list' style=' align-items: flex-start;'>
<view class='list_title project'>附加险名称</view>
<view class='list_input'>
<input type='text' placeholder='请填写' bindinput='addRiskName' value='{{item.name}}' data-index='{{index}}'></input>
<textarea type='text' placeholder='请填写' bindinput='addRiskName' value='{{item.name}}' data-index='{{index}}'></textarea>
</view>
</view>
<view class='protec_item_box'>
... ...
... ... @@ -96,8 +96,8 @@ page {
align-items: center;
font-size: 29rpx;
}
.list_input text{
/* margin-left: 10rpx; */
.list_input textarea{
height: 100rpx;
}
.icon-riqi {
font-size: 48rpx;
... ... @@ -378,8 +378,10 @@ page {
}
.popup_label_box {
width: 45%;
display: flex;
align-items: center;
justify-content: flex-start;
}
.popup_label_item {
... ... @@ -436,7 +438,7 @@ page {
}
.icon-xuanzhongkuang, .icon-fangkuang {
font-size: 38rpx;
font-size: 40rpx;
color: #e0e0e0;
}
... ...
... ... @@ -45,7 +45,7 @@ page {
.currentWordNumber {
position: absolute;
bottom: 30rpx;
right: 0;
right: 100rpx;
color: #999;
}
... ...
... ... @@ -35,6 +35,10 @@
<view class='list_title'>主险名称</view>
<view class='list_input'>{{listdetail.main_risks}}</view>
</view>
<view class='item_list' style=' align-items: flex-start;'>
<view class='list_title'>主险基本保额</view>
<view class='list_input'>{{listdetail.coverage}}</view>
</view>
<!-- <view class='item_list' style=' align-items: flex-start;'>
<view class='list_title'>主险保障项</view>
<view class='list_input' wx:for='{{listdetail.guarantee}}' wx:key wx:for-item='its'>{{its.name}} {{its.num}}{{its.title}} </view>
... ...
... ... @@ -314,7 +314,7 @@ Page({
cid: options.cid,
})):''
options.mainid?this.setData({
mainid: options.id
mainid: options.mainid
}):''
this.getData()
... ...