@conecli/cone-render 0.8.20-beta.0 → 0.8.20-beta.2

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 (160) hide show
  1. package/README.md +7 -1
  2. package/dist/api/index.ts +1 -1
  3. package/dist/assets/icon_blue_info.svg +1 -0
  4. package/dist/common/const.ts +1 -1
  5. package/dist/common/environmentType.ts +1 -0
  6. package/dist/common/index.h5.ts +1 -1
  7. package/dist/common/index.jd.ts +1 -1
  8. package/dist/common/index.ts +1 -1
  9. package/dist/common/index.weapp.ts +1 -1
  10. package/dist/common/jdplayerSdk.ts +1 -0
  11. package/dist/common/jssdk.ts +1 -0
  12. package/dist/common/pageType.ts +1 -0
  13. package/dist/common/sgmCustomCode.ts +1 -0
  14. package/dist/common/token/index.h5.ts +1 -1
  15. package/dist/common/token/token.jd.ts +1 -1
  16. package/dist/common/token/token.ts +1 -1
  17. package/dist/common/wxappApi.jd.ts +1 -0
  18. package/dist/common/wxappApi.ts +1 -1
  19. package/dist/components/ErrorBoundary.tsx +1 -1
  20. package/dist/components/base/CommonFloorHead/index.module.scss +126 -111
  21. package/dist/components/base/CommonFloorHead/index.tsx +1 -1
  22. package/dist/components/base/CountDown/index.module.scss +49 -44
  23. package/dist/components/base/CountDown/index.tsx +1 -1
  24. package/dist/components/base/CustomScrollView/index.jd.tsx +1 -0
  25. package/dist/components/base/CustomScrollView/index.module.scss +7 -0
  26. package/dist/components/base/CustomScrollView/index.tsx +1 -1
  27. package/dist/components/base/CustomVideo/common.ts +1 -0
  28. package/dist/components/base/CustomVideo/index.tsx +1 -1
  29. package/dist/components/base/Dialog/index.module.scss +16 -0
  30. package/dist/components/base/Dialog/index.tsx +1 -1
  31. package/dist/components/base/Exposure/index.h5.tsx +1 -1
  32. package/dist/components/base/ExposureSmart/const.ts +1 -0
  33. package/dist/components/base/ExposureSmart/index.h5.module.scss +30 -6
  34. package/dist/components/base/ExposureSmart/index.h5.tsx +1 -1
  35. package/dist/components/base/ExposureSmart/index.module.scss +20 -9
  36. package/dist/components/base/ExposureSmart/index.tsx +1 -1
  37. package/dist/components/base/ExposureSmart/reporter.tsx +1 -1
  38. package/dist/components/base/InOrOutViewObserver/index.tsx +1 -1
  39. package/dist/components/base/InViewRender/index.tsx +1 -1
  40. package/dist/components/base/InViewRender/index.weapp.tsx +1 -1
  41. package/dist/components/base/ItemViewExposureSmart/index.module.scss +8 -0
  42. package/dist/components/base/ItemViewExposureSmart/index.tsx +1 -0
  43. package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
  44. package/dist/components/base/LazyLayoutLoad/index.weapp.tsx +1 -1
  45. package/dist/components/base/LazyLoadImage/const.ts +1 -1
  46. package/dist/components/base/LazyLoadImage/index.h5.module.scss +24 -20
  47. package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
  48. package/dist/components/base/MobileCommonHeader/index.module.scss +17 -0
  49. package/dist/components/base/MobileCommonHeader/index.tsx +1 -0
  50. package/dist/components/base/NetworkDataError/const.ts +1 -1
  51. package/dist/components/base/NetworkDataError/index.module.scss +125 -69
  52. package/dist/components/base/NetworkDataError/index.tsx +1 -1
  53. package/dist/components/base/Price/Base/index.module.scss +12 -0
  54. package/dist/components/base/Price/Base/index.tsx +1 -1
  55. package/dist/components/base/Price/Double/index.module.scss +32 -0
  56. package/dist/components/base/Price/Double/index.tsx +1 -1
  57. package/dist/components/base/Price/index.tsx +1 -1
  58. package/dist/components/base/ShopLeGaoTag/index.h5.module.scss +35 -0
  59. package/dist/components/base/ShopLeGaoTag/index.h5.tsx +1 -0
  60. package/dist/components/base/ShopLeGaoTag/index.module.scss +33 -0
  61. package/dist/components/base/ShopLeGaoTag/index.tsx +1 -0
  62. package/dist/components/base/Skeleton/index.tsx +1 -1
  63. package/dist/components/debug/DebugLayout/index.module.scss +67 -0
  64. package/dist/components/debug/DebugLayout/index.tsx +1 -0
  65. package/dist/components/debug/DebugLayout/utils.ts +1 -0
  66. package/dist/components/decorate/DecorateFloorModule/index.module.scss +32 -2
  67. package/dist/components/decorate/DecorateFloorModule/index.tsx +1 -1
  68. package/dist/components/decorate/EmptyFloorModule/index.tsx +1 -1
  69. package/dist/components/decorate/PlaceHolder/index.tsx +1 -1
  70. package/dist/components/floorItem.jd.tsx +1 -1
  71. package/dist/components/floorItem.tsx +1 -1
  72. package/dist/components/floorItem.weapp.tsx +1 -1
  73. package/dist/components/isv/Floor/index.tsx +1 -1
  74. package/dist/components/remoteFloorItem.tsx +1 -0
  75. package/dist/interface/common.ts +1 -1
  76. package/dist/interface/component.ts +1 -1
  77. package/dist/interface/jumpEventReport.ts +1 -1
  78. package/dist/interface/service.ts +1 -1
  79. package/dist/interface/utils.ts +1 -1
  80. package/dist/jumpEventReport/base.ts +1 -1
  81. package/dist/jumpEventReport/const.ts +1 -1
  82. package/dist/jumpEventReport/createReportFloorData.ts +1 -1
  83. package/dist/jumpEventReport/index.h5.ts +1 -1
  84. package/dist/jumpEventReport/index.jd.ts +1 -1
  85. package/dist/jumpEventReport/index.ts +1 -1
  86. package/dist/jumpEventReport/index.weapp.ts +1 -1
  87. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  88. package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
  89. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  90. package/dist/jumpEventReport/web/report.ts +1 -1
  91. package/dist/jumpEventReport/web.base.ts +1 -1
  92. package/dist/jumpEventReport/web.jd.ts +1 -1
  93. package/dist/jumpEventReport/web.jdb.ts +1 -1
  94. package/dist/jumpEventReport/web.jdjch.ts +1 -0
  95. package/dist/jumpEventReport/web.jxwxapp.ts +1 -0
  96. package/dist/jumpEventReport/web.pc.ts +1 -0
  97. package/dist/jumpEventReport/web.tjapp.ts +1 -0
  98. package/dist/jumpEventReport/web.tjm.ts +1 -0
  99. package/dist/jumpEventReport/web.wxapp.ts +1 -1
  100. package/dist/language/en_US.json +231 -0
  101. package/dist/language/zh_CN.json +231 -0
  102. package/dist/language/zh_HK.json +231 -0
  103. package/dist/libs/taroAppReport.js +2 -2
  104. package/dist/modules/ContainerFloorList/index.h5.module.scss +66 -27
  105. package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
  106. package/dist/modules/ContainerFloorList/index.tsx +1 -1
  107. package/dist/open/api/device.ts +1 -1
  108. package/dist/open/api/environment.ts +1 -1
  109. package/dist/open/api/index.ts +1 -1
  110. package/dist/open/api/jump copy.ts +1 -1
  111. package/dist/open/api/request.ts +1 -1
  112. package/dist/open/api/shopMember.ts +1 -1
  113. package/dist/open/api/track.ts +1 -1
  114. package/dist/open/api/util.ts +1 -1
  115. package/dist/open/components/index.ts +1 -1
  116. package/dist/sass/app.h5.scss +294 -212
  117. package/dist/sass/base.scss +195 -137
  118. package/dist/service/bMallConst.ts +1 -1
  119. package/dist/service/fetchGateway.ts +1 -1
  120. package/dist/service/fetchGateway.weapp.ts +1 -0
  121. package/dist/service/http/colorSign.ts +1 -1
  122. package/dist/service/http/const.ts +1 -1
  123. package/dist/service/http/h5Http.ts +1 -0
  124. package/dist/service/http/index.h5.ts +1 -0
  125. package/dist/service/requestServer.h5.ts +1 -0
  126. package/dist/service/requestServer.ts +1 -1
  127. package/dist/service/requestServer.weapp.ts +1 -0
  128. package/dist/utils/connectNativeJsBridge.ts +1 -1
  129. package/dist/utils/connectNativeJsBridge.weapp.ts +1 -1
  130. package/dist/utils/draExceptionAndProfile.ts +1 -1
  131. package/dist/utils/h5Utils.ts +1 -1
  132. package/dist/utils/index.h5.ts +1 -1
  133. package/dist/utils/index.ts +1 -1
  134. package/dist/utils/index.weapp.ts +1 -1
  135. package/dist/utils/intersectionObserver.ts +1 -1
  136. package/dist/utils/jm-common.js +1 -1
  137. package/dist/utils/jumpExtMapUtil.h5.ts +1 -0
  138. package/dist/utils/jumpExtMapUtil.ts +1 -0
  139. package/dist/utils/sColor.js +1 -0
  140. package/dist/utils/sgmCodeUtils.ts +1 -0
  141. package/dist/utils/taroRenderUtil.ts +1 -0
  142. package/dist/utils/utils.ts +1 -1
  143. package/dist/wxapp/api/helper.js +1 -0
  144. package/dist/wxapp/common/address_api/address_api_v2.js +1 -0
  145. package/dist/wxapp/common/user_info.js +1 -1
  146. package/dist/wxapp/components/launch-app/index.js +1 -0
  147. package/dist/wxapp/components/launch-app/index.json +5 -0
  148. package/dist/wxapp/components/launch-app/index.wxml +0 -0
  149. package/dist/wxapp/components/launch-app/index.wxss +0 -0
  150. package/dist/wxapp/components/subscribe-guider/helper.js +1 -0
  151. package/dist/wxapp/components/subscribe-guider/index.js +1 -0
  152. package/dist/wxapp/components/subscribe-guider/index.json +5 -0
  153. package/dist/wxapp/components/subscribe-guider/index.wxml +0 -0
  154. package/dist/wxapp/components/subscribe-guider/index.wxss +0 -0
  155. package/package.json +145 -115
  156. package/dist/components/base/Skeleton/old.tsx +0 -1
  157. package/dist/customHooks/useDocumentVisibilitychange.ts +0 -1
  158. package/dist/utils/memberFormatUtils.js +0 -1
  159. /package/dist/service/{bMallConst.wxapp.ts → bMallConst.weapp.ts} +0 -0
  160. /package/dist/service/http/{colorSign.wxapp.ts → colorSign.weapp.ts} +0 -0
@@ -1 +1 @@
1
- import React from 'react'
2
1
  <View className={blockStyle['skeleton-header']}>
3
2
  <Image
4
3
  className={blockStyle['skeleton-header-img']}
5
4
  src={ShopHeaderSvgUrl}
6
5
  mode='widthFix'
7
6
  />
8
7
  </View>
9
8
  <View className={blockStyle['skeleton-new-product']}>
10
9
  <ContentLoader viewBox='0 0 375 280' {...props}>
11
10
  <rect x='10' y='38' rx='5' ry='5' width='355' height='55' />
12
11
  <rect x='12' y='112' rx='3' ry='3' width='111' height='95' />
13
12
  <rect x='12' y='11' rx='3' ry='3' width='100' height='10' />
14
13
  <rect x='254' y='112' rx='3' ry='3' width='111' height='95' />
15
14
  <rect x='14' y='218' rx='0' ry='0' width='111' height='27' />
16
15
  <rect x='261' y='217' rx='0' ry='0' width='111' height='27' />
17
16
  <rect x='134' y='112' rx='3' ry='3' width='111' height='95' />
18
17
  <rect x='133' y='218' rx='0' ry='0' width='111' height='27' />
19
18
  <rect x='20' y='255' rx='0' ry='0' width='100' height='9' />
20
19
  <rect x='140' y='255' rx='0' ry='0' width='100' height='9' />
21
20
  <rect x='263' y='255' rx='0' ry='0' width='100' height='9' />
22
21
  </ContentLoader>
23
22
  </View>
23
+ import React from 'react'
24
24
  <View className={blockStyle['skeleton-header']}>
25
25
  <Image
26
26
  className={blockStyle['skeleton-header-img']}
27
27
  src={ShopHeaderSvgUrl}
28
28
  mode="widthFix"
29
29
  />
30
30
  </View>
@@ -0,0 +1,67 @@
1
+
2
+ .debug-layout-warp {
3
+ position: absolute;
4
+ border-radius: 12PX;
5
+ top: 0;
6
+ left: 0;
7
+ right: 0;
8
+ bottom: 0;
9
+ z-index: 50;
10
+
11
+ .debug-layout {
12
+ position: absolute;
13
+ border-radius: 12PX;
14
+ top: 0;
15
+ left: 0;
16
+ right: 0;
17
+ bottom: 0;
18
+
19
+ border: 1PX solid #f50707;
20
+ background-color: rgba(219, 38, 38, 0.2);
21
+
22
+ &[data-module-type='JOINT'] {
23
+ border: 1PX solid #f507c9;
24
+ background-color: rgba(219, 38, 150, 0.2);
25
+ }
26
+
27
+ &.green {
28
+ border: 1PX solid #04a607;
29
+ background-color: rgba(38, 219, 71, 0.2);
30
+ }
31
+
32
+ .cd-version-list {
33
+ pointer-events: none;
34
+ position: absolute;
35
+ font-size: 0;
36
+ top: 0;
37
+ left: 0;
38
+ right: 0;
39
+ background-color: transparent;
40
+ text-align: center;
41
+ overflow: hidden;
42
+ }
43
+
44
+ .cd-version-item {
45
+ display: inline-block;
46
+ background-color: #00c853;
47
+ font-size: 30px;
48
+ color: white;
49
+ padding: 1PX 3PX;
50
+ border-radius: 4PX;
51
+ margin: 0 5PX;
52
+ &[data-version='3.5.4'] {
53
+ background-color: #999;
54
+ }
55
+ }
56
+ }
57
+
58
+ .d-info {
59
+ position: relative;
60
+ cursor: pointer;
61
+ z-index: 3;
62
+ margin: 3PX 3PX;
63
+ width: 22PX;
64
+ height: 22PX;
65
+ background: url('../../../assets/icon_blue_info.svg') center center / 22PX 22PX no-repeat;
66
+ }
67
+ }
@@ -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]);
10
+ import { View } from '@tarojs/components'
11
11
  const {
12
12
  selectContainerId,
13
13
  placeHolderPreContainerId,
14
14
  containerData,
15
15
  children,
16
16
  style,
17
17
  shopTotalInfo,
18
18
  urlQueryData,
19
19
  containerIndex = -1,
20
20
  luxuryFixed = false
21
21
  } = props;
22
22
  const { isTrusteeship = false } = urlQueryData || {}
23
23
  const selectContainerState = selectContainerId == containerData?.containerId
24
24
  const ChildrenComponent = useCallback(() => {
25
25
  return children ? children : null;
26
26
  }, [containerData, shopTotalInfo]);
27
27
  const isHideFloor = isTrusteeship && containerData?.floors?.[0]?.status === -1
28
28
  return (
29
29
  <View
30
30
  className={classNames(
31
31
  decorateModuleStyle[isTrusteeship ? 'd-container-item-trusteeship' : 'd-container-item'],
32
32
  'J_container',
33
33
  {
34
34
  [decorateModuleStyle['d-container-item-active']]:
35
35
  selectContainerState,
36
36
  },
37
37
  {
38
38
  J_floorItemActive: selectContainerState,
39
39
  },
40
40
  {
41
41
  [decorateModuleStyle['d-container-item-hide']]:
42
42
  isHideFloor,
43
43
  },
44
44
  {
45
45
  [decorateModuleStyle['d-container-item-cover']]:
46
46
  containerIndex === 0 && luxuryFixed && !isTrusteeship,
47
47
  },
48
48
  )}
49
49
  id={`J_container_${containerData?.containerId}`}
50
50
  data-container-id={containerData?.containerId}
51
51
  data-container-type={containerData?.typeCode}
52
52
  data-container-cn={containerData?.typeCn}
53
53
  data-container-floorFlag={containerData?.extInfo?.floorFlag || ''}
54
54
  data-container-moduleInstanceType={containerData?.extInfo?.moduleInstanceType || ''}
55
55
  data-container-position={containerData?.containerPosition}
56
56
  data-container-alias={
57
57
  containerData?.containerAlias
58
58
  ? containerData?.containerAlias
59
59
  : ''
60
60
  }
61
61
  data-container-empty={containerData?.floors?.[0]?.configEmpty || 'false'}
62
62
  style={
63
63
  containerData?.typeCode !== ContainerShopHeaderType ? style : {}
64
64
  }
65
65
  >
66
66
  <input
67
67
  type="hidden"
68
68
  value={`container_${containerData?.containerId}`}
69
69
  />
70
70
  <ChildrenComponent />
71
71
  <PlaceHolder
72
72
  placeHolderPreContainerId={placeHolderPreContainerId}
73
73
  containerId={containerData?.containerId}
74
74
  {...(selectContainerId === "luxuryHeader-isUpperHalf" && { isShowPlaceHolder: false })}
75
75
  />
76
76
  </View>
77
77
  )
@@ -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