diff --git a/components/BsChosen.vue b/components/BsChosen.vue index 097ff1b..308f9c6 100644 --- a/components/BsChosen.vue +++ b/components/BsChosen.vue @@ -39,7 +39,8 @@ export default { categoryId: "", order: "", }); - vm.recommendedData = res.result; + console.log(res.result) + vm.recommendedData = res.result.records; }, }, }; diff --git a/layouts/module/header/HeaderCart.vue b/layouts/module/header/HeaderCart.vue index f06ea24..710caba 100644 --- a/layouts/module/header/HeaderCart.vue +++ b/layouts/module/header/HeaderCart.vue @@ -10,7 +10,7 @@
购物车 @@ -144,16 +144,13 @@ export default { }, }, methods: { - onJumpCart() { - if (!this.$isLoginValidate()) { - return; - } - this.$router.push("/cart"); - }, onJumpGoodsDetail(id) { this.$router.push(`/goods/detail/${id}`); }, onJumCartPage() { + if (!this.$isLoginValidate()) { + return; + } this.$router.push("/cart"); }, }, diff --git a/layouts/module/header/index.vue b/layouts/module/header/index.vue index faded79..eac91ff 100644 --- a/layouts/module/header/index.vue +++ b/layouts/module/header/index.vue @@ -61,14 +61,13 @@
-
- +
+
+ +