作者 LXY

保险二开

@@ -54,7 +54,9 @@ page { @@ -54,7 +54,9 @@ page {
54 font-size: 30rpx; 54 font-size: 30rpx;
55 color: #000; 55 color: #000;
56 } 56 }
57 - 57 +.list_input textarea{
  58 + height: 120rpx;
  59 +}
58 .list_input input { 60 .list_input input {
59 border: 0; 61 border: 0;
60 outline: none; 62 outline: none;
@@ -226,7 +228,8 @@ page { @@ -226,7 +228,8 @@ page {
226 background: none; 228 background: none;
227 border: 1rpx solid #0286ff; 229 border: 1rpx solid #0286ff;
228 color: #0286ff; 230 color: #0286ff;
229 - font-size: 32rpx; 231 + font-size: 34rpx;
  232 + font-weight: bold;
230 border-radius: 40rpx; 233 border-radius: 40rpx;
231 display: flex; 234 display: flex;
232 align-items: center; 235 align-items: center;
@@ -55,8 +55,11 @@ Page({ @@ -55,8 +55,11 @@ Page({
55 edit_state: false, 55 edit_state: false,
56 risk_listitm: '', 56 risk_listitm: '',
57 storge_state: false, 57 storge_state: false,
58 - warranty_info:'请输入',  
59 - warranty_state:false 58 + warranty_info: '请输入',
  59 + warranty_state: false,
  60 + warranty_info1: '请输入',
  61 + warranty_state1: false,
  62 + coverage:'',
60 }, 63 },
61 64
62 //保单号 65 //保单号
@@ -100,6 +103,16 @@ Page({ @@ -100,6 +103,16 @@ Page({
100 // console.log(this.data.main_risks) 103 // console.log(this.data.main_risks)
101 }, 104 },
102 105
  106 + //主险名称
  107 + setRiskMoney(e) {
  108 + // console.log(e)
  109 + this.setData({
  110 + coverage: e.detail.value,
  111 + })
  112 + // console.log(this.data.main_risks)
  113 + },
  114 +
  115 +
103 //保费 116 //保费
104 yearMoney(e) { 117 yearMoney(e) {
105 this.setData({ 118 this.setData({
@@ -668,10 +681,10 @@ Page({ @@ -668,10 +681,10 @@ Page({
668 this.setData({ 681 this.setData({
669 unit: unit, 682 unit: unit,
670 }) 683 })
671 - if(unit=='终身'){ 684 + if (unit == '终身') {
672 this.setData({ 685 this.setData({
673 - warranty_info:'',  
674 - warranty_state:true 686 + warranty_info: '',
  687 + warranty_state: true
675 }) 688 })
676 } 689 }
677 this.countImpletionTime2() 690 this.countImpletionTime2()
@@ -758,6 +771,12 @@ Page({ @@ -758,6 +771,12 @@ Page({
758 this.setData({ 771 this.setData({
759 unit2: unit 772 unit2: unit
760 }) 773 })
  774 + if (unit == '终身') {
  775 + this.setData({
  776 + warranty_info1: '',
  777 + warranty_state1: true
  778 + })
  779 + }
761 this.countImpletionTime() 780 this.countImpletionTime()
762 }, 781 },
763 782
@@ -847,7 +866,7 @@ Page({ @@ -847,7 +866,7 @@ Page({
847 var FamilyId = this.data.FamilyId 866 var FamilyId = this.data.FamilyId
848 let url = 'counselor/familyname' 867 let url = 'counselor/familyname'
849 let params = { 868 let params = {
850 - FamilyId: FamilyId||id, 869 + FamilyId: FamilyId || id,
851 } 870 }
852 app.post(url, params).then((res) => { 871 app.post(url, params).then((res) => {
853 // console.log(res) 872 // console.log(res)
@@ -885,6 +904,8 @@ Page({ @@ -885,6 +904,8 @@ Page({
885 var applicant = this.data.applicant_name 904 var applicant = this.data.applicant_name
886 var recognizee = this.data.recognizee_name 905 var recognizee = this.data.recognizee_name
887 var main_risks = this.data.main_risks 906 var main_risks = this.data.main_risks
  907 + var coverage = this.data.coverage
  908 +
888 var year_money = this.data.year_money 909 var year_money = this.data.year_money
889 var compact_time = this.data.compact_time 910 var compact_time = this.data.compact_time
890 var impletion_time = this.data.impletion_time 911 var impletion_time = this.data.impletion_time
@@ -903,6 +924,7 @@ Page({ @@ -903,6 +924,7 @@ Page({
903 recognizee: recognizee, 924 recognizee: recognizee,
904 favoree: favoree, 925 favoree: favoree,
905 main_risks: main_risks, 926 main_risks: main_risks,
  927 + coverage: coverage,
906 guarantee: guarantee, 928 guarantee: guarantee,
907 year_money: year_money, 929 year_money: year_money,
908 warranty_two: warranty_two, 930 warranty_two: warranty_two,
@@ -964,6 +986,7 @@ Page({ @@ -964,6 +986,7 @@ Page({
964 in_num: res.data.data.def.in_num, 986 in_num: res.data.data.def.in_num,
965 firm: res.data.data.def.firm, 987 firm: res.data.data.def.firm,
966 main_risks: res.data.data.def.main_risks, 988 main_risks: res.data.data.def.main_risks,
  989 + coverage: res.data.data.def.coverage,
967 main_array: res.data.data.def.guarantee, 990 main_array: res.data.data.def.guarantee,
968 applicant_name: res.data.data.def.applicant, 991 applicant_name: res.data.data.def.applicant,
969 recognizee_name: res.data.data.def.recognizee, 992 recognizee_name: res.data.data.def.recognizee,
@@ -1021,7 +1044,7 @@ Page({ @@ -1021,7 +1044,7 @@ Page({
1021 var applicant = this.data.applicant_name 1044 var applicant = this.data.applicant_name
1022 var recognizee = this.data.recognizee_name 1045 var recognizee = this.data.recognizee_name
1023 var main_risks = e.detail.value.main_risks 1046 var main_risks = e.detail.value.main_risks
1024 - 1047 + var coverage = e.detail.value.coverage
1025 var year_money = e.detail.value.year_money 1048 var year_money = e.detail.value.year_money
1026 var compact_time = this.data.compact_time 1049 var compact_time = this.data.compact_time
1027 var impletion_time = this.data.impletion_time 1050 var impletion_time = this.data.impletion_time
@@ -1068,8 +1091,10 @@ Page({ @@ -1068,8 +1091,10 @@ Page({
1068 warn = '请输入主险保障期!' 1091 warn = '请输入主险保障期!'
1069 } else if (more == '') { 1092 } else if (more == '') {
1070 warn = '请输入附加险!' 1093 warn = '请输入附加险!'
1071 - } else if (picurl.length == 2) {  
1072 - warn = '请选择图片!' 1094 + // else if (picurl.length == 2) {
  1095 + // warn = '请选择图片!'
  1096 + // }
  1097 +
1073 } else { 1098 } else {
1074 flag = false 1099 flag = false
1075 // 添加、修改保单接口调取 1100 // 添加、修改保单接口调取
@@ -1083,6 +1108,7 @@ Page({ @@ -1083,6 +1108,7 @@ Page({
1083 recognizee: recognizee, 1108 recognizee: recognizee,
1084 favoree: favoree, 1109 favoree: favoree,
1085 main_risks: main_risks, 1110 main_risks: main_risks,
  1111 + coverage: coverage,
1086 guarantee: guarantee, 1112 guarantee: guarantee,
1087 year_money: year_money, 1113 year_money: year_money,
1088 warranty_two: warranty_two, 1114 warranty_two: warranty_two,
@@ -1159,7 +1185,7 @@ Page({ @@ -1159,7 +1185,7 @@ Page({
1159 getlistVerify(id) { 1185 getlistVerify(id) {
1160 let url = 'counselor/infordef' 1186 let url = 'counselor/infordef'
1161 let params = { 1187 let params = {
1162 - InfoId: this.data.inforid||id, 1188 + InfoId: this.data.inforid || id,
1163 } 1189 }
1164 app.post(url, params).then((res) => { 1190 app.post(url, params).then((res) => {
1165 if (res.data.code == 200) { 1191 if (res.data.code == 200) {
@@ -1210,6 +1236,7 @@ Page({ @@ -1210,6 +1236,7 @@ Page({
1210 in_num: res.data.data.def.in_num, 1236 in_num: res.data.data.def.in_num,
1211 firm: res.data.data.def.firm, 1237 firm: res.data.data.def.firm,
1212 main_risks: res.data.data.def.main_risks, 1238 main_risks: res.data.data.def.main_risks,
  1239 + coverage: res.data.data.def.coverage,
1213 main_array: res.data.data.def.guarantee, 1240 main_array: res.data.data.def.guarantee,
1214 applicant_name: res.data.data.def.applicant, 1241 applicant_name: res.data.data.def.applicant,
1215 recognizee_name: res.data.data.def.recognizee, 1242 recognizee_name: res.data.data.def.recognizee,
@@ -1237,18 +1264,18 @@ Page({ @@ -1237,18 +1264,18 @@ Page({
1237 1264
1238 this.ensureProjectList() 1265 this.ensureProjectList()
1239 let that = this; 1266 let that = this;
1240 - options.inforid ? (that.getlistVerify(options.inforid),that.setData({ 1267 + options.inforid ? (that.getlistVerify(options.inforid), that.setData({
1241 inforid: options.inforid, 1268 inforid: options.inforid,
1242 edit_state: true 1269 edit_state: true
1243 - }),wx.setNavigationBarTitle({ 1270 + }), wx.setNavigationBarTitle({
1244 title: '编辑保单', 1271 title: '编辑保单',
1245 - })): "" 1272 + })) : ""
1246 options.def_id ? that.setData({ 1273 options.def_id ? that.setData({
1247 def_id: options.def_id, 1274 def_id: options.def_id,
1248 }) : "" 1275 }) : ""
1249 - options.FamilyId ? (that.familyMember(options.FamilyId),that.setData({ 1276 + options.FamilyId ? (that.familyMember(options.FamilyId), that.setData({
1250 FamilyId: options.FamilyId 1277 FamilyId: options.FamilyId
1251 - })):''; 1278 + })) : '';
1252 if (wx.getStorageSync('storge_state') && options.inforid == undefined) { 1279 if (wx.getStorageSync('storge_state') && options.inforid == undefined) {
1253 this.getStorage() 1280 this.getStorage()
1254 } 1281 }
@@ -1302,4 +1329,4 @@ Page({ @@ -1302,4 +1329,4 @@ Page({
1302 onShareAppMessage: function() { 1329 onShareAppMessage: function() {
1303 1330
1304 } 1331 }
1305 - })  
  1332 +})
@@ -90,6 +90,15 @@ @@ -90,6 +90,15 @@
90 <input type='text' placeholder='请填写' name='main_risks' value='{{main_risks}}' bindinput='setRiskName'></input> 90 <input type='text' placeholder='请填写' name='main_risks' value='{{main_risks}}' bindinput='setRiskName'></input>
91 </view> 91 </view>
92 </view> 92 </view>
  93 + <view class='item_list'>
  94 + <view class='list_title'>
  95 + <!-- <text class='symbol_icon'>*</text> -->
  96 + <text>主险基本保额</text>
  97 + </view>
  98 + <view class='list_input'>
  99 + <input type='number' placeholder='请填写' name='coverage' value='{{coverage}}' bindinput='setRiskMoney'></input>
  100 + </view>
  101 + </view>
93 <view class='protec_item_box'> 102 <view class='protec_item_box'>
94 <view> 103 <view>
95 <view class='protec_item' wx:for='{{main_array}}' wx:key=''> 104 <view class='protec_item' wx:for='{{main_array}}' wx:key=''>
@@ -153,7 +162,7 @@ @@ -153,7 +162,7 @@
153 <view class='list_title'>缴费时长</view> 162 <view class='list_title'>缴费时长</view>
154 <view class='list_input_box'> 163 <view class='list_input_box'>
155 <view class='list_input'> 164 <view class='list_input'>
156 - <input type='text' placeholder='请输入' name='beneficiary' value='{{long_money.num}}' bindinput='burningTime'></input> 165 + <input type='text' placeholder='{{warranty_info1}}' name='beneficiary' value='{{long_money.num}}' bindinput='burningTime' disabled='{{warranty_state1}}'></input>
157 </view> 166 </view>
158 <view class='list_label_box'> 167 <view class='list_label_box'>
159 <view class="list_label_item {{unit2=='年'?'list_label_active':''}}" bindtap='selectUnit2' data-unit='年'>年</view> 168 <view class="list_label_item {{unit2=='年'?'list_label_active':''}}" bindtap='selectUnit2' data-unit='年'>年</view>
@@ -201,10 +210,10 @@ @@ -201,10 +210,10 @@
201 <view class='risk_box'> 210 <view class='risk_box'>
202 <view class='risk_item' wx:for='{{risk_list}}' wx:key=''> 211 <view class='risk_item' wx:for='{{risk_list}}' wx:key=''>
203 <view class='iconfont icon-guanbi symool_box' bindtap='deleteRisk' wx:if="{{index>0}}" data-index='{{index}}'></view> 212 <view class='iconfont icon-guanbi symool_box' bindtap='deleteRisk' wx:if="{{index>0}}" data-index='{{index}}'></view>
204 - <view class='item_list'> 213 + <view class='item_list' style=' align-items: flex-start;'>
205 <view class='list_title project'>附加险名称</view> 214 <view class='list_title project'>附加险名称</view>
206 <view class='list_input'> 215 <view class='list_input'>
207 - <input type='text' placeholder='请填写' bindinput='addRiskName' value='{{item.name}}' data-index='{{index}}'></input> 216 + <textarea type='text' placeholder='请填写' bindinput='addRiskName' value='{{item.name}}' data-index='{{index}}'></textarea>
208 </view> 217 </view>
209 </view> 218 </view>
210 <view class='protec_item_box'> 219 <view class='protec_item_box'>
@@ -96,8 +96,8 @@ page { @@ -96,8 +96,8 @@ page {
96 align-items: center; 96 align-items: center;
97 font-size: 29rpx; 97 font-size: 29rpx;
98 } 98 }
99 -.list_input text{  
100 - /* margin-left: 10rpx; */ 99 +.list_input textarea{
  100 + height: 100rpx;
101 } 101 }
102 .icon-riqi { 102 .icon-riqi {
103 font-size: 48rpx; 103 font-size: 48rpx;
@@ -378,8 +378,10 @@ page { @@ -378,8 +378,10 @@ page {
378 } 378 }
379 379
380 .popup_label_box { 380 .popup_label_box {
  381 + width: 45%;
381 display: flex; 382 display: flex;
382 align-items: center; 383 align-items: center;
  384 + justify-content: flex-start;
383 } 385 }
384 386
385 .popup_label_item { 387 .popup_label_item {
@@ -436,7 +438,7 @@ page { @@ -436,7 +438,7 @@ page {
436 } 438 }
437 439
438 .icon-xuanzhongkuang, .icon-fangkuang { 440 .icon-xuanzhongkuang, .icon-fangkuang {
439 - font-size: 38rpx; 441 + font-size: 40rpx;
440 color: #e0e0e0; 442 color: #e0e0e0;
441 } 443 }
442 444
@@ -45,7 +45,7 @@ page { @@ -45,7 +45,7 @@ page {
45 .currentWordNumber { 45 .currentWordNumber {
46 position: absolute; 46 position: absolute;
47 bottom: 30rpx; 47 bottom: 30rpx;
48 - right: 0; 48 + right: 100rpx;
49 color: #999; 49 color: #999;
50 } 50 }
51 51
@@ -35,6 +35,10 @@ @@ -35,6 +35,10 @@
35 <view class='list_title'>主险名称</view> 35 <view class='list_title'>主险名称</view>
36 <view class='list_input'>{{listdetail.main_risks}}</view> 36 <view class='list_input'>{{listdetail.main_risks}}</view>
37 </view> 37 </view>
  38 + <view class='item_list' style=' align-items: flex-start;'>
  39 + <view class='list_title'>主险基本保额</view>
  40 + <view class='list_input'>{{listdetail.coverage}}</view>
  41 + </view>
38 <!-- <view class='item_list' style=' align-items: flex-start;'> 42 <!-- <view class='item_list' style=' align-items: flex-start;'>
39 <view class='list_title'>主险保障项</view> 43 <view class='list_title'>主险保障项</view>
40 <view class='list_input' wx:for='{{listdetail.guarantee}}' wx:key wx:for-item='its'>{{its.name}} {{its.num}}{{its.title}} </view> 44 <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({ @@ -314,7 +314,7 @@ Page({
314 cid: options.cid, 314 cid: options.cid,
315 })):'' 315 })):''
316 options.mainid?this.setData({ 316 options.mainid?this.setData({
317 - mainid: options.id 317 + mainid: options.mainid
318 }):'' 318 }):''
319 this.getData() 319 this.getData()
320 320