diff --git a/assets/scss/global.scss b/assets/scss/global.scss index eaf5ae1..6562b60 100644 --- a/assets/scss/global.scss +++ b/assets/scss/global.scss @@ -34,14 +34,4 @@ table {border-collapse: collapse; border-spacing: 0; a { text-decoration:none; color: #333; &:hover { text-decoration:none;} -} -.c-white-main { - width: 1200px; - margin: 0 auto; -} -.c-grey-main{ - width: 1200px; - margin: 0 auto; - background: #fff; - } \ No newline at end of file diff --git a/assets/scss/util.scss b/assets/scss/util.scss index d739270..7f5eba8 100644 --- a/assets/scss/util.scss +++ b/assets/scss/util.scss @@ -85,4 +85,10 @@ $baseFontSize: 100 !default; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; +} + +/*内容居中布局*/ +@mixin layout-box { + width: 1200px; + margin: 0 auto; } \ No newline at end of file diff --git a/components/BsAddress.vue b/components/BsAddress.vue new file mode 100644 index 0000000..8f0db1d --- /dev/null +++ b/components/BsAddress.vue @@ -0,0 +1,20 @@ + + + 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/pages/goods/list/module/Item.vue b/components/UiGoodsItem.vue similarity index 92% rename from pages/goods/list/module/Item.vue rename to components/UiGoodsItem.vue index 84e9786..a9d94b9 100644 --- a/pages/goods/list/module/Item.vue +++ b/components/UiGoodsItem.vue @@ -15,7 +15,7 @@ diff --git a/layouts/module/header/HeaderInfoBar.vue b/layouts/module/header/HeaderInfoBar.vue index aef98a2..d40b782 100644 --- a/layouts/module/header/HeaderInfoBar.vue +++ b/layouts/module/header/HeaderInfoBar.vue @@ -46,14 +46,20 @@
-
+
我的订单
@@ -110,13 +116,20 @@ export default { handleCommandClick(event) { switch (event) { case MENU_VALUE.PERSONAL: - this.$router.push('/account'); - case MENU_VALUE.ADDRESS: - this.$router.push('/account'); + this.$router.push("/account"); + break; + case MENU_VALUE.ADDRESS: + this.$router.push("/account"); + break; case MENU_VALUE.LOGON_OUT: this.$store.commit("setLoginOut"); } }, + + // 跳转个人中心页面 + onJumpPersonalPage(type) { + this.$router.push(`/account?type=${type}`); + }, }, }; @@ -166,8 +179,7 @@ export default { border-radius: 0px 0px 0px 0px; .info-bar-header-wrap { height: 100%; - width: 1200px; - margin: 0 auto; + @include layout-box; .header-wrap__content { .header-wrap-content__login { .wrap-content-login__text { diff --git a/layouts/module/header/index.vue b/layouts/module/header/index.vue index fe91d01..79c7d92 100644 --- a/layouts/module/header/index.vue +++ b/layouts/module/header/index.vue @@ -1,5 +1,5 @@