@conecli/cone-render 0.8.11-beta.0 → 0.8.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/open/index.ts +1 -1
- package/dist/sass/app.h5.scss +606 -0
- package/dist/sass/app.scss +21 -0
- package/dist/sass/base.scss +67 -0
- package/dist/utils/MQ.ts +1 -1
- package/package.json +2 -1
package/dist/open/index.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import '../
|
|
1
|
+
import taroJdBaseInfo from '../common'
|
|
@@ -0,0 +1,606 @@
|
|
|
1
|
+
|
|
2
|
+
@import '~normalize.css';
|
|
3
|
+
@import './base';
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
html {
|
|
7
|
+
|
|
8
|
+
//font-size: 32PX;
|
|
9
|
+
-webkit-text-size-adjust: 100%;
|
|
10
|
+
-ms-text-size-adjust: 100%;
|
|
11
|
+
-moz-text-size-adjust: 100%;
|
|
12
|
+
width: 100%; // 安卓webview需要撑开
|
|
13
|
+
min-height: 100px;
|
|
14
|
+
//height: 100%;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
body {
|
|
18
|
+
width: 100%; // 安卓webview需要撑开
|
|
19
|
+
//height: 100%;
|
|
20
|
+
min-height: 100px; // 最小高度在安卓webview中必须存在
|
|
21
|
+
|
|
22
|
+
font-family: 'Microsoft YaHei', PingFangSC, Helvetica, 'Droid Sans', Arial,
|
|
23
|
+
sans-serif !important;
|
|
24
|
+
background-color: #f2f2f2;
|
|
25
|
+
//解决taro转换h5后默认body行高1.6
|
|
26
|
+
line-height: 1.15;
|
|
27
|
+
// 解决某些情况下完全不相关的元素也跟着抖动闪烁 ----- 无法解决,还会引起app里面click事件点击无效 ,需删除
|
|
28
|
+
//transform: translate3d(0, 0, 0);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
body,
|
|
32
|
+
div,
|
|
33
|
+
dl,
|
|
34
|
+
dt,
|
|
35
|
+
dd,
|
|
36
|
+
ul,
|
|
37
|
+
ol,
|
|
38
|
+
li,
|
|
39
|
+
h1,
|
|
40
|
+
h2,
|
|
41
|
+
h3,
|
|
42
|
+
h4,
|
|
43
|
+
h5,
|
|
44
|
+
h6,
|
|
45
|
+
pre,
|
|
46
|
+
code,
|
|
47
|
+
form,
|
|
48
|
+
fieldset,
|
|
49
|
+
legend,
|
|
50
|
+
input,
|
|
51
|
+
textarea,
|
|
52
|
+
p,
|
|
53
|
+
blockquote,
|
|
54
|
+
th,
|
|
55
|
+
td,
|
|
56
|
+
hr,
|
|
57
|
+
button,
|
|
58
|
+
article,
|
|
59
|
+
aside,
|
|
60
|
+
details,
|
|
61
|
+
figcaption,
|
|
62
|
+
figure,
|
|
63
|
+
footer,
|
|
64
|
+
header,
|
|
65
|
+
hgroup,
|
|
66
|
+
menu,
|
|
67
|
+
nav,
|
|
68
|
+
section {
|
|
69
|
+
margin: 0;
|
|
70
|
+
padding: 0;
|
|
71
|
+
|
|
72
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
73
|
+
-webkit-tap-highlight-color: transparent;
|
|
74
|
+
|
|
75
|
+
outline: none;
|
|
76
|
+
//font-weight: normal;
|
|
77
|
+
// 该属性会额外引起safari等ios浏览器偶发卡顿,ios13也默认支持回弹效果,所以移除该属性 https://www.cnblogs.com/xiahj/p/8036419.html
|
|
78
|
+
//-webkit-overflow-scrolling: touch;
|
|
79
|
+
//对字体进行抗锯齿渲染可以使字体看起来会更清晰舒服。在图标字体成为一种趋势的今天,抗锯齿渲染使用也越来越多。antialiased:抗锯齿很好
|
|
80
|
+
-webkit-font-smoothing: antialiased;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
.ban-show-menu {
|
|
85
|
+
-webkit-touch-callout: none;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
.user-ban-select {
|
|
90
|
+
user-select: none;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.user-can-select {
|
|
94
|
+
user-select: auto;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
input[type='number']::-webkit-outer-spin-button,
|
|
99
|
+
input[type='number']::-webkit-inner-spin-button {
|
|
100
|
+
-webkit-appearance: none;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
input,
|
|
105
|
+
button,
|
|
106
|
+
select,
|
|
107
|
+
textarea,
|
|
108
|
+
a {
|
|
109
|
+
-webkit-appearance: none !important;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
a,
|
|
113
|
+
a:active {
|
|
114
|
+
outline: none;
|
|
115
|
+
text-decoration: none;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
textarea {
|
|
119
|
+
resize: none;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
input,
|
|
123
|
+
button,
|
|
124
|
+
textarea,
|
|
125
|
+
a {
|
|
126
|
+
border: none;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.clearFix {
|
|
130
|
+
zoom: 1;
|
|
131
|
+
display: block;
|
|
132
|
+
_height: 1px;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.clearFix:after {
|
|
136
|
+
content: '.';
|
|
137
|
+
display: block;
|
|
138
|
+
height: 0;
|
|
139
|
+
clear: both;
|
|
140
|
+
visibility: hidden;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
img {
|
|
145
|
+
pointer-events: none;
|
|
146
|
+
|
|
147
|
+
//transform: perspective(1px) translate3d(0, 0, 0);
|
|
148
|
+
//-webkit-backface-visibility: hidden;
|
|
149
|
+
//-webkit-transform-style: preserve-3d;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.clearFlow {
|
|
153
|
+
overflow: hidden;
|
|
154
|
+
*zoom: 1;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
ul li {
|
|
159
|
+
list-style-type: none;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.ul-li-float li {
|
|
163
|
+
float: left;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
.opacity-0 {
|
|
168
|
+
opacity: 0;
|
|
169
|
+
filter: alpha(opacity=0);
|
|
170
|
+
*zoom: 1;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.opacity-20 {
|
|
174
|
+
opacity: 0.2;
|
|
175
|
+
filter: alpha(opacity=20);
|
|
176
|
+
*zoom: 1;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.opacity-50 {
|
|
180
|
+
opacity: 0.5;
|
|
181
|
+
filter: alpha(opacity=50);
|
|
182
|
+
*zoom: 1;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.opacity-60 {
|
|
186
|
+
opacity: 0.6;
|
|
187
|
+
filter: alpha(opacity=60);
|
|
188
|
+
*zoom: 1;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.opacity-80 {
|
|
192
|
+
opacity: 0.8;
|
|
193
|
+
filter: alpha(opacity=80);
|
|
194
|
+
*zoom: 1;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.opacity-100 {
|
|
198
|
+
opacity: 1;
|
|
199
|
+
filter: alpha(opacity=100);
|
|
200
|
+
*zoom: 1;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
.d-half-1px-line::after {
|
|
205
|
+
border-width: 0;
|
|
206
|
+
border-radius: 0;
|
|
207
|
+
border-bottom-width: 1PX;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.d-ios-force-border-radius {
|
|
211
|
+
transform: translateZ(0);
|
|
212
|
+
mask-image: radial-gradient(circle, white 100%, black 100%);
|
|
213
|
+
}
|
|
214
|
+
//反写taro转小程序样式
|
|
215
|
+
.hydrated {
|
|
216
|
+
visibility: visible;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
// 视频封面全屏铺满
|
|
220
|
+
video {
|
|
221
|
+
object-fit: cover;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.d-video-forbid-fullscreen-button {
|
|
225
|
+
&::-webkit-media-controls-fullscreen-button {
|
|
226
|
+
display: none !important;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
taro-view-core,
|
|
231
|
+
taro-image-core,
|
|
232
|
+
taro-text-core,
|
|
233
|
+
taro-video-core {
|
|
234
|
+
|
|
235
|
+
outline: none;
|
|
236
|
+
//font-weight: normal;
|
|
237
|
+
-webkit-overflow-scrolling: touch;
|
|
238
|
+
//对字体进行抗锯齿渲染可以使字体看起来会更清晰舒服。在图标字体成为一种趋势的今天,抗锯齿渲染使用也越来越多。antialiased:抗锯齿很好
|
|
239
|
+
-webkit-font-smoothing: antialiased;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
//解决小程序图片宽度320高度默认240的问题
|
|
243
|
+
taro-image-core {
|
|
244
|
+
display: block;
|
|
245
|
+
width: 100%;
|
|
246
|
+
height: auto;
|
|
247
|
+
|
|
248
|
+
//transform: translate3d(0, 0, 0) perspective(1px);
|
|
249
|
+
//-webkit-backface-visibility: hidden;
|
|
250
|
+
//-webkit-transform-style: preserve-3d;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
// 解决多行省略的时候可能无法展示的问题
|
|
254
|
+
taro-text-core {
|
|
255
|
+
white-space: normal;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
taro-video-core {
|
|
259
|
+
video {
|
|
260
|
+
object-fit: cover !important;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
//标签选择不生效
|
|
264
|
+
taro-video-control {
|
|
265
|
+
background-color: transparent;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.taro-video-bar {
|
|
269
|
+
background-color: transparent;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.weui-icon-info {
|
|
274
|
+
&:before {
|
|
275
|
+
content: '';
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
.taro-checkbox_checked {
|
|
279
|
+
display: inline-block;
|
|
280
|
+
top: 0;
|
|
281
|
+
margin: -2px 10px 0 0;
|
|
282
|
+
width: 32px;
|
|
283
|
+
height: 32px;
|
|
284
|
+
font-size: 36px;
|
|
285
|
+
color: #333;
|
|
286
|
+
vertical-align: middle;
|
|
287
|
+
border-color: rgba(209, 209, 209, 0.8);
|
|
288
|
+
&:checked:before {
|
|
289
|
+
color: #e93b3d;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
taro-radio-core {
|
|
293
|
+
&.weui-cells_checkbox {
|
|
294
|
+
.weui-check + .weui-icon-checked {
|
|
295
|
+
vertical-align: middle;
|
|
296
|
+
&:before {
|
|
297
|
+
margin-top: -4px;
|
|
298
|
+
font-size: 36px;
|
|
299
|
+
vertical-align: middle;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
.weui-check:checked + .weui-icon-checked {
|
|
303
|
+
&:before {
|
|
304
|
+
color: #e93b3d;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
.taro__toast {
|
|
312
|
+
transition: none !important;
|
|
313
|
+
|
|
314
|
+
div:last-child {
|
|
315
|
+
//background: transparent !important;
|
|
316
|
+
|
|
317
|
+
p {
|
|
318
|
+
&:first-child {
|
|
319
|
+
width: 80px !important;
|
|
320
|
+
height: 80px !important;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
&:last-child {
|
|
324
|
+
margin-top: 8px !important;
|
|
325
|
+
font-size: 28px !important;
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.d-shop-loading {
|
|
332
|
+
position: fixed;
|
|
333
|
+
top: 0;
|
|
334
|
+
left: 0;
|
|
335
|
+
right: 0;
|
|
336
|
+
bottom: 0;
|
|
337
|
+
z-index: 100;
|
|
338
|
+
|
|
339
|
+
.d-loading-content {
|
|
340
|
+
text-align: center;
|
|
341
|
+
}
|
|
342
|
+
span {
|
|
343
|
+
display: inline-block;
|
|
344
|
+
width: 100px;
|
|
345
|
+
height: 100px;
|
|
346
|
+
background: url('https://img13.360buyimg.com/imagetools/jfs/t1/151010/32/14284/30214/5ff66791Ea1bc6cc6/698c0772b377aef5.png')
|
|
347
|
+
no-repeat center center / 72px 72px;
|
|
348
|
+
}
|
|
349
|
+
.d-shop-text {
|
|
350
|
+
font-size: 24px;
|
|
351
|
+
color: #232325;
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
//
|
|
356
|
+
//.Yep-mask {
|
|
357
|
+
// position: fixed;
|
|
358
|
+
// z-index: 222;
|
|
359
|
+
// top: 0;
|
|
360
|
+
// right: 0;
|
|
361
|
+
// left: 0;
|
|
362
|
+
// bottom: 0;
|
|
363
|
+
// background: rgba(0, 0, 0, 0.65);
|
|
364
|
+
// height: 100%;
|
|
365
|
+
//}
|
|
366
|
+
//
|
|
367
|
+
//.Yep-mask_transparent {
|
|
368
|
+
// position: fixed;
|
|
369
|
+
// z-index: 222;
|
|
370
|
+
// top: 0;
|
|
371
|
+
// right: 0;
|
|
372
|
+
// left: 0;
|
|
373
|
+
// bottom: 0;
|
|
374
|
+
// height: 100%;
|
|
375
|
+
//}
|
|
376
|
+
//
|
|
377
|
+
//.Yep-popup {
|
|
378
|
+
// position: fixed;
|
|
379
|
+
// left: 0;
|
|
380
|
+
// right: 0;
|
|
381
|
+
// top: 0;
|
|
382
|
+
// bottom: 0;
|
|
383
|
+
// width: 100%;
|
|
384
|
+
// z-index: 222;
|
|
385
|
+
// overflow: auto;
|
|
386
|
+
// outline: 0;
|
|
387
|
+
//}
|
|
388
|
+
//
|
|
389
|
+
//.Yep-dialog {
|
|
390
|
+
// position: relative;
|
|
391
|
+
//
|
|
392
|
+
// &-transparent {
|
|
393
|
+
// width: 540px;
|
|
394
|
+
// }
|
|
395
|
+
//
|
|
396
|
+
// &-content {
|
|
397
|
+
// position: relative;
|
|
398
|
+
// background-color: #ffffff;
|
|
399
|
+
// border: 0;
|
|
400
|
+
// text-align: center;
|
|
401
|
+
// height: 100%;
|
|
402
|
+
// overflow: hidden;
|
|
403
|
+
// }
|
|
404
|
+
//
|
|
405
|
+
// &-transparent &-content {
|
|
406
|
+
// border-radius: 18px;
|
|
407
|
+
// padding-top: 30px;
|
|
408
|
+
// }
|
|
409
|
+
//
|
|
410
|
+
// &-header {
|
|
411
|
+
// padding: 12px 30px 30px;
|
|
412
|
+
// }
|
|
413
|
+
//
|
|
414
|
+
// &-title {
|
|
415
|
+
// margin: 0;
|
|
416
|
+
// font-size: 36px;
|
|
417
|
+
// line-height: 1;
|
|
418
|
+
// color: #000;
|
|
419
|
+
// text-align: center;
|
|
420
|
+
// }
|
|
421
|
+
//
|
|
422
|
+
// &-body {
|
|
423
|
+
// font-size: 32px;
|
|
424
|
+
// color: #888;
|
|
425
|
+
// height: 100%;
|
|
426
|
+
// line-height: 1.5;
|
|
427
|
+
// overflow: auto;
|
|
428
|
+
// }
|
|
429
|
+
//
|
|
430
|
+
//
|
|
431
|
+
// &-transparent &-content &-header + &-body {
|
|
432
|
+
// padding: 0 30px 30px;
|
|
433
|
+
// }
|
|
434
|
+
//
|
|
435
|
+
// &-transparent &-content &-body {
|
|
436
|
+
// padding: 28px 30px 58px;
|
|
437
|
+
// }
|
|
438
|
+
//
|
|
439
|
+
// &-wrap {
|
|
440
|
+
// display: flex;
|
|
441
|
+
// align-items: center;
|
|
442
|
+
// justify-content: center;
|
|
443
|
+
// position: fixed;
|
|
444
|
+
// top: 0;
|
|
445
|
+
// left: 0;
|
|
446
|
+
// bottom: 0;
|
|
447
|
+
// right: 0;
|
|
448
|
+
// z-index: 222;
|
|
449
|
+
// }
|
|
450
|
+
//
|
|
451
|
+
// &-button-group-h {
|
|
452
|
+
// display: flex;
|
|
453
|
+
// }
|
|
454
|
+
//
|
|
455
|
+
// &-button-group-h &-button {
|
|
456
|
+
// position: relative;
|
|
457
|
+
// flex: 1;
|
|
458
|
+
// box-sizing: border-box;
|
|
459
|
+
// text-align: center;
|
|
460
|
+
// text-decoration: none;
|
|
461
|
+
// outline: none;
|
|
462
|
+
// background-color: #2a83e1;
|
|
463
|
+
// color: #ffffff;
|
|
464
|
+
// font-size: 36px;
|
|
465
|
+
// height: 88px;
|
|
466
|
+
// line-height: 88px;
|
|
467
|
+
// display: block;
|
|
468
|
+
// width: auto;
|
|
469
|
+
// overflow: hidden;
|
|
470
|
+
// text-overflow: ellipsis;
|
|
471
|
+
// white-space: nowrap;
|
|
472
|
+
//
|
|
473
|
+
// &:after {
|
|
474
|
+
// content: '';
|
|
475
|
+
// display: block;
|
|
476
|
+
// position: absolute;
|
|
477
|
+
// width: 100%;
|
|
478
|
+
// left: 0;
|
|
479
|
+
// top: 0;
|
|
480
|
+
// height: 1px;
|
|
481
|
+
// background-color: #dadada;
|
|
482
|
+
// -webkit-transform: scaleY(0.5);
|
|
483
|
+
// transform: scaleY(0.5);
|
|
484
|
+
// pointer-events: none;
|
|
485
|
+
// }
|
|
486
|
+
// }
|
|
487
|
+
//
|
|
488
|
+
// &-button:first-child {
|
|
489
|
+
// background-color: #ffffff;
|
|
490
|
+
// color: #000000;
|
|
491
|
+
// }
|
|
492
|
+
//}
|
|
493
|
+
|
|
494
|
+
.fade-enter {
|
|
495
|
+
opacity: 0.01;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
.fade-enter-active {
|
|
499
|
+
opacity: 1;
|
|
500
|
+
transition: all 300ms ease-out;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
.fade-exit {
|
|
504
|
+
opacity: 1;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
.fade-exit-active {
|
|
508
|
+
opacity: 0.01;
|
|
509
|
+
transition: all 300ms ease-out;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
.zoom-enter {
|
|
513
|
+
opacity: 0.01;
|
|
514
|
+
transform: scale(0);
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
.zoom-enter-active {
|
|
518
|
+
opacity: 1;
|
|
519
|
+
transform: scale(1);
|
|
520
|
+
transition: all 300ms ease-out;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
.zoom-exit {
|
|
524
|
+
opacity: 1;
|
|
525
|
+
transform: scale(1);
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
.zoom-exit-active {
|
|
529
|
+
opacity: 0.01;
|
|
530
|
+
transform: scale(0);
|
|
531
|
+
transition: all 300ms ease-out;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
.slide-up-enter {
|
|
535
|
+
transform: translateY(100%);
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
.slide-up-enter-active {
|
|
539
|
+
transform: translateY(0%);
|
|
540
|
+
transition: all 300ms ease-out;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
.slide-up-exit {
|
|
544
|
+
transform: translateY(0%);
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
.slide-up-exit-active {
|
|
548
|
+
transform: translateY(100%);
|
|
549
|
+
transition: all 300ms ease-in;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
.slide-down-enter {
|
|
553
|
+
transform: translateY(-100%);
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
.slide-down-enter-active {
|
|
557
|
+
transform: translateY(0%);
|
|
558
|
+
transition: all 300ms ease-out;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
.slide-down-exit {
|
|
562
|
+
transform: translateY(0%);
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
.slide-down-exit-active {
|
|
566
|
+
transform: translateY(-100%);
|
|
567
|
+
transition: all 300ms ease-in;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
.slide-right-enter {
|
|
571
|
+
transform: translateX(100%);
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
.slide-right-enter-active {
|
|
575
|
+
transform: translateX(0%);
|
|
576
|
+
transition: all 300ms ease-out;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
.slide-right-exit {
|
|
580
|
+
transform: translateX(0%);
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
.slide-right-exit-active {
|
|
584
|
+
transform: translateX(100%);
|
|
585
|
+
transition: all 300ms ease-in;
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
.slide-left-enter {
|
|
589
|
+
transform: translateX(-100%);
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
.slide-left-enter-active {
|
|
593
|
+
transform: translateX(0%);
|
|
594
|
+
transition: all 300ms ease-out;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
.slide-left-exit {
|
|
598
|
+
transform: translateX(0%);
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
.slide-left-exit-active {
|
|
602
|
+
transform: translateX(-100%);
|
|
603
|
+
transition: all 300ms ease-in;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
|
|
2
|
+
page {
|
|
3
|
+
|
|
4
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
5
|
+
-webkit-tap-highlight-color: transparent;
|
|
6
|
+
outline: none;
|
|
7
|
+
// 京购小程序app有默认行高,这里反写回来,防止影响 和 h5保持一致
|
|
8
|
+
line-height: 1.15 !important;
|
|
9
|
+
background: #f2f2f2;
|
|
10
|
+
// 购物小程序在app.css中全局给page顶部加了一条边,可以使用以下方式覆盖:
|
|
11
|
+
&::before {
|
|
12
|
+
border-bottom: none;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
@import './base';
|
|
16
|
+
|
|
17
|
+
image {
|
|
18
|
+
display: block;
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: 100%;
|
|
21
|
+
}
|
package/dist/sass/base.scss
CHANGED
|
@@ -1,4 +1,53 @@
|
|
|
1
1
|
|
|
2
|
+
@font-face {
|
|
3
|
+
font-family: 'JDZhengHT-Bold';
|
|
4
|
+
//src: url(https://storage.360buyimg.com/jshopstorage/JDZhengHT-Bold.ttf) format('truetype');
|
|
5
|
+
src: url('https://wq.360buyimg.com/data/ppms/others/JDZH_Bold.ttf')
|
|
6
|
+
format('truetype');
|
|
7
|
+
font-weight: normal;
|
|
8
|
+
font-style: normal;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@font-face {
|
|
12
|
+
font-family: 'JDZhengHT-Light';
|
|
13
|
+
//src: url(https://storage.360buyimg.com/jshopstorage/JDZhengHT-Light.ttf) format('truetype');
|
|
14
|
+
src: url('https://wq.360buyimg.com/data/ppms/others/JDZH_Light.ttf')
|
|
15
|
+
format('truetype');
|
|
16
|
+
font-weight: normal;
|
|
17
|
+
font-style: normal;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@font-face {
|
|
21
|
+
font-family: 'JDZhengHT-Regular';
|
|
22
|
+
//src: url(https://storage.360buyimg.com/jshopstorage/JDZhengHT-Regular.ttf) format('truetype');
|
|
23
|
+
src: url('https://wq.360buyimg.com/data/ppms/others/JDZH_Regular.ttf')
|
|
24
|
+
format('truetype');
|
|
25
|
+
font-weight: normal;
|
|
26
|
+
font-style: normal;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@font-face {
|
|
30
|
+
font-family: 'JDZhengHT-EN-Bold';
|
|
31
|
+
src: url('https://wq.360buyimg.com/data/ppms/others/JDZhengHei_01_Bold.ttf')
|
|
32
|
+
format('truetype');
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.font-jdzht {
|
|
36
|
+
font-family: 'JDZhengHT-Regular';
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.font-jdzht-bold {
|
|
40
|
+
font-family: 'JDZhengHT-Bold';
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.font-jdzht-en-bold {
|
|
44
|
+
font-family: 'JDZhengHT-EN-Bold';
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.font-jdzht-light {
|
|
48
|
+
font-family: 'JDZhengHT-Light';
|
|
49
|
+
}
|
|
50
|
+
|
|
2
51
|
|
|
3
52
|
.border-box {
|
|
4
53
|
box-sizing: border-box;
|
|
@@ -204,6 +253,24 @@
|
|
|
204
253
|
overflow: hidden;
|
|
205
254
|
white-space: nowrap;
|
|
206
255
|
text-overflow: clip;
|
|
256
|
+
//display: -webkit-box;
|
|
257
|
+
//overflow: hidden;
|
|
258
|
+
//word-break: break-all;
|
|
259
|
+
//text-overflow: ellipsis;
|
|
260
|
+
//-webkit-line-clamp: 1;
|
|
261
|
+
//
|
|
262
|
+
//-webkit-box-orient: inherit;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.text-ellipsis-1-no-omit {
|
|
266
|
+
display: -webkit-box;
|
|
267
|
+
overflow: hidden;
|
|
268
|
+
word-break: break-all;
|
|
269
|
+
text-overflow: ellipsis;
|
|
270
|
+
-webkit-line-clamp: 1;
|
|
271
|
+
|
|
272
|
+
// -webkit-box-orient: inherit;
|
|
273
|
+
-webkit-box-orient: vertical;
|
|
207
274
|
}
|
|
208
275
|
|
|
209
276
|
.text-ellipsis-2-no-omit {
|
package/dist/utils/MQ.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
interface Message {
|
|
2
1
|
callback:Function
|
|
3
2
|
time: number
|
|
4
3
|
messages: Message[]
|
|
5
4
|
timerId: number
|
|
6
5
|
timeGap: number
|
|
7
6
|
mqDelay: number
|
|
8
7
|
constructor() {
|
|
9
8
|
this.messages = []
|
|
10
9
|
this.timerId = 0
|
|
11
10
|
this.timeGap = 17
|
|
12
11
|
this.mqDelay = 50
|
|
13
12
|
}
|
|
14
13
|
|
|
15
14
|
static getInstance() {
|
|
16
15
|
if (window.top._mq == null) {
|
|
17
16
|
window.top._mq = new MQ()
|
|
18
17
|
}
|
|
19
18
|
return window.top._mq
|
|
20
19
|
}
|
|
21
20
|
onTimer() {
|
|
22
21
|
const nowTime = Date.now()
|
|
23
22
|
let leftMsgList:Message[] = []
|
|
24
23
|
const msgList = this.messages.filter((item:Message)=>{
|
|
25
24
|
if(nowTime - item.time >= this.mqDelay){
|
|
26
25
|
return true
|
|
27
26
|
}
|
|
28
27
|
else{
|
|
29
28
|
leftMsgList.push(item)
|
|
30
29
|
return false
|
|
31
30
|
}
|
|
32
31
|
})
|
|
33
32
|
msgList.forEach((msg)=>{
|
|
34
33
|
msg.callback()
|
|
35
34
|
})
|
|
36
35
|
this.messages = leftMsgList
|
|
37
36
|
if(this.messages.length>0){
|
|
38
37
|
this.timerId = 0
|
|
39
38
|
this.starTimer()
|
|
40
39
|
}
|
|
41
40
|
else{
|
|
42
41
|
this.stopTimer()
|
|
43
42
|
}
|
|
44
43
|
}
|
|
45
44
|
starTimer() {
|
|
46
45
|
if(this.timerId== 0){
|
|
47
46
|
this.timerId = setTimeout(()=>{
|
|
48
47
|
this.onTimer()
|
|
49
48
|
}, this.timeGap)
|
|
50
49
|
}
|
|
51
50
|
}
|
|
52
51
|
stopTimer() {
|
|
53
52
|
if(this.timerId>0){
|
|
54
53
|
clearTimeout(this.timerId)
|
|
55
54
|
}
|
|
56
55
|
this.timerId = 0
|
|
57
56
|
}
|
|
58
57
|
|
|
59
58
|
addCallBack(callback: Function) {
|
|
60
59
|
if(callback){
|
|
61
60
|
const msg: Message = {
|
|
62
61
|
callback,
|
|
63
62
|
time: Date.now()
|
|
64
63
|
}
|
|
65
64
|
this.messages.push(msg)
|
|
66
65
|
this.starTimer()
|
|
67
66
|
}
|
|
68
67
|
}
|
|
69
68
|
clear() {
|
|
70
69
|
this.messages = []
|
|
71
70
|
this.stopTimer()
|
|
72
71
|
}
|
|
72
|
+
interface Message {
|
|
73
73
|
callback:Function
|
|
74
74
|
time: number
|
|
75
75
|
messages: Message[]
|
|
76
76
|
timerId: number
|
|
77
77
|
timeGap: number
|
|
78
78
|
mqDelay: number
|
|
79
79
|
constructor() {
|
|
80
80
|
this.messages = []
|
|
81
81
|
this.timerId = 0
|
|
82
82
|
this.timeGap = 17
|
|
83
83
|
this.mqDelay = 50
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
static getInstance() {
|
|
87
87
|
_mq = new MQ()
|
|
88
88
|
}
|
|
89
89
|
return _mq
|
|
90
90
|
}
|
|
91
91
|
onTimer() {
|
|
92
92
|
const nowTime = Date.now()
|
|
93
93
|
let leftMsgList:Message[] = []
|
|
94
94
|
const msgList = this.messages.filter((item:Message)=>{
|
|
95
95
|
if(nowTime - item.time >= this.mqDelay){
|
|
96
96
|
return true
|
|
97
97
|
}
|
|
98
98
|
else{
|
|
99
99
|
leftMsgList.push(item)
|
|
100
100
|
return false
|
|
101
101
|
}
|
|
102
102
|
})
|
|
103
103
|
msgList.forEach((msg)=>{
|
|
104
104
|
msg.callback()
|
|
105
105
|
})
|
|
106
106
|
this.messages = leftMsgList
|
|
107
107
|
if(this.messages.length>0){
|
|
108
108
|
this.timerId = 0
|
|
109
109
|
this.starTimer()
|
|
110
110
|
}
|
|
111
111
|
else{
|
|
112
112
|
this.stopTimer()
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
starTimer() {
|
|
116
116
|
if(this.timerId== 0){
|
|
117
117
|
this.timerId = setTimeout(()=>{
|
|
118
118
|
this.onTimer()
|
|
119
119
|
}, this.timeGap)
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
stopTimer() {
|
|
123
123
|
if(this.timerId>0){
|
|
124
124
|
clearTimeout(this.timerId)
|
|
125
125
|
}
|
|
126
126
|
this.timerId = 0
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
addCallBack(callback: Function) {
|
|
130
130
|
if(callback){
|
|
131
131
|
const msg: Message = {
|
|
132
132
|
callback,
|
|
133
133
|
time: Date.now()
|
|
134
134
|
}
|
|
135
135
|
this.messages.push(msg)
|
|
136
136
|
this.starTimer()
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
clear() {
|
|
140
140
|
this.messages = []
|
|
141
141
|
this.stopTimer()
|
|
142
142
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@conecli/cone-render",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.12",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "dist/open/index.ts",
|
|
6
6
|
"files": [
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
"@tarojs/runtime": "3.4.3",
|
|
53
53
|
"@tarojs/taro": "3.4.3",
|
|
54
54
|
"art-template": "^4.13.2",
|
|
55
|
+
"normalize.css": "^8.0.1",
|
|
55
56
|
"raf": "^3.4.1",
|
|
56
57
|
"react": "^17.0.0",
|
|
57
58
|
"react-content-loader": "^6.2.0",
|