Merge branch 'feature/download_individate' into 'master'
Feature/download individate See merge request !149
Showing
5 changed files
with
14 additions
and
6 deletions
1 | 'use strict'; | 1 | 'use strict'; |
2 | const model = require('../models/individuation'); | 2 | const model = require('../models/individuation'); |
3 | +const channels = { | ||
4 | + boys: 1, | ||
5 | + girl: 2, | ||
6 | + kids: 3, | ||
7 | + lifestyle: 4 | ||
8 | +}; | ||
3 | 9 | ||
4 | exports.productLst = function(req, res, next) { | 10 | exports.productLst = function(req, res, next) { |
5 | let keys = ['sort', 'misort', 'msort', 'gender', 'brand'], | 11 | let keys = ['sort', 'misort', 'msort', 'gender', 'brand'], |
@@ -8,7 +14,9 @@ exports.productLst = function(req, res, next) { | @@ -8,7 +14,9 @@ exports.productLst = function(req, res, next) { | ||
8 | uid: req.query.uid, | 14 | uid: req.query.uid, |
9 | udid: req.query.udid, | 15 | udid: req.query.udid, |
10 | promotion: req.query.pid, | 16 | promotion: req.query.pid, |
17 | + yh_channel: req.query.yh_channel || (req.cookies._Channel && channels[req.cookies._Channel]) || 1, | ||
11 | specified_sort: req.query.enum, | 18 | specified_sort: req.query.enum, |
19 | + stocknumber: req.query.sn, | ||
12 | p_d: req.query.pd, | 20 | p_d: req.query.pd, |
13 | limit: req.query.limit || 10 | 21 | limit: req.query.limit || 10 |
14 | }; | 22 | }; |
@@ -11,6 +11,8 @@ let _getProduct = function(o) { | @@ -11,6 +11,8 @@ let _getProduct = function(o) { | ||
11 | middle_sort_id: o.middle_sort_id, | 11 | middle_sort_id: o.middle_sort_id, |
12 | max_sort_id: o.max_sort_id, | 12 | max_sort_id: o.max_sort_id, |
13 | brand_id: o.brand_id, | 13 | brand_id: o.brand_id, |
14 | + shop_id: o.shop_id, | ||
15 | + shop_template_type: o.shop_template_type, | ||
14 | brand_domain: o.brand_domain, | 16 | brand_domain: o.brand_domain, |
15 | brand_name: o.brand_name, | 17 | brand_name: o.brand_name, |
16 | product_id: o.product_id, | 18 | product_id: o.product_id, |
@@ -20,7 +22,7 @@ let _getProduct = function(o) { | @@ -20,7 +22,7 @@ let _getProduct = function(o) { | ||
20 | sales_price: o.sales_price, | 22 | sales_price: o.sales_price, |
21 | cn_alphabet: o.cn_alphabet, | 23 | cn_alphabet: o.cn_alphabet, |
22 | default_images: o.default_images, | 24 | default_images: o.default_images, |
23 | - goods_id: Array.isArray(o.goods_list) && o.goods_list.length ? o.goods_list[0].goods_id : '' | 25 | + goods_id: Array.isArray(o.goods_list) && o.goods_list.length ? o.goods_list[0].goods_id : undefined |
24 | }; | 26 | }; |
25 | }; | 27 | }; |
26 | 28 |
@@ -63,5 +63,6 @@ | @@ -63,5 +63,6 @@ | ||
63 | <img src="https://feature.yoho.cn/0113/images/0157ad8f797d97f10cc21bd30333c5a7c5.jpg?imageView2/2/q/75/"> | 63 | <img src="https://feature.yoho.cn/0113/images/0157ad8f797d97f10cc21bd30333c5a7c5.jpg?imageView2/2/q/75/"> |
64 | </li> | 64 | </li> |
65 | </ul> | 65 | </ul> |
66 | + <input type="hidden" id="no-download" name=""> | ||
66 | </div> | 67 | </div> |
67 | </div> | 68 | </div> |
@@ -12,7 +12,7 @@ | @@ -12,7 +12,7 @@ | ||
12 | a.async = 1; | 12 | a.async = 1; |
13 | a.src = j; | 13 | a.src = j; |
14 | m.parentNode.insertBefore(a, m); | 14 | m.parentNode.insertBefore(a, m); |
15 | - }(window, document, 'script', (document.location.protocol === 'https:' ? 'https:' : 'http:') + '//cdn.yoho.cn/yas-jssdk/2.1.2/yas.js', '_yas')); | 15 | + }(window, document, 'script', (document.location.protocol === 'https:' ? 'https:' : 'http:') + '//cdn.yoho.cn/yas-jssdk/2.1.3/yas.js', '_yas')); |
16 | 16 | ||
17 | var _hmt = _hmt || []; | 17 | var _hmt = _hmt || []; |
18 | 18 | ||
@@ -56,7 +56,7 @@ | @@ -56,7 +56,7 @@ | ||
56 | uid = uid === 0 ? '' : uid; | 56 | uid = uid === 0 ? '' : uid; |
57 | window._ozuid = uid; // 暴露ozuid | 57 | window._ozuid = uid; // 暴露ozuid |
58 | if (window._yas) { | 58 | if (window._yas) { |
59 | - window._yas(1 * new Date(), '2.1.2', 'yohobuy_m', uid, '', ''); | 59 | + window._yas(1 * new Date(), '2.1.3', 'yohobuy_m', uid, '', ''); |
60 | } | 60 | } |
61 | 61 | ||
62 | // 非登录状态,加载百度统计 | 62 | // 非登录状态,加载百度统计 |
-
Please register or login to post a comment