diff --git a/components/BsLogin.vue b/components/BsLogin.vue index 04f2469..8a76a80 100644 --- a/components/BsLogin.vue +++ b/components/BsLogin.vue @@ -150,7 +150,7 @@ export default { const { result } = await ApiPostLogin({ ...this.form, clientId: 1, - systemId: 1, + systemId: 3, }); if (result) { this.dialogTableVisible = false; diff --git a/layouts/module/header/HeaderInfoBar.vue b/layouts/module/header/HeaderInfoBar.vue index 725cd9c..b602737 100644 --- a/layouts/module/header/HeaderInfoBar.vue +++ b/layouts/module/header/HeaderInfoBar.vue @@ -46,14 +46,20 @@
-
+
我的订单
@@ -110,15 +116,20 @@ export default { handleCommandClick(event) { switch (event) { case MENU_VALUE.PERSONAL: - this.$router.push('/account'); + this.$router.push("/account"); break; case MENU_VALUE.ADDRESS: - this.$router.push('/account'); - break; + this.$router.push("/account"); + break; case MENU_VALUE.LOGON_OUT: this.$store.commit("setLoginOut"); } }, + + // 跳转个人中心页面 + onJumpPersonalPage(type) { + this.$router.push(`/account?type=${type}`); + }, }, }; diff --git a/layouts/module/header/index.vue b/layouts/module/header/index.vue index 0ad6e58..5a861ac 100644 --- a/layouts/module/header/index.vue +++ b/layouts/module/header/index.vue @@ -58,15 +58,21 @@ placeholder="请输入商品名称" >
-
+
-
+ 购物车
3
-
+
@@ -91,7 +97,7 @@
- {{ item.label }} - + @@ -167,9 +174,9 @@ export default { tabPath: "/", tabList: [ { label: "首页", value: "/" }, - { label: "爆款推荐", value: "/hot" }, - { label: "开发书籍", value: "/book" }, - { label: "限时秒杀", value: "/skill" }, + { label: "爆款推荐", value: "/goods/list?id=1" }, + { label: "开发书籍", value: "/goods/list?id=2" }, + { label: "限时秒杀", value: "/sckill" }, ], categroyTwoVisible: false, // 是否展示二级分类 categroyVisible: false, // 是否展示一级分类 @@ -194,9 +201,13 @@ export default { this.$isLoginValidate(); }, // 一级分类选中 - handleCategoSelect(id) { + handleCategorySelect(id) { this.currentCategrayId = id; }, + // 二级分类点击 + onCateogryTwoClick() { + this.$router.push("/goods/list"); + }, // 一级分类是否可见 handleCategoryChange(val) { this.categroyVisible = val; @@ -208,6 +219,10 @@ export default { handleTabSelect(path) { this.$router.push({ path }); }, + onTabSelect({ value }) { + this.tabPath = value; + this.$router.push({ path: value }); + }, // 获取热门分类信息 async getCategroyData() { const { result } = await ApiGetCategoryOneList(); @@ -227,6 +242,10 @@ export default { ); } }, + onSearch() { + // 储存搜索内容 + this.$router.push("/goods/list"); + }, }, };