@conecli/cone-render 0.8.19 → 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 (183) 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/isvStorage/index.h5.ts +1 -0
  11. package/dist/common/isvStorage/index.ts +1 -0
  12. package/dist/common/jdplayerSdk.ts +1 -0
  13. package/dist/common/jssdk.ts +1 -0
  14. package/dist/common/pageType.ts +1 -0
  15. package/dist/common/sgmCustomCode.ts +1 -0
  16. package/dist/common/token/const.ts +1 -0
  17. package/dist/common/token/index.h5.ts +1 -0
  18. package/dist/common/token/index.ts +1 -0
  19. package/dist/common/token/token.jd.ts +1 -0
  20. package/dist/common/token/token.ts +1 -0
  21. package/dist/common/token/token.wxapp.ts +1 -0
  22. package/dist/common/wxappApi.jd.ts +1 -0
  23. package/dist/common/wxappApi.ts +1 -1
  24. package/dist/components/ErrorBoundary.tsx +1 -1
  25. package/dist/components/base/CommonFloorHead/index.module.scss +126 -111
  26. package/dist/components/base/CommonFloorHead/index.tsx +1 -1
  27. package/dist/components/base/CountDown/index.module.scss +49 -44
  28. package/dist/components/base/CountDown/index.tsx +1 -1
  29. package/dist/components/base/CustomScrollView/index.jd.tsx +1 -0
  30. package/dist/components/base/CustomScrollView/index.module.scss +7 -0
  31. package/dist/components/base/CustomScrollView/index.tsx +1 -1
  32. package/dist/components/base/CustomVideo/common.ts +1 -0
  33. package/dist/components/base/CustomVideo/const.ts +1 -0
  34. package/dist/components/base/CustomVideo/index.module.scss +40 -64
  35. package/dist/components/base/CustomVideo/index.tsx +1 -1
  36. package/dist/components/base/Dialog/index.module.scss +22 -2
  37. package/dist/components/base/Dialog/index.tsx +1 -1
  38. package/dist/components/base/Exposure/index.h5.tsx +1 -1
  39. package/dist/components/base/ExposureSmart/const.ts +1 -0
  40. package/dist/components/base/ExposureSmart/index.h5.module.scss +30 -6
  41. package/dist/components/base/ExposureSmart/index.h5.tsx +1 -1
  42. package/dist/components/base/ExposureSmart/index.module.scss +20 -9
  43. package/dist/components/base/ExposureSmart/index.tsx +1 -1
  44. package/dist/components/base/ExposureSmart/reporter.tsx +1 -1
  45. package/dist/components/base/InOrOutViewObserver/index.tsx +1 -1
  46. package/dist/components/base/InViewRender/index.tsx +1 -1
  47. package/dist/components/base/InViewRender/index.weapp.tsx +1 -1
  48. package/dist/components/base/ItemViewExposureSmart/index.module.scss +8 -0
  49. package/dist/components/base/ItemViewExposureSmart/index.tsx +1 -0
  50. package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
  51. package/dist/components/base/LazyLayoutLoad/index.weapp.tsx +1 -1
  52. package/dist/components/base/LazyLoadImage/const.ts +1 -1
  53. package/dist/components/base/LazyLoadImage/index.h5.module.scss +24 -20
  54. package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
  55. package/dist/components/base/MobileCommonHeader/index.module.scss +17 -0
  56. package/dist/components/base/MobileCommonHeader/index.tsx +1 -0
  57. package/dist/components/base/NetworkDataError/const.ts +1 -1
  58. package/dist/components/base/NetworkDataError/index.module.scss +128 -69
  59. package/dist/components/base/NetworkDataError/index.tsx +1 -1
  60. package/dist/components/base/Price/{const.ts → Base/const.ts} +0 -0
  61. package/dist/components/base/Price/Base/index.module.scss +148 -0
  62. package/dist/components/base/Price/Base/index.tsx +1 -0
  63. package/dist/components/base/Price/Double/index.module.scss +190 -0
  64. package/dist/components/base/Price/Double/index.tsx +1 -0
  65. package/dist/components/base/Price/index.tsx +1 -1
  66. package/dist/components/base/ShopLeGaoTag/index.h5.module.scss +35 -0
  67. package/dist/components/base/ShopLeGaoTag/index.h5.tsx +1 -0
  68. package/dist/components/base/ShopLeGaoTag/index.module.scss +33 -0
  69. package/dist/components/base/ShopLeGaoTag/index.tsx +1 -0
  70. package/dist/components/base/Skeleton/index.tsx +1 -1
  71. package/dist/components/debug/DebugLayout/index.module.scss +67 -0
  72. package/dist/components/debug/DebugLayout/index.tsx +1 -0
  73. package/dist/components/debug/DebugLayout/utils.ts +1 -0
  74. package/dist/components/decorate/DecorateFloorModule/index.module.scss +32 -2
  75. package/dist/components/decorate/DecorateFloorModule/index.tsx +1 -1
  76. package/dist/components/decorate/EmptyFloorModule/index.tsx +1 -1
  77. package/dist/components/decorate/PlaceHolder/index.tsx +1 -1
  78. package/dist/components/floorItem.jd.tsx +1 -0
  79. package/dist/components/floorItem.tsx +1 -1
  80. package/dist/components/floorItem.weapp.tsx +1 -1
  81. package/dist/components/isv/Floor/index.tsx +1 -1
  82. package/dist/components/remoteFloorItem.tsx +1 -0
  83. package/dist/interface/common.ts +1 -1
  84. package/dist/interface/component.ts +1 -1
  85. package/dist/interface/jumpEventReport.ts +1 -1
  86. package/dist/interface/service.ts +1 -1
  87. package/dist/interface/utils.ts +1 -1
  88. package/dist/jumpEventReport/base.ts +1 -1
  89. package/dist/jumpEventReport/const.ts +1 -1
  90. package/dist/jumpEventReport/createReportFloorData.ts +1 -1
  91. package/dist/jumpEventReport/index.h5.ts +1 -1
  92. package/dist/jumpEventReport/index.jd.ts +1 -1
  93. package/dist/jumpEventReport/index.ts +1 -1
  94. package/dist/jumpEventReport/index.weapp.ts +1 -1
  95. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  96. package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
  97. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  98. package/dist/jumpEventReport/web/report.ts +1 -1
  99. package/dist/jumpEventReport/web.base.ts +1 -1
  100. package/dist/jumpEventReport/web.jd.ts +1 -1
  101. package/dist/jumpEventReport/web.jdb.ts +1 -0
  102. package/dist/jumpEventReport/web.jdjch.ts +1 -0
  103. package/dist/jumpEventReport/web.jxwxapp.ts +1 -0
  104. package/dist/jumpEventReport/web.pc.ts +1 -0
  105. package/dist/jumpEventReport/web.tjapp.ts +1 -0
  106. package/dist/jumpEventReport/web.tjm.ts +1 -0
  107. package/dist/jumpEventReport/web.wxapp.ts +1 -1
  108. package/dist/language/en_US.json +231 -0
  109. package/dist/language/zh_CN.json +231 -0
  110. package/dist/language/zh_HK.json +231 -0
  111. package/dist/libs/taroAppReport.js +2 -2
  112. package/dist/modules/ContainerFloorList/index.h5.module.scss +66 -27
  113. package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
  114. package/dist/modules/ContainerFloorList/index.tsx +1 -1
  115. package/dist/open/api/device.ts +1 -1
  116. package/dist/open/api/environment.ts +1 -1
  117. package/dist/open/api/index.ts +1 -1
  118. package/dist/open/api/jump/business.ts +1 -0
  119. package/dist/open/api/jump/index.ts +1 -0
  120. package/dist/open/api/jump/minPath.ts +1 -0
  121. package/dist/open/api/jump/side.ts +1 -0
  122. package/dist/open/api/jump/webUrl.ts +1 -0
  123. package/dist/open/api/jump copy.ts +1 -0
  124. package/dist/open/api/moduleUtil.ts +1 -1
  125. package/dist/open/api/request.ts +1 -0
  126. package/dist/open/api/shopMember.ts +1 -0
  127. package/dist/open/api/track.ts +1 -1
  128. package/dist/open/api/userToken.ts +1 -0
  129. package/dist/open/api/util.ts +1 -1
  130. package/dist/open/components/index.ts +1 -1
  131. package/dist/sass/app.h5.scss +294 -212
  132. package/dist/sass/base.scss +195 -137
  133. package/dist/service/bMallConst.ts +1 -0
  134. package/dist/service/bMallConst.weapp.ts +1 -0
  135. package/dist/service/fetchGateway.ts +1 -0
  136. package/dist/service/fetchGateway.weapp.ts +1 -0
  137. package/dist/service/fetchJsonp.ts +1 -0
  138. package/dist/service/http/colorSign.ts +1 -0
  139. package/dist/service/http/colorSign.weapp.ts +1 -0
  140. package/dist/service/http/const.ts +1 -0
  141. package/dist/service/http/h5Http.ts +1 -0
  142. package/dist/service/http/http.ts +1 -0
  143. package/dist/service/http/httpInterceptors.jd.ts +1 -0
  144. package/dist/service/http/httpInterceptors.ts +1 -0
  145. package/dist/service/http/index.h5.ts +1 -0
  146. package/dist/service/http/index.ts +1 -0
  147. package/dist/service/requestServer.h5.ts +1 -0
  148. package/dist/service/requestServer.ts +1 -0
  149. package/dist/service/requestServer.weapp.ts +1 -0
  150. package/dist/utils/connectNativeJsBridge.ts +1 -1
  151. package/dist/utils/connectNativeJsBridge.weapp.ts +1 -1
  152. package/dist/utils/draExceptionAndProfile.ts +1 -1
  153. package/dist/utils/h5Utils.ts +1 -1
  154. package/dist/utils/index.h5.ts +1 -1
  155. package/dist/utils/index.ts +1 -1
  156. package/dist/utils/index.weapp.ts +1 -1
  157. package/dist/utils/intersectionObserver.ts +1 -1
  158. package/dist/utils/jm-common.js +1 -1
  159. package/dist/utils/jumpExtMapUtil.h5.ts +1 -0
  160. package/dist/utils/jumpExtMapUtil.ts +1 -0
  161. package/dist/utils/priceUtils.js +1 -0
  162. package/dist/utils/ready.ts +1 -0
  163. package/dist/utils/sColor.js +1 -0
  164. package/dist/utils/sgmCodeUtils.ts +1 -0
  165. package/dist/utils/taroRenderUtil.ts +1 -0
  166. package/dist/utils/utils.ts +1 -1
  167. package/dist/wxapp/api/helper.js +1 -0
  168. package/dist/wxapp/common/address_api/address_api_v2.js +1 -0
  169. package/dist/wxapp/common/user_info.js +1 -1
  170. package/dist/wxapp/components/launch-app/index.js +1 -0
  171. package/dist/wxapp/components/launch-app/index.json +5 -0
  172. package/dist/wxapp/components/launch-app/index.wxml +0 -0
  173. package/dist/wxapp/components/launch-app/index.wxss +0 -0
  174. package/dist/wxapp/components/subscribe-guider/helper.js +1 -0
  175. package/dist/wxapp/components/subscribe-guider/index.js +1 -0
  176. package/dist/wxapp/components/subscribe-guider/index.json +5 -0
  177. package/dist/wxapp/components/subscribe-guider/index.wxml +0 -0
  178. package/dist/wxapp/components/subscribe-guider/index.wxss +0 -0
  179. package/package.json +145 -114
  180. package/dist/components/base/Price/index.module.scss +0 -136
  181. package/dist/components/base/Skeleton/old.tsx +0 -1
  182. package/dist/customHooks/useDocumentVisibilitychange.ts +0 -1
  183. package/dist/open/api/jump.ts +0 -1
@@ -0,0 +1,33 @@
1
+
2
+ // 默认标签高度14 部分特殊的16,因此设置最大高度16
3
+
4
+ .d-shop-tag-list {
5
+ display: flex;
6
+ flex-direction: row;
7
+ flex-wrap: wrap;
8
+ justify-content: flex-start;
9
+ align-content: flex-start;
10
+ align-items: center;
11
+ align-self: flex-start;
12
+ overflow: hidden;
13
+ font-size: 0;
14
+ line-height: 10px; // 解决换行后上下无间隙导致看到线条的问题
15
+ max-height: 32px;
16
+
17
+ &.d-shop-sku-tag-list{
18
+ margin: -6px 8px 0 0;
19
+ display: inline-flex;
20
+ height: 28px;
21
+ line-height: 28px;
22
+ vertical-align: middle;
23
+ }
24
+ .d-tag-item{
25
+ display: inline-flex;
26
+ margin-right: 8px;
27
+ width: auto;
28
+ height: 28px;
29
+ &:last-child{
30
+ margin-right: 0;
31
+ }
32
+ }
33
+ }
@@ -0,0 +1 @@
1
+ import React from 'react';
2
  "tab_054": "https://m.360buyimg.com/cc/jfs/t1/88382/20/39502/894/64d36235Fc720ec9d/908e4378fec75555.png",
1
3
  "tab_054_home": "https://m.360buyimg.com/cc/jfs/t1/88382/20/39502/894/64d36235Fc720ec9d/908e4378fec75555.png",
2
4
  "tab_665": "https://m.360buyimg.com/cc/jfs/t1/252765/17/9937/2555/677c9155F246ead31/55243d94eb9ca8db.png",
3
5
  "tab_6209_dp": "https://m.360buyimg.com/cc/jfs/t1/252765/17/9937/2555/677c9155F246ead31/55243d94eb9ca8db.png",
4
6
  const { tagInfoList = [], className, itemClassName, isSkuBaseTag = false } = props;
5
7
  const getTagInfoList = Array.isArray(tagInfoList) ? tagInfoList : [];
6
8
  const getTagInfoListNum = getTagInfoList.length;
7
9
  return getTagInfoListNum > 0 ? (
8
10
  <View className={classNames(shopTagStyle['d-shop-tag-list'],{
9
11
  [shopTagStyle['d-shop-sku-tag-list']]: isSkuBaseTag
10
12
  }, className)}>
11
13
  {}
12
14
  <View style={{ width: '1px', height: '100%' }} />
13
15
  {getTagInfoList.map((item, index) => {
14
16
  const { tabIconId,tagId, tabImageUrl,type, tabIconType} = item;
15
17
  const getTagId = tagId || tabIconId;
16
18
  const getTagType = type || tabIconType;
17
19
  const getUrl =
18
20
  typeof tabImageUrl === 'string' ? tabImageUrl : shopTagIconDefaultUrl[getTagId];
19
21
  return getUrl && getUrl !== "" ? (
20
22
  <Image
21
23
  key={index + getTagId + getTagType}
22
24
  className={classNames(shopTagStyle['d-tag-item'], itemClassName)}
23
25
  mode="heightFix"
24
26
  src={getUrl}
25
27
  />
26
28
  ) : null;
27
29
  })}
28
30
  </View>
29
31
  ) : null;
@@ -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'
1
+ import { View, Text } from '@tarojs/components'
2
2
  '//img11.360buyimg.com/imagetools/jfs/t1/141506/22/31698/7923/637b6db9E2af80265/10e76e2c31e0e356.png'
3
3
  '//img14.360buyimg.com/imagetools/jfs/t1/247708/11/19310/58975/66ecefa4Fe36ade02/370c18c961aceef1.png'
4
4
  const {
5
5
  moduleType,
6
6
  configEmpty,
7
7
  previewUri = null,
8
8
  uid,
9
9
  moduleFlag,
10
10
  moduleName,
11
11
  } = props.floorData
12
12
  const { luxuryFixed = false } = props
13
13
  let previewUrl = previewUri
14
14
  const newModuleFloorTypeList = [100, 101, 100000, 99999]
15
15
  const isNewFloorState = newModuleFloorTypeList.includes(moduleType)
16
16
  if ((moduleType == 99999 || moduleType == 101) && !previewUri) {
17
17
  previewUrl = luxuryFixed ? luxuryDecorateModulePrevDefaultUrl : decorateModulePrevDefaultUrl
18
18
  }
19
19
  const loadImageErr = e => {
20
20
  e.target.src = decorateModulePrevDefaultUrl
21
21
  }
22
22
  if (moduleFlag && TRUSTEESHIP_MODULE_FLAG_LIST.indexOf(moduleFlag) !== -1)
23
23
  return null
24
24
  return isNewFloorState && configEmpty && previewUrl ? (
25
25
  <View
26
26
  className={emptyModuleStyle['d-empty-module']}
27
27
  data-floor-uid={uid}
28
28
  data-floor-type={moduleFlag}
29
29
  data-floor-modulename={moduleName}
30
30
  >
31
31
  {}
32
32
  {}
33
33
  {}
34
34
  {}
35
35
  {}
36
36
  {}
37
37
  {}
38
38
  <View className={classNames(emptyModuleStyle['d-empty-img'])}>
39
39
  <img
40
40
  width={luxuryFixed ? 375 : 355}
41
41
  className={classNames('J_floorEmptyDataImg')}
42
42
  src={previewUrl}
43
43
  onError={loadImageErr.bind(this)}
44
44
  />
45
45
  </View>
46
46
  </View>
47
47
  ) : (
48
48
  <View
49
49
  className={classNames(
50
50
  emptyModuleStyle['d-empty-module'],
51
51
  emptyModuleStyle['d-empty-text-warp'],
52
52
  )}
53
53
  data-floor-uid={uid}
54
54
  data-floor-type={moduleFlag}
55
55
  data-floor-modulename={moduleName}
56
56
  >
57
57
  <Text className={emptyModuleStyle['d-empty-text']}>
58
58
  该楼层还未配置数据
59
59
  </Text>
60
60
  </View>
61
61
  )
@@ -1 +1 @@
1
- import { View, Text } from '@tarojs/components'
1
+ import { View, Text } from '@tarojs/components'
@@ -0,0 +1 @@
1
+ import React from 'react'
2
  return FloorContentItem ? (
1
3
  <FloorContentItem {...props} dataDefines={dataDefines} />
2
4
  ) : isDevMode ? (
3
5
  renderDecorateDefaultModule()
4
6
  ) : null
@@ -1 +1 @@
1
- import React, { Suspense, lazy } from 'react'
2
1
  style={{
2
+ import React from 'react';
3
3
  const { floorData, renderSourceType, builtInComponents = {} } = props;
4
4
  const isDevMode = renderSourceType === BUSINESS_TYPE.DECORATE;
5
5
  const specificModuleFlag = ['mHeaderVideo'];
6
6
  const frontEndSpecificModuleFlag = ['header_mVideo'];
7
7
  const luxuryContainerPosition = 'luxuryFixed';
8
8
  const floorPosition = floorData?.floorPosition;
9
9
  let floorModuleType: any = floorData?.floorExtInfo?.moduleFlag;
10
10
  specificModuleFlag.includes(floorModuleType) &&
11
11
  floorPosition === luxuryContainerPosition &&
12
12
  (floorModuleType = frontEndSpecificModuleFlag);
13
13
  const FloorContentItem = (floorModuleType && builtInComponents[floorModuleType]) || null;
14
14
  const dataDefines = getFloorDataToDataDefines(floorData);
15
15
  const isOfficlialMemberFloorPreview =
16
16
  getPageType() === PageType.M_PREVIEW && memberDefaultTypeList.includes(floorModuleType);
17
17
 
18
18
  const renderDecorateDefaultModule = () => {
19
19
  return (
20
20
  <View
21
21
  style={{
22
22
  lineHeight: '120px',
23
23
  textAlign: 'center',
24
24
  }}
25
25
  >
26
26
  当前模块是{floorData.moduleName}
27
27
  </View>
28
28
  );
29
29
  };
30
30
 
31
31
  const renderMemberFixedFloor = (floorData) => {
32
32
  return (
33
33
  <View>
34
34
  {floorData?.previewUri ? (
35
35
  <img
36
36
  src={floorData.previewUri}
37
37
  style={{ width: '100%', display: 'block' }}
38
38
  alt="会员楼层占位图"
39
39
  />
40
40
  ) : null}
41
41
  </View>
42
42
  );
43
43
  };
44
44
  if (
45
45
  floorModuleType &&
46
46
  (RemoteLoadFloorList.includes(floorModuleType) || floorData?.floorExtInfo?.floorLoadWay === 2)
47
47
  ) {
48
48
  return <RemoteFloorItem {...props} dataDefines={dataDefines}></RemoteFloorItem>;
49
49
  } else {
50
50
  return isOfficlialMemberFloorPreview ? (
51
51
  renderMemberFixedFloor(floorData)
52
52
  ) : FloorContentItem ? (
53
53
  <ErrorBoundary {...props}>
54
54
  <FloorContentItem {...props} dataDefines={dataDefines} />
55
55
  </ErrorBoundary>
56
56
  ) : isDevMode ? (
57
57
  renderDecorateDefaultModule()
58
58
  ) : null;
59
59
  }
60
60
  renderSourceType: BUSINESS_TYPE.ONLINE,
61
61
  switch (moduleId) {
62
62
  case 83158:
63
63
  return 'freeLayout';
64
64
  case 99654:
65
65
  return 'activeText';
66
66
  case 100382:
67
67
  return 'superGoods';
68
68
  }
69
69
  floorList.map((item) => {
70
70
  if (!item.floorExtInfo) {
71
71
  return null;
72
72
  }
73
73
  const moduleFlag = item.floorExtInfo.moduleFlag;
74
74
  if (!moduleFlag) {
75
75
  const newModuleFlag = moduleId2ModuleFlag(item.moduleId);
76
76
  if (newModuleFlag) {
77
77
  item.floorExtInfo.moduleFlag = newModuleFlag;
78
78
  }
79
79
  }
80
80
  });
@@ -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 React from 'react';
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 ? <FloorContentItem {...props} dataDefines={dataDefines} /> : isDevMode ? (
26
26
  renderDecorateDefaultModule()
27
27
  ) : null;
28
28
  renderSourceType: BUSINESS_TYPE.ONLINE,
29
29
  switch (moduleId) {
30
30
  case 83158:
31
31
  return 'freeLayout';
32
32
  case 99654:
33
33
  return 'activeText';
34
34
  case 100382:
35
35
  return 'superGoods';
36
36
  }
37
37
  floorList.map((item) => {
38
38
  if (!item.floorExtInfo) {
39
39
  return null;
40
40
  }
41
41
  const moduleFlag = item.floorExtInfo.moduleFlag;
42
42
  if (!moduleFlag) {
43
43
  const newModuleFlag = moduleId2ModuleFlag(item.moduleId);
44
44
  if (newModuleFlag) {
45
45
  item.floorExtInfo.moduleFlag = newModuleFlag;
46
46
  }
47
47
  }
48
48
  });
@@ -1 +1 @@
1
- import React, { useCallback } from 'react'
1
+ import React, { useCallback } from 'react'
2
2
  const {
3
3
  style,
4
4
  dataDefines,
5
5
  containerBorderRadius,
6
6
  floorData,
7
7
  isRealTimeRender,
8
8
  forceRenderTime,
9
9
  } = props
10
10
  const getRenderRealTimeKeyObj = {
11
11
  key: isRealTimeRender ? Date.now() : forceRenderTime,
12
12
  }
13
13
  console.log('远程加载楼层渲染key信息', getRenderRealTimeKeyObj)
14
14
  return (
15
15
  <View className={floorStyle['wrap']} style={style}>
16
16
  {floorData?.showCommonFloorHead === false ? null : (
17
17
  <CommonFloorHead
18
18
  dataDefines={dataDefines}
19
19
  floorData={floorData}
20
20
  {...getRenderRealTimeKeyObj}
21
21
  />
22
22
  )}
23
23
  <View
24
24
  className={floorStyle['wrap']}
25
25
  style={
26
26
  typeof containerBorderRadius === 'number'
27
27
  ? {
28
28
  borderRadius: containerBorderRadius + 'px',
29
29
  }
30
30
  : containerBorderRadius
31
31
  }
32
32
  >
33
33
  {}
34
34
  {props.children &&
35
35
  React.cloneElement(props.children, {
36
36
  dataDefines: dataDefines,
37
37
  ...getRenderRealTimeKeyObj,
38
38
  })}
39
39
  </View>
40
40
  </View>
41
41
  )
42
42
  isRealTimeRender: false,
43
43
  forceRenderTime: 1,