Merge remote-tracking branch 'origin/release/5.1' into release/5.1
Showing
3 changed files
with
16 additions
and
11 deletions
@@ -14,8 +14,10 @@ const shopList = (uid, tabName) => { | @@ -14,8 +14,10 @@ const shopList = (uid, tabName) => { | ||
14 | method: 'app.shops.promote', | 14 | method: 'app.shops.promote', |
15 | uid: uid, | 15 | uid: uid, |
16 | tab_name: tabName | 16 | tab_name: tabName |
17 | + }, { | ||
18 | + code: 200, | ||
19 | + cache: true | ||
17 | }).then((result) => { | 20 | }).then((result) => { |
18 | - | ||
19 | if (result && result.code === 200) { | 21 | if (result && result.code === 200) { |
20 | _.forEach(result.data, function(data) { | 22 | _.forEach(result.data, function(data) { |
21 | data.isFavorite = data.isFavorite === 'Y'; | 23 | data.isFavorite = data.isFavorite === 'Y'; |
@@ -31,8 +33,11 @@ const shopList = (uid, tabName) => { | @@ -31,8 +33,11 @@ const shopList = (uid, tabName) => { | ||
31 | const shopNav = () => { | 33 | const shopNav = () => { |
32 | return api.get('', { | 34 | return api.get('', { |
33 | method: 'app.shops.promoteTabNameList' | 35 | method: 'app.shops.promoteTabNameList' |
36 | + }, { | ||
37 | + cache: true, | ||
38 | + code: 200 | ||
34 | }).then((result) => { | 39 | }).then((result) => { |
35 | - if (result && result.code === 200) { | 40 | + if (result.data) { |
36 | return result.data; | 41 | return result.data; |
37 | } | 42 | } |
38 | }); | 43 | }); |
@@ -40,11 +45,13 @@ const shopNav = () => { | @@ -40,11 +45,13 @@ const shopNav = () => { | ||
40 | 45 | ||
41 | const banner = () => { | 46 | const banner = () => { |
42 | return service.get('operations/api/v5/resource/get', { | 47 | return service.get('operations/api/v5/resource/get', { |
43 | - content_code: 'c0acf0296a3c329678fb45da958d9951' | 48 | + content_code: 'ec9eb72eae121fcd6c1b7d1de75caff1' |
44 | }, { | 49 | }, { |
45 | - cache: true | 50 | + cache: true, |
51 | + code: 200 | ||
46 | }).then((result) => { | 52 | }).then((result) => { |
47 | - if (result && result.code === 200) { | 53 | + console.log(result) |
54 | + if (result && result.data) { | ||
48 | return result.data[0]; | 55 | return result.data[0]; |
49 | } | 56 | } |
50 | }); | 57 | }); |
@@ -133,7 +133,7 @@ function shopNavData() { | @@ -133,7 +133,7 @@ function shopNavData() { | ||
133 | // 加载第一页数据 | 133 | // 加载第一页数据 |
134 | if (navType.id) { | 134 | if (navType.id) { |
135 | $('.shop-nav').find('li').each(function() { | 135 | $('.shop-nav').find('li').each(function() { |
136 | - if (navType.id === $(this).data('type')) { | 136 | + if (decodeURI(navType.id) === $(this).data('type')) { |
137 | $(this).addClass('active'); | 137 | $(this).addClass('active'); |
138 | shopListData($(this).data('type')); | 138 | shopListData($(this).data('type')); |
139 | } | 139 | } |
@@ -183,6 +183,4 @@ $(function() { | @@ -183,6 +183,4 @@ $(function() { | ||
183 | pagination: '.banner-top .pagination-inner' | 183 | pagination: '.banner-top .pagination-inner' |
184 | }); | 184 | }); |
185 | } | 185 | } |
186 | - | ||
187 | - | ||
188 | }); | 186 | }); |
@@ -153,7 +153,7 @@ $( | @@ -153,7 +153,7 @@ $( | ||
153 | '<div class="seckill-time seckill-time-border">' + | 153 | '<div class="seckill-time seckill-time-border">' + |
154 | '<span>距结束 </span>' + | 154 | '<span>距结束 </span>' + |
155 | '<span class="end-time">' + | 155 | '<span class="end-time">' + |
156 | - '<i class="tick day hide">00</i>:' + | 156 | + '<i class="tick day hide">00</i>' + |
157 | '<i class="tick hour">00</i>:' + | 157 | '<i class="tick hour">00</i>:' + |
158 | '<i class="tick minute">00</i>:' + | 158 | '<i class="tick minute">00</i>:' + |
159 | '<i class="tick second">00</i>' + | 159 | '<i class="tick second">00</i>' + |
@@ -162,9 +162,9 @@ $( | @@ -162,9 +162,9 @@ $( | ||
162 | ); | 162 | ); |
163 | $('.text-info').append( | 163 | $('.text-info').append( |
164 | '<div class="seckill-time seckill-time-border seckill-chose">' + | 164 | '<div class="seckill-time seckill-time-border seckill-chose">' + |
165 | - '<span>距结束 </span>' + | 165 | + '<span>距结束 </span>' + |
166 | '<span class="end-time">' + | 166 | '<span class="end-time">' + |
167 | - '<i class="tick day hide">00</i>:' + | 167 | + '<i class="tick day hide">00</i>' + |
168 | '<i class="tick hour">00</i>:' + | 168 | '<i class="tick hour">00</i>:' + |
169 | '<i class="tick minute">00</i>:' + | 169 | '<i class="tick minute">00</i>:' + |
170 | '<i class="tick second">00</i>' + | 170 | '<i class="tick second">00</i>' + |
-
Please register or login to post a comment