12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- (function () {
- var page = {
- isScroll: true,
- init: function ($page) {
- var userinfo = renlian.storage.get('userinfo');
- console.log(userinfo);
- var postdata = {
- token: userinfo.baseinfo.token,
- loginMark: renlian.deviceId(),
- plate: userinfo.baseinfo.plate
- };
- renlian.http.post(config.webapi + "/?s=api/get_insurance_detail", postdata, function(res) {
- console.log(res);
- if(res.data != null){
- $('#total').css('display','block');
- var str = '<div class="lr-list-item" style="text-align: center;font-size: 20px;font-weight:bold;">套餐包含</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{
- $('#message').css('display','block');
- }
- });
- }
- };
- return page;
- })();
- // <div class="lr-list-item"><div style="font-weight: bold;">险种1</div></div>
- // <div class="lr-list-item"><div>险种名称</div><span class="weChat">111111</span></div>
- // <div class="lr-list-item"><div>保单编号</div><span class="oICQ">1111111</span></div>
|