Authored by zhangxiaoru

favorite

... ... @@ -27,10 +27,12 @@ const favorite = (req, res) => {
};
let favProduct = (req, res, next) => {
let uid = req.user.uid;
let uid = req.user.uid || 5987341;
let page = req.query.page || 1;
let limit = 10;
console.log(uid)
favoriteModel.favProduct(uid, page, limit).then((result) => {
if (typeof(result.total) === 'undefined' && typeof(result.more) === 'undefined') {
... ... @@ -45,7 +47,7 @@ let favProduct = (req, res, next) => {
};
let favfavBrand = (req, res, next) => {
let uid = req.user.uid;
let uid = req.user.uid || 8039759;
let page = req.query.page || 1;
let limit = 10;
... ...
... ... @@ -14,8 +14,6 @@ const myCurrency = (req, res, next) => {
let uid = req.user.uid || 8039759;
let contentCode = '05afedf76886d732573f10f7451a1703';
// let gender = req.query.gender || '3,3';
myCurrencyModel.myCurrency(uid, contentCode).then(result => {
res.render('currency-new', {
... ...
... ... @@ -21,7 +21,7 @@ const suggestData = (req, res, next) => {
module: 'home',
page: 'suggest',
pageHeader: _.assign(headerModel.setNav({
navTitle: '有货币'
navTitle: '意见反馈'
}), {
navBtn: false
}),
... ...
... ... @@ -21,7 +21,7 @@ const suggestData = (udid, page, limit) => {
page: page,
limit: limit
}).then((result) => {
// console.log(result)
if (result && result.code === 200) {
_.forEach(result.data.list, function(data) {
... ... @@ -31,7 +31,6 @@ const suggestData = (udid, page, limit) => {
none: data.is_reliable === 0
});
});
return camelCase(result.data.list);
} else {
logger.error('收藏商品 cood 不是 200');
... ...
... ... @@ -16,7 +16,7 @@
<div class="suggest-item" data-id="{{id}}">
{{#if coverImage}}
<div class="suggest-item-img">
<img class="lazy" data-original="{{coverImage}}" alt=""/>
<img class="lazy" data-original="{{coverImageUrl}}" alt=""/>
</div>
{{/if}}
<h2>{{filterContent}}</h2>
... ...
... ... @@ -19,7 +19,6 @@ const mayLike = (req, res, next) => {
if (channel === 1 || channel === 2) {
mayLikeModel.mayLike(uid, page, limit, gender, udid, recPos, channel).then((result) => {
console.log(recPos);
res.render('recom/goods', Object.assign({
layout: false
... ...
... ... @@ -97,7 +97,6 @@ function loadData($parent, url, page) {
$parent.closest('.fav-type').find('.fav-null-box').removeClass('hide');
window.rePosFooter();
} else if (data.more === true) {
console.log(0);
// 处理data等于end时如果loadingMask存在且没有hide样式的情况
if ($loadingMask && !$loadingMask.hasClass('hide')) {
... ...
... ... @@ -345,6 +345,6 @@
position: absolute;
top: 50%;
left: 0;
margin-top: -1rem;
margin-top: 9.5rem;
}
}
... ...
... ... @@ -350,6 +350,6 @@
position: absolute;
top: 50%;
left: 0;
margin-top: -1rem;
margin-top: 9.5rem;
}
}
... ...