fix(关注/足迹): 优化交互逻辑
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
import common from './common.js';
|
||||
|
||||
export default {
|
||||
mixins: [common],
|
||||
data() {
|
||||
return {
|
||||
cartData: [], // 购物车
|
||||
@@ -444,9 +447,6 @@ export default {
|
||||
// });
|
||||
}
|
||||
},
|
||||
toLogin() {
|
||||
this.$refs.login.open();
|
||||
},
|
||||
// 重置编辑状态
|
||||
resetEditStatus() {
|
||||
if (this.cartData.length) {
|
||||
|
||||
8
pages_goods/public/js/common.js
Normal file
8
pages_goods/public/js/common.js
Normal file
@@ -0,0 +1,8 @@
|
||||
export default {
|
||||
methods: {
|
||||
// 跳转至登录页
|
||||
toLogin() {
|
||||
this.$refs.login.open();
|
||||
},
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user