diff --git a/app/views/trainings/pay.html.erb b/app/views/trainings/pay.html.erb index 9c4d2b59..0fe3bd89 100644 --- a/app/views/trainings/pay.html.erb +++ b/app/views/trainings/pay.html.erb @@ -45,7 +45,7 @@

发票内容 + value="<%= @training.training_payinfo.try(:invoice_content).presence || '师资培训费' %>"/>

@@ -60,7 +60,7 @@ (3人及以上8折优惠) <% end %>

-

含会议注册费、场地费、培训费、教材资料费、餐费、专家差率费等

+

含会议注册费、场地费、培训费、教材资料费、餐费、专家差旅费等

@@ -178,6 +178,9 @@ $('form').submit(); }); + $(".billInput").on("blur",function(){ + document.body && (document.body.scrollTop = document.body.scrollTop); + }) //立即支付 $('#payBtn').on('click', function () { @@ -300,11 +303,11 @@ } //页面加载时,初始化发票类型 function InitBill(userInfo){ - var index=2; - $("#billDemand").html("不需要").attr("status",2); - if(userInfo.invoiceTitle != "" && userInfo.invoiceNo != ""){ - index=0; - $("#billDemand").html("单位").attr("status",0); + var index=0; + $("#billDemand").html("单位").attr("status",0); + if(userInfo.invoiceTitle == "" && userInfo.invoiceNo == ""){ + index=2; + $("#billDemand").html("不需要").attr("status",2); } if(userInfo.invoiceTitle != "" && userInfo.invoiceNo == ""){ index=1;