瀏覽代碼

规则修改

LIPENGTAO1313 6 年之前
父節點
當前提交
9c4502b0a2
共有 3 個文件被更改,包括 52 次插入57 次删除
  1. 46 51
      src/components/bench-views/WorkHead.vue
  2. 2 2
      src/components/bench-views/WorkHome.vue
  3. 4 4
      src/router/router.js

+ 46 - 51
src/components/bench-views/WorkHead.vue

@ -19,59 +19,54 @@
19 19

20 20
<script>
21 21
	export default {
22
		
23
	}
22

23
	};
24 24
</script>
25 25

26 26
<style lang="stylus" rel="stylesheet/stylus">
27 27
  @import '../../common/stylus/mixin'
28
    .workHeader
29
      .workHeaderWrapper
30
        width: 100%
31
        height: 60px
32
        background: #fff
33
        border-bottom: 2px solid #e5e5e5
34
        box-sizing: border-box
35
        position: fixed
36
        top: 0
37
        left: 0
38
        right: 0
39
        z-index: 1000
40
        font-size: 16px
41
        line-height: 32px
42
        display: flex
43
        display: -webkit-flex
44
        justify-content: center
45
      .workHeaderMain
46
        width: 1100px
47
        padding: 0 10px
48
        display: flex
49
        display: -webkit-flex
50
        justify-content: space-between
51
        li
52
          display: flex
53
          align-items: center
28 54

29
	.workHeader
30
	  .workHeaderWrapper
31
	    width:100%
32
	    height:60px
33
	    background:#fff
34
	    border-bottom:2px solid #e5e5e5
35
	    box-sizing:border-box
36
	    position:fixed
37
	    top:0
38
	    left:0
39
	    right:0
40
	    z-index:1000
41
	    font-size:16px
42
	    line-height:32px
43
	    display:flex
44
	    display:-webkit-flex
45
	    justify-content:center
46
	  .workHeaderMain
47
	    width:1100px
48
	    padding:0 10px
49
	    display:flex
50
	    display:-webkit-flex
51
	    justify-content:space-between
52
	    li
53
	      display:flex
54
	      display:-webkit-flex
55
	      align-items:center
56
		    .kexiuLogo
57
		      width:60px
58
		      height:30px
59
		      bg-image('./img/home_icon_logo_orange.png')
60
		      background-size:contain
61
		      overflow:hidden
62
		    .loginLogo
63
		      overflow:hidden
64
		      border:1px solid #e5e5e5
65
		      vertical-align:middle
66
		      text-align:center
67
		      cursor:pointer
68
		      border-radius:4px
69
		      display:table-cell
70
		      width:42px
71
		      height:42px
72
		      img
73
		        max-width:40px
74
		        max-height:100%
75
		        overflow-y:hidden
76
		        color:transparent  
77
</style>
55
          .kexiuLogo
56
            width: 60px
57
            height: 30px
58
            bg-image('./img/home_icon_logo_orange.png')
59
            background-size: contain
60
            overflow: hidden
61
          .loginLogo
62
            display: flex
63
            align-items: center
64
            cursor: pointer
65
            border: 1px solid #e5e5e5
66
            width: 42px
67
            height: 42px
68
            img
69
              display:block
70
              max-width: 40px
71
              max-height: 100%
72
</style>

+ 2 - 2
src/components/bench-views/WorkHome.vue

@ -1,3 +1,3 @@
1 1
<template>
2
	<div>我是工作台主页</div>
3
</template>
2
  <div>我是工作台主页</div>
3
</template>

+ 4 - 4
src/router/router.js

@ -57,18 +57,18 @@ export const otherRouter = {
57 57
};
58 58

59 59
// 作为工作台bench子页面展示
60
export const appRouter ={
60
export const appRouter = {
61 61
  path: '/',
62 62
  name: 'appRouter',
63 63
  component: WorkMain,
64 64
  children: [
65 65
    {
66
      path:  "WorkHome",
67
      titile:  '平台主页',
66
      path: 'WorkHome',
67
      titile: '平台主页',
68 68
      component: () => import('@/components/bench-views/WorkHome.vue')
69 69
    }
70 70
  ]
71
}
71
};
72 72

73 73
// 所有上面定义的路由都要写在下面的routers里
74 74
export const routers = [