|
@@ -11,15 +11,23 @@
|
|
|
};
|
|
|
renlian.http.post(config.webapi + "/?s=api/get_insurance_detail", postdata, function(res) {
|
|
|
console.log(res);
|
|
|
+ if(res.data != null){
|
|
|
var str = '<div class="lr-list-item" style="text-align: center;font-size: 20px;font-weight:bold;" id="detailList">套餐包含</div>';
|
|
|
$('.insuranceName').text(res.data.insuranceName);
|
|
|
$('.startTime').text(res.data.insureInfo.StartDate);
|
|
|
$('.endTime').text(res.data.insureInfo.EndDate);
|
|
|
+ if(res.data.insuranceDetailInfo){
|
|
|
for (var i = 0; i < res.data.insuranceDetailInfo.length; i++) {
|
|
|
str += ' <div class="lr-list-item"><div style="font-weight: bold;">险种'+ (i+1) + '</div></div><div class="lr-list-item"><div>险种名称</div><span class="weChat">' + res.data.insuranceDetailInfo[i].InsuranceTypeName + '</span></div><div class="lr-list-item"><div>保单编号</div><span class="oICQ">'
|
|
|
+ res.data.insuranceDetailInfo[i].InsuranceTypeNo + '</span></div>';
|
|
|
}
|
|
|
+ }
|
|
|
$('#detailList').after(str);
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ $('#total').css('display','none');
|
|
|
+
|
|
|
+ }
|
|
|
});
|
|
|
}
|
|
|
};
|