@conecli/cone-render 0.10.1-beta.8 → 0.10.1-beta.9

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 (34) hide show
  1. package/dist/common/const.ts +1 -1
  2. package/dist/common/index.h5.ts +1 -1
  3. package/dist/common/jssdk.ts +1 -1
  4. package/dist/common/token/token.jd.ts +1 -1
  5. package/dist/components/base/CustomScrollView/index.tsx +1 -1
  6. package/dist/components/base/InOrOutViewObserver/index.tsx +1 -1
  7. package/dist/components/base/InViewRender/index.tsx +1 -1
  8. package/dist/components/base/InViewRender/index.weapp.tsx +1 -1
  9. package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
  10. package/dist/components/base/LazyLayoutLoad/index.weapp.tsx +1 -1
  11. package/dist/components/base/LazyLoadImage/index.h5.module.scss +4 -8
  12. package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
  13. package/dist/components/base/LazyLoadImage/index.tsx +1 -1
  14. package/dist/components/base/NetworkDataError/index.tsx +1 -1
  15. package/dist/components/debug/DebugLayout/index.module.scss +2 -2
  16. package/dist/components/decorate/PlaceHolder/index.tsx +1 -1
  17. package/dist/components/floorItem.jd.tsx +1 -1
  18. package/dist/components/floorItem.tsx +1 -1
  19. package/dist/components/floorItem.weapp.tsx +1 -1
  20. package/dist/interface/component.ts +1 -1
  21. package/dist/interface/jumpEventReport.ts +1 -1
  22. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  23. package/dist/jumpEventReport/web.tjm.ts +1 -1
  24. package/dist/open/api/device.ts +1 -1
  25. package/dist/sass/app.h5.scss +0 -18
  26. package/dist/service/http/colorSign.ts +1 -1
  27. package/dist/service/requestServer.ts +1 -1
  28. package/dist/utils/connectNativeJsBridge.ts +1 -1
  29. package/dist/utils/index.h5.ts +1 -1
  30. package/dist/utils/taroRenderUtil.ts +1 -1
  31. package/dist/utils/utils.ts +1 -1
  32. package/package.json +53 -64
  33. package/dist/components/base/CustomScrollView/index-back.tsx +0 -1
  34. package/dist/utils/log.ts +0 -1
@@ -1 +1 @@
1
- import React, { useCallback, useState } from 'react'
2
1
  const {
3
2
  src = null,
4
3
  lazyLoad = true,
5
4
  imagRenderingSet = true,
6
5
  width = null,
7
6
  height = null,
8
7
  className = null,
9
8
  isSkuImage = false,
10
9
  hideErrorImage = false,
11
10
  style = null,
12
11
  backgroundColor = null,
13
12
  errorSrc = null,
14
13
  onLoad = null,
15
14
  onError = null,
16
15
  ...otherOption
17
16
  } = props
18
17
  getNetWorkType === NetWorkTypeQuality.default &&
19
18
  (getNetWorkType = taroJdBaseInfo.info.sysInfo.netWorkType)
20
19
  const [loadSuccess, setLoadSuccess] = useState(false)
21
20
  const [imgSrc, setImgSrc] = useState(src)
22
21
  const [imageErrState, setImageErrState] = useState(false)
23
22
  const imageError = useCallback(
24
23
  (e) => {
25
24
  console.log('图片加载错误', e)
26
25
  errorSrc && setImgSrc(errorSrc)
27
26
  hideErrorImage && setImageErrState(true)
28
27
  typeof onError === 'function' && onError(e, src, props)
29
28
  },
30
29
  [src],
31
30
  )
32
31
 
33
32
  const imageLoad = useCallback(
34
33
  (event) => {
35
34
  setLoadSuccess(true)
36
35
  typeof onLoad === 'function' && onLoad(event, src, props)
37
36
  },
38
37
  [src],
39
38
  )
40
39
 
41
40
  const changeStyleIncludeWidthAndHeightAndBgColor = () => {
42
41
  const changeStyle = {}
43
42
  width && (changeStyle['width'] = width)
44
43
  height && (changeStyle['height'] = height)
45
44
  backgroundColor && (changeStyle['backgroundColor'] = backgroundColor)
46
45
  return changeStyle
47
46
  }
48
47
  return (
49
48
  <Image
50
49
  style={{
51
50
  ...style,
52
51
  ...changeStyleIncludeWidthAndHeightAndBgColor(),
53
52
  }}
54
53
  className={classNames(
55
54
  imageStyle['d-lazy-image'],
56
55
  {
57
56
  [imageStyle['d-lazy-sku-image']]: isSkuImage,
58
57
  },
59
58
  {
60
59
  [imageStyle['d-hide-image-error']]: imageErrState,
61
60
  },
62
61
  {
63
62
  [imageStyle['d-load-completed']]: loadSuccess,
64
63
  },
65
64
  {
66
65
  'd-imag-rendering-crisp-edges': imagRenderingSet,
67
66
  },
68
67
  className,
69
68
  )}
70
69
  src={getQualityImage(imgSrc, NetWorkTypeQuality[getNetWorkType])}
71
70
  lazyLoad={lazyLoad}
72
71
  onError={imageError}
73
72
  onLoad={imageLoad}
74
73
  {...otherOption}
75
74
  />
76
75
  )
76
+ import React, {useCallback, useState} from 'react'
@@ -1 +1 @@
1
- import { Button, View } from '@tarojs/components'
2
1
  NetWorkErrorList,
3
2
  NetWorkErrorTip,
4
3
  NetWorkErrorSubTip,
5
4
  NetWorkShowType,
6
5
  NetWork_Image_Type,
7
6
  const {
8
7
  className = '',
9
8
  message = '',
10
9
  subMessage = '',
11
10
  btnLabel = '重新加载',
12
11
  backgroundColorWhite = false,
13
12
  netWorkDataType = NETWORK_DATA_TYPE.NORMAL,
14
13
  netWorkImageType = NetWork_Image_Type.No_Data_Default_Tip,
15
14
  netWorkShowType = NetWorkShowType.FULL,
16
15
  refreshCallBackFn = null,
17
16
  viewMaxHeight = '',
18
17
  noPosition = false,
19
18
  } = props
20
19
  const refershInitData = useCallback(() => {
21
20
  refreshCallBackFn && refreshCallBackFn(true)
22
21
  }, [])
23
22
  const useErrorTip = message != '' ? message : NetWorkErrorTip[netWorkDataType]
24
23
  const useErrorSubTip = subMessage
25
24
  ? subMessage
26
25
  : NetWorkErrorSubTip[netWorkDataType]
27
26
  const latestRes = latestFromNativeMsgStorage[TaroEventType.PAGE_SCROLL] || {}
28
27
  const maxHeight = latestRes.displayHeight || 546
29
28
  return NetWorkErrorList.includes(netWorkDataType as NETWORK_DATA_TYPE) ? (
30
29
  <View
31
30
  style={{
32
31
  maxHeight:
33
32
  viewMaxHeight !== ''
34
33
  ? viewMaxHeight
35
34
  : isMemberPage || isAppStowShop
36
35
  ? '100vh'
37
36
  : maxHeight,
38
37
  }}
39
38
  className={classNames(
40
39
  netWorkErrorStyle['d-shop-network'],
41
40
  {
42
41
  [netWorkErrorStyle['d-shop-network-white']]: backgroundColorWhite,
43
42
  },
44
43
  {
45
44
  [netWorkErrorStyle['d-shop-network-part']]:
46
45
  netWorkShowType === NetWorkShowType.PART,
47
46
  },
48
47
  {
49
48
  [netWorkErrorStyle['d-network-jd-shop-view']]: isH5AndJdShopView,
50
49
  },
51
50
  {
52
51
  [netWorkErrorStyle['d-shop-network-no-position']]: noPosition,
53
52
  },
54
53
  'flexible-center-box',
55
54
  className,
56
55
  )}
57
56
  >
58
57
  <View
59
58
  className={classNames(
60
59
  netWorkErrorStyle['d-error-content'],
61
60
  'd-error-content',
62
61
  )}
63
62
  >
64
63
  <View
65
64
  className={classNames(
66
65
  netWorkErrorStyle['d-error-type'],
67
66
  netWorkErrorStyle[`d-${netWorkDataType}`],
68
67
  netWorkErrorStyle[`d-${netWorkImageType}`],
69
68
  'd-error-type',
70
69
  )}
71
70
  />
72
71
  <View
73
72
  className={classNames(
74
73
  netWorkErrorStyle['d-error-tip'],
75
74
  'd-error-tip',
76
75
  )}
77
76
  >
78
77
  {useErrorTip}
79
78
  </View>
80
79
  {useErrorSubTip ? (
81
80
  <View
82
81
  className={classNames(
83
82
  netWorkErrorStyle['d-error-sub-tip'],
84
83
  'd-error-sub-tip',
85
84
  )}
86
85
  >
87
86
  {useErrorSubTip}
88
87
  </View>
89
88
  ) : null}
90
89
  <View className={'flexible-horizontal-center-box'}>
91
90
  {refreshCallBackFn && (
92
91
  <Button
93
92
  onClick={refershInitData}
94
93
  className={classNames(
95
94
  netWorkErrorStyle['d-opt-btn'],
96
95
  'd-button-no-border',
97
96
  'd-opt-btn',
98
97
  )}
99
98
  plain
100
99
  size="mini"
101
100
  >
102
101
  {btnLabel}
103
102
  </Button>
104
103
  )}
105
104
  </View>
106
105
  </View>
107
106
  </View>
108
107
  ) : null
108
+ import { Button, View } from '@tarojs/components'
109
109
  NetWorkErrorList,
110
110
  NetWorkErrorTip,
111
111
  NetWorkErrorSubTip,
112
112
  NetWorkShowType,
113
113
  NetWork_Image_Type,
114
114
  const {
115
115
  className,
116
116
  message,
117
117
  subMessage,
118
118
  btnLabel,
119
119
  backgroundColorWhite,
120
120
  netWorkDataType,
121
121
  netWorkShowType,
122
122
  netWorkImageType,
123
123
  refreshCallBackFn,
124
124
  viewMaxHeight,
125
125
  noPosition = false,
126
126
  } = props
127
127
  const refershInitData = useCallback(() => {
128
128
  refreshCallBackFn && refreshCallBackFn(true)
129
129
  }, [])
130
130
  const useErrorTip = message != '' ? message : NetWorkErrorTip[netWorkDataType]
131
131
  const useErrorSubTip = subMessage
132
132
  ? subMessage
133
133
  : NetWorkErrorSubTip[netWorkDataType]
134
134
  const latestRes = latestFromNativeMsgStorage[TaroEventType.PAGE_SCROLL] || {}
135
135
  const maxHeight = latestRes.displayHeight || 546
136
136
  return NetWorkErrorList.includes(netWorkDataType as NETWORK_DATA_TYPE) ? (
137
137
  <View
138
138
  style={{ maxHeight: viewMaxHeight !== '' ? viewMaxHeight : isMemberPage ? '100vh' : maxHeight }}
139
139
  className={classNames(
140
140
  netWorkErrorStyle['d-shop-network'],
141
141
  {
142
142
  [netWorkErrorStyle['d-shop-network-white']]: backgroundColorWhite,
143
143
  },
144
144
  {
145
145
  [netWorkErrorStyle['d-shop-network-part']]:
146
146
  netWorkShowType === NetWorkShowType.PART,
147
147
  },
148
148
  {
149
149
  [netWorkErrorStyle['d-network-jd-shop-view']]: isH5AndJdShopView,
150
150
  },
151
151
  {
152
152
  [netWorkErrorStyle['d-shop-network-no-position']]: noPosition
153
153
  },
154
154
  'flexible-center-box',
155
155
  className,
156
156
  )}
157
157
  >
158
158
  <View className={classNames(netWorkErrorStyle['d-error-content'],'d-error-content')}>
159
159
  <View
160
160
  className={classNames(
161
161
  netWorkErrorStyle['d-error-type'],
162
162
  netWorkErrorStyle[`d-${netWorkDataType}`],
163
163
  netWorkErrorStyle[`d-${netWorkImageType}`],
164
164
  'd-error-type'
165
165
  )}
166
166
  />
167
167
  <View className={classNames(netWorkErrorStyle['d-error-tip'],'d-error-tip')}>
168
168
  {useErrorTip}
169
169
  </View>
170
170
  {useErrorSubTip ? <View className={classNames(netWorkErrorStyle['d-error-sub-tip'],'d-error-sub-tip')}>{useErrorSubTip}</View> : null}
171
171
  <View className={'flexible-horizontal-center-box'}>
172
172
  {refreshCallBackFn && (
173
173
  <Button
174
174
  onClick={refershInitData}
175
175
  className={classNames(
176
176
  netWorkErrorStyle['d-opt-btn'],
177
177
  'd-button-no-border',
178
178
  'd-opt-btn'
179
179
  )}
180
180
  plain
181
181
  size="mini"
182
182
  >
183
183
  {btnLabel}
184
184
  </Button>
185
185
  )}
186
186
  </View>
187
187
  </View>
188
188
  </View>
189
189
  ) : null
190
190
  className: '',
191
191
  message: '',
192
192
  subMessage: '',
193
193
  btnLabel: '重新加载',
194
194
  backgroundColorWhite: false,
195
195
  netWorkDataType: NETWORK_DATA_TYPE.NORMAL,
196
196
  netWorkImageType: NetWork_Image_Type.No_Data_Default_Tip,
197
197
  netWorkShowType: NetWorkShowType.FULL,
198
198
  refreshCallBackFn: null,
199
199
  viewMaxHeight: ''
@@ -6,7 +6,7 @@
6
6
  left: 0;
7
7
  right: 0;
8
8
  bottom: 0;
9
- z-index: 9999;
9
+ z-index: 50;
10
10
 
11
11
  .debug-layout {
12
12
  position: absolute;
@@ -58,7 +58,7 @@
58
58
  .d-info {
59
59
  position: relative;
60
60
  cursor: pointer;
61
- z-index: 9999;
61
+ z-index: 3;
62
62
  margin: 3PX 3PX;
63
63
  width: 22PX;
64
64
  height: 22PX;
@@ -1 +1 @@
1
- import { View, Text } from '@tarojs/components'
1
+ import { View, Text } from '@tarojs/components'
@@ -1 +1 @@
1
- import React from 'react'
2
1
  const {
3
2
  floorData,
4
3
  renderSourceType = BUSINESS_TYPE.ONLINE,
5
4
  builtInComponents = {},
6
5
  updateContainerFloorListDataFn,
7
6
  } = props
8
7
  const isDevMode = renderSourceType === BUSINESS_TYPE.DECORATE
9
8
  const floorModuleType = floorData?.floorExtInfo?.moduleFlag
10
9
  const FloorContentItem =
11
10
  (floorModuleType && builtInComponents[floorModuleType]) || null
12
11
  const dataDefines = getFloorDataToDataDefines(floorData)
13
12
 
14
13
  const renderDecorateDefaultModule = () => {
15
14
  return (
16
15
  <View
17
16
  style={{
18
17
  lineHeight: '120px',
19
18
  textAlign: 'center',
20
19
  }}
21
20
  >
22
21
  当前模块是{floorData.moduleName}
23
22
  </View>
24
23
  )
25
24
  }
26
25
  return FloorContentItem ? (
27
26
  <FloorContentItem {...props} dataDefines={dataDefines} />
28
27
  ) : isDevMode ? (
29
28
  renderDecorateDefaultModule()
30
29
  ) : null
31
30
  switch (moduleId) {
32
31
  case 83158:
33
32
  return 'freeLayout'
34
33
  case 99654:
35
34
  return 'activeText'
36
35
  case 100382:
37
36
  return 'superGoods'
38
37
  }
39
38
  floorList.map((item) => {
40
39
  if (!item.floorExtInfo) {
41
40
  return null
42
41
  }
43
42
  const moduleFlag = item.floorExtInfo.moduleFlag
44
43
  if (!moduleFlag) {
45
44
  const newModuleFlag = moduleId2ModuleFlag(item.moduleId)
46
45
  if (newModuleFlag) {
47
46
  item.floorExtInfo.moduleFlag = newModuleFlag
48
47
  }
49
48
  }
50
49
  })
50
+ import React from 'react'
51
51
  return FloorContentItem ? (
52
52
  <FloorContentItem {...props} dataDefines={dataDefines} />
53
53
  ) : isDevMode ? (
54
54
  renderDecorateDefaultModule()
55
55
  ) : null
@@ -1 +1 @@
1
- import React from 'react'
2
1
  const {
3
2
  floorData,
4
3
  renderSourceType = BUSINESS_TYPE.ONLINE,
5
4
  builtInComponents = {},
6
5
  } = props
7
6
  const isDevMode = renderSourceType === BUSINESS_TYPE.DECORATE
8
7
  const specificModuleFlag = ['mHeaderVideo']
9
8
  const frontEndSpecificModuleFlag = ['header_mVideo']
10
9
  const luxuryContainerPosition = 'luxuryFixed'
11
10
  const floorPosition = floorData?.floorPosition
12
11
  let floorModuleType: any = floorData?.floorExtInfo?.moduleFlag
13
12
  specificModuleFlag.includes(floorModuleType) &&
14
13
  floorPosition === luxuryContainerPosition &&
15
14
  (floorModuleType = frontEndSpecificModuleFlag)
16
15
  const FloorContentItem =
17
16
  (floorModuleType && builtInComponents[floorModuleType]) || null
18
17
  const dataDefines = getFloorDataToDataDefines(floorData)
19
18
 
20
19
  const renderDecorateDefaultModule = () => {
21
20
  return (
22
21
  <View
23
22
  style={{
24
23
  lineHeight: '120px',
25
24
  textAlign: 'center',
26
25
  }}
27
26
  >
28
27
  当前模块是{floorData.moduleName}
29
28
  </View>
30
29
  )
31
30
  }
32
31
  if (
33
32
  floorModuleType &&
34
33
  (RemoteLoadFloorList.includes(floorModuleType) ||
35
34
  floorData?.floorExtInfo?.floorLoadWay === 2)
36
35
  ) {
37
36
  return (
38
37
  <RemoteFloorItem {...props} dataDefines={dataDefines}></RemoteFloorItem>
39
38
  )
40
39
  } else {
41
40
  return FloorContentItem ? (
42
41
  <ErrorBoundary {...props}>
43
42
  <FloorContentItem {...props} dataDefines={dataDefines} />
44
43
  </ErrorBoundary>
45
44
  ) : isDevMode ? (
46
45
  renderDecorateDefaultModule()
47
46
  ) : null
48
47
  }
49
48
  switch (moduleId) {
50
49
  case 83158:
51
50
  return 'freeLayout'
52
51
  case 99654:
53
52
  return 'activeText'
54
53
  case 100382:
55
54
  return 'superGoods'
56
55
  }
57
56
  floorList.map((item) => {
58
57
  if (!item.floorExtInfo) {
59
58
  return null
60
59
  }
61
60
  const moduleFlag = item.floorExtInfo.moduleFlag
62
61
  if (!moduleFlag) {
63
62
  const newModuleFlag = moduleId2ModuleFlag(item.moduleId)
64
63
  if (newModuleFlag) {
65
64
  item.floorExtInfo.moduleFlag = newModuleFlag
66
65
  }
67
66
  }
68
67
  })
68
+ import React from 'react'
69
69
  const { floorData, renderSourceType, builtInComponents = {} } = props
70
70
  const isDevMode = renderSourceType === BUSINESS_TYPE.DECORATE
71
71
  const specificModuleFlag = ['mHeaderVideo']
72
72
  const frontEndSpecificModuleFlag = ['header_mVideo']
73
73
  const luxuryContainerPosition = 'luxuryFixed'
74
74
  const floorPosition = floorData?.floorPosition
75
75
  let floorModuleType: any = floorData?.floorExtInfo?.moduleFlag
76
76
  specificModuleFlag.includes(floorModuleType) &&
77
77
  floorPosition === luxuryContainerPosition &&
78
78
  (floorModuleType = frontEndSpecificModuleFlag)
79
79
  const FloorContentItem =
80
80
  (floorModuleType && builtInComponents[floorModuleType]) || null
81
81
  const dataDefines = getFloorDataToDataDefines(floorData)
82
82
 
83
83
  const renderDecorateDefaultModule = () => {
84
84
  return (
85
85
  <View
86
86
  style={{
87
87
  lineHeight: '120px',
88
88
  textAlign: 'center',
89
89
  }}
90
90
  >
91
91
  当前模块是{floorData.moduleName}
92
92
  </View>
93
93
  )
94
94
  }
95
95
  if (
96
96
  floorModuleType &&
97
97
  (RemoteLoadFloorList.includes(floorModuleType) ||
98
98
  floorData?.floorExtInfo?.floorLoadWay === 2)
99
99
  ) {
100
100
  return (
101
101
  <RemoteFloorItem {...props} dataDefines={dataDefines}></RemoteFloorItem>
102
102
  )
103
103
  } else {
104
104
  return FloorContentItem ? (
105
105
  <ErrorBoundary {...props}>
106
106
  <FloorContentItem {...props} dataDefines={dataDefines} />
107
107
  </ErrorBoundary>
108
108
  ) : isDevMode ? (
109
109
  renderDecorateDefaultModule()
110
110
  ) : null
111
111
  }
112
112
  renderSourceType: BUSINESS_TYPE.ONLINE,
113
113
  switch (moduleId) {
114
114
  case 83158:
115
115
  return 'freeLayout'
116
116
  case 99654:
117
117
  return 'activeText'
118
118
  case 100382:
119
119
  return 'superGoods'
120
120
  }
121
121
  floorList.map((item) => {
122
122
  if (!item.floorExtInfo) {
123
123
  return null
124
124
  }
125
125
  const moduleFlag = item.floorExtInfo.moduleFlag
126
126
  if (!moduleFlag) {
127
127
  const newModuleFlag = moduleId2ModuleFlag(item.moduleId)
128
128
  if (newModuleFlag) {
129
129
  item.floorExtInfo.moduleFlag = newModuleFlag
130
130
  }
131
131
  }
132
132
  })
@@ -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 = 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
  return FloorContentItem ? (
22
21
  <ErrorBoundary {...props}>
23
22
  <FloorContentItem {...props} dataDefines={dataDefines} />
24
23
  </ErrorBoundary>
25
24
  ) : isDevMode ? (
26
25
  renderDecorateDefaultModule()
27
26
  ) : null
28
27
  renderSourceType: BUSINESS_TYPE.ONLINE,
29
28
  switch (moduleId) {
30
29
  case 83158:
31
30
  return 'freeLayout'
32
31
  case 99654:
33
32
  return 'activeText'
34
33
  case 100382:
35
34
  return 'superGoods'
36
35
  }
37
36
  floorList.map((item) => {
38
37
  if (!item.floorExtInfo) {
39
38
  return null
40
39
  }
41
40
  const moduleFlag = item.floorExtInfo.moduleFlag
42
41
  if (!moduleFlag) {
43
42
  const newModuleFlag = moduleId2ModuleFlag(item.moduleId)
44
43
  if (newModuleFlag) {
45
44
  item.floorExtInfo.moduleFlag = newModuleFlag
46
45
  }
47
46
  }
48
47
  })
48
+ import React from 'react';
49
49
  const { floorData, renderSourceType, builtInComponents = {} } = props;
50
50
  const isDevMode = renderSourceType === BUSINESS_TYPE.DECORATE;
51
51
  const floorModuleType = floorData?.floorExtInfo?.moduleFlag;
52
52
  const FloorContentItem = (floorModuleType && builtInComponents[floorModuleType]) || null;
53
53
  const dataDefines = getFloorDataToDataDefines(floorData);
54
54
 
55
55
  const renderDecorateDefaultModule = () => {
56
56
  return (
57
57
  <View
58
58
  style={{
59
59
  lineHeight: '120px',
60
60
  textAlign: 'center',
61
61
  }}
62
62
  >
63
63
  当前模块是{floorData.moduleName}
64
64
  </View>
65
65
  );
66
66
  };
67
67
  return FloorContentItem ? <FloorContentItem {...props} dataDefines={dataDefines} /> : isDevMode ? (
68
68
  renderDecorateDefaultModule()
69
69
  ) : null;
70
70
  renderSourceType: BUSINESS_TYPE.ONLINE,
71
71
  switch (moduleId) {
72
72
  case 83158:
73
73
  return 'freeLayout';
74
74
  case 99654:
75
75
  return 'activeText';
76
76
  case 100382:
77
77
  return 'superGoods';
78
78
  }
79
79
  floorList.map((item) => {
80
80
  if (!item.floorExtInfo) {
81
81
  return null;
82
82
  }
83
83
  const moduleFlag = item.floorExtInfo.moduleFlag;
84
84
  if (!moduleFlag) {
85
85
  const newModuleFlag = moduleId2ModuleFlag(item.moduleId);
86
86
  if (newModuleFlag) {
87
87
  item.floorExtInfo.moduleFlag = newModuleFlag;
88
88
  }
89
89
  }
90
90
  });