...
|
...
|
@@ -848,7 +848,7 @@ const getRecommendProduct = (channel, uid, udid, page) => { |
|
|
*/
|
|
|
const getTogetherProduct = (page) => {
|
|
|
|
|
|
return co(function * (){
|
|
|
return co(function * () {
|
|
|
let result = {
|
|
|
code: 200,
|
|
|
message: '',
|
...
|
...
|
@@ -866,7 +866,7 @@ const getTogetherProduct = (page) => { |
|
|
|
|
|
let together = yield cartApi.togetherProduct(page);
|
|
|
|
|
|
if(!_.get(together, 'data.goods')) {
|
|
|
if (!_.get(together, 'data.goods')) {
|
|
|
return result;
|
|
|
}
|
|
|
|
...
|
...
|
@@ -878,6 +878,7 @@ const getTogetherProduct = (page) => { |
|
|
let item = {
|
|
|
id: it.id,
|
|
|
skn: it.product_skn,
|
|
|
|
|
|
// it.url,
|
|
|
href: it.url,
|
|
|
title: it.product_name,
|
...
|
...
|
@@ -887,7 +888,7 @@ const getTogetherProduct = (page) => { |
|
|
};
|
|
|
|
|
|
// 商品链接
|
|
|
/*let cnAlphaBet = it.cn_alphabet ? it.cn_alphabet : md5(it.product_name);
|
|
|
/* let cnAlphaBet = it.cn_alphabet ? it.cn_alphabet : md5(it.product_name);
|
|
|
let firstGoods = it.goods_list && it.goods_list[0];
|
|
|
let productSkc = firstGoods && firstGoods.product_skc;
|
|
|
|
...
|
...
|
@@ -905,7 +906,7 @@ const getTogetherProduct = (page) => { |
|
|
result.data.hasPrev = false;
|
|
|
}
|
|
|
|
|
|
if(!result.data.item || result.data.item.length < 6) {
|
|
|
if (!result.data.item || result.data.item.length < 6) {
|
|
|
result.data.hasNext = false;
|
|
|
}
|
|
|
|
...
|
...
|
|