@conecli/cone-render 0.8.36 → 0.9.1-isv2.0

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 (36) hide show
  1. package/README.md +7 -1
  2. package/dist/common/const.ts +1 -1
  3. package/dist/common/index.h5.ts +1 -1
  4. package/dist/common/index.jd.ts +1 -1
  5. package/dist/common/index.ts +1 -1
  6. package/dist/common/index.weapp.ts +1 -1
  7. package/dist/common/wxappApi.ts +1 -1
  8. package/dist/components/base/CustomScrollView/index.tsx +1 -1
  9. package/dist/components/base/InOrOutViewObserver/index.tsx +1 -1
  10. package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
  11. package/dist/components/base/LazyLayoutLoad/index.weapp.tsx +1 -1
  12. package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
  13. package/dist/components/base/Skeleton/index.tsx +1 -1
  14. package/dist/components/remoteFloorItem.tsx +1 -1
  15. package/dist/interface/common.ts +1 -1
  16. package/dist/jumpEventReport/base.ts +1 -1
  17. package/dist/jumpEventReport/web.base.ts +1 -1
  18. package/dist/jumpEventReport/web.jd.ts +1 -1
  19. package/dist/utils/h5Utils.ts +1 -1
  20. package/dist/utils/index.h5.ts +1 -1
  21. package/dist/utils/index.ts +1 -1
  22. package/dist/utils/index.weapp.ts +1 -1
  23. package/dist/utils/taroRenderUtil.ts +1 -0
  24. package/dist/utils/utils.ts +1 -1
  25. package/dist/wxapp/api/helper.js +1 -0
  26. package/dist/wxapp/components/launch-app/index.js +1 -0
  27. package/dist/wxapp/components/launch-app/index.json +5 -0
  28. package/dist/wxapp/components/launch-app/index.wxml +0 -0
  29. package/dist/wxapp/components/launch-app/index.wxss +0 -0
  30. package/dist/wxapp/components/subscribe-guider/helper.js +1 -0
  31. package/dist/wxapp/components/subscribe-guider/index.js +1 -0
  32. package/dist/wxapp/components/subscribe-guider/index.json +5 -0
  33. package/dist/wxapp/components/subscribe-guider/index.wxml +0 -0
  34. package/dist/wxapp/components/subscribe-guider/index.wxss +0 -0
  35. package/package.json +45 -32
  36. package/dist/components/base/Skeleton/old.tsx +0 -1
@@ -1 +1 @@
1
- import React, { useCallback, useEffect, useRef, useState } from 'react'
2
1
  const [componentShowState, setComponentShowState] = useState(false)
3
2
  const componentLazyRef = useRef<HTMLElement | null>(null)
4
3
  const componentShowStateRef = useRef(false)
5
4
  const needShowHighVersion = isH5AndJdShopViewH5Scroll && !(global.info.queryInfo?.downgraded && global.info.queryInfo.downgraded === "true")
6
5
  useEffect(() => {
7
6
  if(needShowHighVersion) return
8
7
  const latestRes = latestFromNativeMsgStorage[TaroEventType.PAGE_SCROLL] || {}
9
8
  !componentShowStateRef.current && dealPageScrollInfo(latestRes)
10
9
  Taro.eventCenter.on(TaroEventType.PAGE_SCROLL, (res) => {
11
10
  !componentShowStateRef.current && dealPageScrollInfo(res)
12
11
  })
13
12
 
14
13
  if (typeof displayHeight === 'undefined' || typeof offSetY === 'undefined') return
15
14
  <View
16
15
  ref={ componentLazyRef }
17
16
  className={classNames(
18
17
  imageStyle['d-app-lazy-image'],
19
18
  {
20
19
  [imageStyle['d-lazy-sku-image']]: isSkuImage,
21
20
  },
22
21
  {
23
22
  [imageStyle['d-hide-image-error']]: imageErrState,
24
23
  },
25
24
  {
26
25
  [imageStyle['d-load-completed']]: loadSuccess,
27
26
  },
28
27
  {
29
28
  'd-imag-rendering-crisp-edges':
30
29
  !taroJdBaseInfo.info.pageInfo.isVipShop &&
31
30
  imagRenderingSet,
32
31
  },
33
32
  'J_html5ImageBg',
34
33
  className,
35
34
  )}
36
35
  style={{
37
36
  ...style,
38
37
  ...changeStyleIncludeWidthAndHeightAndBgColor(),
39
38
  >
40
39
  {(componentShowState || lazyLoad === false) && <img
41
40
  src={getQualityImage(
42
41
  imgSrc,
43
42
  taroJdBaseInfo.info.pageInfo.isVipShop
44
43
  ? NetWorkTypeQuality['perfect']
45
44
  : NetWorkTypeQuality[getNetWorkType],
46
45
  )}
47
46
  onLoad={imageLoad.bind(this, imgSrc)}
48
47
  onError={imageError}
49
48
  />}
50
49
  </View>
51
50
  ) : (
52
51
  <Image
53
52
  style={{
54
53
  ...style,
55
54
  ...changeStyleIncludeWidthAndHeightAndBgColor(),
56
55
  }}
57
56
  className={classNames(
58
57
  imageStyle['d-lazy-image'],
59
58
  {
60
59
  [imageStyle['d-lazy-sku-image']]: isSkuImage,
61
60
  },
62
61
  {
63
62
  [imageStyle['d-hide-image-error']]: imageErrState,
64
63
  },
65
64
  {
66
65
  [imageStyle['d-load-completed']]: loadSuccess,
67
66
  },
68
67
  {
69
68
  'd-imag-rendering-crisp-edges': imagRenderingSet,
70
69
  },
71
70
  className,
72
71
  )}
73
72
  src={getQualityImage(
74
73
  imgSrc,
75
74
  NetWorkTypeQuality[getNetWorkType],
76
75
  )}
77
76
  lazyLoad={isChartH5 ? false : lazyLoad}
78
77
  onError={imageError}
79
78
  onLoad={imageLoad.bind(this, imgSrc)}
80
79
  {...otherOption}
81
80
  />
82
81
  )
82
+ import React, { useCallback, useEffect, useRef, useState } from 'react'
83
83
  getQualityImage,
84
84
  isH5AndJdShopView,
85
85
  isJdApp,
86
86
  isChartH5,
87
87
  isH5AndJdShopViewH5Scroll,
88
88
  getNativePageScrollRes,
89
89
  latestFromNativeMsgStorage,
90
90
  const {
91
91
  src,
92
92
  lazyLoad,
93
93
  imagRenderingSet,
94
94
  width,
95
95
  height,
96
96
  className,
97
97
  isSkuImage,
98
98
  hideErrorImage,
99
99
  style,
100
100
  backgroundColor,
101
101
  errorSrc,
102
102
  onLoad,
103
103
  onError,
104
104
  ...otherOption
105
105
  } = props
106
106
  getNetWorkType === NetWorkTypeQuality.default &&
107
107
  (getNetWorkType = taroJdBaseInfo.info.sysInfo.netWorkType)
108
108
  const [loadSuccess, setLoadSuccess] = useState(false)
109
109
  const [imageErrState, setImageErrState] = useState(false)
110
110
  const [componentShowState, setComponentShowState] = useState(false)
111
111
  const [imgSrc, setImgSrc] = useState(src)
112
112
  const componentLazyRef = useRef<HTMLElement | null>(null)
113
113
  const componentShowStateRef = useRef(false)
114
114
  const needShowHighVersion =
115
115
  isH5AndJdShopViewH5Scroll &&
116
116
  !(
117
117
  global.info.queryInfo?.downgraded &&
118
118
  global.info.queryInfo.downgraded === 'true'
119
119
  )
120
120
  const { ref, inView } = useInView({
121
121
  threshold: 0,
122
122
  triggerOnce: true,
123
123
  root: null,
124
124
  rootMargin: `0px 0px ${window.innerHeight * 0.5}px 0px`,
125
125
  })
126
126
  const imageError = useCallback(
127
127
  (e) => {
128
128
  console.log('图片加载错误', e)
129
129
  errorSrc && setImgSrc(errorSrc)
130
130
  hideErrorImage && setImageErrState(true)
131
131
  typeof onError === 'function' && onError(e, src, props)
132
132
  },
133
133
  [src],
134
134
  )
135
135
 
136
136
  const imageLoad = useCallback(
137
137
  (_src, event) => {
138
138
  setLoadSuccess(true)
139
139
  typeof onLoad === 'function' && onLoad(event, src, props)
140
140
  },
141
141
  [src],
142
142
  )
143
143
 
144
144
  const changeStyleIncludeWidthAndHeightAndBgColor = () => {
145
145
  const changeStyle = {}
146
146
  width && (changeStyle['width'] = width)
147
147
  height && (changeStyle['height'] = height)
148
148
  backgroundColor && (changeStyle['backgroundColor'] = backgroundColor)
149
149
  return changeStyle
150
150
  }
151
151
  useEffect(() => {
152
152
  if (needShowHighVersion) return
153
153
  const latestRes =
154
154
  latestFromNativeMsgStorage[TaroEventType.PAGE_SCROLL] || {}
155
155
  !componentShowStateRef.current && dealPageScrollInfo(latestRes)
156
156
  Taro.eventCenter.on(TaroEventType.PAGE_SCROLL, (res) => {
157
157
  !componentShowStateRef.current && dealPageScrollInfo(res)
158
158
  })
159
159
  }, [])
160
160
 
161
161
  const dealPageScrollInfo = (res) => {
162
162
  const { displayHeight, offSetY } = getNativePageScrollRes(res) || {}
163
163
  if (typeof displayHeight === 'undefined' || typeof offSetY === 'undefined')
164
164
  return
165
165
  if (componentLazyRef.current) {
166
166
  const eleClientRect = componentLazyRef.current.getBoundingClientRect()
167
167
  const getContainerHeightOffSetY = displayHeight * 1.5 + offSetY
168
168
  const eleOffsetTop = Math.ceil(eleClientRect.top)
169
169
  const eleOffsetHeight = Math.ceil(eleClientRect.height)
170
170
  if (!componentShowStateRef.current) {
171
171
  if (getContainerHeightOffSetY > eleOffsetTop) {
172
172
  componentShowStateRef.current = true
173
173
  setComponentShowState(true)
174
174
  }
175
175
  }
176
176
  }
177
177
  }
178
178
  <View
179
179
  ref={ componentLazyRef }
180
180
  className={classNames(
181
181
  imageStyle['d-app-lazy-image'],
182
182
  {
183
183
  [imageStyle['d-lazy-sku-image']]: isSkuImage,
184
184
  },
185
185
  {
186
186
  [imageStyle['d-hide-image-error']]: imageErrState,
187
187
  },
188
188
  {
189
189
  [imageStyle['d-load-completed']]: loadSuccess,
190
190
  },
191
191
  {
192
192
  'd-imag-rendering-crisp-edges':
193
193
  !taroJdBaseInfo.info.pageInfo.isVipShop &&
194
194
  imagRenderingSet,
195
195
  },
196
196
  'J_html5ImageBg',
197
197
  className,
198
198
  )}
199
199
  style={{
200
200
  ...style,
201
201
  ...changeStyleIncludeWidthAndHeightAndBgColor(),
202
202
  >
203
203
  {(componentShowState || lazyLoad === false) && <img
204
204
  src={getQualityImage(
205
205
  imgSrc,
206
206
  taroJdBaseInfo.info.pageInfo.isVipShop
207
207
  ? NetWorkTypeQuality['perfect']
208
208
  : NetWorkTypeQuality[getNetWorkType],
209
209
  )}
210
210
  onLoad={imageLoad.bind(this, imgSrc)}
211
211
  onError={imageError}
212
212
  />}
213
213
  </View>
214
214
  ) : (
215
215
  <Image
216
216
  style={{
217
217
  ...style,
218
218
  ...changeStyleIncludeWidthAndHeightAndBgColor(),
219
219
  }}
220
220
  className={classNames(
221
221
  imageStyle['d-lazy-image'],
222
222
  {
223
223
  [imageStyle['d-lazy-sku-image']]: isSkuImage,
224
224
  },
225
225
  {
226
226
  [imageStyle['d-hide-image-error']]: imageErrState,
227
227
  },
228
228
  {
229
229
  [imageStyle['d-load-completed']]: loadSuccess,
230
230
  },
231
231
  {
232
232
  'd-imag-rendering-crisp-edges': imagRenderingSet,
233
233
  },
234
234
  className,
235
235
  )}
236
236
  src={getQualityImage(
237
237
  imgSrc,
238
238
  NetWorkTypeQuality[getNetWorkType],
239
239
  )}
240
240
  lazyLoad={isChartH5 ? false : lazyLoad}
241
241
  onError={imageError}
242
242
  onLoad={imageLoad.bind(this, imgSrc)}
243
243
  {...otherOption}
244
244
  />
245
245
  )
246
246
  lazyLoad: true,
247
247
  isSkuImage: false,
248
248
  hideErrorImage: false,
249
249
  imagRenderingSet: true,
250
250
  src: null,
251
251
  style: null,
252
252
  width: null,
253
253
  height: null,
254
254
  backgroundColor: null,
255
255
  className: null,
256
256
  errorSrc: null,
257
257
  onLoad: null,
258
258
  onError: 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>
@@ -1 +1 @@
1
- import React, { Suspense, lazy } from 'react'
2
1
  const { floorData, renderSourceType, updateContainerFloorListDataFn } = props
3
2
  const dataDefines = getFloorDataToDataDefines(floorData)
4
3
 
5
4
  const getFloorSetHeight = (item) => {
6
5
  const getHeight = item?.floorExtInfo?.floorHeight
7
6
  ? Number(item?.floorExtInfo?.floorHeight)
8
7
  : 200
9
8
  return getHeight > 0 ? getHeight : 200
10
9
  }
11
10
  console.log(
12
11
  '>>>>>>>>>> floorModuleType === FloorModuleType.ISVDESIGNERH5MODULE >>>>>>>>>>',
13
12
  )
14
13
  const renderResult = (() => {
15
14
  try {
16
15
  console.log('>>>>>>>>>> 开始渲染1个isv模块 >>>>>>>>>>')
17
16
  console.log(
18
17
  '==========当前业务类型renderSourceType、楼层floorId: ',
19
18
  renderSourceType,
20
19
  floorData.uid,
21
20
  )
22
21
  const modularPackResult = floorData?.floorExtInfo?.modularPackResult
23
22
  const modularPackResultObj =
24
23
  typeof modularPackResult === 'string'
25
24
  ? JSON.parse(modularPackResult)
26
25
  : modularPackResult
27
26
  const opt = {
28
27
  msg: `店铺首页isv h5楼层隐藏不显示。原因:modularPackResult数据不完备。页面类型-buildType: ${buildType}。楼层顺序-floorIdx: ${floorData?.floorIdx}`,
29
28
  buildType,
30
29
  uid: floorData?.uid,
31
30
  floorIdx: floorData?.floorIdx,
32
31
  shopId: floorData?.floorExtInfo?.shopId,
33
32
  moduleId: floorData?.moduleId,
34
33
  moduleName: floorData?.moduleName,
35
34
  middleTemplateId: floorData?.middleTemplateId,
36
35
  modularPackResult: modularPackResult,
37
36
  }
38
37
  if (modularPackResultObj) {
39
38
  const { bundleUrl, bundleFileName } = modularPackResultObj
40
39
  if (bundleUrl && bundleFileName) {
41
40
  let ISVModule =
42
41
  taroJdBaseInfo?.renderedIsvComponents[
43
42
  `${floorData.uid}_${bundleFileName}`
44
43
  ] || null
45
44
  if (!ISVModule) {
46
45
  ISVModule = lazy(
47
46
  () => import(bundleFileName + '@@@@@@' + bundleUrl),
48
47
  )
49
48
  console.log(
50
49
  '1|加载isv模块==========走lazy import生成新的isv模块react组件',
51
50
  bundleFileName,
52
51
  )
53
52
  taroJdBaseInfo.renderedIsvComponents[
54
53
  `${floorData.uid}_${bundleFileName}`
55
54
  ] = ISVModule
56
55
  console.log(
57
56
  '2|渲染isv模块的react组件==========,window.taroJshopH5WebpackJsonp上的组件是否已就绪: ',
58
57
  bundleFileName,
59
58
  window['taroJshopH5WebpackJsonp'].find(
60
59
  (item) => item[0][0] == bundleFileName,
61
60
  ),
62
61
  )
63
62
  } else {
64
63
  console.log(
65
64
  '1|加载isv模块==========不走lazy import生成新的isv模块react组件,从已加载中获取,taroJdBaseInfo: ',
66
65
  taroJdBaseInfo,
67
66
  )
68
67
  console.log(
69
68
  '2|渲染isv模块的react组件==========,taroJdBaseInfo.renderedIsvComponents上的组件是否已就绪: ',
70
69
  taroJdBaseInfo.renderedIsvComponents[
71
70
  `${floorData.uid}_${bundleFileName}`
72
71
  ],
73
72
  )
74
73
  }
75
74
  const _floorHeight = getFloorSetHeight(floorData)
76
75
  return (
77
76
  <ErrorBoundary {...props}>
78
77
  <Suspense
79
78
  fallback={
80
79
  <View
81
80
  style={{
82
81
  position: 'relative',
83
82
  background: `#ffffff url('${JD_PLACEHOLDER_IMG}') center center no-repeat`,
84
83
  height: `${_floorHeight}px`,
85
84
  }}
86
85
  ></View>
87
86
  }
88
87
  >
89
88
  <ISVFloor {...props} dataDefines={dataDefines}>
90
89
  <ISVModule {...props} dataDefines={dataDefines}></ISVModule>
91
90
  </ISVFloor>
92
91
  </Suspense>
93
92
  </ErrorBoundary>
94
93
  )
95
94
  } else {
96
95
  console.log(
97
96
  '3|isv模块渲染异常,modularPackResult中缺少bundleUrl或bundleFileName==========modularPackResult: ',
98
97
  modularPackResultObj,
99
98
  )
100
99
  sgmCustomReport({
101
100
  code: 'isvModuleError',
102
101
  msg: opt,
103
102
  })
104
103
  return null
105
104
  }
106
105
  } else {
107
106
  console.log(
108
107
  '3|isv模块渲染异常,缺少modularPackResult==========modularPackResult: ',
109
108
  modularPackResultObj,
110
109
  )
111
110
  sgmCustomReport({
112
111
  code: 'isvModuleError',
113
112
  msg: opt,
114
113
  })
115
114
  return null
116
115
  }
117
116
  } catch (err) {
118
117
  console.log('3|isv模块渲染异常,floorItem逻辑错误==========err: ', err)
119
118
  sgmCustomReport({
120
119
  code: 'isvModuleError',
121
120
  msg: {
122
121
  msg: 'remoteFloorItem try catch 异常',
123
122
  err
124
123
  },
125
124
  })
126
125
  return null
127
126
  }
128
127
  })()
129
128
  if (renderResult === null) {
130
129
  updateContainerFloorListDataFn &&
131
130
  updateContainerFloorListDataFn({
132
131
  type: 'filter',
133
132
  containerId: floorData?.uid,
134
133
  })
135
134
  console.log('renderResult === null: 命中了!')
136
135
  taroEventSendPageScrollInfo()
137
136
  } else {
138
137
  console.log('renderResult !== null: 没命中', renderResult)
139
138
  }
140
139
  return renderResult
140
+ import React, { Suspense, lazy } from 'react'
141
141
  getBundleUrl,
142
142
  getBundleFileName,
143
143
  formatPackResult,
144
144
  const { floorData, renderSourceType, updateContainerFloorListDataFn } = props
145
145
  const dataDefines = getFloorDataToDataDefines(floorData)
146
146
 
147
147
  const getFloorSetHeight = (item) => {
148
148
  const getHeight = item?.floorExtInfo?.floorHeight
149
149
  ? Number(item?.floorExtInfo?.floorHeight)
150
150
  : 200
151
151
  return getHeight > 0 ? getHeight : 200
152
152
  }
153
153
  console.log(
154
154
  '>>>>>>>>>> floorModuleType === FloorModuleType.ISVDESIGNERH5MODULE >>>>>>>>>>',
155
155
  )
156
156
  const renderResult = (() => {
157
157
  try {
158
158
  console.log('>>>>>>>>>> 开始渲染1个isv模块 >>>>>>>>>>')
159
159
  console.log(
160
160
  '==========当前业务类型renderSourceType、楼层floorId: ',
161
161
  renderSourceType,
162
162
  floorData.uid,
163
163
  )
164
164
  const modularPackResult = floorData?.floorExtInfo?.modularPackResult
165
165
  const modularPackResultObj = formatPackResult(modularPackResult)
166
166
  const bundleUrl = getBundleUrl(modularPackResultObj)
167
167
  const bundleFileName = getBundleFileName(modularPackResultObj)
168
168
  const opt = {
169
169
  msg: `店铺首页isv h5楼层隐藏不显示。原因:modularPackResult数据不完备。页面类型-buildType: ${buildType}。楼层顺序-floorIdx: ${floorData?.floorIdx}`,
170
170
  buildType,
171
171
  uid: floorData?.uid,
172
172
  floorIdx: floorData?.floorIdx,
173
173
  shopId: floorData?.floorExtInfo?.shopId,
174
174
  moduleId: floorData?.moduleId,
175
175
  moduleName: floorData?.moduleName,
176
176
  middleTemplateId: floorData?.middleTemplateId,
177
177
  modularPackResult: modularPackResult,
178
178
  }
179
179
  if (bundleUrl && bundleFileName) {
180
180
  let ISVModule =
181
181
  taroJdBaseInfo?.renderedIsvComponents[
182
182
  `${floorData.uid}_${bundleFileName}`
183
183
  ] || null
184
184
  if (!ISVModule) {
185
185
  ISVModule = lazy(() => import(bundleFileName + '@@@@@@' + bundleUrl))
186
186
  console.log(
187
187
  '1|加载isv模块==========走lazy import生成新的isv模块react组件',
188
188
  bundleFileName,
189
189
  )
190
190
  taroJdBaseInfo.renderedIsvComponents[
191
191
  `${floorData.uid}_${bundleFileName}`
192
192
  ] = ISVModule
193
193
  console.log(
194
194
  '2|渲染isv模块的react组件==========,window.taroJshopH5WebpackJsonp上的组件是否已就绪: ',
195
195
  bundleFileName,
196
196
  window['taroJshopH5WebpackJsonp'].find(
197
197
  (item) => item[0][0] == bundleFileName,
198
198
  ),
199
199
  )
200
200
  } else {
201
201
  console.log(
202
202
  '1|加载isv模块==========不走lazy import生成新的isv模块react组件,从已加载中获取,taroJdBaseInfo: ',
203
203
  taroJdBaseInfo,
204
204
  )
205
205
  console.log(
206
206
  '2|渲染isv模块的react组件==========,taroJdBaseInfo.renderedIsvComponents上的组件是否已就绪: ',
207
207
  taroJdBaseInfo.renderedIsvComponents[
208
208
  `${floorData.uid}_${bundleFileName}`
209
209
  ],
210
210
  )
211
211
  }
212
212
  const _floorHeight = getFloorSetHeight(floorData)
213
213
  return (
214
214
  <ErrorBoundary {...props}>
215
215
  <Suspense
216
216
  fallback={
217
217
  <View
218
218
  style={{
219
219
  position: 'relative',
220
220
  background: `#ffffff url('${JD_PLACEHOLDER_IMG}') center center no-repeat`,
221
221
  height: `${_floorHeight}px`,
222
222
  }}
223
223
  ></View>
224
224
  }
225
225
  >
226
226
  <ISVFloor {...props} dataDefines={dataDefines}>
227
227
  <ISVModule {...props} dataDefines={dataDefines}></ISVModule>
228
228
  </ISVFloor>
229
229
  </Suspense>
230
230
  </ErrorBoundary>
231
231
  )
232
232
  } else {
233
233
  console.log(
234
234
  '3|isv模块渲染异常,modularPackResult中缺少bundleUrl或bundleFileName==========modularPackResult: ',
235
235
  modularPackResultObj,
236
236
  )
237
237
  sgmCustomReport({
238
238
  code: 'isvModuleError',
239
239
  msg: opt,
240
240
  })
241
241
  return null
242
242
  }
243
243
  } catch (err) {
244
244
  console.log('3|isv模块渲染异常,floorItem逻辑错误==========err: ', err)
245
245
  sgmCustomReport({
246
246
  code: 'isvModuleError',
247
247
  msg: {
248
248
  msg: 'remoteFloorItem try catch 异常',
249
249
  err,
250
250
  },
251
251
  })
252
252
  return null
253
253
  }
254
254
  })()
255
255
  if (renderResult === null) {
256
256
  updateContainerFloorListDataFn &&
257
257
  updateContainerFloorListDataFn({
258
258
  type: 'filter',
259
259
  containerId: floorData?.uid,
260
260
  })
261
261
  console.log('renderResult === null: 命中了!')
262
262
  taroEventSendPageScrollInfo()
263
263
  } else {
264
264
  console.log('renderResult !== null: 没命中', renderResult)
265
265
  }
266
266
  return renderResult
@@ -1 +1 @@
1
- import Taro from '@tarojs/taro'
1
+ import Taro from '@tarojs/taro'
2
2
  floorVideInfo: object