Authored by 周少峰

del criteo

... ... @@ -10,20 +10,7 @@
s0.parentNode.insertBefore(s, s0);
})(document);
</script>
<script type="text/javascript" src="//static.criteo.net/js/ld/ld.js" async="true"></script>
<script type="text/javascript">
window.criteo_q = window.criteo_q || [];
window.criteo_q.push(
{event: "setAccount", account: 16184},
{event: "setCustomerId", id: "{{uid}}"},
{event: "setSiteType", type: "d"},
{event: "viewBasket", item: [
{{# cart.criteo}}
{"id":"{{id}}","quantity":"{{quantity}}","price":"{{price}}"},
{{/ cart.criteo}}
]}
);
</script>
<!-- 聚效 -->
<script type="text/javascript">
var _mvq = window._mvq || [];
... ...
<script>
window.onload = function() {
var hm = document.createElement("script");
hm.src = "//static.criteo.net/js/ld/ld.js";
hm.async = 1;
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
var u = _ozuid || "";
u = (u == 0) ? "" : u;
window.criteo_q = window.criteo_q || [];
window.criteo_q.push({event: "setAccount", account: 16184 },{event: "setCustomerId", id: u},{event: "setSiteType", type: "d" },{event: "viewHome" });
};
</script>
... ...
... ... @@ -151,8 +151,6 @@ const getListData = (params, channel) => {
Object.assign(finalResult.list.leftContent, searchHandler.handleSortAds(result[4].data));
}
finalResult.criteo = {skn: searchHandler.getCriteo(_.get(finalResult.list, 'goods'))};
let seo = searchHandler.getListSeo(channel,
_.get(finalResult, 'list.leftContent.allSort.list'),
_.get(finalResult, 'list.filters.checkedConditions.conditions'));
... ... @@ -360,8 +358,6 @@ const getBrandData = (params, extra, channel) => {
_.get(result[3], 'data.coupons', []), {brandId: extra.brandId});
}
finalResult.criteo = {skn: searchHandler.getCriteo(_.get(finalResult.brand, 'goods'))};
let seo = searchHandler.getBrandShopSeo(channel, extra, params);
return Object.assign({}, seo, finalResult);
... ...
... ... @@ -2,5 +2,4 @@
{{# brand}}
{{> list/list}}
{{/brand}}
{{> common/criteo}}
</div>
... ...
... ... @@ -8,5 +8,4 @@
{{> list/list}}
{{/list}}
{{> common/criteo}}
</div>
... ...
... ... @@ -30,4 +30,3 @@
</div>
</div>
</div>
{{> common/criteo}}
... ...
... ... @@ -11,5 +11,4 @@
{{/ saleList}}
</div>
</div>
{{> common/criteo}}
{{/ result}}
... ...
... ... @@ -4,5 +4,4 @@
{{> list/list}}
{{/search}}
{{> common/criteo}}
</div>
... ...
{{# criteo}}
<script type="text/javascript" src="//static.criteo.net/js/ld/ld.js" async="true"></script>
<script type="text/javascript">
window.criteo_q = window.criteo_q || [];
window.criteo_q.push(
{ event: "setAccount", account: [16184] },
{ event: "setSiteType", type: "d" },
{ event: "viewList", item: [{{#each skn}}"{{.}}"{{#unless @last}},{{/unless}}{{/each}}]}
);
</script>
{{/ criteo}}
\ No newline at end of file
{{# brandBanner}}
<div class="brand-banner">
<div class="banner-img" style="height: {{bannerHeight}}px;background: url({{image2 banner}})"></div>
<div class="banner-img" style="height: {{bannerHeight}}px;background: url({{image2 banner q=100}})"></div>
<div class="opt-wrap">
<p class="opt center-content">
<a href="{{brandHome}}">
... ... @@ -22,7 +22,7 @@
{{# shopBanner}}
<div class="brand-banner base-shop-banner">
<div class="banner-img" style="height: {{bannerHeight}}px;background: url({{image2 banner}})"></div>
<div class="banner-img" style="height: {{bannerHeight}}px;background: url({{image2 banner q=100}})"></div>
<div class="opt-wrap">
<div class="opt center-content">
{{#if showShopName}}
... ...
{{# statGoodsInfo}}
<script type="text/javascript" src="//static.criteo.net/js/ld/ld.js" async="true"></script>
<script type="text/javascript">
window.criteo_q = window.criteo_q || [];
window.criteo_q.push(
{event: "setAccount", account: 16184},
{event: "setCustomerId", id: "{{uid}}"},
{event: "setSiteType", type: "d"},
{event: "viewItem", item: "{{skn}}"}
);
</script>
<script type="text/javascript">
var _mvq = _mvq || [];
_mvq.push(['$setAccount', 'm-23428-1']);
... ...
{{# criteo}}
<script type="text/javascript" src="//static.criteo.net/js/ld/ld.js" async="true"></script>
<script type="text/javascript">
window.criteo_q = window.criteo_q || [];
window.criteo_q.push(
{ event: "setAccount", account: [16184] },
{ event: "setSiteType", type: "d" },
{ event: "trackTransaction" , id: "{{order_code}}", item: [
{{#each items}}
{ id: "{{product_skn}}", price: "{{goods_price}}", quantity: "{{buy_number}}"}
{{#unless @last}}
,
{{/unless}}
{{/each}}
]}
);
</script>
{{/ criteo}}
... ...