5f2c4d97
“wangming”
Add billing amoun...
|
1
|
<script>
|
e1dcb3a0
“wangming”
1
|
2
3
|
import { ensureLogin } from '@/utils/auth'
|
5c34676a
“wangming”
对会员端进行了设计
|
4
5
6
|
export default {
onLaunch() {
console.log('绿纤美业会员端启动')
|
e1dcb3a0
“wangming”
1
|
7
8
9
10
|
// 进入时静默微信登录(已登录则跳过),失败不阻断,仅在需要鉴权的页面再引导登录
ensureLogin().catch((err) => {
console.warn('静默登录失败', err)
})
|
5c34676a
“wangming”
对会员端进行了设计
|
11
12
|
}
}
|
5f2c4d97
“wangming”
Add billing amoun...
|
13
14
15
|
</script>
<style lang="scss">
|
5c34676a
“wangming”
对会员端进行了设计
|
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
|
@import '@/styles/mixins.scss';
page {
min-height: 100%;
background: $bg-page;
color: $text-primary;
font-family: 'PingFang SC', 'Helvetica Neue', sans-serif;
}
view,
text,
button,
image,
scroll-view,
swiper,
swiper-item {
box-sizing: border-box;
}
button {
margin: 0;
padding: 0;
line-height: 1;
background: transparent;
&::after {
border: 0;
}
}
.page-shell {
min-height: 100vh;
position: relative;
overflow: hidden;
|
d8035736
“wangming”
Refactor project ...
|
50
|
isolation: isolate;
|
5c34676a
“wangming”
对会员端进行了设计
|
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.12) 16%, rgba(255, 255, 255, 0) 34%),
linear-gradient(180deg, rgba(211, 191, 156, 0.05) 0%, rgba(175, 194, 181, 0.045) 42%, $bg-page 100%);
}
.page-shell::before,
.page-shell::after {
content: '';
position: absolute;
inset: 0;
pointer-events: none;
}
.page-shell::before {
z-index: 0;
opacity: 0.45;
background:
radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.18) 0 2rpx, transparent 2rpx 100%),
radial-gradient(circle at 78% 30%, rgba(100, 140, 118, 0.08) 0 1.5rpx, transparent 1.5rpx 100%),
radial-gradient(circle at 36% 68%, rgba(211, 191, 156, 0.10) 0 1.5rpx, transparent 1.5rpx 100%);
background-size: 180rpx 180rpx, 260rpx 260rpx, 220rpx 220rpx;
background-repeat: repeat;
|
d8035736
“wangming”
Refactor project ...
|
73
|
animation: lfAtmosphereShift 20s ease-in-out infinite alternate;
|
5c34676a
“wangming”
对会员端进行了设计
|
74
75
76
77
78
79
80
81
82
83
84
85
86
|
}
.page-shell::after {
z-index: 0;
opacity: 0.28;
background:
repeating-linear-gradient(
115deg,
rgba(255, 255, 255, 0.06) 0,
rgba(255, 255, 255, 0.06) 2rpx,
transparent 2rpx,
transparent 30rpx
);
|
d8035736
“wangming”
Refactor project ...
|
87
|
animation: lfAtmosphereGlow 14s ease-in-out infinite alternate;
|
5c34676a
“wangming”
对会员端进行了设计
|
88
89
90
91
92
93
94
95
|
}
.page-content {
position: relative;
z-index: 2;
padding: calc(var(--status-bar-height, 0px) + 28rpx) $page-padding calc(#{$tabbar-space} + env(safe-area-inset-bottom));
}
|
d8035736
“wangming”
Refactor project ...
|
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
.page-content > view:not(.safe-bottom-space),
.page-content > scroll-view,
.page-content > swiper {
opacity: 0;
transform: translate3d(0, 22rpx, 0);
animation: lfRevealUp 720ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.page-content > view:nth-child(1) { animation-delay: 0.04s; }
.page-content > view:nth-child(2) { animation-delay: 0.1s; }
.page-content > view:nth-child(3) { animation-delay: 0.16s; }
.page-content > view:nth-child(4) { animation-delay: 0.22s; }
.page-content > view:nth-child(5) { animation-delay: 0.28s; }
.page-content > view:nth-child(6) { animation-delay: 0.34s; }
.page-content > view:nth-child(7) { animation-delay: 0.4s; }
.page-content > view:nth-child(8) { animation-delay: 0.46s; }
.page-content > view:nth-child(9) { animation-delay: 0.52s; }
.page-content > view:nth-child(10) { animation-delay: 0.58s; }
|
5c34676a
“wangming”
对会员端进行了设计
|
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
|
.page-blur,
.page-blur-secondary,
.page-blur-tertiary {
position: absolute;
border-radius: 999rpx;
filter: blur(16rpx);
z-index: 1;
}
.page-blur {
width: 320rpx;
height: 320rpx;
top: 80rpx;
right: -120rpx;
background: rgba(100, 140, 118, 0.16);
|
d8035736
“wangming”
Refactor project ...
|
130
|
animation: lfFloatSoft 8.2s ease-in-out infinite;
|
5c34676a
“wangming”
对会员端进行了设计
|
131
132
133
134
135
136
137
138
|
}
.page-blur-secondary {
width: 280rpx;
height: 280rpx;
left: -100rpx;
top: 560rpx;
background: rgba(211, 191, 156, 0.16);
|
d8035736
“wangming”
Refactor project ...
|
139
|
animation: lfFloatSoft 10.4s ease-in-out infinite 0.9s reverse;
|
5c34676a
“wangming”
对会员端进行了设计
|
140
141
142
143
144
145
146
147
|
}
.page-blur-tertiary {
width: 220rpx;
height: 220rpx;
right: 50rpx;
bottom: 240rpx;
background: rgba(175, 194, 181, 0.12);
|
d8035736
“wangming”
Refactor project ...
|
148
|
animation: lfPulseSoft 7.6s ease-in-out infinite 1.3s;
|
5c34676a
“wangming”
对会员端进行了设计
|
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
|
}
.safe-bottom-space {
height: 24rpx;
}
.capsule-safe {
padding-right: 188rpx;
}
.primary-button {
@include primary-button;
}
.secondary-button {
@include secondary-button;
}
.primary-button,
.secondary-button {
position: relative;
overflow: hidden;
white-space: nowrap;
|
d8035736
“wangming”
Refactor project ...
|
172
|
transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 320ms ease, filter 320ms ease;
|
5c34676a
“wangming”
对会员端进行了设计
|
173
174
175
176
177
178
179
180
181
182
183
184
185
186
|
}
.primary-button::before,
.secondary-button::before {
content: '';
position: absolute;
left: 20rpx;
right: 20rpx;
top: 0;
height: 1rpx;
background: rgba(255, 255, 255, 0.34);
pointer-events: none;
}
|
d8035736
“wangming”
Refactor project ...
|
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
|
.primary-button::after,
.secondary-button::after {
content: '';
position: absolute;
top: -24rpx;
left: -90rpx;
width: 72rpx;
height: calc(100% + 48rpx);
opacity: 0.34;
transform: skewX(-20deg);
background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
animation: lfSheen 4.8s ease-in-out infinite;
pointer-events: none;
}
|
5c34676a
“wangming”
对会员端进行了设计
|
202
203
|
.primary-button:active,
.secondary-button:active {
|
d8035736
“wangming”
Refactor project ...
|
204
|
transform: translateY(1rpx) scale(0.992);
|
5c34676a
“wangming”
对会员端进行了设计
|
205
206
207
208
209
210
211
212
213
214
215
216
|
}
.primary-button:active {
box-shadow: 0 14rpx 30rpx rgba(36, 74, 61, 0.14);
}
.secondary-button:active {
box-shadow: 0 10rpx 22rpx rgba(54, 77, 64, 0.06);
}
.glass-card {
@include glass-panel;
|
d8035736
“wangming”
Refactor project ...
|
217
218
219
220
221
222
223
|
transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 320ms ease, border-color 320ms ease;
will-change: transform, box-shadow;
}
.glass-card:active {
transform: translateY(2rpx) scale(0.996);
box-shadow: 0 18rpx 38rpx rgba(54, 77, 64, 0.1);
|
5c34676a
“wangming”
对会员端进行了设计
|
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
|
}
.section-head {
@include section-head;
}
.section-title {
font-size: 34rpx;
font-weight: 700;
color: $text-primary;
}
.section-link {
font-size: 24rpx;
color: $brand-accent;
text-shadow: 0 2rpx 10rpx rgba(210, 191, 156, 0.18);
|
d8035736
“wangming”
Refactor project ...
|
240
241
242
243
244
245
|
transition: transform 240ms ease, opacity 240ms ease;
}
.section-link:active {
transform: translateX(4rpx);
opacity: 0.76;
|
5c34676a
“wangming”
对会员端进行了设计
|
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
|
}
.decor-image {
display: block;
width: 100%;
}
.lf-tabbar-wrap {
position: fixed;
left: 24rpx;
right: 24rpx;
bottom: calc(16rpx + env(safe-area-inset-bottom));
z-index: 30;
}
.lf-tabbar-panel {
@include glass-panel(0.96);
display: flex;
align-items: center;
justify-content: space-between;
min-height: 118rpx;
padding: 12rpx 12rpx 10rpx;
border-radius: 999rpx;
box-shadow: $shadow-strong;
|
d8035736
“wangming”
Refactor project ...
|
270
271
|
animation: lfRevealUp 780ms cubic-bezier(0.22, 1, 0.36, 1) 0.14s both;
transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 320ms ease;
|
5c34676a
“wangming”
对会员端进行了设计
|
272
273
274
275
276
277
278
279
280
281
|
}
.lf-tabbar-item {
width: 25%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 8rpx 0;
border-radius: 999rpx;
|
d8035736
“wangming”
Refactor project ...
|
282
283
284
285
286
|
transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), background 260ms ease;
}
.lf-tabbar-item:active {
transform: scale(0.97);
|
5c34676a
“wangming”
对会员端进行了设计
|
287
288
289
290
|
}
.lf-tabbar-item.active {
background: rgba(255, 255, 255, 0.72);
|
d8035736
“wangming”
Refactor project ...
|
291
|
transform: translateY(-2rpx);
|
5c34676a
“wangming”
对会员端进行了设计
|
292
293
294
295
296
297
298
299
|
}
.lf-tabbar-icon-shell {
width: 78rpx;
height: 78rpx;
display: flex;
align-items: center;
justify-content: center;
|
d8035736
“wangming”
Refactor project ...
|
300
|
transition: transform 260ms ease;
|
5c34676a
“wangming”
对会员端进行了设计
|
301
302
303
304
305
306
307
308
309
310
311
312
|
}
.lf-tabbar-icon {
width: 60rpx;
height: 60rpx;
}
.lf-tabbar-label {
margin-top: 4rpx;
font-size: 22rpx;
color: $text-tertiary;
font-weight: 500;
|
d8035736
“wangming”
Refactor project ...
|
313
314
315
316
317
|
transition: color 260ms ease;
}
.lf-tabbar-item.active .lf-tabbar-icon-shell {
animation: lfPulseSoft 3.4s ease-in-out infinite;
|
5c34676a
“wangming”
对会员端进行了设计
|
318
319
320
321
322
323
|
}
.lf-tabbar-item.active .lf-tabbar-label {
color: $brand-primary-deep;
font-weight: 700;
}
|
d8035736
“wangming”
Refactor project ...
|
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
|
@keyframes lfRevealUp {
from {
opacity: 0;
transform: translate3d(0, 22rpx, 0);
}
to {
opacity: 1;
transform: translate3d(0, 0, 0);
}
}
@keyframes lfFloatSoft {
0%,
100% {
transform: translate3d(0, 0, 0) scale(1);
}
50% {
transform: translate3d(0, -18rpx, 0) scale(1.04);
}
}
@keyframes lfPulseSoft {
0%,
100% {
transform: scale(1);
opacity: 1;
}
50% {
transform: scale(1.05);
opacity: 0.9;
}
}
@keyframes lfAtmosphereShift {
0% {
transform: translate3d(0, 0, 0) scale(1);
}
100% {
transform: translate3d(0, -16rpx, 0) scale(1.03);
}
}
@keyframes lfAtmosphereGlow {
0% {
opacity: 0.2;
transform: translate3d(0, 0, 0);
}
100% {
opacity: 0.34;
transform: translate3d(-10rpx, 12rpx, 0);
}
}
@keyframes lfSheen {
0%,
15% {
transform: translateX(0) skewX(-20deg);
opacity: 0;
}
35% {
opacity: 0.38;
}
55%,
100% {
transform: translateX(320rpx) skewX(-20deg);
opacity: 0;
}
}
|
5f2c4d97
“wangming”
Add billing amoun...
|
400
|
</style>
|