fix pay center bug. code review by Guanning
Showing
2 changed files
with
2 additions
and
2 deletions
@@ -103,7 +103,7 @@ function hideWeChatPay() { | @@ -103,7 +103,7 @@ function hideWeChatPay() { | ||
103 | var $payApps = $('.app'); | 103 | var $payApps = $('.app'); |
104 | 104 | ||
105 | $payApps.each(function(idx, app) { | 105 | $payApps.each(function(idx, app) { |
106 | - if ($(app).attr('id') === 'weixin') { | 106 | + if ($(app).parent().attr('id') === 'weixin') { |
107 | $(app).parent().css('display', 'none'); | 107 | $(app).parent().css('display', 'none'); |
108 | return false; | 108 | return false; |
109 | } | 109 | } |
@@ -36,7 +36,7 @@ | @@ -36,7 +36,7 @@ | ||
36 | > div { | 36 | > div { |
37 | width: 60rem / $pxConvertRem; | 37 | width: 60rem / $pxConvertRem; |
38 | height: 60rem / $pxConvertRem; | 38 | height: 60rem / $pxConvertRem; |
39 | - background-image: url(http://localhost:8000/img/layout/pay-icon.png); | 39 | + background-image: image-url("/img/layout/pay-icon.png"); |
40 | background-size: 90%; | 40 | background-size: 90%; |
41 | background-position-y: 8rem / $pxConvertRem; | 41 | background-position-y: 8rem / $pxConvertRem; |
42 | background-position-x: center; | 42 | background-position-x: center; |
-
Please register or login to post a comment