-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathApp.vue
162 lines (144 loc) · 2.48 KB
/
App.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<script>
export default {
onLaunch: function() {
console.log('App Launch');
},
onShow: function() {
console.log('App Show');
},
onHide: function() {
console.log('App Hide');
},
// 捕获 app error
onError(err) {
console.log(err)
}
}
</script>
<style lang="scss">
/* 引入vant内置样式 https://youzan.github.io/vant-weapp/#/common */
// @import "./wxcomponents/vant-weapp/common/index.wxss";
/*每个页面公共css */
page {
min-height: 100%;
display: flex;
}
/* #ifdef MP-BAIDU */
page {
width: 100%;
height: 100%;
display: block;
}
swan-template {
width: 100%;
min-height: 100%;
display: flex;
}
/* 原生组件模式下需要注意组件外部样式 */
custom-component {
width: 100%;
min-height: 100%;
display: flex;
}
/* #endif */
/* #ifdef MP-ALIPAY */
page {
min-height: 100vh;
}
/* #endif */
/* 原生组件模式下需要注意组件外部样式 */
m-input {
width: 100%;
min-height: 100%;
display: flex;
}
.content {
display: flex;
flex: 1;
flex-direction: column;
// background-color: #efeff4;
padding: 20upx;
}
.root{
width: 100vw;
height: 100vh;
}
.wrap{
padding: 24upx;
display: flex;
flex-direction: column;
width: 100vw;
height: 100vh;
}
.card-wrap{
flex:1,
}
.card-item{
display: flex;
justify-content: space-between;
align-items: center;
padding-bottom: 24upx;
}
.card{
background-color: #efeff4;
padding: 24upx 24upx 0 24upx;
}
.input-group {
background-color: #ffffff;
margin-top: 40upx;
position: relative;
}
.input-group::before {
position: absolute;
right: 0;
top: 0;
left: 0;
height: 1upx;
content: '';
-webkit-transform: scaleY(.5);
transform: scaleY(.5);
background-color: #c8c7cc;
}
.input-group::after {
position: absolute;
right: 0;
bottom: 0;
left: 0;
height: 1upx;
content: '';
-webkit-transform: scaleY(.5);
transform: scaleY(.5);
background-color: #c8c7cc;
}
.input-row {
display: flex;
flex-direction: row;
position: relative;
}
.input-row .title {
width: 20%;
height: 50upx;
min-height: 50upx;
padding: 15upx 0;
padding-left: 30upx;
line-height: 50upx;
}
.input-row.border::after {
position: absolute;
right: 0;
bottom: 0;
left: 15upx;
height: 1upx;
content: '';
-webkit-transform: scaleY(.5);
transform: scaleY(.5);
background-color: #c8c7cc;
}
.btn-row {
margin-top: 50upx;
padding: 20upx;
}
button.primary {
background-color: #0faeff;
}
</style>