Merge branch 'hotfix/slim'
Showing
15 changed files
with
8 additions
and
80 deletions
@@ -10,20 +10,7 @@ | @@ -10,20 +10,7 @@ | ||
10 | s0.parentNode.insertBefore(s, s0); | 10 | s0.parentNode.insertBefore(s, s0); |
11 | })(document); | 11 | })(document); |
12 | </script> | 12 | </script> |
13 | -<script type="text/javascript" src="//static.criteo.net/js/ld/ld.js" async="true"></script> | ||
14 | -<script type="text/javascript"> | ||
15 | - window.criteo_q = window.criteo_q || []; | ||
16 | - window.criteo_q.push( | ||
17 | - {event: "setAccount", account: 16184}, | ||
18 | - {event: "setCustomerId", id: "{{uid}}"}, | ||
19 | - {event: "setSiteType", type: "d"}, | ||
20 | - {event: "viewBasket", item: [ | ||
21 | - {{# cart.criteo}} | ||
22 | - {"id":"{{id}}","quantity":"{{quantity}}","price":"{{price}}"}, | ||
23 | - {{/ cart.criteo}} | ||
24 | - ]} | ||
25 | - ); | ||
26 | -</script> | 13 | + |
27 | <!-- 聚效 --> | 14 | <!-- 聚效 --> |
28 | <script type="text/javascript"> | 15 | <script type="text/javascript"> |
29 | var _mvq = window._mvq || []; | 16 | var _mvq = window._mvq || []; |
1 | -<script> | ||
2 | - window.onload = function() { | ||
3 | - var hm = document.createElement("script"); | ||
4 | - hm.src = "//static.criteo.net/js/ld/ld.js"; | ||
5 | - hm.async = 1; | ||
6 | - var s = document.getElementsByTagName("script")[0]; | ||
7 | - s.parentNode.insertBefore(hm, s); | ||
8 | - var u = _ozuid || ""; | ||
9 | - u = (u == 0) ? "" : u; | ||
10 | - window.criteo_q = window.criteo_q || []; | ||
11 | - window.criteo_q.push({event: "setAccount", account: 16184 },{event: "setCustomerId", id: u},{event: "setSiteType", type: "d" },{event: "viewHome" }); | ||
12 | - }; | ||
13 | -</script> | 1 | + |
14 | 2 |
@@ -151,8 +151,6 @@ const getListData = (params, channel) => { | @@ -151,8 +151,6 @@ const getListData = (params, channel) => { | ||
151 | Object.assign(finalResult.list.leftContent, searchHandler.handleSortAds(result[4].data)); | 151 | Object.assign(finalResult.list.leftContent, searchHandler.handleSortAds(result[4].data)); |
152 | } | 152 | } |
153 | 153 | ||
154 | - finalResult.criteo = {skn: searchHandler.getCriteo(_.get(finalResult.list, 'goods'))}; | ||
155 | - | ||
156 | let seo = searchHandler.getListSeo(channel, | 154 | let seo = searchHandler.getListSeo(channel, |
157 | _.get(finalResult, 'list.leftContent.allSort.list'), | 155 | _.get(finalResult, 'list.leftContent.allSort.list'), |
158 | _.get(finalResult, 'list.filters.checkedConditions.conditions')); | 156 | _.get(finalResult, 'list.filters.checkedConditions.conditions')); |
@@ -360,8 +358,6 @@ const getBrandData = (params, extra, channel) => { | @@ -360,8 +358,6 @@ const getBrandData = (params, extra, channel) => { | ||
360 | _.get(result[3], 'data.coupons', []), {brandId: extra.brandId}); | 358 | _.get(result[3], 'data.coupons', []), {brandId: extra.brandId}); |
361 | } | 359 | } |
362 | 360 | ||
363 | - finalResult.criteo = {skn: searchHandler.getCriteo(_.get(finalResult.brand, 'goods'))}; | ||
364 | - | ||
365 | let seo = searchHandler.getBrandShopSeo(channel, extra, params); | 361 | let seo = searchHandler.getBrandShopSeo(channel, extra, params); |
366 | 362 | ||
367 | return Object.assign({}, seo, finalResult); | 363 | return Object.assign({}, seo, finalResult); |
1 | -{{# criteo}} | ||
2 | - <script type="text/javascript" src="//static.criteo.net/js/ld/ld.js" async="true"></script> | ||
3 | - <script type="text/javascript"> | ||
4 | - window.criteo_q = window.criteo_q || []; | ||
5 | - window.criteo_q.push( | ||
6 | - { event: "setAccount", account: [16184] }, | ||
7 | - { event: "setSiteType", type: "d" }, | ||
8 | - { event: "viewList", item: [{{#each skn}}"{{.}}"{{#unless @last}},{{/unless}}{{/each}}]} | ||
9 | - ); | ||
10 | - </script> | ||
11 | -{{/ criteo}} |
1 | 1 | ||
2 | {{# brandBanner}} | 2 | {{# brandBanner}} |
3 | <div class="brand-banner"> | 3 | <div class="brand-banner"> |
4 | - <div class="banner-img" style="height: {{bannerHeight}}px;background: url({{image2 banner}})"></div> | 4 | + <div class="banner-img" style="height: {{bannerHeight}}px;background: url({{image2 banner q=100}})"></div> |
5 | <div class="opt-wrap"> | 5 | <div class="opt-wrap"> |
6 | <p class="opt center-content"> | 6 | <p class="opt center-content"> |
7 | <a href="{{brandHome}}"> | 7 | <a href="{{brandHome}}"> |
@@ -22,7 +22,7 @@ | @@ -22,7 +22,7 @@ | ||
22 | 22 | ||
23 | {{# shopBanner}} | 23 | {{# shopBanner}} |
24 | <div class="brand-banner base-shop-banner"> | 24 | <div class="brand-banner base-shop-banner"> |
25 | - <div class="banner-img" style="height: {{bannerHeight}}px;background: url({{image2 banner}})"></div> | 25 | + <div class="banner-img" style="height: {{bannerHeight}}px;background: url({{image2 banner q=100}})"></div> |
26 | <div class="opt-wrap"> | 26 | <div class="opt-wrap"> |
27 | <div class="opt center-content"> | 27 | <div class="opt center-content"> |
28 | {{#if showShopName}} | 28 | {{#if showShopName}} |
1 | {{# statGoodsInfo}} | 1 | {{# statGoodsInfo}} |
2 | - <script type="text/javascript" src="//static.criteo.net/js/ld/ld.js" async="true"></script> | ||
3 | - <script type="text/javascript"> | ||
4 | - window.criteo_q = window.criteo_q || []; | ||
5 | - window.criteo_q.push( | ||
6 | - {event: "setAccount", account: 16184}, | ||
7 | - {event: "setCustomerId", id: "{{uid}}"}, | ||
8 | - {event: "setSiteType", type: "d"}, | ||
9 | - {event: "viewItem", item: "{{skn}}"} | ||
10 | - ); | ||
11 | - </script> | ||
12 | <script type="text/javascript"> | 2 | <script type="text/javascript"> |
13 | var _mvq = _mvq || []; | 3 | var _mvq = _mvq || []; |
14 | _mvq.push(['$setAccount', 'm-23428-1']); | 4 | _mvq.push(['$setAccount', 'm-23428-1']); |
1 | -{{# criteo}} | ||
2 | -<script type="text/javascript" src="//static.criteo.net/js/ld/ld.js" async="true"></script> | ||
3 | -<script type="text/javascript"> | ||
4 | -window.criteo_q = window.criteo_q || []; | ||
5 | -window.criteo_q.push( | ||
6 | - { event: "setAccount", account: [16184] }, | ||
7 | - { event: "setSiteType", type: "d" }, | ||
8 | - { event: "trackTransaction" , id: "{{order_code}}", item: [ | ||
9 | - {{#each items}} | ||
10 | - { id: "{{product_skn}}", price: "{{goods_price}}", quantity: "{{buy_number}}"} | ||
11 | - {{#unless @last}} | ||
12 | - , | ||
13 | - {{/unless}} | ||
14 | - {{/each}} | ||
15 | - ]} | ||
16 | -); | ||
17 | -</script> | ||
18 | -{{/ criteo}} | 1 | + |
@@ -61,7 +61,7 @@ module.exports = function(imageUrl, opts) { | @@ -61,7 +61,7 @@ module.exports = function(imageUrl, opts) { | ||
61 | } else { | 61 | } else { |
62 | query = 'imageView2/2/interlace/1/q/' + (params.q || 75); | 62 | query = 'imageView2/2/interlace/1/q/' + (params.q || 75); |
63 | } | 63 | } |
64 | - return uri + '?' + query + '|imageslim'; | 64 | + return uri + '?' + query; |
65 | } else { | 65 | } else { |
66 | return imageUrl; | 66 | return imageUrl; |
67 | } | 67 | } |
@@ -61,7 +61,7 @@ module.exports = { | @@ -61,7 +61,7 @@ module.exports = { | ||
61 | } else { | 61 | } else { |
62 | query = 'imageView2/2/interlace/1/q/' + (params.q || 75); | 62 | query = 'imageView2/2/interlace/1/q/' + (params.q || 75); |
63 | } | 63 | } |
64 | - return uri + '?' + query + '|imageslim'; | 64 | + return uri + '?' + query; |
65 | } else { | 65 | } else { |
66 | return ''; | 66 | return ''; |
67 | } | 67 | } |
-
Please register or login to post a comment