@conecli/cone-render 0.10.1-beta.4 → 0.10.1-beta.6

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.
Files changed (81) hide show
  1. package/dist/api/index.ts +1 -1
  2. package/dist/common/const.ts +1 -1
  3. package/dist/common/environmentType.ts +1 -1
  4. package/dist/common/index.h5.ts +1 -1
  5. package/dist/common/index.jd.ts +1 -1
  6. package/dist/common/index.ts +1 -1
  7. package/dist/common/index.weapp.ts +1 -1
  8. package/dist/common/pageType.ts +1 -1
  9. package/dist/common/sgmCustomCode.ts +1 -1
  10. package/dist/components/ErrorBoundary.tsx +1 -1
  11. package/dist/components/base/CountDown/index.module.scss +49 -44
  12. package/dist/components/base/CountDown/index.tsx +1 -1
  13. package/dist/components/base/CustomScrollView/index.tsx +1 -1
  14. package/dist/components/base/CustomVideo/common.ts +1 -0
  15. package/dist/components/base/CustomVideo/index.tsx +1 -1
  16. package/dist/components/base/InOrOutViewObserver/index.tsx +1 -1
  17. package/dist/components/base/InViewRender/index.weapp.tsx +1 -1
  18. package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
  19. package/dist/components/base/LazyLayoutLoad/index.weapp.tsx +1 -1
  20. package/dist/components/base/LazyLoadImage/index.h5.module.scss +11 -3
  21. package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
  22. package/dist/components/base/MobileCommonHeader/index.tsx +1 -1
  23. package/dist/components/base/NetworkDataError/index.module.scss +3 -0
  24. package/dist/components/base/NetworkDataError/index.tsx +1 -1
  25. package/dist/components/base/Price/Base/index.tsx +1 -1
  26. package/dist/components/base/Price/Double/index.module.scss +8 -0
  27. package/dist/components/base/Price/Double/index.tsx +1 -1
  28. package/dist/components/decorate/DecorateFloorModule/index.module.scss +11 -0
  29. package/dist/components/decorate/DecorateFloorModule/index.tsx +1 -1
  30. package/dist/components/decorate/EmptyFloorModule/index.tsx +1 -1
  31. package/dist/components/decorate/PlaceHolder/index.tsx +1 -1
  32. package/dist/components/floorItem.tsx +1 -1
  33. package/dist/components/isv/Floor/index.tsx +1 -1
  34. package/dist/components/remoteFloorItem.tsx +1 -1
  35. package/dist/interface/common.ts +1 -1
  36. package/dist/interface/component.ts +1 -1
  37. package/dist/interface/jumpEventReport.ts +1 -1
  38. package/dist/interface/service.ts +1 -1
  39. package/dist/jumpEventReport/base.ts +1 -1
  40. package/dist/jumpEventReport/const.ts +1 -1
  41. package/dist/jumpEventReport/index.jd.ts +1 -1
  42. package/dist/jumpEventReport/index.weapp.ts +1 -1
  43. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  44. package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
  45. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  46. package/dist/jumpEventReport/web.base.ts +1 -1
  47. package/dist/jumpEventReport/web.jd.ts +1 -1
  48. package/dist/jumpEventReport/web.jdb.ts +1 -1
  49. package/dist/jumpEventReport/web.jdjch.ts +1 -1
  50. package/dist/jumpEventReport/web.jxwxapp.ts +1 -1
  51. package/dist/jumpEventReport/web.pc.ts +1 -1
  52. package/dist/jumpEventReport/web.tjapp.ts +1 -1
  53. package/dist/jumpEventReport/web.tjm.ts +1 -1
  54. package/dist/jumpEventReport/web.wxapp.ts +1 -1
  55. package/dist/modules/ContainerFloorList/index.h5.module.scss +1 -0
  56. package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
  57. package/dist/modules/ContainerFloorList/index.tsx +1 -1
  58. package/dist/open/api/device.ts +1 -1
  59. package/dist/open/api/request.ts +1 -1
  60. package/dist/open/api/shopMember.ts +1 -1
  61. package/dist/open/api/util.ts +1 -1
  62. package/dist/open/components/index.ts +1 -1
  63. package/dist/sass/app.h5.scss +5 -0
  64. package/dist/sass/base.scss +183 -137
  65. package/dist/service/fetchGateway.ts +1 -1
  66. package/dist/service/http/colorSign.ts +1 -1
  67. package/dist/service/http/h5Http.ts +1 -0
  68. package/dist/service/http/index.h5.ts +1 -0
  69. package/dist/service/requestServer.h5.ts +1 -0
  70. package/dist/service/requestServer.ts +1 -1
  71. package/dist/utils/connectNativeJsBridge.ts +1 -1
  72. package/dist/utils/connectNativeJsBridge.weapp.ts +1 -1
  73. package/dist/utils/h5Utils.ts +1 -1
  74. package/dist/utils/index.h5.ts +1 -1
  75. package/dist/utils/index.ts +1 -1
  76. package/dist/utils/index.weapp.ts +1 -1
  77. package/dist/utils/sgmCodeUtils.ts +1 -1
  78. package/dist/utils/taroRenderUtil.ts +1 -1
  79. package/dist/utils/utils.ts +1 -1
  80. package/package.json +35 -28
  81. package/dist/utils/memberFormatUtils.js +0 -1
@@ -1,296 +1,337 @@
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;
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') format('truetype');
6
+ font-weight: normal;
7
+ font-style: normal;
8
+ }
9
+
10
+ @font-face {
11
+ font-family: 'JDZhengHT-Light';
12
+ //src: url(https://storage.360buyimg.com/jshopstorage/JDZhengHT-Light.ttf) format('truetype');
13
+ src: url('https://wq.360buyimg.com/data/ppms/others/JDZH_Light.ttf') format('truetype');
14
+ font-weight: normal;
15
+ font-style: normal;
16
+ }
17
+
18
+ @font-face {
19
+ font-family: 'JDZhengHT-Regular';
20
+ //src: url(https://storage.360buyimg.com/jshopstorage/JDZhengHT-Regular.ttf) format('truetype');
21
+ src: url('https://wq.360buyimg.com/data/ppms/others/JDZH_Regular.ttf') format('truetype');
22
+ font-weight: normal;
23
+ font-style: normal;
24
+ }
25
+
26
+ @font-face {
27
+ font-family: 'JDZhengHT-EN-Bold';
28
+ src: url('https://wq.360buyimg.com/data/ppms/others/JDZhengHei_01_Bold.ttf') format('truetype');
29
+ }
30
+ @font-face {
31
+ font-family: 'JDZhengHeiV2-Bold';
32
+ src: url('https://jscss.360buyimg.com/static-common/font/JDZhengHeiV20_Bold.otf')
33
+ format('truetype');
34
+ font-weight: normal;
35
+ font-style: normal;
9
36
  }
10
37
 
11
38
  @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;
39
+ font-family: 'JDZhengHeiV2-Light';
40
+ //src: url(https://storage.360buyimg.com/jshopstorage/JDZhengHT-Light.ttf) format('truetype');
41
+ src: url('https://jscss.360buyimg.com/static-common/font/JDZhengHeiV20_Light.otf')
42
+ format('truetype');
43
+ font-weight: normal;
44
+ font-style: normal;
18
45
  }
19
46
 
20
47
  @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;
48
+ font-family: 'JDZhengHeiV2-Regular';
49
+ //src: url(https://storage.360buyimg.com/jshopstorage/JDZhengHT-Regular.ttf) format('truetype');
50
+ src: url('https://jscss.360buyimg.com/static-common/font/JDZhengHeiV20_Regular.otf ')
51
+ format('truetype');
52
+ font-weight: normal;
53
+ font-style: normal;
27
54
  }
28
55
 
29
56
  @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');
57
+ font-family: 'JDZhengHeiV2-Heavy';
58
+ src: url('https://jscss.360buyimg.com/static-common/font/JDZhengHeiV20_Heavy.otf')
59
+ format('truetype');
60
+ font-weight: normal;
61
+ font-style: normal;
33
62
  }
34
63
 
35
64
  .font-jdzht {
36
- font-family: 'JDZhengHT-Regular';
65
+ font-family: 'JDZhengHT-Regular';
37
66
  }
38
67
 
39
68
  .font-jdzht-bold {
40
- font-family: 'JDZhengHT-Bold';
69
+ font-family: 'JDZhengHT-Bold';
41
70
  }
42
71
 
43
72
  .font-jdzht-en-bold {
44
- font-family: 'JDZhengHT-EN-Bold';
73
+ font-family: 'JDZhengHT-EN-Bold';
45
74
  }
46
75
 
47
76
  .font-jdzht-light {
48
- font-family: 'JDZhengHT-Light';
77
+ font-family: 'JDZhengHT-Light';
78
+ }
79
+ .font-jdzht-v2 {
80
+ font-family: 'JDZhengHeiV2-Regular';
81
+ }
82
+ .font-jdzht-v2-bold {
83
+ font-family: 'JDZhengHeiV2-Bold';
84
+ }
85
+ .font-jdzht-v2-heavy {
86
+ font-family: 'JDZhengHeiV2-Heavy';
49
87
  }
50
88
 
89
+ .font-jdzht-v2-light {
90
+ font-family: 'JDZhengHeiV2-Light';
91
+ }
51
92
 
52
93
  .border-box {
53
- box-sizing: border-box;
94
+ box-sizing: border-box;
54
95
  }
55
96
 
56
97
 
57
98
  .content-box {
58
- box-sizing: content-box;
99
+ box-sizing: content-box;
59
100
  }
60
101
 
61
102
 
62
103
  .flexible-box {
63
- display: flex;
104
+ display: flex;
64
105
  }
65
106
 
66
107
  .flexible-box-important {
67
- display: flex !important;
108
+ display: flex !important;
68
109
  }
69
110
 
70
111
  //竖向布局
71
112
  .flexible-box-h {
72
- display: flex;
73
- flex-direction: column;
113
+ display: flex;
114
+ flex-direction: column;
74
115
  }
75
116
 
76
117
  .flexible-box-h-important {
77
- display: flex !important;
78
- flex-direction: column !important;
118
+ display: flex !important;
119
+ flex-direction: column !important;
79
120
  }
80
121
 
81
122
  //垂直居中布局
82
123
  .flexible-vertical-center-box {
83
- display: flex;
84
- align-items: center;
124
+ display: flex;
125
+ align-items: center;
85
126
  }
86
127
 
87
128
  //水平居中布局
88
129
  .flexible-horizontal-center-box {
89
- display: flex;
90
- justify-content: center;
130
+ display: flex;
131
+ justify-content: center;
91
132
  }
92
133
 
93
134
  //水平垂直居中布局
94
135
  .flexible-center-box {
95
- display: flex;
96
- align-items: center;
97
- justify-content: center;
136
+ display: flex;
137
+ align-items: center;
138
+ justify-content: center;
98
139
  }
99
140
 
100
141
 
101
142
  .adaptive-box-flex {
102
- flex: 1;
143
+ flex: 1;
103
144
  }
104
145
 
105
146
  .left {
106
- float: left;
147
+ float: left;
107
148
  }
108
149
 
109
150
  .right {
110
- float: right;
151
+ float: right;
111
152
  }
112
153
 
113
154
  .vertical-align-t {
114
- vertical-align: top;
155
+ vertical-align: top;
115
156
  }
116
157
 
117
158
  .vertical-align-m {
118
- vertical-align: middle;
159
+ vertical-align: middle;
119
160
  }
120
161
 
121
162
  .vertical-align-b {
122
- vertical-align: bottom;
163
+ vertical-align: bottom;
123
164
  }
124
165
 
125
166
  .margin-lr-auto {
126
- margin: 0 auto;
167
+ margin: 0 auto;
127
168
  }
128
169
 
129
170
  .pos-relative {
130
- position: relative;
171
+ position: relative;
131
172
  }
132
173
 
133
174
  .pos-absolute {
134
- position: absolute;
175
+ position: absolute;
135
176
  }
136
177
 
137
178
  .pos-fixed {
138
- position: fixed;
179
+ position: fixed;
139
180
  }
140
181
 
141
182
  .align-left {
142
- text-align: left;
183
+ text-align: left;
143
184
  }
144
185
 
145
186
  .align-center {
146
- text-align: center;
187
+ text-align: center;
147
188
  }
148
189
 
149
190
  .align-right {
150
- text-align: right;
191
+ text-align: right;
151
192
  }
152
193
 
153
194
  .display-none {
154
- display: none;
195
+ display: none;
155
196
  }
156
197
 
157
198
  .display-none-important {
158
- display: none !important;
199
+ display: none !important;
159
200
  }
160
201
 
161
202
  .display-block {
162
- display: block;
203
+ display: block;
163
204
  }
164
205
 
165
206
  .display-block-important {
166
- display: block !important;
207
+ display: block !important;
167
208
  }
168
209
 
169
210
  .display-inline-block {
170
- display: inline-block;
211
+ display: inline-block;
171
212
  }
172
213
 
173
214
  .display-inline-block-important {
174
- display: inline-block !important;
215
+ display: inline-block !important;
175
216
  }
176
217
 
177
218
  .display-inline {
178
- display: inline;
219
+ display: inline;
179
220
  }
180
221
 
181
222
  .display-inline-important {
182
- display: inline !important;
223
+ display: inline !important;
183
224
  }
184
225
 
185
226
  .font-bold {
186
- font-weight: bold;
227
+ font-weight: bold;
187
228
  }
188
229
 
189
230
  .pointer {
190
- cursor: pointer;
231
+ cursor: pointer;
191
232
  }
192
233
 
193
234
  .over-hidden {
194
- overflow: hidden;
235
+ overflow: hidden;
195
236
  }
196
237
 
197
238
  .over-auto {
198
- overflow: auto;
239
+ overflow: auto;
199
240
  }
200
241
 
201
242
  .over-auto-hidden-x {
202
- overflow: auto;
203
- overflow-x: hidden;
243
+ overflow: auto;
244
+ overflow-x: hidden;
204
245
  }
205
246
 
206
247
  .over-auto-hidden-y {
207
- overflow: auto;
208
- overflow-y: hidden;
248
+ overflow: auto;
249
+ overflow-y: hidden;
209
250
  }
210
251
 
211
252
  .over-x-auto {
212
- overflow-x: auto;
213
- overflow-y: hidden;
253
+ overflow-x: auto;
254
+ overflow-y: hidden;
214
255
  }
215
256
 
216
257
  .over-y-auto {
217
- overflow-y: auto;
218
- overflow-x: hidden;
258
+ overflow-y: auto;
259
+ overflow-x: hidden;
219
260
  }
220
261
 
221
262
  .font-size-0 {
222
- font-size: 0;
263
+ font-size: 0;
223
264
  }
224
265
 
225
266
 
226
267
  .text-ellipsis {
227
- overflow: hidden;
228
- white-space: nowrap;
229
- text-overflow: ellipsis;
268
+ overflow: hidden;
269
+ white-space: nowrap;
270
+ text-overflow: ellipsis;
230
271
  }
231
272
 
232
273
  .text-ellipsis-2 {
233
- display: -webkit-box;
234
- overflow: hidden;
235
- word-break: break-all;
236
- text-overflow: ellipsis;
237
- -webkit-line-clamp: 2;
238
-
239
- -webkit-box-orient: vertical;
274
+ display: -webkit-box;
275
+ overflow: hidden;
276
+ word-break: break-all;
277
+ text-overflow: ellipsis;
278
+ -webkit-line-clamp: 2;
279
+
280
+ -webkit-box-orient: vertical;
240
281
  }
241
282
 
242
283
  .text-ellipsis-3 {
243
- display: -webkit-box;
244
- overflow: hidden;
245
- word-break: break-all;
246
- text-overflow: ellipsis;
247
- -webkit-line-clamp: 3;
248
-
249
- -webkit-box-orient: vertical;
284
+ display: -webkit-box;
285
+ overflow: hidden;
286
+ word-break: break-all;
287
+ text-overflow: ellipsis;
288
+ -webkit-line-clamp: 3;
289
+
290
+ -webkit-box-orient: vertical;
250
291
  }
251
292
 
252
293
  .text-ellipsis-no-omit {
253
- overflow: hidden;
254
- white-space: nowrap;
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;
294
+ overflow: hidden;
295
+ white-space: nowrap;
296
+ text-overflow: clip;
297
+ //display: -webkit-box;
298
+ //overflow: hidden;
299
+ //word-break: break-all;
300
+ //text-overflow: ellipsis;
301
+ //-webkit-line-clamp: 1;
302
+ //
303
+ //-webkit-box-orient: inherit;
263
304
  }
264
305
 
265
306
  .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;
307
+ display: -webkit-box;
308
+ overflow: hidden;
309
+ word-break: break-all;
310
+ text-overflow: ellipsis;
311
+ -webkit-line-clamp: 1;
312
+
313
+ // -webkit-box-orient: inherit;
314
+ -webkit-box-orient: vertical;
274
315
  }
275
316
 
276
317
  .text-ellipsis-2-no-omit {
277
- display: -webkit-box;
278
- overflow: hidden;
279
- word-break: break-all;
280
- text-overflow: ellipsis;
281
- -webkit-line-clamp: 2;
282
-
283
- -webkit-box-orient: inherit;
318
+ display: -webkit-box;
319
+ overflow: hidden;
320
+ word-break: break-all;
321
+ text-overflow: ellipsis;
322
+ -webkit-line-clamp: 2;
323
+
324
+ -webkit-box-orient: inherit;
284
325
  }
285
326
 
286
327
  .text-ellipsis-3-no-omit {
287
- display: -webkit-box;
288
- overflow: hidden;
289
- word-break: break-all;
290
- text-overflow: ellipsis;
291
- -webkit-line-clamp: 3;
292
-
293
- -webkit-box-orient: inherit;
328
+ display: -webkit-box;
329
+ overflow: hidden;
330
+ word-break: break-all;
331
+ text-overflow: ellipsis;
332
+ -webkit-line-clamp: 3;
333
+
334
+ -webkit-box-orient: inherit;
294
335
  }
295
336
 
296
337
 
@@ -315,7 +356,12 @@
315
356
  //-webkit-transform-style: preserve-3d;
316
357
  }
317
358
  }
318
-
359
+ .visibility-hide {
360
+ visibility: hidden !important;
361
+ }
362
+ .visibility-show {
363
+ visibility: visible !important;
364
+ }
319
365
 
320
366
  .d-half-1px-line::after {
321
367
  border-width: 0;
@@ -324,21 +370,21 @@
324
370
  }
325
371
  //解决安卓行高不居中对齐问题
326
372
  .d-android-vertical-align {
327
- &:before {
328
- content: '';
329
- display: inline-block;
330
- margin-top: 1px;
331
- width: 0;
332
- min-height: 10px;
333
- height: 100%;
334
- vertical-align: middle;
335
- }
373
+ &:before {
374
+ content: '';
375
+ display: inline-block;
376
+ margin-top: 1px;
377
+ width: 0;
378
+ min-height: 10px;
379
+ height: 100%;
380
+ vertical-align: middle;
381
+ }
336
382
  }
337
383
 
338
384
  .d-button-no-border {
339
- &::after {
340
- border: none;
341
- }
385
+ &::after {
386
+ border: none;
387
+ }
342
388
  }
343
389
  .slide-in-left {
344
390
  animation: slide-in-left 1s forwards;
@@ -1 +1 @@
1
- import { api } from '../api'
2
1
  clientVersion: '11.0.0',
3
2
  client: 'wh5',
4
3
  area: '1_72_2799_0',
5
4
  uuid: UUID,
6
5
  functionId: string,
7
6
  body = {},
8
7
  options = {},
9
8
  requestOptions = {},
10
9
  const params = Object.assign(
11
10
  {},
12
11
  {
13
12
  t: Date.now(),
14
13
  functionId,
15
14
  appid: 'shop_m_jd_com',
16
15
  body: JSON.stringify(body),
17
16
  },
18
17
  clientParams,
19
18
  options,
20
19
  )
21
20
  console.warn(
22
21
  'fetchGateway url:' + api.apiFunc + ',functionId:' + params.functionId,
23
22
  )
24
23
  return http.post(api.apiFunc, params, requestOptions)
24
+ import Taro from '@tarojs/taro';
25
25
  clientVersion:
26
26
  isJdApp && jdAppVersionStr !== '' ? jdAppVersionStr : '11.0.0',
27
27
  client: isJdApp ? (isIosDevice ? 'apple' : 'android') : isPc ? 'pc' : 'wh5',
28
28
  screen: `${Math.ceil(window.screen?.width * devicePixelRatio)}*${Math.ceil(
29
29
  window.screen?.height * devicePixelRatio,
30
30
  )}`,
31
31
  area: '1_72_2799_0',
32
32
  uuid: UUID,
33
33
  if(area && area !== ""){
34
34
  clientParams.area = area
35
35
  }
36
36
  console.warn("cone-render中对外暴露fetchGateway收到原生端获取传来的四级地址信息",area,"更新后的接口底层信息", clientParams)
37
37
  functionId: string,
38
38
  body = {},
39
39
  options = {},
40
40
  requestOptions = {},
41
41
  const params = Object.assign(
42
42
  {},
43
43
  {
44
44
  t: Date.now(),
45
45
  functionId,
46
46
  appid: 'shop_m_jd_com',
47
47
  body: JSON.stringify(body),
48
48
  },
49
49
  clientParams,
50
50
  options,
51
51
  {
52
52
  area: clientParams.area,
53
53
  client: !isJdApp && options?.client ? options?.client : clientParams.client ,
54
54
  clientVersion: !isJdApp && options?.clientVersion ? options?.clientVersion : clientParams.clientVersion,
55
55
  }
56
56
  )
57
57
  console.warn(
58
58
  'fetchGateway url:' + api.apiFunc + ',functionId:' + params.functionId,
59
59
  "底层默认的clientParams",
60
60
  clientParams,
61
61
  "下发的options",
62
62
  options,
63
63
  "最后params",
64
64
  params
65
65
  )
66
66
  return http.post(api.apiFunc, params, requestOptions)