@conecli/cone-render 0.9.1-shop2.3 → 0.9.1-shop2.31

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 (114) hide show
  1. package/dist/api/index.ts +1 -1
  2. package/dist/assets/icon_blue_info.svg +1 -0
  3. package/dist/common/const.ts +1 -1
  4. package/dist/common/environmentType.ts +1 -0
  5. package/dist/common/index.h5.ts +1 -1
  6. package/dist/common/index.jd.ts +1 -1
  7. package/dist/common/index.ts +1 -1
  8. package/dist/common/index.weapp.ts +1 -1
  9. package/dist/common/jdplayerSdk.ts +1 -0
  10. package/dist/common/jssdk.ts +1 -0
  11. package/dist/common/pageType.ts +1 -0
  12. package/dist/common/sgmCustomCode.ts +1 -0
  13. package/dist/common/token/index.h5.ts +1 -1
  14. package/dist/common/token/token.jd.ts +1 -1
  15. package/dist/common/token/token.ts +1 -1
  16. package/dist/common/wxappApi.jd.ts +1 -0
  17. package/dist/components/ErrorBoundary.tsx +1 -1
  18. package/dist/components/base/CountDown/index.tsx +1 -1
  19. package/dist/components/base/CustomScrollView/index.jd.tsx +1 -0
  20. package/dist/components/base/CustomScrollView/index.module.scss +7 -0
  21. package/dist/components/base/CustomScrollView/index.tsx +1 -1
  22. package/dist/components/base/CustomVideo/common.ts +1 -0
  23. package/dist/components/base/CustomVideo/index.tsx +1 -1
  24. package/dist/components/base/Dialog/index.module.scss +5 -0
  25. package/dist/components/base/Dialog/index.tsx +1 -1
  26. package/dist/components/base/Exposure/index.h5.tsx +1 -1
  27. package/dist/components/base/ExposureSmart/index.h5.tsx +1 -1
  28. package/dist/components/base/ExposureSmart/index.tsx +1 -1
  29. package/dist/components/base/ExposureSmart/reporter.tsx +1 -1
  30. package/dist/components/base/InOrOutViewObserver/index.tsx +1 -1
  31. package/dist/components/base/InViewRender/index.tsx +1 -1
  32. package/dist/components/base/ItemViewExposureSmart/index.tsx +1 -1
  33. package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
  34. package/dist/components/base/LazyLoadImage/const.ts +1 -1
  35. package/dist/components/base/LazyLoadImage/index.h5.module.scss +23 -20
  36. package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
  37. package/dist/components/base/MobileCommonHeader/index.module.scss +17 -0
  38. package/dist/components/base/MobileCommonHeader/index.tsx +1 -0
  39. package/dist/components/base/NetworkDataError/const.ts +1 -1
  40. package/dist/components/base/NetworkDataError/index.module.scss +7 -0
  41. package/dist/components/base/NetworkDataError/index.tsx +1 -1
  42. package/dist/components/base/Price/Base/index.tsx +1 -1
  43. package/dist/components/base/Price/Double/index.tsx +1 -1
  44. package/dist/components/base/Price/index.tsx +1 -1
  45. package/dist/components/debug/DebugLayout/index.module.scss +67 -0
  46. package/dist/components/debug/DebugLayout/index.tsx +1 -0
  47. package/dist/components/debug/DebugLayout/utils.ts +1 -0
  48. package/dist/components/decorate/DecorateFloorModule/index.module.scss +32 -2
  49. package/dist/components/decorate/DecorateFloorModule/index.tsx +1 -1
  50. package/dist/components/decorate/EmptyFloorModule/index.tsx +1 -1
  51. package/dist/components/decorate/PlaceHolder/index.tsx +1 -1
  52. package/dist/components/floorItem.jd.tsx +1 -1
  53. package/dist/components/floorItem.tsx +1 -1
  54. package/dist/components/floorItem.weapp.tsx +1 -1
  55. package/dist/components/isv/Floor/index.tsx +1 -1
  56. package/dist/components/remoteFloorItem.tsx +1 -1
  57. package/dist/interface/common.ts +1 -1
  58. package/dist/interface/component.ts +1 -1
  59. package/dist/interface/jumpEventReport.ts +1 -1
  60. package/dist/interface/service.ts +1 -1
  61. package/dist/interface/utils.ts +1 -1
  62. package/dist/jumpEventReport/base.ts +1 -1
  63. package/dist/jumpEventReport/const.ts +1 -1
  64. package/dist/jumpEventReport/createReportFloorData.ts +1 -1
  65. package/dist/jumpEventReport/index.h5.ts +1 -1
  66. package/dist/jumpEventReport/index.jd.ts +1 -1
  67. package/dist/jumpEventReport/index.weapp.ts +1 -1
  68. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  69. package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
  70. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  71. package/dist/jumpEventReport/web/report.ts +1 -1
  72. package/dist/jumpEventReport/web.base.ts +1 -1
  73. package/dist/jumpEventReport/web.jd.ts +1 -1
  74. package/dist/jumpEventReport/web.jdb.ts +1 -1
  75. package/dist/jumpEventReport/web.jdjch.ts +1 -1
  76. package/dist/jumpEventReport/web.jxwxapp.ts +1 -0
  77. package/dist/jumpEventReport/web.tjapp.ts +1 -0
  78. package/dist/jumpEventReport/web.tjm.ts +1 -0
  79. package/dist/jumpEventReport/web.wxapp.ts +1 -1
  80. package/dist/modules/ContainerFloorList/index.h5.module.scss +18 -1
  81. package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
  82. package/dist/modules/ContainerFloorList/index.tsx +1 -1
  83. package/dist/open/api/device.ts +1 -1
  84. package/dist/open/api/environment.ts +1 -1
  85. package/dist/open/api/index.ts +1 -1
  86. package/dist/open/api/jump copy.ts +1 -1
  87. package/dist/open/api/request.ts +1 -1
  88. package/dist/open/api/shopMember.ts +1 -1
  89. package/dist/open/api/track.ts +1 -1
  90. package/dist/open/api/util.ts +1 -1
  91. package/dist/open/components/index.ts +1 -1
  92. package/dist/sass/app.h5.scss +49 -3
  93. package/dist/sass/base.scss +57 -0
  94. package/dist/service/fetchGateway.ts +1 -1
  95. package/dist/service/http/colorSign.ts +1 -1
  96. package/dist/service/http/const.ts +1 -1
  97. package/dist/service/http/h5Http.ts +1 -0
  98. package/dist/service/http/index.h5.ts +1 -0
  99. package/dist/service/requestServer.h5.ts +1 -0
  100. package/dist/service/requestServer.ts +1 -1
  101. package/dist/utils/connectNativeJsBridge.ts +1 -1
  102. package/dist/utils/connectNativeJsBridge.weapp.ts +1 -1
  103. package/dist/utils/draExceptionAndProfile.ts +1 -1
  104. package/dist/utils/h5Utils.ts +1 -1
  105. package/dist/utils/index.h5.ts +1 -1
  106. package/dist/utils/index.ts +1 -1
  107. package/dist/utils/index.weapp.ts +1 -1
  108. package/dist/utils/jm-common.js +1 -1
  109. package/dist/utils/sgmCodeUtils.ts +1 -0
  110. package/dist/utils/taroRenderUtil.ts +1 -1
  111. package/dist/utils/utils.ts +1 -1
  112. package/package.json +26 -3
  113. package/dist/customHooks/useDocumentVisibilitychange.ts +0 -1
  114. package/dist/utils/memberFormatUtils.js +0 -1
@@ -0,0 +1 @@
1
+ import React from 'react'
2
  const { debug } = global.info.queryInfo
1
3
  const { floorData, index } = props
2
4
  if (debug != '1' || !floorData) {
3
5
  return null
4
6
  }
5
7
  const renderRemoteLayout = () => {
6
8
  const isRemote = isRemoteFloor(floorData)
7
9
  if (isRemote) {
8
10
  const moduleType = getModuleType(floorData)
9
11
  const packResult = floorData?.floorExtInfo?.modularPackResult
10
12
  const packResultObj = JSONParse(packResult)
11
13
  const taroVersionList = getTaroVersionList(packResultObj)
12
14
  const layoutClass = classNames(style['debug-layout'], {
13
15
  [style['green']]: taroVersionList.length >= 2,
14
16
  })
15
17
  return (
16
18
  <View data-module-type={moduleType} className={layoutClass}>
17
19
  <View className={style['cd-version-list']}>
18
20
  {taroVersionList.map(item => {
19
21
  return (
20
22
  <Text className={style['cd-version-item']} data-version={item}>
21
23
  v{item}
22
24
  </Text>
23
25
  )
24
26
  })}
25
27
  </View>
26
28
  </View>
27
29
  )
28
30
  } else {
29
31
  return null
30
32
  }
31
33
  }
32
34
  return (
33
35
  <View className={style['debug-layout-warp']}>
34
36
  <View
35
37
  className={style['d-info']}
36
38
  onClick={() => {
37
39
  Messager && Messager.trigger('openDebugLayout', { floorData, index })
38
40
  }}
39
41
  />
40
42
  {renderRemoteLayout()}
41
43
  </View>
42
44
  )
@@ -0,0 +1 @@
1
+ import { RemoteLoadFloorList, FloorModuleType } from '../../../common/const'
2
  if (!packResultObj) {
1
3
  return []
2
4
  }
3
5
  const result: string[] = []
4
6
  if (packResultObj.bundleUrl) {
5
7
  result.push(packResultObj.taroVersion || '3.5.4')
6
8
  }
7
9
  if (packResultObj.bundleUrlV2) {
8
10
  result.push(packResultObj.taroVersionV2)
9
11
  }
10
12
  return result
11
13
  if (!floorData) {
12
14
  return false
13
15
  }
14
16
  const moduleFlag = floorData.floorExtInfo?.moduleFlag
15
17
  const floorLoadWay = floorData.floorExtInfo?.floorLoadWay
16
18
  return RemoteLoadFloorList.includes(moduleFlag) || floorLoadWay === 2
17
19
  if (!floorData) {
18
20
  return ''
19
21
  }
20
22
  const moduleFlag = floorData.floorExtInfo?.moduleFlag
21
23
  const floorLoadWay = floorData.floorExtInfo?.floorLoadWay
22
24
  if (moduleFlag === FloorModuleType.ISVDESIGNERH5MODULE) {
23
25
  return 'ISV'
24
26
  } else if (
25
27
  moduleFlag === FloorModuleType.JOINT_MODULE ||
26
28
  floorLoadWay === 2
27
29
  ) {
28
30
  return 'JOINT'
29
31
  } else {
30
32
  return 'SYSTEM'
31
33
  }
@@ -1,12 +1,30 @@
1
1
 
2
- .d-container-item {
2
+ .d-container-item, .d-container-item-trusteeship {
3
3
  position: relative;
4
4
  overflow: hidden;
5
5
  z-index: 3;
6
6
  &:first-child {
7
7
  z-index: 1;
8
8
  }
9
- &.d-container-item-active {
9
+
10
+ &.d-container-item-hide{
11
+ display: none;
12
+ }
13
+ }
14
+ .d-container-item-cover {
15
+ &:first-child {
16
+ z-index: 99;
17
+ top: 22px;
18
+ // top: 21px;
19
+ width: 98.5%;
20
+ left: 6px;
21
+ }
22
+
23
+ width: 100%;
24
+ position: absolute;
25
+ }
26
+ .d-container-item{
27
+ &.d-container-item-active {
10
28
  :global {
11
29
  .d-decorate-floor-item {
12
30
  .d-floor-selected-border {
@@ -16,3 +34,15 @@
16
34
  }
17
35
  }
18
36
  }
37
+
38
+ .d-container-item-trusteeship{
39
+ &.d-container-item-active {
40
+ :global {
41
+ .d-decorate-floor-item {
42
+ .d-floor-selected-border {
43
+ border: 4px solid #4A82F2 !important;
44
+ }
45
+ }
46
+ }
47
+ }
48
+ }
@@ -1 +1 @@
1
- import { View } from '@tarojs/components'
2
1
  selectContainerId,
3
2
  placeHolderPreContainerId,
4
3
  containerData,
5
4
  children,
6
5
  style,
7
6
  shopTotalInfo,
8
7
  } = props;
9
8
  return children ? children : null;
10
9
  }, [containerData, shopTotalInfo]);
11
10
  data-container-empty={containerData?.floors?.[0]?.configEmpty || 'false'}
11
+ import { View } from '@tarojs/components'
12
12
  const {
13
13
  selectContainerId,
14
14
  placeHolderPreContainerId,
15
15
  containerData,
16
16
  children,
17
17
  style,
18
18
  shopTotalInfo,
19
19
  urlQueryData,
20
20
  containerIndex = -1,
21
21
  luxuryFixed = false
22
22
  } = props;
23
23
  const { isTrusteeship = false } = urlQueryData || {}
24
24
  const selectContainerState = selectContainerId == containerData?.containerId
25
25
  const ChildrenComponent = useCallback(() => {
26
26
  return children ? children : null;
27
27
  }, [containerData, shopTotalInfo]);
28
28
  const isHideFloor = isTrusteeship && containerData?.floors?.[0]?.status === -1
29
29
  return (
30
30
  <View
31
31
  className={classNames(
32
32
  decorateModuleStyle[isTrusteeship ? 'd-container-item-trusteeship' : 'd-container-item'],
33
33
  'J_container',
34
34
  {
35
35
  [decorateModuleStyle['d-container-item-active']]:
36
36
  selectContainerState,
37
37
  },
38
38
  {
39
39
  J_floorItemActive: selectContainerState,
40
40
  },
41
41
  {
42
42
  [decorateModuleStyle['d-container-item-hide']]:
43
43
  isHideFloor,
44
44
  },
45
45
  {
46
46
  [decorateModuleStyle['d-container-item-cover']]:
47
47
  containerIndex === 0 && luxuryFixed && !isTrusteeship,
48
48
  },
49
49
  )}
50
50
  id={`J_container_${containerData?.containerId}`}
51
51
  data-container-id={containerData?.containerId}
52
52
  data-container-type={containerData?.typeCode}
53
53
  data-container-cn={containerData?.typeCn}
54
54
  data-container-floorFlag={containerData?.extInfo?.floorFlag || ''}
55
55
  data-container-moduleInstanceType={containerData?.extInfo?.moduleInstanceType || ''}
56
56
  data-container-position={containerData?.containerPosition}
57
57
  data-container-alias={
58
58
  containerData?.containerAlias
59
59
  ? containerData?.containerAlias
60
60
  : ''
61
61
  }
62
62
  data-container-empty={containerData?.floors?.[0]?.configEmpty || 'false'}
63
63
  style={
64
64
  containerData?.typeCode !== ContainerShopHeaderType ? style : {}
65
65
  }
66
66
  >
67
67
  <input
68
68
  type="hidden"
69
69
  value={`container_${containerData?.containerId}`}
70
70
  />
71
71
  <ChildrenComponent />
72
72
  <PlaceHolder
73
73
  placeHolderPreContainerId={placeHolderPreContainerId}
74
74
  containerId={containerData?.containerId}
75
75
  {...(selectContainerId === "luxuryHeader-isUpperHalf" && { isShowPlaceHolder: false })}
76
76
  />
77
77
  </View>
78
78
  )
@@ -1 +1 @@
1
- import { View, Text } from '@tarojs/components'
2
1
  '//img11.360buyimg.com/imagetools/jfs/t1/141506/22/31698/7923/637b6db9E2af80265/10e76e2c31e0e356.png'
3
2
  const newModuleFloorTypeList = [100, 101, 100000, 99999]
4
3
  const isNewFloorState = newModuleFloorTypeList.includes(moduleType)
5
4
  if ((moduleType == 99999 || moduleType == 101) && !previewUri) {
5
+ import { View, Text } from '@tarojs/components'
6
6
  '//img11.360buyimg.com/imagetools/jfs/t1/141506/22/31698/7923/637b6db9E2af80265/10e76e2c31e0e356.png'
7
7
  '//img14.360buyimg.com/imagetools/jfs/t1/247708/11/19310/58975/66ecefa4Fe36ade02/370c18c961aceef1.png'
8
8
  const {
9
9
  moduleType,
10
10
  configEmpty,
11
11
  previewUri = null,
12
12
  uid,
13
13
  moduleFlag,
14
14
  moduleName,
15
15
  } = props.floorData
16
16
  const { luxuryFixed = false } = props
17
17
  let previewUrl = previewUri
18
18
  const newModuleFloorTypeList = [100, 101, 100000, 99999]
19
19
  const isNewFloorState = newModuleFloorTypeList.includes(moduleType)
20
20
  if ((moduleType == 99999 || moduleType == 101) && !previewUri) {
21
21
  previewUrl = luxuryFixed ? luxuryDecorateModulePrevDefaultUrl : decorateModulePrevDefaultUrl
22
22
  }
23
23
  const loadImageErr = e => {
24
24
  e.target.src = decorateModulePrevDefaultUrl
25
25
  }
26
26
  if (moduleFlag && TRUSTEESHIP_MODULE_FLAG_LIST.indexOf(moduleFlag) !== -1)
27
27
  return null
28
28
  return isNewFloorState && configEmpty && previewUrl ? (
29
29
  <View
30
30
  className={emptyModuleStyle['d-empty-module']}
31
31
  data-floor-uid={uid}
32
32
  data-floor-type={moduleFlag}
33
33
  data-floor-modulename={moduleName}
34
34
  >
35
35
  {}
36
36
  {}
37
37
  {}
38
38
  {}
39
39
  {}
40
40
  {}
41
41
  {}
42
42
  <View className={classNames(emptyModuleStyle['d-empty-img'])}>
43
43
  <img
44
44
  width={luxuryFixed ? 375 : 355}
45
45
  className={classNames('J_floorEmptyDataImg')}
46
46
  src={previewUrl}
47
47
  onError={loadImageErr.bind(this)}
48
48
  />
49
49
  </View>
50
50
  </View>
51
51
  ) : (
52
52
  <View
53
53
  className={classNames(
54
54
  emptyModuleStyle['d-empty-module'],
55
55
  emptyModuleStyle['d-empty-text-warp'],
56
56
  )}
57
57
  data-floor-uid={uid}
58
58
  data-floor-type={moduleFlag}
59
59
  data-floor-modulename={moduleName}
60
60
  >
61
61
  <Text className={emptyModuleStyle['d-empty-text']}>
62
62
  该楼层还未配置数据
63
63
  </Text>
64
64
  </View>
65
65
  )
@@ -1 +1 @@
1
- import { View, Text } from '@tarojs/components'
1
+ import { View, Text } from '@tarojs/components'
@@ -1 +1 @@
1
- import { ComponentInterFace } from '../interface/component'
2
1
  const { floorData, builtInComponents = {} } = props
3
2
  const floorModuleType = floorData?.floorExtInfo?.moduleFlag
4
3
  const FloorContentItem =
5
4
  (floorModuleType && builtInComponents[floorModuleType]) || null
6
5
  const dataDefines = getFloorDataToDataDefines(floorData)
7
6
  return FloorContentItem ? (
8
7
  <ErrorBoundary {...props}>
9
8
  <FloorContentItem {...props} dataDefines={dataDefines} />
10
9
  </ErrorBoundary>
11
10
  ) : null
12
11
  renderSourceType: BUSINESS_TYPE.ONLINE,
13
12
  switch (moduleId) {
14
13
  case 83158:
15
14
  return 'freeLayout'
16
15
  case 99654:
17
16
  return 'activeText'
18
17
  case 100382:
19
18
  return 'superGoods'
20
19
  }
21
20
  floorList.map((item) => {
22
21
  if (!item.floorExtInfo) {
23
22
  return null
24
23
  }
25
24
  const moduleFlag = item.floorExtInfo.moduleFlag
26
25
  if (!moduleFlag) {
27
26
  const newModuleFlag = moduleId2ModuleFlag(item.moduleId)
28
27
  if (newModuleFlag) {
29
28
  item.floorExtInfo.moduleFlag = newModuleFlag
30
29
  }
31
30
  }
32
31
  })
32
+ import React from 'react'
33
33
  return FloorContentItem ? (
34
34
  <FloorContentItem {...props} dataDefines={dataDefines} />
35
35
  ) : isDevMode ? (
36
36
  renderDecorateDefaultModule()
37
37
  ) : null
@@ -1 +1 @@
1
- import React from 'react'
2
1
  const { floorData, renderSourceType, builtInComponents = {} } = props
3
2
  const isDevMode = renderSourceType === BUSINESS_TYPE.DECORATE
4
3
  const floorModuleType: any = floorData?.floorExtInfo?.moduleFlag
5
4
  const FloorContentItem =
6
5
  (floorModuleType && builtInComponents[floorModuleType]) || null
7
6
  const dataDefines = getFloorDataToDataDefines(floorData)
8
7
 
9
8
  const renderDecorateDefaultModule = () => {
10
9
  return (
11
10
  <View
12
11
  style={{
13
12
  lineHeight: '120px',
14
13
  textAlign: 'center',
15
14
  }}
16
15
  >
17
16
  当前模块是{floorData.moduleName}
18
17
  </View>
19
18
  )
20
19
  }
21
20
  if (floorModuleType && (RemoteLoadFloorList.includes(floorModuleType) || floorData?.floorExtInfo?.floorLoadWay === 2)) {
22
21
  return (
23
22
  <RemoteFloorItem {...props} dataDefines={dataDefines}></RemoteFloorItem>
24
23
  )
25
24
  } else {
26
25
  return FloorContentItem ? (
27
26
  <ErrorBoundary {...props}>
28
27
  <FloorContentItem {...props} dataDefines={dataDefines} />
29
28
  </ErrorBoundary>
30
29
  ) : isDevMode ? (
31
30
  renderDecorateDefaultModule()
32
31
  ) : null
33
32
  }
34
33
  renderSourceType: BUSINESS_TYPE.ONLINE,
35
34
  switch (moduleId) {
36
35
  case 83158:
37
36
  return 'freeLayout'
38
37
  case 99654:
39
38
  return 'activeText'
40
39
  case 100382:
41
40
  return 'superGoods'
42
41
  }
43
42
  floorList.map((item) => {
44
43
  if (!item.floorExtInfo) {
45
44
  return null
46
45
  }
47
46
  const moduleFlag = item.floorExtInfo.moduleFlag
48
47
  if (!moduleFlag) {
49
48
  const newModuleFlag = moduleId2ModuleFlag(item.moduleId)
50
49
  if (newModuleFlag) {
51
50
  item.floorExtInfo.moduleFlag = newModuleFlag
52
51
  }
53
52
  }
54
53
  })
54
+ import React from 'react'
55
55
  const { floorData, renderSourceType, builtInComponents = {} } = props
56
56
  const isDevMode = renderSourceType === BUSINESS_TYPE.DECORATE
57
57
  const specificModuleFlag = ['mHeaderVideo']
58
58
  const frontEndSpecificModuleFlag = ['header_mVideo']
59
59
  const luxuryContainerPosition = 'luxuryFixed'
60
60
  const floorPosition = floorData?.floorPosition
61
61
  let floorModuleType: any = floorData?.floorExtInfo?.moduleFlag
62
62
  specificModuleFlag.includes(floorModuleType) &&
63
63
  floorPosition === luxuryContainerPosition &&
64
64
  (floorModuleType = frontEndSpecificModuleFlag)
65
65
  const FloorContentItem =
66
66
  (floorModuleType && builtInComponents[floorModuleType]) || null
67
67
  const dataDefines = getFloorDataToDataDefines(floorData)
68
68
 
69
69
  const renderDecorateDefaultModule = () => {
70
70
  return (
71
71
  <View
72
72
  style={{
73
73
  lineHeight: '120px',
74
74
  textAlign: 'center',
75
75
  }}
76
76
  >
77
77
  当前模块是{floorData.moduleName}
78
78
  </View>
79
79
  )
80
80
  }
81
81
  if (
82
82
  floorModuleType &&
83
83
  (RemoteLoadFloorList.includes(floorModuleType) ||
84
84
  floorData?.floorExtInfo?.floorLoadWay === 2)
85
85
  ) {
86
86
  return (
87
87
  <RemoteFloorItem {...props} dataDefines={dataDefines}></RemoteFloorItem>
88
88
  )
89
89
  } else {
90
90
  return FloorContentItem ? (
91
91
  <ErrorBoundary {...props}>
92
92
  <FloorContentItem {...props} dataDefines={dataDefines} />
93
93
  </ErrorBoundary>
94
94
  ) : isDevMode ? (
95
95
  renderDecorateDefaultModule()
96
96
  ) : null
97
97
  }
98
98
  renderSourceType: BUSINESS_TYPE.ONLINE,
99
99
  switch (moduleId) {
100
100
  case 83158:
101
101
  return 'freeLayout'
102
102
  case 99654:
103
103
  return 'activeText'
104
104
  case 100382:
105
105
  return 'superGoods'
106
106
  }
107
107
  floorList.map((item) => {
108
108
  if (!item.floorExtInfo) {
109
109
  return null
110
110
  }
111
111
  const moduleFlag = item.floorExtInfo.moduleFlag
112
112
  if (!moduleFlag) {
113
113
  const newModuleFlag = moduleId2ModuleFlag(item.moduleId)
114
114
  if (newModuleFlag) {
115
115
  item.floorExtInfo.moduleFlag = newModuleFlag
116
116
  }
117
117
  }
118
118
  })
@@ -1 +1 @@
1
- import React from 'react'
2
1
  return FloorContentItem ? (
3
2
  <FloorContentItem {...props} dataDefines={dataDefines} />
4
3
  ) : isDevMode ? (
5
4
  renderDecorateDefaultModule()
6
5
  ) : null
6
+ import { View } from '@tarojs/components';
7
7
  const { floorData, renderSourceType, builtInComponents = {} } = props;
8
8
  const isDevMode = renderSourceType === BUSINESS_TYPE.DECORATE;
9
9
  const floorModuleType = floorData?.floorExtInfo?.moduleFlag;
10
10
  const FloorContentItem = (floorModuleType && builtInComponents[floorModuleType]) || null;
11
11
  const dataDefines = getFloorDataToDataDefines(floorData);
12
12
 
13
13
  const renderDecorateDefaultModule = () => {
14
14
  return (
15
15
  <View
16
16
  style={{
17
17
  lineHeight: '120px',
18
18
  textAlign: 'center',
19
19
  }}
20
20
  >
21
21
  当前模块是{floorData.moduleName}
22
22
  </View>
23
23
  );
24
24
  };
25
25
  return FloorContentItem ? (
26
26
  <ErrorBoundary {...props}>
27
27
  <FloorContentItem {...props} dataDefines={dataDefines} />
28
28
  </ErrorBoundary>
29
29
  ) : isDevMode ? (
30
30
  renderDecorateDefaultModule()
31
31
  ) : null;
32
32
  renderSourceType: BUSINESS_TYPE.ONLINE,
33
33
  switch (moduleId) {
34
34
  case 83158:
35
35
  return 'freeLayout';
36
36
  case 99654:
37
37
  return 'activeText';
38
38
  case 100382:
39
39
  return 'superGoods';
40
40
  }
41
41
  floorList.map((item) => {
42
42
  if (!item.floorExtInfo) {
43
43
  return null;
44
44
  }
45
45
  const moduleFlag = item.floorExtInfo.moduleFlag;
46
46
  if (!moduleFlag) {
47
47
  const newModuleFlag = moduleId2ModuleFlag(item.moduleId);
48
48
  if (newModuleFlag) {
49
49
  item.floorExtInfo.moduleFlag = newModuleFlag;
50
50
  }
51
51
  }
52
52
  });
@@ -1 +1 @@
1
- import React, { useCallback } from 'react'
2
1
  const getRenderRealTimeKeyObj = isRealTimeRender ? {
3
2
  key: Date.now()
4
3
  } : {}
5
4
  {floorData?.showCommonFloorHead === false ? null : <CommonFloorHead dataDefines={dataDefines} floorData={floorData} {...getRenderRealTimeKeyObj} />}
6
5
  ...getRenderRealTimeKeyObj
7
6
  isRealTimeRender: false,
7
+ import React, { useCallback } from 'react'
8
8
  const {
9
9
  style,
10
10
  dataDefines,
11
11
  containerBorderRadius,
12
12
  floorData,
13
13
  isRealTimeRender,
14
14
  forceRenderTime,
15
15
  } = props
16
16
  const getRenderRealTimeKeyObj = {
17
17
  key: isRealTimeRender ? Date.now() : forceRenderTime,
18
18
  }
19
19
  console.log('远程加载楼层渲染key信息', getRenderRealTimeKeyObj)
20
20
  return (
21
21
  <View className={floorStyle['wrap']} style={style}>
22
22
  {floorData?.showCommonFloorHead === false ? null : (
23
23
  <CommonFloorHead
24
24
  dataDefines={dataDefines}
25
25
  floorData={floorData}
26
26
  {...getRenderRealTimeKeyObj}
27
27
  />
28
28
  )}
29
29
  <View
30
30
  className={floorStyle['wrap']}
31
31
  style={
32
32
  typeof containerBorderRadius === 'number'
33
33
  ? {
34
34
  borderRadius: containerBorderRadius + 'px',
35
35
  }
36
36
  : containerBorderRadius
37
37
  }
38
38
  >
39
39
  {}
40
40
  {props.children &&
41
41
  React.cloneElement(props.children, {
42
42
  dataDefines: dataDefines,
43
43
  ...getRenderRealTimeKeyObj,
44
44
  })}
45
45
  </View>
46
46
  </View>
47
47
  )
48
48
  isRealTimeRender: false,
49
49
  forceRenderTime: 1,