From 8ebc32383a7c0eda8859933d219e2616fd2fce7e Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Fri, 14 Jun 2019 17:43:15 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=94=AF=E4=BB=98--=E9=80=82=E9=85=8Diphon?= =?UTF-8?q?e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/trainings/pay.html.erb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/views/trainings/pay.html.erb b/app/views/trainings/pay.html.erb index 9c4d2b59..df22b65c 100644 --- a/app/views/trainings/pay.html.erb +++ b/app/views/trainings/pay.html.erb @@ -178,6 +178,9 @@ $('form').submit(); }); + $(".billInput").on("blur",function(){ + document.body && (document.body.scrollTop = document.body.scrollTop); + }) //立即支付 $('#payBtn').on('click', function () { From 5816bc25cbc83316b5f137fb55f449676134cd2c Mon Sep 17 00:00:00 2001 From: p31729568 Date: Fri, 14 Jun 2019 19:08:12 +0800 Subject: [PATCH 2/2] trainings: fix --- app/views/trainings/pay.html.erb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/views/trainings/pay.html.erb b/app/views/trainings/pay.html.erb index df22b65c..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 %>

-

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

+

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

@@ -303,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;