Showing
1 changed file
with
2 additions
and
6 deletions
@@ -58,7 +58,6 @@ | @@ -58,7 +58,6 @@ | ||
58 | <script> | 58 | <script> |
59 | const yoho = require('yoho'); | 59 | const yoho = require('yoho'); |
60 | const $ = require('yoho-jquery'); | 60 | const $ = require('yoho-jquery'); |
61 | - const tip = require('common/tip'); | ||
62 | 61 | ||
63 | module.exports = { | 62 | module.exports = { |
64 | data() { | 63 | data() { |
@@ -94,15 +93,12 @@ | @@ -94,15 +93,12 @@ | ||
94 | url: '/product/shop/collect.json', | 93 | url: '/product/shop/collect.json', |
95 | data: data | 94 | data: data |
96 | }).done(result => { | 95 | }).done(result => { |
97 | - tip(result.message); | ||
98 | if (result.code === 200) { | 96 | if (result.code === 200) { |
99 | this.shareData.isFav = !this.shareData.isFav; | 97 | this.shareData.isFav = !this.shareData.isFav; |
100 | } else if (result.code === 403) { | 98 | } else if (result.code === 403) { |
101 | - yoho.goLogin(); | 99 | + yoho.goLogin('', this.collectShop); |
102 | } | 100 | } |
103 | - }).fail(() => { | ||
104 | - tip('网络错误'); | ||
105 | - }); | 101 | + }).fail(() => {}); |
106 | }, | 102 | }, |
107 | showFilter() { | 103 | showFilter() { |
108 | this.$parent.$refs.filter.isVisible = !this.$parent.$refs.filter.isVisible; | 104 | this.$parent.$refs.filter.isVisible = !this.$parent.$refs.filter.isVisible; |
-
Please register or login to post a comment