Authored by Aiden Xu

Merge branch 'feature/product' into develop

... ... @@ -95,6 +95,15 @@ const component = {
params.method = 'app.favorite.cancel';
}
if (!req.user.uid) {
// 未登陆
res.json({
code: 403
});
return;
}
model.favorite(params).then(result => {
res.json(result);
}).catch(next);
... ...
... ... @@ -168,7 +168,7 @@
<div class="control-box">
<button class="button control-button" style="flex: 1">
<a style="position:relative">
<a href="javascript:void(0);" @click="yoho.goShopingCart()">
<i class="icon icon-bag"></i>
<span v-if="cartCount > 0" class="badge badge-tr">{{cartCount}}</span>
</a>
... ... @@ -395,6 +395,7 @@
module.exports = {
data() {
return {
yoho: yoho,
intro: {},
entity: {
brand: {
... ... @@ -407,7 +408,6 @@
},
showFeatureSelector: false,
cartCount: 0,
yoho: yoho,
/**
* 加入购物车回调
... ... @@ -467,6 +467,9 @@
if (result.code === 200) {
tip('取消收藏成功');
this.entity.isCollect = 'N';
} else if (result.code === 403) {
// 未登陆
yoho.goLogin();
}
});
} else {
... ...