@conecli/cone-render 0.8.33 → 0.8.35-beta.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.
- package/dist/common/const.ts +1 -1
- package/dist/common/index.h5.ts +1 -1
- package/dist/common/index.jd.ts +1 -1
- package/dist/common/index.ts +1 -1
- package/dist/common/index.weapp.ts +1 -1
- package/dist/components/ErrorBoundary.tsx +1 -1
- package/dist/components/base/CustomScrollView/index.tsx +1 -1
- package/dist/components/base/ExposureSmart/const.ts +1 -0
- package/dist/components/base/ExposureSmart/index.h5.module.scss +18 -4
- package/dist/components/base/ExposureSmart/index.h5.tsx +1 -1
- package/dist/components/base/ExposureSmart/index.module.scss +20 -9
- package/dist/components/base/ExposureSmart/index.tsx +1 -1
- package/dist/components/base/ExposureSmart/reporter.tsx +1 -1
- package/dist/components/base/InOrOutViewObserver/index.tsx +1 -1
- package/dist/components/base/InViewRender/index.tsx +1 -1
- package/dist/components/base/InViewRender/index.weapp.tsx +1 -1
- package/dist/components/base/ItemViewExposureSmart/index.module.scss +8 -0
- package/dist/components/base/ItemViewExposureSmart/index.tsx +1 -0
- package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
- package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
- package/dist/components/base/NetworkDataError/const.ts +1 -1
- package/dist/components/base/NetworkDataError/index.module.scss +4 -1
- package/dist/components/decorate/DecorateFloorModule/index.tsx +1 -1
- package/dist/components/floorItem.tsx +1 -1
- package/dist/components/remoteFloorItem.tsx +1 -0
- package/dist/interface/common.ts +1 -1
- package/dist/jumpEventReport/base.ts +1 -1
- package/dist/jumpEventReport/createReportFloorData.ts +1 -1
- package/dist/jumpEventReport/index.h5.ts +1 -1
- package/dist/jumpEventReport/index.weapp.ts +1 -1
- package/dist/jumpEventReport/logEventConfig.ts +1 -1
- package/dist/jumpEventReport/web/report.ts +1 -1
- package/dist/jumpEventReport/web.base.ts +1 -1
- package/dist/jumpEventReport/web.jd.ts +1 -1
- package/dist/jumpEventReport/web.jdb.ts +1 -1
- package/dist/jumpEventReport/web.jdjch.ts +1 -0
- package/dist/libs/taroAppReport.js +2 -2
- package/dist/modules/ContainerFloorList/index.h5.module.scss +10 -1
- package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
- package/dist/modules/ContainerFloorList/index.tsx +1 -1
- package/dist/open/api/device.ts +1 -1
- package/dist/open/api/track.ts +1 -1
- package/dist/open/api/util.ts +1 -1
- package/dist/open/components/index.ts +1 -1
- package/dist/service/bMallConst.ts +1 -1
- package/dist/utils/connectNativeJsBridge.ts +1 -1
- package/dist/utils/connectNativeJsBridge.weapp.ts +1 -1
- package/dist/utils/h5Utils.ts +1 -1
- package/dist/utils/index.h5.ts +1 -1
- package/dist/utils/index.ts +1 -1
- package/dist/utils/index.weapp.ts +1 -1
- package/dist/utils/intersectionObserver.ts +1 -1
- package/dist/utils/jm-common.js +1 -1
- package/dist/utils/utils.ts +1 -1
- package/package.json +1 -1
- /package/dist/service/{bMallConst.wxapp.ts → bMallConst.weapp.ts} +0 -0
- /package/dist/service/http/{colorSign.wxapp.ts → colorSign.weapp.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import React, { Suspense, lazy } from 'react'
|
|
2
1
|
BUSINESS_TYPE,
|
|
3
2
|
RemoteLoadFloorList,
|
|
4
3
|
JD_PLACEHOLDER_IMG,
|
|
5
4
|
DraJSAgentReportException,
|
|
6
5
|
DraJSAgentReport,
|
|
7
6
|
const {
|
|
8
7
|
floorData,
|
|
9
8
|
renderSourceType,
|
|
10
9
|
builtInComponents = {},
|
|
11
10
|
updateContainerFloorListDataFn,
|
|
12
11
|
} = props
|
|
13
12
|
const isDevMode = renderSourceType === BUSINESS_TYPE.DECORATE
|
|
14
13
|
const floorModuleType: any = floorData?.floorExtInfo?.moduleFlag
|
|
15
14
|
const FloorContentItem =
|
|
16
15
|
(floorModuleType && builtInComponents[floorModuleType]) || null
|
|
17
16
|
const dataDefines = getFloorDataToDataDefines(floorData)
|
|
18
17
|
|
|
19
18
|
const renderDecorateDefaultModule = () => {
|
|
20
19
|
return (
|
|
21
20
|
<View
|
|
22
21
|
style={{
|
|
23
22
|
lineHeight: '120px',
|
|
24
23
|
textAlign: 'center',
|
|
25
24
|
}}
|
|
26
25
|
>
|
|
27
26
|
当前模块是{floorData.moduleName}
|
|
28
27
|
</View>
|
|
29
28
|
)
|
|
30
29
|
}
|
|
31
30
|
|
|
32
31
|
const getFloorSetHeight = (item) => {
|
|
33
32
|
const getHeight = item?.floorExtInfo?.floorHeight
|
|
34
33
|
? Number(item?.floorExtInfo?.floorHeight)
|
|
35
34
|
: 200
|
|
36
35
|
return getHeight > 0 ? getHeight : 200
|
|
37
36
|
}
|
|
38
37
|
if (floorModuleType && RemoteLoadFloorList.includes(floorModuleType)) {
|
|
39
38
|
console.log(
|
|
40
39
|
'>>>>>>>>>> floorModuleType === FloorModuleType.ISVDESIGNERH5MODULE >>>>>>>>>>',
|
|
41
40
|
)
|
|
42
41
|
const renderResult = (() => {
|
|
43
42
|
try {
|
|
44
43
|
console.log('>>>>>>>>>> 开始渲染1个isv模块 >>>>>>>>>>')
|
|
45
44
|
console.log(
|
|
46
45
|
'==========当前业务类型renderSourceType、楼层floorId: ',
|
|
47
46
|
renderSourceType,
|
|
48
47
|
floorData.uid,
|
|
49
48
|
)
|
|
50
49
|
const modularPackResult = floorData?.floorExtInfo?.modularPackResult
|
|
51
50
|
const modularPackResultObj =
|
|
52
51
|
typeof modularPackResult === 'string'
|
|
53
52
|
? JSON.parse(modularPackResult)
|
|
54
53
|
: modularPackResult
|
|
55
54
|
if (modularPackResultObj) {
|
|
56
55
|
const { bundleUrl, bundleFileName } = modularPackResultObj
|
|
57
56
|
if (bundleUrl && bundleFileName) {
|
|
58
57
|
let ISVModule =
|
|
59
58
|
taroJdBaseInfo?.renderedIsvComponents[
|
|
60
59
|
`${floorData.uid}_${bundleFileName}`
|
|
61
60
|
] || null
|
|
62
61
|
if (!ISVModule) {
|
|
63
62
|
ISVModule = lazy(
|
|
64
63
|
() => import(bundleFileName + '@@@@@@' + bundleUrl),
|
|
65
64
|
)
|
|
66
65
|
console.log(
|
|
67
66
|
'1|加载isv模块==========走lazy import生成新的isv模块react组件',
|
|
68
67
|
bundleFileName,
|
|
69
68
|
)
|
|
70
69
|
taroJdBaseInfo.renderedIsvComponents[
|
|
71
70
|
`${floorData.uid}_${bundleFileName}`
|
|
72
71
|
] = ISVModule
|
|
73
72
|
console.log(
|
|
74
73
|
'2|渲染isv模块的react组件==========,window.taroJshopH5WebpackJsonp上的组件是否已就绪: ',
|
|
75
74
|
bundleFileName,
|
|
76
75
|
window['taroJshopH5WebpackJsonp'].find(
|
|
77
76
|
(item) => item[0][0] == bundleFileName,
|
|
78
77
|
),
|
|
79
78
|
)
|
|
80
79
|
} else {
|
|
81
80
|
console.log(
|
|
82
81
|
'1|加载isv模块==========不走lazy import生成新的isv模块react组件,从已加载中获取,taroJdBaseInfo: ',
|
|
83
82
|
taroJdBaseInfo,
|
|
84
83
|
)
|
|
85
84
|
console.log(
|
|
86
85
|
'2|渲染isv模块的react组件==========,taroJdBaseInfo.renderedIsvComponents上的组件是否已就绪: ',
|
|
87
86
|
taroJdBaseInfo.renderedIsvComponents[
|
|
88
87
|
`${floorData.uid}_${bundleFileName}`
|
|
89
88
|
],
|
|
90
89
|
)
|
|
91
90
|
}
|
|
92
91
|
const _floorHeight = getFloorSetHeight(floorData)
|
|
93
92
|
return (
|
|
94
93
|
<ErrorBoundary {...props}>
|
|
95
94
|
<Suspense
|
|
96
95
|
fallback={
|
|
97
96
|
<View
|
|
98
97
|
style={{
|
|
99
98
|
position: 'relative',
|
|
100
99
|
background: `#ffffff url('${JD_PLACEHOLDER_IMG}') center center no-repeat`,
|
|
101
100
|
height: `${_floorHeight}px`,
|
|
102
101
|
}}
|
|
103
102
|
></View>
|
|
104
103
|
}
|
|
105
104
|
>
|
|
106
105
|
<ISVFloor {...props} dataDefines={dataDefines}>
|
|
107
106
|
<ISVModule {...props} dataDefines={dataDefines}></ISVModule>
|
|
108
107
|
</ISVFloor>
|
|
109
108
|
</Suspense>
|
|
110
109
|
</ErrorBoundary>
|
|
111
110
|
)
|
|
112
111
|
} else {
|
|
113
112
|
console.log(
|
|
114
113
|
'3|isv模块渲染异常,modularPackResult中缺少bundleUrl或bundleFileName==========modularPackResult: ',
|
|
115
114
|
modularPackResultObj,
|
|
116
115
|
)
|
|
117
116
|
DraJSAgentReport(
|
|
118
117
|
`店铺首页isv h5楼层隐藏不显示。原因:modularPackResult数据不完备。页面类型-buildType: ${buildType}。楼层顺序-floorIdx: ${floorData?.floorIdx}`,
|
|
119
118
|
{
|
|
120
119
|
buildType,
|
|
121
120
|
uid: floorData?.uid,
|
|
122
121
|
floorIdx: floorData?.floorIdx,
|
|
123
122
|
shopId: floorData?.floorExtInfo?.shopId,
|
|
124
123
|
moduleId: floorData?.moduleId,
|
|
125
124
|
moduleName: floorData?.moduleName,
|
|
126
125
|
middleTemplateId: floorData?.middleTemplateId,
|
|
127
126
|
modularPackResult: modularPackResult,
|
|
128
127
|
},
|
|
129
128
|
)
|
|
130
129
|
return null
|
|
131
130
|
}
|
|
132
131
|
} else {
|
|
133
132
|
console.log(
|
|
134
133
|
'3|isv模块渲染异常,缺少modularPackResult==========modularPackResult: ',
|
|
135
134
|
modularPackResultObj,
|
|
136
135
|
)
|
|
137
136
|
DraJSAgentReport(
|
|
138
137
|
`店铺首页isv h5楼层隐藏不显示。原因:modularPackResult数据不完备。页面类型-buildType: ${buildType}。楼层顺序-floorIdx: ${floorData?.floorIdx}`,
|
|
139
138
|
{
|
|
140
139
|
buildType,
|
|
141
140
|
uid: floorData?.uid,
|
|
142
141
|
floorIdx: floorData?.floorIdx,
|
|
143
142
|
shopId: floorData?.floorExtInfo?.shopId,
|
|
144
143
|
moduleId: floorData?.moduleId,
|
|
145
144
|
moduleName: floorData?.moduleName,
|
|
146
145
|
middleTemplateId: floorData?.middleTemplateId,
|
|
147
146
|
modularPackResult: modularPackResult,
|
|
148
147
|
},
|
|
149
148
|
)
|
|
150
149
|
return null
|
|
151
150
|
}
|
|
152
151
|
} catch (err) {
|
|
153
152
|
console.log('3|isv模块渲染异常,floorItem逻辑错误==========err: ', err)
|
|
154
153
|
DraJSAgentReportException(err)
|
|
155
154
|
return null
|
|
156
155
|
}
|
|
157
156
|
})()
|
|
158
157
|
if (renderResult === null) {
|
|
159
158
|
updateContainerFloorListDataFn &&
|
|
160
159
|
updateContainerFloorListDataFn({
|
|
161
160
|
type: 'filter',
|
|
162
161
|
containerId: floorData?.uid,
|
|
163
162
|
})
|
|
164
163
|
console.log('renderResult === null: 命中了!')
|
|
165
164
|
taroEventSendPageScrollInfo()
|
|
166
165
|
} else {
|
|
167
166
|
console.log('renderResult !== null: 没命中', renderResult)
|
|
168
167
|
}
|
|
169
168
|
return renderResult
|
|
170
169
|
} else {
|
|
171
170
|
return FloorContentItem ? (
|
|
172
171
|
<ErrorBoundary {...props}>
|
|
173
172
|
<FloorContentItem {...props} dataDefines={dataDefines} />
|
|
174
173
|
</ErrorBoundary>
|
|
175
174
|
) : isDevMode ? (
|
|
176
175
|
renderDecorateDefaultModule()
|
|
177
176
|
) : null
|
|
178
177
|
}
|
|
179
178
|
renderSourceType: BUSINESS_TYPE.ONLINE,
|
|
180
179
|
switch (moduleId) {
|
|
181
180
|
case 83158:
|
|
182
181
|
return 'freeLayout'
|
|
183
182
|
case 99654:
|
|
184
183
|
return 'activeText'
|
|
185
184
|
case 100382:
|
|
186
185
|
return 'superGoods'
|
|
187
186
|
}
|
|
188
187
|
floorList.map((item) => {
|
|
189
188
|
if (!item.floorExtInfo) {
|
|
190
189
|
return null
|
|
191
190
|
}
|
|
192
191
|
const moduleFlag = item.floorExtInfo.moduleFlag
|
|
193
192
|
if (!moduleFlag) {
|
|
194
193
|
const newModuleFlag = moduleId2ModuleFlag(item.moduleId)
|
|
195
194
|
if (newModuleFlag) {
|
|
196
195
|
item.floorExtInfo.moduleFlag = newModuleFlag
|
|
197
196
|
}
|
|
198
197
|
}
|
|
199
198
|
})
|
|
199
|
+
import React from 'react'
|
|
200
200
|
const { floorData, renderSourceType, builtInComponents = {} } = props
|
|
201
201
|
const isDevMode = renderSourceType === BUSINESS_TYPE.DECORATE
|
|
202
202
|
const floorModuleType: any = floorData?.floorExtInfo?.moduleFlag
|
|
203
203
|
const FloorContentItem =
|
|
204
204
|
(floorModuleType && builtInComponents[floorModuleType]) || null
|
|
205
205
|
const dataDefines = getFloorDataToDataDefines(floorData)
|
|
206
206
|
|
|
207
207
|
const renderDecorateDefaultModule = () => {
|
|
208
208
|
return (
|
|
209
209
|
<View
|
|
210
210
|
style={{
|
|
211
211
|
lineHeight: '120px',
|
|
212
212
|
textAlign: 'center',
|
|
213
213
|
}}
|
|
214
214
|
>
|
|
215
215
|
当前模块是{floorData.moduleName}
|
|
216
216
|
</View>
|
|
217
217
|
)
|
|
218
218
|
}
|
|
219
219
|
if (floorModuleType && RemoteLoadFloorList.includes(floorModuleType)) {
|
|
220
220
|
return (
|
|
221
221
|
<RemoteFloorItem {...props} dataDefines={dataDefines}></RemoteFloorItem>
|
|
222
222
|
)
|
|
223
223
|
} else {
|
|
224
224
|
return FloorContentItem ? (
|
|
225
225
|
<ErrorBoundary {...props}>
|
|
226
226
|
<FloorContentItem {...props} dataDefines={dataDefines} />
|
|
227
227
|
</ErrorBoundary>
|
|
228
228
|
) : isDevMode ? (
|
|
229
229
|
renderDecorateDefaultModule()
|
|
230
230
|
) : null
|
|
231
231
|
}
|
|
232
232
|
renderSourceType: BUSINESS_TYPE.ONLINE,
|
|
233
233
|
switch (moduleId) {
|
|
234
234
|
case 83158:
|
|
235
235
|
return 'freeLayout'
|
|
236
236
|
case 99654:
|
|
237
237
|
return 'activeText'
|
|
238
238
|
case 100382:
|
|
239
239
|
return 'superGoods'
|
|
240
240
|
}
|
|
241
241
|
floorList.map((item) => {
|
|
242
242
|
if (!item.floorExtInfo) {
|
|
243
243
|
return null
|
|
244
244
|
}
|
|
245
245
|
const moduleFlag = item.floorExtInfo.moduleFlag
|
|
246
246
|
if (!moduleFlag) {
|
|
247
247
|
const newModuleFlag = moduleId2ModuleFlag(item.moduleId)
|
|
248
248
|
if (newModuleFlag) {
|
|
249
249
|
item.floorExtInfo.moduleFlag = newModuleFlag
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
252
|
})
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import React, { Suspense, lazy } from 'react'
|
|
2
|
const { floorData, renderSourceType, updateContainerFloorListDataFn } = props
|
|
1
3
|
const dataDefines = getFloorDataToDataDefines(floorData)
|
|
2
4
|
|
|
3
5
|
const getFloorSetHeight = (item) => {
|
|
4
6
|
const getHeight = item?.floorExtInfo?.floorHeight
|
|
5
7
|
? Number(item?.floorExtInfo?.floorHeight)
|
|
6
8
|
: 200
|
|
7
9
|
return getHeight > 0 ? getHeight : 200
|
|
8
10
|
}
|
|
9
11
|
console.log(
|
|
10
12
|
'>>>>>>>>>> floorModuleType === FloorModuleType.ISVDESIGNERH5MODULE >>>>>>>>>>',
|
|
11
13
|
)
|
|
12
14
|
const renderResult = (() => {
|
|
13
15
|
try {
|
|
14
16
|
console.log('>>>>>>>>>> 开始渲染1个isv模块 >>>>>>>>>>')
|
|
15
17
|
console.log(
|
|
16
18
|
'==========当前业务类型renderSourceType、楼层floorId: ',
|
|
17
19
|
renderSourceType,
|
|
18
20
|
floorData.uid,
|
|
19
21
|
)
|
|
20
22
|
const modularPackResult = floorData?.floorExtInfo?.modularPackResult
|
|
21
23
|
const modularPackResultObj =
|
|
22
24
|
typeof modularPackResult === 'string'
|
|
23
25
|
? JSON.parse(modularPackResult)
|
|
24
26
|
: modularPackResult
|
|
25
27
|
const opt = {
|
|
26
28
|
msg: `店铺首页isv h5楼层隐藏不显示。原因:modularPackResult数据不完备。页面类型-buildType: ${buildType}。楼层顺序-floorIdx: ${floorData?.floorIdx}`,
|
|
27
29
|
buildType,
|
|
28
30
|
uid: floorData?.uid,
|
|
29
31
|
floorIdx: floorData?.floorIdx,
|
|
30
32
|
shopId: floorData?.floorExtInfo?.shopId,
|
|
31
33
|
moduleId: floorData?.moduleId,
|
|
32
34
|
moduleName: floorData?.moduleName,
|
|
33
35
|
middleTemplateId: floorData?.middleTemplateId,
|
|
34
36
|
modularPackResult: modularPackResult,
|
|
35
37
|
}
|
|
36
38
|
if (modularPackResultObj) {
|
|
37
39
|
const { bundleUrl, bundleFileName } = modularPackResultObj
|
|
38
40
|
if (bundleUrl && bundleFileName) {
|
|
39
41
|
let ISVModule =
|
|
40
42
|
taroJdBaseInfo?.renderedIsvComponents[
|
|
41
43
|
`${floorData.uid}_${bundleFileName}`
|
|
42
44
|
] || null
|
|
43
45
|
if (!ISVModule) {
|
|
44
46
|
ISVModule = lazy(
|
|
45
47
|
() => import(bundleFileName + '@@@@@@' + bundleUrl),
|
|
46
48
|
)
|
|
47
49
|
console.log(
|
|
48
50
|
'1|加载isv模块==========走lazy import生成新的isv模块react组件',
|
|
49
51
|
bundleFileName,
|
|
50
52
|
)
|
|
51
53
|
taroJdBaseInfo.renderedIsvComponents[
|
|
52
54
|
`${floorData.uid}_${bundleFileName}`
|
|
53
55
|
] = ISVModule
|
|
54
56
|
console.log(
|
|
55
57
|
'2|渲染isv模块的react组件==========,window.taroJshopH5WebpackJsonp上的组件是否已就绪: ',
|
|
56
58
|
bundleFileName,
|
|
57
59
|
window['taroJshopH5WebpackJsonp'].find(
|
|
58
60
|
(item) => item[0][0] == bundleFileName,
|
|
59
61
|
),
|
|
60
62
|
)
|
|
61
63
|
} else {
|
|
62
64
|
console.log(
|
|
63
65
|
'1|加载isv模块==========不走lazy import生成新的isv模块react组件,从已加载中获取,taroJdBaseInfo: ',
|
|
64
66
|
taroJdBaseInfo,
|
|
65
67
|
)
|
|
66
68
|
console.log(
|
|
67
69
|
'2|渲染isv模块的react组件==========,taroJdBaseInfo.renderedIsvComponents上的组件是否已就绪: ',
|
|
68
70
|
taroJdBaseInfo.renderedIsvComponents[
|
|
69
71
|
`${floorData.uid}_${bundleFileName}`
|
|
70
72
|
],
|
|
71
73
|
)
|
|
72
74
|
}
|
|
73
75
|
const _floorHeight = getFloorSetHeight(floorData)
|
|
74
76
|
return (
|
|
75
77
|
<ErrorBoundary {...props}>
|
|
76
78
|
<Suspense
|
|
77
79
|
fallback={
|
|
78
80
|
<View
|
|
79
81
|
style={{
|
|
80
82
|
position: 'relative',
|
|
81
83
|
background: `#ffffff url('${JD_PLACEHOLDER_IMG}') center center no-repeat`,
|
|
82
84
|
height: `${_floorHeight}px`,
|
|
83
85
|
}}
|
|
84
86
|
></View>
|
|
85
87
|
}
|
|
86
88
|
>
|
|
87
89
|
<ISVFloor {...props} dataDefines={dataDefines}>
|
|
88
90
|
<ISVModule {...props} dataDefines={dataDefines}></ISVModule>
|
|
89
91
|
</ISVFloor>
|
|
90
92
|
</Suspense>
|
|
91
93
|
</ErrorBoundary>
|
|
92
94
|
)
|
|
93
95
|
} else {
|
|
94
96
|
console.log(
|
|
95
97
|
'3|isv模块渲染异常,modularPackResult中缺少bundleUrl或bundleFileName==========modularPackResult: ',
|
|
96
98
|
modularPackResultObj,
|
|
97
99
|
)
|
|
98
100
|
sgmCustomReport({
|
|
99
101
|
code: 'isvModuleError',
|
|
100
102
|
msg: opt,
|
|
101
103
|
})
|
|
102
104
|
return null
|
|
103
105
|
}
|
|
104
106
|
} else {
|
|
105
107
|
console.log(
|
|
106
108
|
'3|isv模块渲染异常,缺少modularPackResult==========modularPackResult: ',
|
|
107
109
|
modularPackResultObj,
|
|
108
110
|
)
|
|
109
111
|
sgmCustomReport({
|
|
110
112
|
code: 'isvModuleError',
|
|
111
113
|
msg: opt,
|
|
112
114
|
})
|
|
113
115
|
return null
|
|
114
116
|
}
|
|
115
117
|
} catch (err) {
|
|
116
118
|
console.log('3|isv模块渲染异常,floorItem逻辑错误==========err: ', err)
|
|
117
119
|
sgmCustomReport({
|
|
118
120
|
code: 'isvModuleError',
|
|
119
121
|
msg: {
|
|
120
122
|
msg: 'remoteFloorItem try catch 异常',
|
|
121
123
|
err
|
|
122
124
|
},
|
|
123
125
|
})
|
|
124
126
|
return null
|
|
125
127
|
}
|
|
126
128
|
})()
|
|
127
129
|
if (renderResult === null) {
|
|
128
130
|
updateContainerFloorListDataFn &&
|
|
129
131
|
updateContainerFloorListDataFn({
|
|
130
132
|
type: 'filter',
|
|
131
133
|
containerId: floorData?.uid,
|
|
132
134
|
})
|
|
133
135
|
console.log('renderResult === null: 命中了!')
|
|
134
136
|
taroEventSendPageScrollInfo()
|
|
135
137
|
} else {
|
|
136
138
|
console.log('renderResult !== null: 没命中', renderResult)
|
|
137
139
|
}
|
|
138
140
|
return renderResult
|
package/dist/interface/common.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import Taro from '@tarojs/taro'
|
|
1
|
+
import Taro from '@tarojs/taro'
|