Merge branch 'feature/raffle' into 'release/5.4'
适配宽度 使活动页高度,至少为窗口高度 See merge request !170
Showing
3 changed files
with
7 additions
and
4 deletions
@@ -35,8 +35,6 @@ const activity = (params) => { | @@ -35,8 +35,6 @@ const activity = (params) => { | ||
35 | 35 | ||
36 | let bgUrl = ''; | 36 | let bgUrl = ''; |
37 | 37 | ||
38 | - let prizesList = result[0].data.prizes; | ||
39 | - | ||
40 | let newPrizes = []; | 38 | let newPrizes = []; |
41 | 39 | ||
42 | let same = false; | 40 | let same = false; |
@@ -56,6 +54,8 @@ const activity = (params) => { | @@ -56,6 +54,8 @@ const activity = (params) => { | ||
56 | }); | 54 | }); |
57 | 55 | ||
58 | // 合并名称相同奖项 | 56 | // 合并名称相同奖项 |
57 | + let prizesList = result[0].data.prizes; | ||
58 | + | ||
59 | prizesList.forEach((val, index) => { | 59 | prizesList.forEach((val, index) => { |
60 | if (newPrizes == '') { | 60 | if (newPrizes == '') { |
61 | newPrizes[0] = { | 61 | newPrizes[0] = { |
@@ -331,6 +331,9 @@ $(window).scroll(function() { | @@ -331,6 +331,9 @@ $(window).scroll(function() { | ||
331 | getOrders(); | 331 | getOrders(); |
332 | 332 | ||
333 | $(function() { | 333 | $(function() { |
334 | + // 适配背景图 | ||
335 | + var winH = $(document).height(); | ||
336 | + $(".wx-act-c").height(winH + "px"); | ||
334 | if ($('.dia-tip').length > 0) { | 337 | if ($('.dia-tip').length > 0) { |
335 | if(window.cookie('bindUrl') == 'http://m.yohobuy.com/passport/bind/success?type=bind') { | 338 | if(window.cookie('bindUrl') == 'http://m.yohobuy.com/passport/bind/success?type=bind') { |
336 | userId = $('.dia-tip').val(); | 339 | userId = $('.dia-tip').val(); |
@@ -4,7 +4,7 @@ | @@ -4,7 +4,7 @@ | ||
4 | width: 100%; | 4 | width: 100%; |
5 | overflow: hidden; | 5 | overflow: hidden; |
6 | position: relative; | 6 | position: relative; |
7 | - background-size: 100%; | 7 | + background-size: 100% auto; |
8 | background-repeat: no-repeat; | 8 | background-repeat: no-repeat; |
9 | 9 | ||
10 | .logo { | 10 | .logo { |
@@ -95,7 +95,7 @@ | @@ -95,7 +95,7 @@ | ||
95 | .rule-list-c { | 95 | .rule-list-c { |
96 | height: 198px; | 96 | height: 198px; |
97 | overflow-y: scroll; | 97 | overflow-y: scroll; |
98 | - padding: 0 30px; | 98 | + padding-left: 10px; |
99 | 99 | ||
100 | li { | 100 | li { |
101 | color: #fff; | 101 | color: #fff; |
-
Please register or login to post a comment