|
@@ -168,7 +168,7 @@ |
|
@@ -168,7 +168,7 @@ |
168
|
|
168
|
|
169
|
<div class="control-box">
|
169
|
<div class="control-box">
|
170
|
<button class="button control-button" style="flex: 1">
|
170
|
<button class="button control-button" style="flex: 1">
|
171
|
- <a style="position:relative">
|
171
|
+ <a href="javascript:void(0);" @click="yoho.goShopingCart()">
|
172
|
<i class="icon icon-bag"></i>
|
172
|
<i class="icon icon-bag"></i>
|
173
|
<span v-if="cartCount > 0" class="badge badge-tr">{{cartCount}}</span>
|
173
|
<span v-if="cartCount > 0" class="badge badge-tr">{{cartCount}}</span>
|
174
|
</a>
|
174
|
</a>
|
|
@@ -395,6 +395,7 @@ |
|
@@ -395,6 +395,7 @@ |
395
|
module.exports = {
|
395
|
module.exports = {
|
396
|
data() {
|
396
|
data() {
|
397
|
return {
|
397
|
return {
|
|
|
398
|
+ yoho: yoho,
|
398
|
intro: {},
|
399
|
intro: {},
|
399
|
entity: {
|
400
|
entity: {
|
400
|
brand: {
|
401
|
brand: {
|
|
@@ -407,7 +408,6 @@ |
|
@@ -407,7 +408,6 @@ |
407
|
},
|
408
|
},
|
408
|
showFeatureSelector: false,
|
409
|
showFeatureSelector: false,
|
409
|
cartCount: 0,
|
410
|
cartCount: 0,
|
410
|
- yoho: yoho,
|
|
|
411
|
|
411
|
|
412
|
/**
|
412
|
/**
|
413
|
* 加入购物车回调
|
413
|
* 加入购物车回调
|
|
@@ -467,6 +467,9 @@ |
|
@@ -467,6 +467,9 @@ |
467
|
if (result.code === 200) {
|
467
|
if (result.code === 200) {
|
468
|
tip('取消收藏成功');
|
468
|
tip('取消收藏成功');
|
469
|
this.entity.isCollect = 'N';
|
469
|
this.entity.isCollect = 'N';
|
|
|
470
|
+ } else if (result.code === 403) {
|
|
|
471
|
+ // 未登陆
|
|
|
472
|
+ yoho.goLogin();
|
470
|
}
|
473
|
}
|
471
|
});
|
474
|
});
|
472
|
} else {
|
475
|
} else {
|