yuantianjiao 6 年前
父节点
当前提交
2dc77612bd

二进制
src/assets/img/card.png 查看文件


二进制
src/assets/img/coffee-tab.png 查看文件


二进制
src/assets/img/discounts.png 查看文件


二进制
src/assets/img/index-tab.png 查看文件


二进制
src/assets/img/userCenter-tab.png 查看文件


二进制
src/assets/img/vip.png 查看文件


二进制
src/assets/img/失败1@3x.png 查看文件


二进制
src/assets/img/失败@3x.png 查看文件


二进制
src/assets/img/等待@3x.png 查看文件


+ 28
- 0
src/page/userCenter/userCenter.vue 查看文件

@@ -0,0 +1,28 @@
1
+<template>
2
+    <div class="asl">
3
+        sadadas{{test}}
4
+        <span></span>
5
+    </div>
6
+</template>
7
+
8
+<script>
9
+export default {
10
+  data () {
11
+    return {
12
+      test: 111
13
+    }
14
+  }
15
+}
16
+</script>
17
+
18
+<style lang="scss" scoped>
19
+.asl {
20
+  width: 2rem;
21
+  font-size: 1rem;
22
+  heigth: 1rem;
23
+}
24
+.test {
25
+  width: 5rem;
26
+  heigth: 2rem;
27
+}
28
+</style>

+ 12
- 0
src/style/base.scss 查看文件

@@ -0,0 +1,12 @@
1
+// 公用css样式
2
+$baseURl: '../../assets/images'; 
3
+$globalBg: #ffffff;
4
+$partialBg: #ffffff;
5
+$globalColor: #000000;
6
+$globalFont: 14px;
7
+$health: #68CAB0;
8
+$education: #51BBFF;
9
+$sport: #68CAB0;
10
+$healthT:  linear-gradient(-225deg, #68CAB0 0%, #C3EAD2 100%);
11
+$educationT: linear-gradient(-225deg, #4DB9FF 0%, rgba(127,194,247,0.59) 100%);
12
+$sportT: linear-gradient(-225deg, #68CAB0 0%, #C3EAD2 100%);

+ 170
- 0
src/style/main.sass 查看文件

@@ -0,0 +1,170 @@
1
+@charset "utf-8";
2
+
3
+html,body {
4
+    width: 100%;
5
+    height: 100%;
6
+    -webkit-text-size-adjust: 100%;
7
+    position: relative;
8
+    color: #333;
9
+    overflow-x: hidden;
10
+    font-size: 100px;
11
+}
12
+
13
+@media screen and (max-width:320px) {
14
+    html,body {
15
+        font-size: 85px;
16
+    }
17
+}
18
+
19
+@media screen and (min-width:375px) {
20
+    html,body {
21
+        font-size: 100px;
22
+    }
23
+}
24
+
25
+@media screen and (min-width:414px) {
26
+    html,body {
27
+        font-size: 110px;
28
+    }
29
+}
30
+
31
+* {
32
+    margin: 0;
33
+    padding: 0;
34
+    color: #000;
35
+    font-family: "微软雅黑";
36
+    -webkit-tap-highlight-color: rgba(255,0,0,0);
37
+    -webkit-font-smoothing: antialiased;
38
+}
39
+
40
+body * {
41
+    font-size: .14rem;
42
+}
43
+
44
+a {
45
+    text-decoration: none;
46
+}
47
+
48
+a:hover {
49
+    cursor: pointer;
50
+}
51
+
52
+em {
53
+    font-style: normal;
54
+}
55
+
56
+li {
57
+    list-style: none;
58
+}
59
+
60
+img {
61
+    border: 0;
62
+    vertical-align: middle;
63
+}
64
+
65
+table {
66
+    border-collapse: collapse;
67
+    border-spacing: 0;
68
+}
69
+
70
+p {
71
+    word-wrap: break-word;
72
+}
73
+
74
+b {
75
+    font-weight: normal;
76
+}
77
+
78
+input,textarea {
79
+    border: 0;
80
+    -webkit-appearance: none;
81
+}
82
+
83
+input[type=input] {
84
+    -webkit-appearance: none;
85
+}
86
+
87
+input[type=checkbox] {
88
+    -webkit-appearance: checkbox;
89
+}
90
+
91
+.text-overflow-ellipsis {
92
+    overflow: hidden;
93
+    white-space: nowrap;
94
+    text-overflow: ellipsis;
95
+}
96
+
97
+.centerLabel {
98
+    display: block;
99
+    position: absolute;
100
+    left: 50%;
101
+    top: 50%;
102
+    transform: translate(-50%,-50%);
103
+    -webkit-transform: translate(-50%,-50%);
104
+}
105
+
106
+.flex-h {
107
+    display: flex;
108
+    display: -webkit-flex;
109
+}
110
+
111
+.flex-v {
112
+    display: flex;
113
+    display: -webkit-flex;
114
+    flex-direction: column;
115
+    -webkit-flex-direction: column;
116
+}
117
+
118
+.flex-item {
119
+    flex: 1;
120
+    -webkit-flex: 1;
121
+    position: relative;
122
+    overflow: hidden;
123
+}
124
+
125
+*[class*="text-overflowEllipsis-line"] {
126
+    overflow: hidden;
127
+    text-overflow: ellipsis;
128
+    display: -webkit-box;
129
+    -webkit-box-orient: vertical;
130
+}
131
+
132
+.text-overflowEllipsis-line2 {
133
+    -webkit-line-clamp: 2;
134
+}
135
+
136
+.text-overflowEllipsis-line3 {
137
+    -webkit-line-clamp: 3;
138
+}
139
+
140
+.text-overflowEllipsis-line4 {
141
+    -webkit-line-clamp: 4;
142
+}
143
+
144
+*[class*="overflow-scroll-y"] {
145
+    overflow-x: hidden;
146
+    overflow-y: scroll;
147
+    -webkit-overflow-scrolling: touch;
148
+}
149
+
150
+*[class*="overflow-scroll-x"] {
151
+    overflow-y: hidden;
152
+    overflow-x: scroll;
153
+    -webkit-overflow-scrolling: touch;
154
+}
155
+
156
+.overflow-scroll-y-3d,.overflow-scroll-x-3d {
157
+    transform: translateZ(0);
158
+    -webkit-transform: translateZ(0);
159
+}
160
+
161
+.overflow-scroll-x::-webkit-scrollbar,.overflow-scroll-x-3d::-webkit-scrollbar {
162
+    width: 0;
163
+    height: 0;
164
+    color: transparent;
165
+    display: none;
166
+}
167
+
168
+input:focus,textarea:focus,select:focus {
169
+    outline: none;
170
+}

+ 53
- 0
src/style/mixin.scss 查看文件

@@ -0,0 +1,53 @@
1
+// 圆角
2
+@mixin BorderRadius($radius: 50%) {
3
+    border-radius: $radius;
4
+}
5
+
6
+// 阴影
7
+@mixin layoutBoxShadaw($x: 2px, $y: 2px, $blur: 14px, $color: #ABABAB) {
8
+    box-shadow: $x $y $blur $color;
9
+}
10
+
11
+// 定位
12
+@mixin absoluteCenter($left: 50%, $top: 50%, $x: -50%, $y: -50%) {
13
+    position: absolute;
14
+    left: $left;
15
+    top: $top;
16
+    transform: translate($x, $y)
17
+}
18
+
19
+// 浮动布局
20
+@mixin float($float:left) {
21
+    float: $float;
22
+}
23
+
24
+// flex布局
25
+@mixin flexLayout ($jc: center, $ai: center, $ff: row nowrap) {
26
+    display: flex;
27
+    justify-content: $jc;
28
+    align-items: $ai;
29
+    flex-flow: $ff;
30
+}
31
+
32
+// 布局pandding
33
+@mixin layoutPadding($top:0, $right:0, $bottom:0, $left:0) {
34
+    padding-top: $top;
35
+    padding-bottom: $bottom;
36
+    padding-right: $right;
37
+    padding-left: $left;
38
+}
39
+
40
+// 布局margin
41
+@mixin layoutMargin($top:0, $right:auto, $bottom:0, $left:auto) {
42
+    margin-top: $top;
43
+    margin-bottom: $bottom;
44
+    margin-right: $right;
45
+    margin-left: $left;
46
+}
47
+
48
+// 单行溢出省略号
49
+@mixin textOverflow(){
50
+  overflow: hidden;
51
+  text-overflow:ellipsis;
52
+  white-space: nowrap;
53
+}