Browse Source

Merge branch 'dev' of http://git.ycjcjy.com/SpaceOfCheng/wechat into dev

许成详 6 years ago
parent
commit
fc36e09d5f

+ 1149
- 1135
package-lock.json
File diff suppressed because it is too large
View File


+ 1
- 1
src/common/css/reset.css View File

@@ -4,7 +4,7 @@ html,body{width:100%;height:100%;-webkit-text-size-adjust:100%;position:relative
4 4
 @media screen and (min-width:375px){html,body{font-size:100px;}}
5 5
 @media screen and (min-width:414px){html,body{font-size:110px;}}
6 6
 *{margin:0;padding:0;color:#000;font-family:"微软雅黑";-webkit-tap-highlight-color:rgba(255,0,0,0);-webkit-font-smoothing:antialiased;}
7
-body *{font-size:.13rem;background: #fff;}
7
+body *{font-size:.13rem;}
8 8
 a{text-decoration:none;}
9 9
 a:hover{cursor:pointer;}
10 10
 em{font-style:normal;}

+ 1
- 0
src/module/user/mainPage/page.scss View File

@@ -34,6 +34,7 @@
34 34
         text-align: center;
35 35
         line-height: .2rem;
36 36
         font-size: .1rem;
37
+        color: #000;
37 38
       }
38 39
     }
39 40
     a.active{

+ 17
- 6
src/module/user/mainPage/userCenter/index.vue View File

@@ -1,6 +1,17 @@
1 1
 <template>
2 2
   <div class="mainPage">
3
-    用户中心
3
+    <div class="userTop_view">
4
+      <div class="gradient_bg"></div>
5
+      <div class="zIndex_bg"></div>
6
+      <div class="userAvatar_Border">
7
+        <div class="userAvatar">
8
+          <img src="" alt="" width="100%" height="100%">
9
+        </div>
10
+      </div>
11
+      <div>
12
+        <div class="user-name">Rejo Varghese</div>
13
+      </div>
14
+    </div>
4 15
   </div>
5 16
 </template>
6 17
 
@@ -10,20 +21,20 @@ export default {
10 21
   name: '',
11 22
   data () {
12 23
     return {
13
-      
24
+
14 25
     }
15 26
   },
16 27
   computed: {
17
-    
28
+
18 29
   },
19 30
   components: {
20
-    
31
+
21 32
   },
22 33
   created () {
23
-    
34
+
24 35
   },
25 36
   methods: {
26
-    
37
+
27 38
   }
28 39
 }
29 40
 </script>

+ 51
- 0
src/module/user/mainPage/userCenter/page.scss View File

@@ -0,0 +1,51 @@
1
+.userTop_view {
2
+  position: relative;
3
+  height: 1.7rem;
4
+  .gradient_bg {
5
+    position: absolute;
6
+    width: 100%;
7
+    height: 1.7rem;
8
+    background-image: linear-gradient(24deg, #fa508c 0%, #ffc86e 100%);
9
+    z-index: 2;
10
+  }
11
+  .zIndex_bg {
12
+    position: absolute;
13
+    bottom: -1.5rem;
14
+    left: 0;
15
+    width: 120%;
16
+    height: 1.5rem;
17
+    transform: rotate(351.5deg);
18
+    transform-origin: bottom left;
19
+    z-index: 3;
20
+    background-color: #fff;
21
+  }
22
+  .userAvatar_Border {
23
+    position: absolute;
24
+    bottom: -0.25rem;
25
+    left: 50%;
26
+    border: 0.1rem solid rgba(255, 255, 255, 0.2);
27
+    transform: translateX(-50%);
28
+    width: 1rem;
29
+    height: 1rem;
30
+    z-index: 3;
31
+    border-radius: 50%;
32
+  }
33
+  .userAvatar {
34
+    width: 1rem;
35
+    height: 1rem;
36
+    background-color: #000;
37
+    box-sizing: border-box;
38
+    border-radius: 50%;
39
+    text-align: center;
40
+    img {
41
+      display: inline-block;
42
+      vertical-align: middle;
43
+      border-radius: 50%;
44
+    }
45
+  }
46
+}
47
+
48
+.user-name {
49
+  font-size: .24rem;
50
+  color:rgba(0,0,0,1);
51
+}

+ 1
- 0
wechat

@@ -0,0 +1 @@
1
+Subproject commit 5e21b59049435bb41575957c04fbfa6a13378c41