diff --git a/src/assets/images/tab_left_active.png b/src/assets/images/tab_left_active.png new file mode 100644 index 0000000..a20bd8a Binary files /dev/null and b/src/assets/images/tab_left_active.png differ diff --git a/src/assets/images/tab_right_active.png b/src/assets/images/tab_right_active.png new file mode 100644 index 0000000..a1db363 Binary files /dev/null and b/src/assets/images/tab_right_active.png differ diff --git a/src/assets/styles/index.scss b/src/assets/styles/index.scss index 93ab1eb..3000a5c 100644 --- a/src/assets/styles/index.scss +++ b/src/assets/styles/index.scss @@ -121,6 +121,14 @@ aside { } } +ul{ + margin: 0; + padding: 0; + li{ + list-style: none; + } +} + //main-container全局样式 .app-wrapper{ background-color: $menuBg; diff --git a/src/assets/styles/yxk-admin.scss b/src/assets/styles/yxk-admin.scss index c058ccb..ce8c18d 100644 --- a/src/assets/styles/yxk-admin.scss +++ b/src/assets/styles/yxk-admin.scss @@ -638,4 +638,88 @@ .el-input__prefix{ left: 8px; +} + +// tab样式布局 +.tab-content{ + margin-top: 40px; + border-top: none; + &::before{ + display: none; + } + .tab-nav{ + display: flex; + justify-content: flex-start; + height: 41px; + line-height: 41px; + margin: -41px 0 30px -1px; + font-size: 16px; + font-weight: bold; + color: #359AFC; + border-bottom: 1px solid #113D72; + li{ + position: relative; + padding: 0 24px; + margin: -1px 30px 0 0; + letter-spacing: 2px; + border-top: 1px solid #113D72; + cursor: pointer; + &::before, + &::after{ + content: ""; + position: absolute; + top: 0; + width: 33px; + height: 41px; + } + &::before{ + left: -15px; + background: url(~@/assets/images/tab_left.png) no-repeat; + background-size: contain; + } + &::after{ + right: -32px; + background: url(~@/assets/images/tab_right.png) no-repeat; + background-size: contain; + } + &:first-child{ + border-left: 1px solid #113d72;; + &::before{ + width: 17px; + height: 17px; + left: -1px; + top: -1px; + border-left: 1px solid #339cff; + border-top: 1px solid #339cff; + } + } + &.active-tab-nav{ + color: #fff; + &::before{ + background: url(~@/assets/images/tab_left_active.png) no-repeat; + background-size: contain; + } + &::after{ + background: url(~@/assets/images/tab_right_active.png) no-repeat; + background-size: contain; + } + i{ + display: block; + position: absolute; + bottom: -1px; + left: 0; + width: 100%; + height: 1px; + border-bottom: 1px solid #021941; + } + } + } + .tab-right-img{ + display: block; + width: 93px; + margin: 4px 0 0 -14px; + background: url(~@/assets/images/tab_img.png) no-repeat; + background-size: contain; + } + } } \ No newline at end of file diff --git a/src/views/system/user/center.vue b/src/views/system/user/center.vue index d9c11c0..0ebf49a 100644 --- a/src/views/system/user/center.vue +++ b/src/views/system/user/center.vue @@ -31,10 +31,72 @@ - + - +
+
    +
  • 用户资料
  • +
  • 操作日志
  • + + +
+
+ + + + 用户昵称不作为登录使用 + + + + 手机号码不能重复 + + + + + + + + + 保存配置 + + +
+ +
+ + + + + + + + + + + + + + + +
+
+ @@ -81,7 +142,6 @@ - -
+ -->
@@ -128,6 +188,7 @@ export default { return { show: false, Avatar: Avatar, + activeIndex: 0, activeName: 'first', saveLoading: false, headers: { @@ -160,8 +221,9 @@ export default { toggleShow() { this.show = !this.show }, - handleClick(tab, event) { - if (tab.name === 'second') { + handleClick(index) { + this.activeIndex = index + if (this.activeIndex === 1) { this.init() } }, @@ -240,10 +302,91 @@ export default { } } - .user-info-right{ - .el-tabs__item{ + .container-left, + .container-right{ + min-height: calc(100vh - 230px); + } + + .tab-content{ + margin-top: 40px; + border-top: none; + &::before{ + display: none; + } + .tab-nav{ + display: flex; + justify-content: flex-start; + height: 41px; + line-height: 41px; + margin: -41px 0 30px -1px; font-size: 16px; - color: #fff; + font-weight: bold; + color: #359AFC; + border-bottom: 1px solid #113D72; + li{ + position: relative; + padding: 0 24px; + margin: -1px 30px 0 0; + letter-spacing: 2px; + border-top: 1px solid #113D72; + cursor: pointer; + &::before, + &::after{ + content: ""; + position: absolute; + top: 0; + width: 33px; + height: 41px; + } + &::before{ + left: -15px; + background: url(~@/assets/images/tab_left.png) no-repeat; + background-size: contain; + } + &::after{ + right: -32px; + background: url(~@/assets/images/tab_right.png) no-repeat; + background-size: contain; + } + &:first-child{ + border-left: 1px solid #113d72;; + &::before{ + width: 17px; + height: 17px; + left: -1px; + top: -1px; + border-left: 1px solid #339cff; + border-top: 1px solid #339cff; + } + } + &.active-tab-nav{ + color: #fff; + &::before{ + background: url(~@/assets/images/tab_left_active.png) no-repeat; + background-size: contain; + } + &::after{ + background: url(~@/assets/images/tab_right_active.png) no-repeat; + background-size: contain; + } + i{ + display: block; + position: absolute; + bottom: -1px; + left: 0; + width: 100%; + height: 1px; + border-bottom: 1px solid #021941; + } + } + } + .tab-right-img{ + display: block; + width: 93px; + margin: 4px 0 0 -14px; + background: url(~@/assets/images/tab_img.png) no-repeat; + background-size: contain; + } } .el-form{ padding: 0 20px;