@conecli/cone-render 0.10.1-shop-beta.44 → 0.10.1-shop-beta.46

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.
@@ -1 +1 @@
1
- import React, { useRef, useEffect } from 'react';
2
1
  isH5AndJdShopView,
3
2
  isAndroidDevice,
4
3
  isJdAndAndroidDevice,
5
4
  isJdAndHarmonyDevice,
6
5
  isJdAndIosDevice,
7
6
  isIosDevice,
8
7
  isJdApp,
9
8
  isWxMin,
10
9
  isH5AndJdShopViewH5Scroll,
11
10
  isH5AndJdShopH5CustomScrollView,
12
11
  isH5,
13
12
  isAppClassifyPage,
14
13
  lodashThrottle,
15
14
  START: 'start',
16
15
  MOVE: 'move',
17
16
  END: 'end',
18
17
  const {
19
18
  scrollX,
20
19
  children,
21
20
  style = {},
22
21
  iosNeedDisableVertical,
23
22
  dispatchTouchMove,
24
23
  className,
25
24
  ...otherProps
26
25
  } = props;
27
26
  const rootEleNode = isH5 && document ? document.querySelector('body') : null;
28
27
  const needShowHighVersion =
29
28
  isH5AndJdShopViewH5Scroll &&
30
29
  !(global.info.queryInfo?.downgraded && global.info.queryInfo.downgraded === 'true');
31
30
  const mLastClientPosRef = useRef({
32
31
  mLastClientX: 0,
33
32
  mLastClientY: 0,
34
33
  });
35
34
  const isJdAndH5ScrollState = needShowHighVersion || isH5AndJdShopH5CustomScrollView;
36
35
 
37
36
  const touchstartEventBubbleFunc = (e) => {
38
37
  const isH5SwiperCustomEle = e?.target?.closest('.J_h5SwiperCustom');
39
38
  if (!isH5SwiperCustomEle) {
40
39
  const hasCustomEle = e
41
40
  ? e?.target?.closest('.J_customScroll') || e?.target?.closest('.J_customLayout')
42
41
  : false;
43
42
  if (isJdAndAndroidDevice && !hasCustomEle) {
44
43
  window?.JdAndroid &&
45
44
  window?.JdAndroid?.requestEvent &&
46
45
  window.JdAndroid.requestEvent(false);
47
46
  }
48
47
  !hasCustomEle &&
49
48
  rootEleNode &&
50
49
  rootEleNode.classList.contains('over-hidden') &&
51
50
  rootEleNode.classList.remove('over-hidden');
52
51
  console.log(
53
52
  'customScrollView所在页面document touch start事件是否有J_customScroll元素',
54
53
  hasCustomEle,
55
54
  '根元素是否有over-hidden',
56
55
  rootEleNode.classList,
57
56
  );
58
57
  }
59
58
  };
60
59
  const touchstartEventCaptureFunc = (e) => {
61
60
  if (e && !e?.target?.closest('.J_h5SwiperCustom') && !e?.target?.closest('.J_customLayout')) {
62
61
  rootEleNode &&
63
62
  rootEleNode.classList.contains('over-hidden') &&
64
63
  rootEleNode.classList.remove('over-hidden');
65
64
  console.log(
66
65
  'customScrollView所在页面document touch start事件捕获阶段移除根元素是否有over-hidden',
67
66
  rootEleNode.classList,
68
67
  );
69
68
  }
70
69
  };
71
70
  useEffect(() => {
72
71
  isJdApp &&
73
72
  !window.JDJshopViewInfo.getAndroidTouchSlopState &&
74
73
  nativePageGetScaledTouchSlop((res) => {
75
74
  console.log('获取安卓系统滑动阈值', res);
76
75
  window.JDJshopViewInfo.androidTouchSlop = res;
77
76
  window.JDJshopViewInfo.getAndroidTouchSlopState = true;
78
77
  });
79
78
  if (isJdAndH5ScrollState && rootEleNode && !rootEleAddEventListenerState) {
80
79
  global?.removeJdAndroidRquestEventForTouchStart &&
81
80
  global.removeJdAndroidRquestEventForTouchStart();
82
81
  rootEleNode.addEventListener('touchstart', touchstartEventBubbleFunc, false);
83
82
 
84
83
  rootEleNode.addEventListener('touchstart', touchstartEventCaptureFunc, true);
85
84
  rootEleAddEventListenerState = true;
86
85
  console.log('customScrollView 初始化document监听完成');
87
86
  }
88
87
  return () => {
89
88
  if (isJdAndH5ScrollState && rootEleNode && rootEleAddEventListenerState) {
90
89
  console.log('customScrollView document监听取消完成');
91
90
  rootEleNode.removeEventListener('touchstart', touchstartEventBubbleFunc, false);
92
91
  rootEleNode.removeEventListener('touchstart', touchstartEventCaptureFunc, true);
93
92
  }
94
93
  };
95
94
  }, []);
96
95
 
97
96
  const androidDeviceStopNativeScrollEvent = (touchType) => {
98
97
  isJdApp &&
99
98
  isAndroidDevice &&
100
99
  window?.JdAndroid &&
101
100
  window?.JdAndroid?.requestEvent &&
102
101
  window.JdAndroid.requestEvent(touchType === TouchType.START);
103
102
  console.log('触发window?.JdAndroid.requestEvent', touchType === TouchType.START, touchType);
104
103
  };
105
104
  const iosDeviceStopNativeScrollEvent = (e, touchType, sendIosState = true) => {
106
105
  sendIosState && iosDeviceSendRouter(touchType);
107
106
  };
108
107
 
109
108
  const iosDeviceSendRouter = (state: string) => {
110
109
  window?.webkit?.messageHandlers?.MobileNavi?.postMessage?.({
111
110
  method: 'callRouterModuleWithParams',
112
111
  params: {
113
112
  routerURL: 'router://JDShopModule/processShoph5SlideState',
114
113
  routerParam: {
115
114
  slideDirection: 'horizontal',
116
115
  needDisableVertical: `${iosNeedDisableVertical}`,
117
116
  state,
118
117
  },
119
118
  callBackId: new Date().getTime(),
120
119
  },
121
120
  });
122
121
  };
123
122
  const stopNativeScrollEvent = (e: Event, touchType, sendIosState = true) => {
124
123
  if (isJdApp) {
125
124
  isIosDevice &&
126
125
  !isAppClassifyPage &&
127
126
  iosDeviceStopNativeScrollEvent(e, touchType, sendIosState);
128
127
  isAndroidDevice && androidDeviceStopNativeScrollEvent(touchType);
129
128
  }
130
129
  };
131
130
 
132
131
  const GetSlideAngle = (dx, dy) => {
133
132
  return (Math.atan2(dy, dx) * 180) / Math.PI;
134
133
  };
135
134
 
136
135
  const GetSlideDirection = (startX, startY, endX, endY) => {
137
136
  const dy = startY - endY;
138
137
  const dx = endX - startX;
139
138
  let result = 0;
140
139
  if (Math.abs(dx) < 2 && Math.abs(dy) < 2) {
141
140
  return result;
142
141
  }
143
142
  const angle = GetSlideAngle(dx, dy);
144
143
  if (angle >= -45 && angle < 45) {
145
144
  result = 4;
146
145
  } else if (angle >= 45 && angle < 135) {
147
146
  result = 1;
148
147
  } else if (angle >= -135 && angle < -45) {
149
148
  result = 2;
150
149
  } else if ((angle >= 135 && angle <= 180) || (angle >= -180 && angle < -135)) {
151
150
  result = 3;
152
151
  }
153
152
  return result;
154
153
  };
155
154
  const changeTouchStart = (e) => {
156
155
  if (isJdApp) {
157
156
  stopNativeScrollEvent(e, TouchType.START, !iosNeedDisableVertical);
158
157
  if (isH5AndJdShopView || isH5AndJdShopH5CustomScrollView) {
159
158
  isJdAndH5ScrollState && rootEleNode && rootEleNode.classList.add('over-hidden');
160
159
  const touchEvent = e?.originalEvent?.targetTouches[0] || e?.targetTouches[0];
161
160
  mLastClientPosRef.current.mLastClientX = touchEvent.clientX;
162
161
  mLastClientPosRef.current.mLastClientY = touchEvent.clientY;
163
162
  }
164
163
  }
165
164
  };
166
165
  const changeTouchEnd = (e) => {
167
166
  stopNativeScrollEvent(e, TouchType.END);
168
167
  mLastClientPosRef.current.mLastClientX = 0;
169
168
  mLastClientPosRef.current.mLastClientY = 0;
170
169
  };
171
170
  const triggerIosTouchMove = () => {
172
171
  isJdAndIosDevice && iosDeviceStopNativeScrollEvent(null, TouchType.START, true);
173
172
  };
174
173
 
175
174
  const lodashThrottleTriggerIosTouchMove = lodashThrottle(triggerIosTouchMove, 500);
176
175
 
177
176
  const recoverRootEleVerticalScroll = (touchEvent) => {
178
177
  const direction = GetSlideDirection(
179
178
  mLastClientPosRef.current.mLastClientX,
180
179
  mLastClientPosRef.current.mLastClientY,
181
180
  touchEvent.clientX,
182
181
  touchEvent.clientY,
183
182
  );
184
183
  if (direction === 1 || direction === 2) {
185
184
  rootEleNode &&
186
185
  rootEleNode.classList.contains('over-hidden') &&
187
186
  rootEleNode.classList.remove('over-hidden');
188
187
  }
189
188
  };
190
189
  const changeTouchMove = (e) => {
191
190
  if (isH5AndJdShopView || isH5AndJdShopH5CustomScrollView) {
192
191
  const touchEvent = e?.originalEvent?.targetTouches[0] || e?.targetTouches[0];
193
192
  const xDiff = Math.abs(touchEvent.clientX - mLastClientPosRef.current.mLastClientX).toFixed(
194
193
  2,
195
194
  );
196
195
  const yDiff = Math.abs(touchEvent.clientY - mLastClientPosRef.current.mLastClientY).toFixed(
197
196
  2,
198
197
  );
199
198
  if (isJdApp) {
200
199
  if (xDiff >= window.JDJshopViewInfo.androidTouchSlop) {
201
200
  iosNeedDisableVertical && isJdApp && lodashThrottleTriggerIosTouchMove();
202
201
  } else if (yDiff > window.JDJshopViewInfo.androidTouchSlop) {
203
202
  console.log('纵向滚动触发', yDiff, touchEvent, window.JDJshopViewInfo.androidTouchSlop);
204
203
  stopNativeScrollEvent(e, TouchType.END);
205
204
  }
206
205
  }
207
206
  isJdAndH5ScrollState && recoverRootEleVerticalScroll(touchEvent);
208
207
  }
209
208
  if (!dispatchTouchMove) {
210
209
  return;
211
210
  }
212
211
  const parentNode = e.target?.parentNode;
213
212
  if (!parentNode) {
214
213
  return;
215
214
  }
216
215
  const event = new TouchEvent('touchmove', e);
217
216
  parentNode.dispatchEvent(event);
218
217
  };
219
218
  if (scrollX && isJdApp && !isIgnorePreventNative) {
220
219
  return (
221
220
  <ScrollView
222
221
  scrollX
223
222
  onTouchStart={changeTouchStart}
224
223
  onTouchEnd={changeTouchEnd}
225
224
  onTouchCancel={changeTouchEnd}
226
225
  onTouchMove={changeTouchMove}
227
226
  enhanced
228
227
  showScrollbar={false}
229
228
  style={style}
230
229
  className={classNames(
231
230
  className,
232
231
  {
233
232
  [customScrollViewStyle['d-custom-ios-h5-extend-border-radius']]: isIosDevice,
234
233
  },
235
234
  'J_customScroll',
236
235
  )}
237
236
  {...otherProps}
238
237
  >
239
238
  {children}
240
239
  </ScrollView>
241
240
  );
242
241
  } else {
243
242
  return (
244
243
  <ScrollView
245
244
  scrollX
246
245
  enhanced
247
246
  showScrollbar={false}
248
247
  {...otherProps}
249
248
  className={classNames(
250
249
  className,
251
250
  {
252
251
  [customScrollViewStyle['d-custom-ios-mini-extend-border-radius']]:
253
252
  isIosDevice && isWxMin && scrollX && style['borderRadius'],
254
253
  },
255
254
  {
256
255
  [customScrollViewStyle['d-custom-ios-h5-extend-border-radius']]: isIosDevice,
257
256
  },
258
257
  {
259
258
  [customScrollViewStyle['d-custom-mini-hide-scroll']]: isWxMin,
260
259
  },
261
260
  )}
262
261
  style={style}
263
262
  >
264
263
  {children}
265
264
  </ScrollView>
266
265
  );
267
266
  }
268
267
  style: {},
269
268
  scrollX: false,
270
269
  scrollY: false,
271
270
  scrollWithAnimation: true,
272
271
  iosNeedDisableVertical: false,
273
272
  className: null,
274
273
  dispatchTouchMove: true,
274
+ import React, { useRef, useEffect } from 'react';
275
275
  isH5AndJdShopView,
276
276
  isAndroidDevice,
277
277
  isJdAndAndroidDevice,
278
278
  isJdAndHarmonyDevice,
279
279
  isJdAndIosDevice,
280
280
  isIosDevice,
281
281
  isJdApp,
282
282
  isWxMin,
283
283
  isH5AndJdShopViewH5Scroll,
284
284
  isH5AndJdShopH5CustomScrollView,
285
285
  isH5,
286
286
  isAppClassifyPage,
287
287
  lodashThrottle,
288
288
  START: 'start',
289
289
  MOVE: 'move',
290
290
  END: 'end',
291
291
  const {
292
292
  scrollX,
293
293
  children,
294
294
  style = {},
295
295
  iosNeedDisableVertical,
296
296
  dispatchTouchMove,
297
297
  className,
298
298
  ...otherProps
299
299
  } = props;
300
300
  const rootEleNode = isH5 && document ? document.querySelector('body') : null;
301
301
  const needShowHighVersion =
302
302
  isH5AndJdShopViewH5Scroll &&
303
303
  !(global.info.queryInfo?.downgraded && global.info.queryInfo.downgraded === 'true');
304
304
  const mLastClientPosRef = useRef({
305
305
  mLastClientX: 0,
306
306
  mLastClientY: 0,
307
307
  });
308
308
  const isJdAndH5ScrollState = needShowHighVersion || isH5AndJdShopH5CustomScrollView;
309
309
 
310
310
  const touchstartEventBubbleFunc = (e) => {
311
311
  const isH5SwiperCustomEle = e?.target?.closest('.J_h5SwiperCustom');
312
312
  if (!isH5SwiperCustomEle) {
313
313
  const hasCustomEle = e
314
314
  ? e?.target?.closest('.J_customScroll') || e?.target?.closest('.J_customLayout')
315
315
  : false;
316
316
  if (isJdAndAndroidDevice && !hasCustomEle) {
317
317
  window?.JdAndroid &&
318
318
  window?.JdAndroid?.requestEvent &&
319
319
  window.JdAndroid.requestEvent(false);
320
320
  }
321
321
  !hasCustomEle &&
322
322
  rootEleNode &&
323
323
  rootEleNode.classList.contains('over-hidden') &&
324
324
  rootEleNode.classList.remove('over-hidden');
325
325
  console.log(
326
326
  'customScrollView所在页面document touch start事件是否有J_customScroll元素',
327
327
  hasCustomEle,
328
328
  '根元素是否有over-hidden',
329
329
  rootEleNode.classList,
330
330
  );
331
331
  }
332
332
  };
333
333
  const touchstartEventCaptureFunc = (e) => {
334
334
  if (e && !e?.target?.closest('.J_h5SwiperCustom') && !e?.target?.closest('.J_customLayout')) {
335
335
  rootEleNode &&
336
336
  rootEleNode.classList.contains('over-hidden') &&
337
337
  rootEleNode.classList.remove('over-hidden');
338
338
  console.log(
339
339
  'customScrollView所在页面document touch start事件捕获阶段移除根元素是否有over-hidden',
340
340
  rootEleNode.classList,
341
341
  );
342
342
  }
343
343
  };
344
344
  useEffect(() => {
345
345
  isJdApp &&
346
346
  !window.JDJshopViewInfo.getAndroidTouchSlopState &&
347
347
  nativePageGetScaledTouchSlop((res) => {
348
348
  console.log('获取安卓系统滑动阈值', res);
349
349
  window.JDJshopViewInfo.androidTouchSlop = res;
350
350
  window.JDJshopViewInfo.getAndroidTouchSlopState = true;
351
351
  });
352
352
  if (isJdAndH5ScrollState && rootEleNode && !rootEleAddEventListenerState) {
353
353
  global?.removeJdAndroidRquestEventForTouchStart &&
354
354
  global.removeJdAndroidRquestEventForTouchStart();
355
355
  rootEleNode.addEventListener('touchstart', touchstartEventBubbleFunc, false);
356
356
 
357
357
  rootEleNode.addEventListener('touchstart', touchstartEventCaptureFunc, true);
358
358
  rootEleAddEventListenerState = true;
359
359
  console.log('customScrollView 初始化document监听完成');
360
360
  }
361
361
  return () => {
362
362
  if (isJdAndH5ScrollState && rootEleNode && rootEleAddEventListenerState) {
363
363
  rootEleNode.classList.contains('over-hidden') &&
364
364
  rootEleNode.classList.remove('over-hidden');
365
365
  rootEleAddEventListenerState = false;
366
366
  console.log('customScrollView document监听取消完成');
367
367
  rootEleNode.removeEventListener('touchstart', touchstartEventBubbleFunc, false);
368
368
  rootEleNode.removeEventListener('touchstart', touchstartEventCaptureFunc, true);
369
369
  }
370
370
  };
371
371
  }, []);
372
372
 
373
373
  const androidDeviceStopNativeScrollEvent = (touchType) => {
374
374
  isJdApp &&
375
375
  isAndroidDevice &&
376
376
  window?.JdAndroid &&
377
377
  window?.JdAndroid?.requestEvent &&
378
378
  window.JdAndroid.requestEvent(touchType === TouchType.START);
379
379
  console.log('触发window?.JdAndroid.requestEvent', touchType === TouchType.START, touchType);
380
380
  };
381
381
  const iosDeviceStopNativeScrollEvent = (e, touchType, sendIosState = true) => {
382
382
  sendIosState && iosDeviceSendRouter(touchType);
383
383
  };
384
384
 
385
385
  const iosDeviceSendRouter = (state: string) => {
386
386
  window?.webkit?.messageHandlers?.MobileNavi?.postMessage?.({
387
387
  method: 'callRouterModuleWithParams',
388
388
  params: {
389
389
  routerURL: 'router://JDShopModule/processShoph5SlideState',
390
390
  routerParam: {
391
391
  slideDirection: 'horizontal',
392
392
  needDisableVertical: `${iosNeedDisableVertical}`,
393
393
  state,
394
394
  },
395
395
  callBackId: new Date().getTime(),
396
396
  },
397
397
  });
398
398
  };
399
399
  const stopNativeScrollEvent = (e: Event, touchType, sendIosState = true) => {
400
400
  if (isJdApp) {
401
401
  isIosDevice &&
402
402
  !isAppClassifyPage &&
403
403
  iosDeviceStopNativeScrollEvent(e, touchType, sendIosState);
404
404
  isAndroidDevice && androidDeviceStopNativeScrollEvent(touchType);
405
405
  }
406
406
  };
407
407
 
408
408
  const GetSlideAngle = (dx, dy) => {
409
409
  return (Math.atan2(dy, dx) * 180) / Math.PI;
410
410
  };
411
411
 
412
412
  const GetSlideDirection = (startX, startY, endX, endY) => {
413
413
  const dy = startY - endY;
414
414
  const dx = endX - startX;
415
415
  let result = 0;
416
416
  if (Math.abs(dx) < 2 && Math.abs(dy) < 2) {
417
417
  return result;
418
418
  }
419
419
  const angle = GetSlideAngle(dx, dy);
420
420
  if (angle >= -45 && angle < 45) {
421
421
  result = 4;
422
422
  } else if (angle >= 45 && angle < 135) {
423
423
  result = 1;
424
424
  } else if (angle >= -135 && angle < -45) {
425
425
  result = 2;
426
426
  } else if ((angle >= 135 && angle <= 180) || (angle >= -180 && angle < -135)) {
427
427
  result = 3;
428
428
  }
429
429
  return result;
430
430
  };
431
431
  const changeTouchStart = (e) => {
432
432
  if (isJdApp) {
433
433
  stopNativeScrollEvent(e, TouchType.START, !iosNeedDisableVertical);
434
434
  if (isH5AndJdShopView || isH5AndJdShopH5CustomScrollView) {
435
435
  isJdAndH5ScrollState && rootEleNode && rootEleNode.classList.add('over-hidden');
436
436
  const touchEvent = e?.originalEvent?.targetTouches[0] || e?.targetTouches[0];
437
437
  mLastClientPosRef.current.mLastClientX = touchEvent.clientX;
438
438
  mLastClientPosRef.current.mLastClientY = touchEvent.clientY;
439
439
  }
440
440
  }
441
441
  };
442
442
  const changeTouchEnd = (e) => {
443
443
  stopNativeScrollEvent(e, TouchType.END);
444
444
  mLastClientPosRef.current.mLastClientX = 0;
445
445
  mLastClientPosRef.current.mLastClientY = 0;
446
446
  };
447
447
  const triggerIosTouchMove = () => {
448
448
  isJdAndIosDevice && iosDeviceStopNativeScrollEvent(null, TouchType.START, true);
449
449
  };
450
450
 
451
451
  const lodashThrottleTriggerIosTouchMove = lodashThrottle(triggerIosTouchMove, 500);
452
452
 
453
453
  const recoverRootEleVerticalScroll = (touchEvent) => {
454
454
  const direction = GetSlideDirection(
455
455
  mLastClientPosRef.current.mLastClientX,
456
456
  mLastClientPosRef.current.mLastClientY,
457
457
  touchEvent.clientX,
458
458
  touchEvent.clientY,
459
459
  );
460
460
  if (direction === 1 || direction === 2) {
461
461
  rootEleNode &&
462
462
  rootEleNode.classList.contains('over-hidden') &&
463
463
  rootEleNode.classList.remove('over-hidden');
464
464
  }
465
465
  };
466
466
  const changeTouchMove = (e) => {
467
467
  if (isH5AndJdShopView || isH5AndJdShopH5CustomScrollView) {
468
468
  const touchEvent = e?.originalEvent?.targetTouches[0] || e?.targetTouches[0];
469
469
  const xDiff = Math.abs(touchEvent.clientX - mLastClientPosRef.current.mLastClientX).toFixed(
470
470
  2,
471
471
  );
472
472
  const yDiff = Math.abs(touchEvent.clientY - mLastClientPosRef.current.mLastClientY).toFixed(
473
473
  2,
474
474
  );
475
475
  if (isJdApp) {
476
476
  if (xDiff >= window.JDJshopViewInfo.androidTouchSlop) {
477
477
  iosNeedDisableVertical && isJdApp && lodashThrottleTriggerIosTouchMove();
478
478
  } else if (yDiff > window.JDJshopViewInfo.androidTouchSlop) {
479
479
  console.log('纵向滚动触发', yDiff, touchEvent, window.JDJshopViewInfo.androidTouchSlop);
480
480
  stopNativeScrollEvent(e, TouchType.END);
481
481
  }
482
482
  }
483
483
  isJdAndH5ScrollState && recoverRootEleVerticalScroll(touchEvent);
484
484
  }
485
485
  if (!dispatchTouchMove) {
486
486
  return;
487
487
  }
488
488
  const parentNode = e.target?.parentNode;
489
489
  if (!parentNode) {
490
490
  return;
491
491
  }
492
492
  const event = new TouchEvent('touchmove', e);
493
493
  parentNode.dispatchEvent(event);
494
494
  };
495
495
  if (scrollX && isJdApp && !isIgnorePreventNative) {
496
496
  return (
497
497
  <ScrollView
498
498
  scrollX
499
499
  onTouchStart={changeTouchStart}
500
500
  onTouchEnd={changeTouchEnd}
501
501
  onTouchCancel={changeTouchEnd}
502
502
  onTouchMove={changeTouchMove}
503
503
  enhanced
504
504
  showScrollbar={false}
505
505
  style={style}
506
506
  className={classNames(
507
507
  className,
508
508
  {
509
509
  [customScrollViewStyle['d-custom-ios-h5-extend-border-radius']]: isIosDevice,
510
510
  },
511
511
  'J_customScroll',
512
512
  )}
513
513
  {...otherProps}
514
514
  >
515
515
  {children}
516
516
  </ScrollView>
517
517
  );
518
518
  } else {
519
519
  return (
520
520
  <ScrollView
521
521
  scrollX
522
522
  enhanced
523
523
  showScrollbar={false}
524
524
  {...otherProps}
525
525
  className={classNames(
526
526
  className,
527
527
  {
528
528
  [customScrollViewStyle['d-custom-ios-mini-extend-border-radius']]:
529
529
  isIosDevice && isWxMin && scrollX && style['borderRadius'],
530
530
  },
531
531
  {
532
532
  [customScrollViewStyle['d-custom-ios-h5-extend-border-radius']]: isIosDevice,
533
533
  },
534
534
  {
535
535
  [customScrollViewStyle['d-custom-mini-hide-scroll']]: isWxMin,
536
536
  },
537
537
  )}
538
538
  style={style}
539
539
  >
540
540
  {children}
541
541
  </ScrollView>
542
542
  );
543
543
  }
544
544
  style: {},
545
545
  scrollX: false,
546
546
  scrollY: false,
547
547
  scrollWithAnimation: true,
548
548
  iosNeedDisableVertical: false,
549
549
  className: null,
550
550
  dispatchTouchMove: true,
@@ -1 +1 @@
1
- import React from 'react';
2
1
  NETWORK_DATA_TYPE,
3
2
  M_SHOP_DOWNLOAD_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT,
4
3
  APP_SHOP_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT,
5
4
  (window.navigator.userAgent.includes('jdappPuppeteer') && window?.loadPuppeteerPageLocalData) ||
6
5
  window.location.href.includes('loadMasterJsType=xingyun');
7
6
  memberBaseInfo?: {
8
7
  shopId?: string;
9
8
  venderId?: string;
10
9
  channel?: string;
11
10
  venderType?: string;
12
11
  showDefaultModule?: boolean;
13
12
  customerLevel?: string;
14
13
  isUserForMember?: boolean;
15
14
  isLv0?: boolean;
16
15
  levelZeroMenuUrl?: string;
17
16
  totalRefresh?: functionType;
18
17
  callOpenCardPopPage?: functionType;
19
18
  };
20
19
  source?: string;
21
20
  containerFloorListData: ComponentInterFace.ContainerItemData[];
22
21
  extendInfoData?: object;
23
22
  className?: string;
24
23
  containerItemClass?: object;
25
24
  style?: object;
26
25
  hasGoodsFeeds?: boolean;
27
26
  builtInComponents?: object;
28
27
  loadingEndComponentFn?: functionType;
29
28
  sectionType?: string;
30
29
  updateShopFloorDataFn?: functionType;
31
30
  updateContainerFloorListDataFn?: functionType;
32
31
  refreshFloorListDataFn?: functionType;
33
32
  refreshFloorListDataBtnLabel?: string;
34
33
  customErrorIsvFloorModule?: React.ReactElement;
35
34
  componentExtend?: React.ReactElement;
36
35
  luxuryFixedIndex?: number;
37
36
  isContainerListHasMarginBottom?: boolean;
38
37
  switchConfig?: {
39
38
  [key: string]: any;
40
39
  };
41
40
  containerFloorListPageInfo?: {
42
41
  hasNextPage: boolean;
43
42
  isByPage: boolean;
44
43
  };
45
44
  const { windowHeight, screenHeight } = taroJdBaseInfo.info.sysInfo;
46
45
  const {
47
46
  source,
48
47
  className,
49
48
  style,
50
49
  memberBaseInfo,
51
50
  containerItemClass = null,
52
51
  containerFloorListData,
53
52
  extendInfoData,
54
53
  builtInComponents,
55
54
  loadingEndComponentFn,
56
55
  sectionType,
57
56
  updateShopFloorDataFn,
58
57
  updateContainerFloorListDataFn,
59
58
  refreshFloorListDataFn,
60
59
  refreshFloorListDataBtnLabel,
61
60
  customErrorIsvFloorModule,
62
61
  luxuryFixedIndex = -1,
63
62
  isContainerListHasMarginBottom,
64
63
  switchConfig,
65
64
  containerFloorListPageInfo = {
66
65
  hasNextPage: false,
67
66
  isByPage: false,
68
67
  },
69
68
  } = props;
70
69
  const { hasNextPage, isByPage } = containerFloorListPageInfo;
71
70
  const isContainerListHasMore = isCheckFloorListByPage && hasNextPage && isByPage;
72
71
  const emptyFloorListHidden = switchConfig?.emptyFloorListHidden || false;
73
72
  const isSageShop = taroJdBaseInfo.info?.pageInfo?.isSageShop;
74
73
  const isHasMarginBottom = isContainerListHasMarginBottom ?? !isSageShop;
75
74
 
76
75
  const hasLiveForSageShop =
77
76
  isSageShop && taroJdBaseInfo.info?.pageInfo?.isJdShowNativeImmersivePlayer;
78
77
 
79
78
  const renderFloorItem = (
80
79
  item,
81
80
  floorItem,
82
81
  floorIndex,
83
82
  containerLayoutLeftRightMargin,
84
83
  lazyLoadState = false,
85
84
  index,
86
85
  borderStyle,
87
86
  ) => {
88
87
  return (
89
88
  <View
90
89
  className={classNames(shopContainerListStyle['d-floor-item'])}
91
90
  data-floor-uid={floorItem?.uid}
92
91
  data-floor-type={floorItem?.floorExtInfo?.moduleFlag || ''}
93
92
  data-lazy-load={lazyLoadState}
94
93
  key={floorItem.uid}
95
94
  id={`J_floor_${floorItem.uid}`}
96
95
  style={borderStyle}
97
96
  >
98
97
  {isChartH5 && (
99
98
  <View
100
99
  className={shopContainerListStyle['d-floor-chart-item']}
101
100
  id={`J_chart_floor_${floorItem?.uid}`}
102
101
  data-floor-uid={floorItem?.uid}
103
102
  data-floor-type={floorItem?.floorExtInfo?.moduleFlag || ''}
104
103
  />
105
104
  )}
106
105
  <FloorListItem
107
106
  memberBaseInfo={memberBaseInfo}
108
107
  source={source}
109
108
  floorIndex={floorIndex}
110
109
  floorData={floorItem}
111
110
  containerIndex={index}
112
111
  layoutLeftRightMargin={containerLayoutLeftRightMargin}
113
112
  containerBorderRadius={borderStyle}
114
113
  updateShopFloorDataFn={updateShopFloorDataFn}
115
114
  loadingEndComponentFn={loadingEndComponentFn}
116
115
  extendInfoData={
117
116
  passExtendInfoModuleWhiteList.includes(floorItem?.floorExtInfo?.moduleFlag)
118
117
  ? extendInfoData
119
118
  : undefined
120
119
  }
121
120
  key={floorItem.uid}
122
121
  builtInComponents={builtInComponents}
123
122
  updateContainerFloorListDataFn={updateContainerFloorListDataFn}
124
123
  customErrorIsvFloorModule={customErrorIsvFloorModule}
125
124
  />
126
125
  {index === luxuryFixedIndex ? props.children : null}
127
126
  {floorItem?.inspectResult === '1' && (
128
127
  <View className={shopContainerListStyle['d-floor-inspect-mask']} />
129
128
  )}
130
129
  </View>
131
130
  );
132
131
  };
133
132
 
134
133
  const getFloorSetHeight = (item) => {
135
134
  const getHeight = item?.floorExtInfo?.floorHeight
136
135
  ? Number(item?.floorExtInfo?.floorHeight)
137
136
  : 200;
138
137
  return getHeight > 0 ? getHeight : 200;
139
138
  };
140
139
  const containerFloorListDataLen = containerFloorListData.length;
141
140
 
142
141
  const getNoDataContainerHeight = () => {
143
142
  const getWindowHeight = windowHeight > 10 ? windowHeight : screenHeight;
144
143
  const changeHeight = hasLiveForSageShop
145
144
  ? getWindowHeight
146
145
  : getWindowHeight -
147
146
  (isJdApp
148
147
  ? APP_SHOP_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT
149
148
  : M_SHOP_DOWNLOAD_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT);
150
149
  return {
151
150
  height: `${changeHeight}px`,
152
151
  };
153
152
  };
154
153
  return (
155
154
  <View
156
155
  id="J_shopContainerFloorList"
157
156
  className={classNames(
158
157
  className,
159
158
  shopContainerListStyle['d-shop-container-list'],
160
159
  isHasMarginBottom
161
160
  ? shopContainerListStyle['d-container-list-with-margin-bottom']
162
161
  : shopContainerListStyle['d-container-list-no-margin-bottom'],
163
162
  )}
164
163
  style={style}
165
164
  >
166
165
  {containerFloorListDataLen > 0 ? (
167
166
  <>
168
167
  {containerFloorListData.map((item, index) => {
169
168
  const containerLayoutLeftRightMargin = (item.marginLeft || 0) + (item.marginRight || 0);
170
169
  const getContainerId = `J_container_${item.containerId}`;
171
170
  const getDealContainerFloorListLen = isContainerListHasMore
172
171
  ? 1000
173
172
  : containerFloorListDataLen;
174
173
  const borderStyle = getBorderStyle(
175
174
  item,
176
175
  index,
177
176
  containerFloorListData,
178
177
  getDealContainerFloorListLen,
179
178
  );
180
179
  return (
181
180
  <React.Fragment key={item.containerId + index}>
182
181
  {item.addLuxuryStyle ? (
183
182
  <View className={shopContainerListStyle['d-luxury-header']} />
184
183
  ) : null}
185
184
  {item.addLuxuryBackupStyle ? (
186
185
  <View
187
186
  style={{
188
187
  height: taroJdBaseInfo?.info?.sysInfo?.jdNativeHeaderHeight + 'px',
189
188
  }}
190
189
  className={shopContainerListStyle['d-luxury-header-black']}
191
190
  />
192
191
  ) : null}
193
192
  {typeof item?.renderExtendComponent === 'function'
194
193
  ? item?.renderExtendComponent(item?.floorExtendData)
195
194
  : null}
196
195
  <View
197
196
  className={classNames(
198
197
  shopContainerListStyle['d-container-item'],
199
198
  containerItemClass,
200
199
  )}
201
200
  id={getContainerId}
202
201
  key={item.containerId}
203
202
  data-container-id={item?.containerId}
204
203
  data-container-type={item?.typeCode}
205
204
  data-container-index={index}
206
205
  style={{
207
206
  marginBottom: item.marginBottom ? `${item.marginBottom}px` : 0,
208
207
  marginTop: item.marginTop ? `${item.marginTop}px` : 0,
209
208
  marginLeft: item.marginLeft ? `${item.marginLeft}px` : 0,
210
209
  marginRight: item.marginRight ? `${item.marginRight}px` : 0,
211
210
  borderTopLeftRadius: borderStyle?.borderTopLeftRadius || `0px`,
212
211
  borderTopRightRadius: borderStyle?.borderTopRightRadiu || `0px`,
213
212
  borderBottomLeftRadius: borderStyle?.borderBottomLeftRadius || `0px`,
214
213
  borderBottomRightRadius: borderStyle?.borderBottomRightRadius || `0px`,
215
214
  '--container-layout-left-right-margin': `${containerLayoutLeftRightMargin}px`,
216
215
  }}
217
216
  >
218
217
  {typeof item?.insertContainerStartComponent === 'function'
219
218
  ? item?.insertContainerStartComponent(item)
220
219
  : null}
221
220
  {item.floors &&
222
221
  item.floors.length > 0 &&
223
222
  item.floors?.map((floorItem, floorIndex) => {
224
223
  return index > lazyLoadStartIndex ? (
225
224
  <LazyLayoutLoad
226
225
  key={item.containerId}
227
226
  sectionType={sectionType}
228
227
  containerId={getContainerId}
229
228
  height={getFloorSetHeight(floorItem)}
230
229
  floorData={floorItem}
231
230
  >
232
231
  {renderFloorItem(
233
232
  item,
234
233
  floorItem,
235
234
  floorIndex,
236
235
  containerLayoutLeftRightMargin,
237
236
  true,
238
237
  index,
239
238
  borderStyle,
240
239
  )}
241
240
  </LazyLayoutLoad>
242
241
  ) : (
243
242
  renderFloorItem(
244
243
  item,
245
244
  floorItem,
246
245
  floorIndex,
247
246
  containerLayoutLeftRightMargin,
248
247
  false,
249
248
  index,
250
249
  borderStyle,
251
250
  )
252
251
  );
253
252
  })}
254
253
  </View>
255
254
  </React.Fragment>
256
255
  );
257
256
  })}
258
257
  </>
259
258
  ) : !emptyFloorListHidden ? (
260
259
  <View
261
260
  className={classNames(shopContainerListStyle['d-container-list-no-data'], {
262
261
  [shopContainerListStyle['d-sage-shop-no-data']]: hasLiveForSageShop,
263
262
  })}
264
263
  style={getNoDataContainerHeight()}
265
264
  >
266
265
  <NetworkDataError
267
266
  netWorkShowType={NetWorkShowType.PART}
268
267
  netWorkDataType={NETWORK_DATA_TYPE.DATA_ERROR}
269
268
  backgroundColorWhite={hasLiveForSageShop}
270
269
  refreshCallBackFn={refreshFloorListDataFn ? refreshFloorListDataFn : null}
271
270
  btnLabel={refreshFloorListDataBtnLabel || ''}
272
271
  />
273
272
  </View>
274
273
  ) : null}
275
274
  </View>
276
275
  );
277
276
  updateShopDataFn: null,
277
+ import React from 'react';
278
278
  NETWORK_DATA_TYPE,
279
279
  M_SHOP_DOWNLOAD_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT,
280
280
  APP_SHOP_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT,
281
281
  (window.navigator.userAgent.includes('jdappPuppeteer') && window?.loadPuppeteerPageLocalData) ||
282
282
  window.location.href.includes('loadMasterJsType=xingyun');
283
283
  memberBaseInfo?: {
284
284
  shopId?: string;
285
285
  venderId?: string;
286
286
  channel?: string;
287
287
  venderType?: string;
288
288
  showDefaultModule?: boolean;
289
289
  customerLevel?: string;
290
290
  isUserForMember?: boolean;
291
291
  isLv0?: boolean;
292
292
  levelZeroMenuUrl?: string;
293
293
  totalRefresh?: functionType;
294
294
  callOpenCardPopPage?: functionType;
295
295
  };
296
296
  source?: string;
297
297
  containerFloorListData: ComponentInterFace.ContainerItemData[];
298
298
  extendInfoData?: object;
299
299
  className?: string;
300
300
  containerItemClass?: object;
301
301
  style?: object;
302
302
  hasGoodsFeeds?: boolean;
303
303
  builtInComponents?: object;
304
304
  loadingEndComponentFn?: functionType;
305
305
  sectionType?: string;
306
306
  updateShopFloorDataFn?: functionType;
307
307
  updateContainerFloorListDataFn?: functionType;
308
308
  refreshFloorListDataFn?: functionType;
309
309
  refreshFloorListDataBtnLabel?: string;
310
310
  customErrorIsvFloorModule?: React.ReactElement;
311
311
  componentExtend?: React.ReactElement;
312
312
  luxuryFixedIndex?: number;
313
313
  isContainerListHasMarginBottom?: boolean;
314
314
  switchConfig?: {
315
315
  [key: string]: any;
316
316
  };
317
317
  containerFloorListPageInfo?: {
318
318
  hasNextPage: boolean;
319
319
  isByPage: boolean;
320
320
  };
321
321
  const { windowHeight, screenHeight } = taroJdBaseInfo.info.sysInfo;
322
322
  const {
323
323
  source,
324
324
  className,
325
325
  style,
326
326
  memberBaseInfo,
327
327
  containerItemClass = null,
328
328
  containerFloorListData,
329
329
  extendInfoData,
330
330
  builtInComponents,
331
331
  loadingEndComponentFn,
332
332
  sectionType,
333
333
  updateShopFloorDataFn,
334
334
  updateContainerFloorListDataFn,
335
335
  refreshFloorListDataFn,
336
336
  refreshFloorListDataBtnLabel,
337
337
  customErrorIsvFloorModule,
338
338
  luxuryFixedIndex = -1,
339
339
  isContainerListHasMarginBottom,
340
340
  switchConfig,
341
341
  containerFloorListPageInfo = {
342
342
  hasNextPage: false,
343
343
  isByPage: false,
344
344
  },
345
345
  } = props;
346
346
  const { hasNextPage, isByPage } = containerFloorListPageInfo;
347
347
  const isContainerListHasMore = isCheckFloorListByPage && hasNextPage && isByPage;
348
348
  const emptyFloorListHidden = switchConfig?.emptyFloorListHidden || false;
349
349
  const isSageShop = taroJdBaseInfo.info?.pageInfo?.isSageShop;
350
350
  const isHasMarginBottom = isContainerListHasMarginBottom ?? !isSageShop;
351
351
 
352
352
  const hasLiveForSageShop =
353
353
  isSageShop && taroJdBaseInfo.info?.pageInfo?.isJdShowNativeImmersivePlayer;
354
354
 
355
355
  const renderFloorItem = (
356
356
  item,
357
357
  floorItem,
358
358
  floorIndex,
359
359
  containerLayoutLeftRightMargin,
360
360
  lazyLoadState = false,
361
361
  index,
362
362
  borderStyle,
363
363
  ) => {
364
364
  return (
365
365
  <View
366
366
  className={classNames(shopContainerListStyle['d-floor-item'])}
367
367
  data-floor-uid={floorItem?.uid}
368
368
  data-floor-type={floorItem?.floorExtInfo?.moduleFlag || ''}
369
369
  data-lazy-load={lazyLoadState}
370
370
  key={floorItem.uid}
371
371
  id={`J_floor_${floorItem.uid}`}
372
372
  style={borderStyle}
373
373
  >
374
374
  {isChartH5 && (
375
375
  <View
376
376
  className={shopContainerListStyle['d-floor-chart-item']}
377
377
  id={`J_chart_floor_${floorItem?.uid}`}
378
378
  data-floor-uid={floorItem?.uid}
379
379
  data-floor-type={floorItem?.floorExtInfo?.moduleFlag || ''}
380
380
  />
381
381
  )}
382
382
  <FloorListItem
383
383
  memberBaseInfo={memberBaseInfo}
384
384
  source={source}
385
385
  floorIndex={floorIndex}
386
386
  floorData={floorItem}
387
387
  containerIndex={index}
388
388
  layoutLeftRightMargin={containerLayoutLeftRightMargin}
389
389
  containerBorderRadius={borderStyle}
390
390
  updateShopFloorDataFn={updateShopFloorDataFn}
391
391
  loadingEndComponentFn={loadingEndComponentFn}
392
392
  extendInfoData={
393
393
  passExtendInfoModuleWhiteList.includes(floorItem?.floorExtInfo?.moduleFlag)
394
394
  ? extendInfoData
395
395
  : undefined
396
396
  }
397
397
  key={floorItem.uid}
398
398
  builtInComponents={builtInComponents}
399
399
  updateContainerFloorListDataFn={updateContainerFloorListDataFn}
400
400
  customErrorIsvFloorModule={customErrorIsvFloorModule}
401
401
  />
402
402
  {index === luxuryFixedIndex ? props.children : null}
403
403
  {floorItem?.inspectResult === '1' && (
404
404
  <View className={shopContainerListStyle['d-floor-inspect-mask']} />
405
405
  )}
406
406
  </View>
407
407
  );
408
408
  };
409
409
 
410
410
  const getFloorSetHeight = (item) => {
411
411
  const getHeight = item?.floorExtInfo?.floorHeight
412
412
  ? Number(item?.floorExtInfo?.floorHeight)
413
413
  : 200;
414
414
  return getHeight > 0 ? getHeight : 200;
415
415
  };
416
416
  const containerFloorListDataLen = containerFloorListData.length;
417
417
 
418
418
  const getNoDataContainerHeight = () => {
419
419
  const getWindowHeight = windowHeight > 10 ? windowHeight : screenHeight;
420
420
  const changeHeight = hasLiveForSageShop
421
421
  ? getWindowHeight
422
422
  : getWindowHeight -
423
423
  (isJdApp
424
424
  ? APP_SHOP_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT
425
425
  : M_SHOP_DOWNLOAD_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT);
426
426
  return {
427
427
  height: `${changeHeight}px`,
428
428
  };
429
429
  };
430
430
  return (
431
431
  <View
432
432
  id="J_shopContainerFloorList"
433
433
  className={classNames(
434
434
  className,
435
435
  shopContainerListStyle['d-shop-container-list'],
436
436
  isHasMarginBottom
437
437
  ? shopContainerListStyle['d-container-list-with-margin-bottom']
438
438
  : shopContainerListStyle['d-container-list-no-margin-bottom'],
439
439
  )}
440
440
  style={style}
441
441
  >
442
442
  {containerFloorListDataLen > 0 ? (
443
443
  <>
444
444
  {containerFloorListData.map((item, index) => {
445
445
  const containerLayoutLeftRightMargin = (item.marginLeft || 0) + (item.marginRight || 0);
446
446
  const getContainerId = `J_container_${item.containerId}`;
447
447
  const getDealContainerFloorListLen = isContainerListHasMore
448
448
  ? 1000
449
449
  : containerFloorListDataLen;
450
450
  const borderStyle = getBorderStyle(
451
451
  item,
452
452
  index,
453
453
  containerFloorListData,
454
454
  getDealContainerFloorListLen,
455
455
  );
456
456
  return (
457
457
  <React.Fragment key={item.containerId + index}>
458
458
  {item.addLuxuryStyle ? (
459
459
  <View className={shopContainerListStyle['d-luxury-header']} />
460
460
  ) : null}
461
461
  {item.addLuxuryBackupStyle ? (
462
462
  <View
463
463
  style={{
464
464
  height: taroJdBaseInfo?.info?.sysInfo?.jdNativeHeaderHeight + 'px',
465
465
  }}
466
466
  className={shopContainerListStyle['d-luxury-header-black']}
467
467
  />
468
468
  ) : null}
469
469
  {typeof item?.renderExtendComponent === 'function'
470
470
  ? item?.renderExtendComponent(item?.floorExtendData)
471
471
  : null}
472
472
  <View
473
473
  className={classNames(
474
474
  shopContainerListStyle['d-container-item'],
475
475
  containerItemClass,
476
476
  )}
477
477
  id={getContainerId}
478
478
  key={item.containerId}
479
479
  data-container-id={item?.containerId}
480
480
  data-container-type={item?.typeCode}
481
481
  data-container-index={index}
482
482
  style={{
483
483
  marginBottom: item.marginBottom ? `${item.marginBottom}px` : 0,
484
484
  marginTop: item.marginTop ? `${item.marginTop}px` : 0,
485
485
  marginLeft: item.marginLeft ? `${item.marginLeft}px` : 0,
486
486
  marginRight: item.marginRight ? `${item.marginRight}px` : 0,
487
487
  borderTopLeftRadius: borderStyle?.borderTopLeftRadius || `0px`,
488
488
  borderTopRightRadius: borderStyle?.borderTopRightRadiu || `0px`,
489
489
  borderBottomLeftRadius: borderStyle?.borderBottomLeftRadius || `0px`,
490
490
  borderBottomRightRadius: borderStyle?.borderBottomRightRadius || `0px`,
491
491
  '--container-layout-left-right-margin': `${containerLayoutLeftRightMargin}px`,
492
492
  }}
493
493
  >
494
494
  {typeof item?.insertContainerStartComponent === 'function'
495
495
  ? item?.insertContainerStartComponent(item)
496
496
  : null}
497
497
  {item.floors &&
498
498
  item.floors.length > 0 &&
499
499
  item.floors?.map((floorItem, floorIndex) => {
500
500
  return index > lazyLoadStartIndex ? (
501
501
  <LazyLayoutLoad
502
502
  key={item.containerId}
503
503
  sectionType={sectionType}
504
504
  containerId={getContainerId}
505
505
  height={getFloorSetHeight(floorItem)}
506
506
  floorData={floorItem}
507
507
  >
508
508
  {renderFloorItem(
509
509
  item,
510
510
  floorItem,
511
511
  floorIndex,
512
512
  containerLayoutLeftRightMargin,
513
513
  true,
514
514
  index,
515
515
  borderStyle,
516
516
  )}
517
517
  </LazyLayoutLoad>
518
518
  ) : (
519
519
  renderFloorItem(
520
520
  item,
521
521
  floorItem,
522
522
  floorIndex,
523
523
  containerLayoutLeftRightMargin,
524
524
  false,
525
525
  index,
526
526
  borderStyle,
527
527
  )
528
528
  );
529
529
  })}
530
530
  </View>
531
531
  </React.Fragment>
532
532
  );
533
533
  })}
534
534
  </>
535
535
  ) : !emptyFloorListHidden ? (
536
536
  <View
537
537
  className={classNames(shopContainerListStyle['d-container-list-no-data'], {
538
538
  [shopContainerListStyle['d-sage-shop-no-data']]: hasLiveForSageShop,
539
539
  })}
540
540
  style={getNoDataContainerHeight()}
541
541
  >
542
542
  <NetworkDataError
543
543
  netWorkShowType={NetWorkShowType.PART}
544
544
  netWorkDataType={NETWORK_DATA_TYPE.DATA_ERROR}
545
545
  backgroundColorWhite={hasLiveForSageShop}
546
546
  refreshCallBackFn={refreshFloorListDataFn ? refreshFloorListDataFn : null}
547
547
  btnLabel={refreshFloorListDataBtnLabel || ''}
548
548
  />
549
549
  </View>
550
550
  ) : null}
551
551
  </View>
552
552
  );
553
553
  updateShopDataFn: null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conecli/cone-render",
3
- "version": "0.10.1-shop-beta.44",
3
+ "version": "0.10.1-shop-beta.46",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist/"