Pager.prototype.goJBS0010 = function(params) { var self = this; indicator.on(); this.getHtml('JBS0010.html', function() { self.execApi('/SJB_UII_JBS0010.json', params, function(response) { self.pageInfo = response.pageInfo; if(self.pageInfo.mode == 'JBS0010_DISPLAY'){ alert(Messages.get('SPMSG001001')); } $('.goJBS0020').click(function() { indicator.on(); self.goJBS0020(self.getJBS0020RequestParams()); return false; }); $('.goJBS0210').click(function() { indicator.on(); self.goJBS0210(self.getJBS0210RequestParams()); return false; }); if(self.pageInfo.yudoFlg){ $('#other1').hide(); $('#footer').hide(); self.getHtml('JBS0000.htm', function() { return false; }); } self.setJBS0010DefaultParams(self.pageInfo); indicator.off(); }); }); }; Pager.prototype.setJBS0010DefaultParams = function(pageInfo) { $('#sjb_DRT_NAME_KANJI').text(pageInfo.sjb_DRT_NAME_KANJI); var dai_free = ""; if (pageInfo.sjb_DRT_FREERAN1){ dai_free += pageInfo.sjb_DRT_FREERAN1; } if (pageInfo.sjb_DRT_FREERAN2){ if (dai_free !="") { dai_free +='
'; } dai_free += pageInfo.sjb_DRT_FREERAN2; } if (pageInfo.sjb_DRT_FREERAN3){ if (dai_free !="") { dai_free +='
'; } dai_free += pageInfo.sjb_DRT_FREERAN3; } if (pageInfo.sjb_DRT_FREERAN4){ if (dai_free !="") { dai_free +='
'; } dai_free += pageInfo.sjb_DRT_FREERAN4; } if (pageInfo.sjb_DRT_FREERAN5){ if (dai_free !="") { dai_free +='
'; } dai_free += pageInfo.sjb_DRT_FREERAN5; } if (dai_free != "" ) { $('#dairitenInfo').html([dai_free].join('
')); } //代理店告知メッセージ if (pageInfo.sjb_DRT_KOKUTI_MSG) { $('#dairitenMsg_Info').html(pageInfo.sjb_DRT_KOKUTI_MSG); } else { $('#dairitenMsg').hide(); } if('2' == pageInfo.senimotoFlg){ // 事前申込 $('#sen_1_1').hide(); $('#sen_1_2').hide(); $('#sen_1_3').hide(); $('#sen_1_4').hide(); $('#mode_ippan_wide').hide(); $('#mode_ippan_wide_2').hide(); $('#mode_jizen').show(); $('#mode_jizen_wide').show(); $('#mode_jizen_2').show(); $('#mode_jizen_wide_2').show(); $('#mode_common1_sp').show(); $('#mode_common2_sp').show(); $('#mode_common3_sp').show(); }else{ // 一般申込 $('#sen_2_1').hide(); $('#sen_2_2').hide(); $('#sen_2_3').hide(); $('#sen_2_4').hide(); $('#sen_2_5').hide(); $('#sen_2_6').hide(); $('#mode_ippan').show(); $('#mode_ippan_wide').show(); $('#mode_ippan_2').show(); $('#mode_ippan_wide_2').show(); $('#mode_common1_sp').show(); $('#mode_common2_sp').show(); $('#mode_common3_sp').show(); } // ADD タイトル設定 20160912 START $("#TT").text("自賠責保険〜原付・250cc以下バイク用〜[自動車損害賠償責任保険]"); // ADD タイトル設定 20160912 END // ベリサイン表示制御 $('#verisign_area').html($('#verisignAnchor')) $('#verisignAnchor').show(); this.pageId = 'JBS0010'; }; firstOrSecond = function(elm) { if ($(elm).attr('id') == 'firstBtn') { $('#first_msg1').show(); $('#second_msg1').hide(); $('#first_msg3').show(); $('#sendMail_BTN').show(); $('#moushikomi_BTN').hide(); $('#btn1').css('opacity','1'); $('#btn2').css('opacity','.4'); } else { $('#first_msg1').hide(); $('#second_msg1').show(); $('#first_msg3').hide(); $('#sendMail_BTN').hide(); $('#moushikomi_BTN').show(); $('#btn1').css('opacity','.4'); $('#btn2').css('opacity','1'); } $('#checkSameFlg').removeAttr('checked'); $('[id$=_BTN]').removeAttr('href').removeAttr('onclick').parent().css({opacity:"0.3",cursor:"default"}); $('#information').slideDown(); }; Pager.prototype.getJBS0020RequestParams = function() { return { "MODE" : "JBS0020_DISPLAY" }; }; Pager.prototype.getJBS0210RequestParams = function() { return { "MODE" : "JBS0210_DISPLAY" }; };