@conecli/cone-render 0.10.1-shop3.3 → 0.10.1-shop3.5
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/api/index.ts +1 -1
- package/dist/common/const.ts +1 -1
- package/dist/components/base/CustomScrollView/index.tsx +1 -1
- package/dist/components/base/ExposureSmart/index.h5.module.scss +12 -2
- package/dist/components/base/ExposureSmart/index.h5.tsx +1 -1
- package/dist/components/base/ExposureSmart/reporter.tsx +1 -1
- package/dist/components/base/ItemViewExposureSmart/index.module.scss +2 -2
- package/dist/components/base/ItemViewExposureSmart/index.tsx +1 -1
- package/dist/interface/jumpEventReport.ts +1 -1
- package/dist/interface/service.ts +1 -1
- package/dist/jumpEventReport/base.ts +1 -1
- package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
- package/dist/jumpEventReport/jumpUrlConfig/base.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/modules/ContainerFloorList/index.h5.module.scss +3 -0
- package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
- package/dist/open/api/util.ts +1 -1
- package/dist/service/http/colorSign.ts +1 -1
- package/dist/service/http/const.ts +1 -1
- package/dist/service/requestServer.h5.ts +1 -1
- package/dist/service/requestServer.ts +1 -1
- package/dist/utils/connectNativeJsBridge.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/sColor.js +1 -0
- package/dist/utils/utils.ts +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
1
|
NETWORK_DATA_TYPE,
|
|
3
2
|
M_SHOP_DOWNLOAD_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT,
|
|
4
3
|
APP_SHOP_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT,
|
|
5
4
|
containerFloorListData: ComponentInterFace.ContainerItemData[]
|
|
6
5
|
className?: string
|
|
7
6
|
containerItemClass?: object
|
|
8
7
|
style?: object
|
|
9
8
|
hasGoodsFeeds?: boolean
|
|
10
9
|
builtInComponents?: Object
|
|
11
10
|
loadingEndComponentFn?: Function
|
|
12
11
|
sectionType?: string
|
|
13
12
|
updateShopFloorDataFn?: Function
|
|
14
13
|
updateContainerFloorListDataFn?: Function
|
|
15
14
|
refreshFloorListDataFn?: Function
|
|
16
15
|
refreshFloorListDataBtnLabel?: string
|
|
17
16
|
customErrorIsvFloorModule?: React.ReactElement
|
|
18
17
|
componentExtend?: React.ReactElement
|
|
19
18
|
luxuryFixedIndex?: number
|
|
20
19
|
const { windowHeight } = taroJdBaseInfo.info.sysInfo
|
|
21
20
|
const {
|
|
22
21
|
className,
|
|
23
22
|
style,
|
|
24
23
|
containerItemClass = null,
|
|
25
24
|
containerFloorListData,
|
|
26
25
|
builtInComponents,
|
|
27
26
|
loadingEndComponentFn,
|
|
28
27
|
sectionType,
|
|
29
28
|
updateShopFloorDataFn,
|
|
30
29
|
updateContainerFloorListDataFn,
|
|
31
30
|
refreshFloorListDataFn,
|
|
32
31
|
refreshFloorListDataBtnLabel,
|
|
33
32
|
customErrorIsvFloorModule,
|
|
34
33
|
luxuryFixedIndex = -1,
|
|
35
34
|
} = props
|
|
36
35
|
|
|
37
36
|
const renderFloorItem = (
|
|
38
37
|
item,
|
|
39
38
|
floorItem,
|
|
40
39
|
floorIndex,
|
|
41
40
|
containerLayoutLeftRightMargin,
|
|
42
41
|
lazyLoadState = false,
|
|
43
42
|
index,
|
|
44
43
|
borderStyle,
|
|
45
44
|
) => {
|
|
46
45
|
return (
|
|
47
46
|
<View
|
|
48
47
|
className={classNames(shopContainerListStyle['d-floor-item'])}
|
|
49
48
|
data-floor-uid={floorItem?.uid}
|
|
50
49
|
data-floor-type={floorItem?.floorExtInfo?.moduleFlag || ''}
|
|
51
50
|
data-lazy-load={lazyLoadState}
|
|
52
51
|
key={floorItem.uid}
|
|
53
52
|
id={`J_floor_${floorItem.uid}`}
|
|
54
53
|
style={borderStyle}
|
|
55
54
|
>
|
|
56
55
|
{isChartH5 && (
|
|
57
56
|
<View
|
|
58
57
|
className={shopContainerListStyle['d-floor-chart-item']}
|
|
59
58
|
id={`J_chart_floor_${floorItem?.uid}`}
|
|
60
59
|
data-floor-uid={floorItem?.uid}
|
|
61
60
|
data-floor-type={floorItem?.floorExtInfo?.moduleFlag || ''}
|
|
62
61
|
/>
|
|
63
62
|
)}
|
|
64
63
|
<FloorListItem
|
|
65
64
|
floorIndex={floorIndex}
|
|
66
65
|
floorData={floorItem}
|
|
67
66
|
layoutLeftRightMargin={containerLayoutLeftRightMargin}
|
|
68
67
|
containerBorderRadius={borderStyle}
|
|
69
68
|
updateShopFloorDataFn={updateShopFloorDataFn}
|
|
70
69
|
loadingEndComponentFn={loadingEndComponentFn}
|
|
71
70
|
key={floorItem.uid}
|
|
72
71
|
builtInComponents={builtInComponents}
|
|
73
72
|
updateContainerFloorListDataFn={updateContainerFloorListDataFn}
|
|
74
73
|
customErrorIsvFloorModule={customErrorIsvFloorModule}
|
|
75
74
|
/>
|
|
76
75
|
{index === luxuryFixedIndex ? props.children : null}
|
|
77
76
|
</View>
|
|
78
77
|
)
|
|
79
78
|
}
|
|
80
79
|
|
|
81
80
|
const getFloorSetHeight = (item) => {
|
|
82
81
|
const getHeight = item?.floorExtInfo?.floorHeight
|
|
83
82
|
? Number(item?.floorExtInfo?.floorHeight)
|
|
84
83
|
: 200
|
|
85
84
|
return getHeight > 0 ? getHeight : 200
|
|
86
85
|
}
|
|
87
86
|
const containerFloorListDataLen = containerFloorListData.length
|
|
88
87
|
return (
|
|
89
88
|
<View
|
|
90
89
|
className={classNames(
|
|
91
90
|
className,
|
|
92
91
|
shopContainerListStyle['d-shop-container-list'],
|
|
93
92
|
)}
|
|
94
93
|
style={style}
|
|
95
94
|
>
|
|
96
95
|
<View id="J_shopContainerFloorList">
|
|
97
96
|
{containerFloorListDataLen > 0 ? (
|
|
98
97
|
containerFloorListData.map((item, index) => {
|
|
99
98
|
const containerLayoutLeftRightMargin =
|
|
100
99
|
(item.marginLeft || 0) + (item.marginRight || 0)
|
|
101
100
|
const getContainerId = `J_container_${item.containerId}`
|
|
102
101
|
const borderStyle = getBorderStyle(
|
|
103
102
|
item,
|
|
104
103
|
index,
|
|
105
104
|
containerFloorListData,
|
|
106
105
|
containerFloorListDataLen,
|
|
107
106
|
)
|
|
108
107
|
if (index === containerFloorListDataLen - 1) item.marginBottom = 8
|
|
109
108
|
return (
|
|
110
109
|
<React.Fragment key={item.containerId + index}>
|
|
111
110
|
{item.addLuxuryStyle ? (
|
|
112
111
|
<View className={shopContainerListStyle['d-luxury-header']} />
|
|
113
112
|
) : null}
|
|
114
113
|
{item.addLuxuryBackupStyle ? (
|
|
115
114
|
<View
|
|
116
115
|
style={{
|
|
117
116
|
height:
|
|
118
117
|
taroJdBaseInfo?.info?.sysInfo?.jdNativeHeaderHeight +
|
|
119
118
|
'px',
|
|
120
119
|
}}
|
|
121
120
|
className={shopContainerListStyle['d-luxury-header-black']}
|
|
122
121
|
/>
|
|
123
122
|
) : null}
|
|
124
123
|
{typeof item?.renderExtendComponent === 'function'
|
|
125
124
|
? item?.renderExtendComponent(item?.floorExtendData)
|
|
126
125
|
: null}
|
|
127
126
|
<View
|
|
128
127
|
className={classNames(
|
|
129
128
|
shopContainerListStyle['d-container-item'],
|
|
130
129
|
containerItemClass,
|
|
131
130
|
)}
|
|
132
131
|
id={getContainerId}
|
|
133
132
|
key={item.containerId}
|
|
134
133
|
data-container-id={item?.containerId}
|
|
135
134
|
data-container-type={item?.typeCode}
|
|
136
135
|
style={{
|
|
137
136
|
marginBottom: item.marginBottom
|
|
138
137
|
? `${item.marginBottom}px`
|
|
139
138
|
: 0,
|
|
140
139
|
marginTop: item.marginTop ? `${item.marginTop}px` : 0,
|
|
141
140
|
marginLeft: item.marginLeft ? `${item.marginLeft}px` : 0,
|
|
142
141
|
marginRight: item.marginRight ? `${item.marginRight}px` : 0,
|
|
143
142
|
borderTopLeftRadius:
|
|
144
143
|
borderStyle?.borderTopLeftRadius || `0px`,
|
|
145
144
|
borderTopRightRadius:
|
|
146
145
|
borderStyle?.borderTopRightRadiu || `0px`,
|
|
147
146
|
borderBottomLeftRadius:
|
|
148
147
|
borderStyle?.borderBottomLeftRadius || `0px`,
|
|
149
148
|
borderBottomRightRadius:
|
|
150
149
|
borderStyle?.borderBottomRightRadius || `0px`,
|
|
151
150
|
}}
|
|
152
151
|
>
|
|
153
152
|
{typeof item?.insertContainerStartComponent === 'function'
|
|
154
153
|
? item?.insertContainerStartComponent(item)
|
|
155
154
|
: null}
|
|
156
155
|
{item.floors &&
|
|
157
156
|
item.floors.length > 0 &&
|
|
158
157
|
item.floors?.map((floorItem, floorIndex) => {
|
|
159
158
|
return index > lazyLoadStartIndex ? (
|
|
160
159
|
<LazyLayoutLoad
|
|
161
160
|
key={item.containerId}
|
|
162
161
|
sectionType={sectionType}
|
|
163
162
|
containerId={getContainerId}
|
|
164
163
|
height={getFloorSetHeight(floorItem)}
|
|
165
164
|
floorData={floorItem}
|
|
166
165
|
>
|
|
167
166
|
{renderFloorItem(
|
|
168
167
|
item,
|
|
169
168
|
floorItem,
|
|
170
169
|
floorIndex,
|
|
171
170
|
containerLayoutLeftRightMargin,
|
|
172
171
|
true,
|
|
173
172
|
index,
|
|
174
173
|
borderStyle,
|
|
175
174
|
)}
|
|
176
175
|
</LazyLayoutLoad>
|
|
177
176
|
) : (
|
|
178
177
|
renderFloorItem(
|
|
179
178
|
item,
|
|
180
179
|
floorItem,
|
|
181
180
|
floorIndex,
|
|
182
181
|
containerLayoutLeftRightMargin,
|
|
183
182
|
false,
|
|
184
183
|
index,
|
|
185
184
|
borderStyle,
|
|
186
185
|
)
|
|
187
186
|
)
|
|
188
187
|
})}
|
|
189
188
|
</View>
|
|
190
189
|
</React.Fragment>
|
|
191
190
|
)
|
|
192
191
|
})
|
|
193
192
|
) : (
|
|
194
193
|
<View
|
|
195
194
|
className={shopContainerListStyle['d-container-list-no-data']}
|
|
196
195
|
style={{
|
|
197
196
|
height: `${
|
|
198
197
|
windowHeight -
|
|
199
198
|
(isJdApp
|
|
200
199
|
? APP_SHOP_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT
|
|
201
200
|
: M_SHOP_DOWNLOAD_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT)
|
|
202
201
|
}px`,
|
|
203
202
|
}}
|
|
204
203
|
>
|
|
205
204
|
<NetworkDataError
|
|
206
205
|
netWorkShowType={NetWorkShowType.PART}
|
|
207
206
|
netWorkDataType={NETWORK_DATA_TYPE.DATA_ERROR}
|
|
208
207
|
refreshCallBackFn={
|
|
209
208
|
refreshFloorListDataFn ? refreshFloorListDataFn : null
|
|
210
209
|
}
|
|
211
210
|
btnLabel={refreshFloorListDataBtnLabel || ''}
|
|
212
211
|
/>
|
|
213
212
|
</View>
|
|
214
213
|
)}
|
|
215
214
|
</View>
|
|
216
215
|
</View>
|
|
217
216
|
)
|
|
217
|
+
import React from 'react';
|
|
218
218
|
NETWORK_DATA_TYPE,
|
|
219
219
|
M_SHOP_DOWNLOAD_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT,
|
|
220
220
|
APP_SHOP_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT,
|
|
221
221
|
containerFloorListData: ComponentInterFace.ContainerItemData[];
|
|
222
222
|
className?: string;
|
|
223
223
|
containerItemClass?: object;
|
|
224
224
|
style?: object;
|
|
225
225
|
hasGoodsFeeds?: boolean;
|
|
226
226
|
builtInComponents?: object;
|
|
227
227
|
loadingEndComponentFn?: functionType;
|
|
228
228
|
sectionType?: string;
|
|
229
229
|
updateShopFloorDataFn?: functionType;
|
|
230
230
|
updateContainerFloorListDataFn?: functionType;
|
|
231
231
|
refreshFloorListDataFn?: functionType;
|
|
232
232
|
refreshFloorListDataBtnLabel?: string;
|
|
233
233
|
customErrorIsvFloorModule?: React.ReactElement;
|
|
234
234
|
componentExtend?: React.ReactElement;
|
|
235
235
|
luxuryFixedIndex?: number;
|
|
236
236
|
const { windowHeight } = taroJdBaseInfo.info.sysInfo;
|
|
237
237
|
const {
|
|
238
238
|
className,
|
|
239
239
|
style,
|
|
240
240
|
containerItemClass = null,
|
|
241
241
|
containerFloorListData,
|
|
242
242
|
builtInComponents,
|
|
243
243
|
loadingEndComponentFn,
|
|
244
244
|
sectionType,
|
|
245
245
|
updateShopFloorDataFn,
|
|
246
246
|
updateContainerFloorListDataFn,
|
|
247
247
|
refreshFloorListDataFn,
|
|
248
248
|
refreshFloorListDataBtnLabel,
|
|
249
249
|
customErrorIsvFloorModule,
|
|
250
250
|
luxuryFixedIndex = -1,
|
|
251
251
|
} = props;
|
|
252
252
|
const isSageShop = taroJdBaseInfo.info?.pageInfo?.isSageShop
|
|
253
253
|
|
|
254
254
|
const hasLiveForSageShop =
|
|
255
255
|
isSageShop &&
|
|
256
256
|
taroJdBaseInfo.info?.pageInfo?.isJdShowNativeImmersivePlayer;
|
|
257
257
|
|
|
258
258
|
const renderFloorItem = (
|
|
259
259
|
item,
|
|
260
260
|
floorItem,
|
|
261
261
|
floorIndex,
|
|
262
262
|
containerLayoutLeftRightMargin,
|
|
263
263
|
lazyLoadState = false,
|
|
264
264
|
index,
|
|
265
265
|
borderStyle,
|
|
266
266
|
) => {
|
|
267
267
|
return (
|
|
268
268
|
<View
|
|
269
269
|
className={classNames(shopContainerListStyle['d-floor-item'])}
|
|
270
270
|
data-floor-uid={floorItem?.uid}
|
|
271
271
|
data-floor-type={floorItem?.floorExtInfo?.moduleFlag || ''}
|
|
272
272
|
data-lazy-load={lazyLoadState}
|
|
273
273
|
key={floorItem.uid}
|
|
274
274
|
id={`J_floor_${floorItem.uid}`}
|
|
275
275
|
style={borderStyle}
|
|
276
276
|
>
|
|
277
277
|
{isChartH5 && (
|
|
278
278
|
<View
|
|
279
279
|
className={shopContainerListStyle['d-floor-chart-item']}
|
|
280
280
|
id={`J_chart_floor_${floorItem?.uid}`}
|
|
281
281
|
data-floor-uid={floorItem?.uid}
|
|
282
282
|
data-floor-type={floorItem?.floorExtInfo?.moduleFlag || ''}
|
|
283
283
|
/>
|
|
284
284
|
)}
|
|
285
285
|
<FloorListItem
|
|
286
286
|
floorIndex={floorIndex}
|
|
287
287
|
floorData={floorItem}
|
|
288
288
|
layoutLeftRightMargin={containerLayoutLeftRightMargin}
|
|
289
289
|
containerBorderRadius={borderStyle}
|
|
290
290
|
updateShopFloorDataFn={updateShopFloorDataFn}
|
|
291
291
|
loadingEndComponentFn={loadingEndComponentFn}
|
|
292
292
|
key={floorItem.uid}
|
|
293
293
|
builtInComponents={builtInComponents}
|
|
294
294
|
updateContainerFloorListDataFn={updateContainerFloorListDataFn}
|
|
295
295
|
customErrorIsvFloorModule={customErrorIsvFloorModule}
|
|
296
296
|
/>
|
|
297
297
|
{index === luxuryFixedIndex ? props.children : null}
|
|
298
298
|
</View>
|
|
299
299
|
);
|
|
300
300
|
};
|
|
301
301
|
|
|
302
302
|
const getFloorSetHeight = (item) => {
|
|
303
303
|
const getHeight = item?.floorExtInfo?.floorHeight
|
|
304
304
|
? Number(item?.floorExtInfo?.floorHeight)
|
|
305
305
|
: 200;
|
|
306
306
|
return getHeight > 0 ? getHeight : 200;
|
|
307
307
|
};
|
|
308
308
|
const containerFloorListDataLen = containerFloorListData.length;
|
|
309
309
|
|
|
310
310
|
const getNoDataContainerHeight = () => {
|
|
311
311
|
const changeHeight = hasLiveForSageShop
|
|
312
312
|
? windowHeight
|
|
313
313
|
: windowHeight -
|
|
314
314
|
(isJdApp
|
|
315
315
|
? APP_SHOP_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT
|
|
316
316
|
: M_SHOP_DOWNLOAD_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT);
|
|
317
317
|
return {
|
|
318
318
|
height: `${changeHeight}px`,
|
|
319
319
|
};
|
|
320
320
|
};
|
|
321
321
|
return (
|
|
322
322
|
<View
|
|
323
323
|
className={classNames(className, shopContainerListStyle['d-shop-container-list'])}
|
|
324
324
|
style={style}
|
|
325
325
|
>
|
|
326
326
|
<View id="J_shopContainerFloorList">
|
|
327
327
|
{containerFloorListDataLen > 0 ? (
|
|
328
328
|
containerFloorListData.map((item, index) => {
|
|
329
329
|
const containerLayoutLeftRightMargin = (item.marginLeft || 0) + (item.marginRight || 0);
|
|
330
330
|
const getContainerId = `J_container_${item.containerId}`;
|
|
331
331
|
const borderStyle = getBorderStyle(
|
|
332
332
|
item,
|
|
333
333
|
index,
|
|
334
334
|
containerFloorListData,
|
|
335
335
|
containerFloorListDataLen,
|
|
336
336
|
);
|
|
337
337
|
if (!isSageShop && index === containerFloorListDataLen - 1) item.marginBottom = 8;
|
|
338
338
|
return (
|
|
339
339
|
<React.Fragment key={item.containerId + index}>
|
|
340
340
|
{item.addLuxuryStyle ? (
|
|
341
341
|
<View className={shopContainerListStyle['d-luxury-header']} />
|
|
342
342
|
) : null}
|
|
343
343
|
{item.addLuxuryBackupStyle ? (
|
|
344
344
|
<View
|
|
345
345
|
style={{
|
|
346
346
|
height: taroJdBaseInfo?.info?.sysInfo?.jdNativeHeaderHeight + 'px',
|
|
347
347
|
}}
|
|
348
348
|
className={shopContainerListStyle['d-luxury-header-black']}
|
|
349
349
|
/>
|
|
350
350
|
) : null}
|
|
351
351
|
{typeof item?.renderExtendComponent === 'function'
|
|
352
352
|
? item?.renderExtendComponent(item?.floorExtendData)
|
|
353
353
|
: null}
|
|
354
354
|
<View
|
|
355
355
|
className={classNames(
|
|
356
356
|
shopContainerListStyle['d-container-item'],
|
|
357
357
|
containerItemClass,
|
|
358
358
|
)}
|
|
359
359
|
id={getContainerId}
|
|
360
360
|
key={item.containerId}
|
|
361
361
|
data-container-id={item?.containerId}
|
|
362
362
|
data-container-type={item?.typeCode}
|
|
363
363
|
style={{
|
|
364
364
|
marginBottom: item.marginBottom ? `${item.marginBottom}px` : 0,
|
|
365
365
|
marginTop: item.marginTop ? `${item.marginTop}px` : 0,
|
|
366
366
|
marginLeft: item.marginLeft ? `${item.marginLeft}px` : 0,
|
|
367
367
|
marginRight: item.marginRight ? `${item.marginRight}px` : 0,
|
|
368
368
|
borderTopLeftRadius: borderStyle?.borderTopLeftRadius || `0px`,
|
|
369
369
|
borderTopRightRadius: borderStyle?.borderTopRightRadiu || `0px`,
|
|
370
370
|
borderBottomLeftRadius: borderStyle?.borderBottomLeftRadius || `0px`,
|
|
371
371
|
borderBottomRightRadius: borderStyle?.borderBottomRightRadius || `0px`,
|
|
372
372
|
}}
|
|
373
373
|
>
|
|
374
374
|
{typeof item?.insertContainerStartComponent === 'function'
|
|
375
375
|
? item?.insertContainerStartComponent(item)
|
|
376
376
|
: null}
|
|
377
377
|
{item.floors &&
|
|
378
378
|
item.floors.length > 0 &&
|
|
379
379
|
item.floors?.map((floorItem, floorIndex) => {
|
|
380
380
|
return index > lazyLoadStartIndex ? (
|
|
381
381
|
<LazyLayoutLoad
|
|
382
382
|
key={item.containerId}
|
|
383
383
|
sectionType={sectionType}
|
|
384
384
|
containerId={getContainerId}
|
|
385
385
|
height={getFloorSetHeight(floorItem)}
|
|
386
386
|
floorData={floorItem}
|
|
387
387
|
>
|
|
388
388
|
{renderFloorItem(
|
|
389
389
|
item,
|
|
390
390
|
floorItem,
|
|
391
391
|
floorIndex,
|
|
392
392
|
containerLayoutLeftRightMargin,
|
|
393
393
|
true,
|
|
394
394
|
index,
|
|
395
395
|
borderStyle,
|
|
396
396
|
)}
|
|
397
397
|
</LazyLayoutLoad>
|
|
398
398
|
) : (
|
|
399
399
|
renderFloorItem(
|
|
400
400
|
item,
|
|
401
401
|
floorItem,
|
|
402
402
|
floorIndex,
|
|
403
403
|
containerLayoutLeftRightMargin,
|
|
404
404
|
false,
|
|
405
405
|
index,
|
|
406
406
|
borderStyle,
|
|
407
407
|
)
|
|
408
408
|
);
|
|
409
409
|
})}
|
|
410
410
|
</View>
|
|
411
411
|
</React.Fragment>
|
|
412
412
|
);
|
|
413
413
|
})
|
|
414
414
|
) : (
|
|
415
415
|
<View
|
|
416
416
|
className={classNames(shopContainerListStyle['d-container-list-no-data'], {
|
|
417
417
|
[shopContainerListStyle['d-sage-shop-no-data']]: hasLiveForSageShop,
|
|
418
418
|
})}
|
|
419
419
|
style={getNoDataContainerHeight()}
|
|
420
420
|
>
|
|
421
421
|
<NetworkDataError
|
|
422
422
|
netWorkShowType={NetWorkShowType.PART}
|
|
423
423
|
netWorkDataType={NETWORK_DATA_TYPE.DATA_ERROR}
|
|
424
424
|
backgroundColorWhite={hasLiveForSageShop}
|
|
425
425
|
refreshCallBackFn={refreshFloorListDataFn ? refreshFloorListDataFn : null}
|
|
426
426
|
btnLabel={refreshFloorListDataBtnLabel || ''}
|
|
427
427
|
/>
|
|
428
428
|
</View>
|
|
429
429
|
)}
|
|
430
430
|
</View>
|
|
431
431
|
</View>
|
|
432
432
|
);
|
|
433
433
|
updateShopDataFn: null,
|
package/dist/open/api/util.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import {
|
|
2
1
|
dateFormat,
|
|
3
2
|
showSuccessToast,
|
|
4
3
|
showFailToast,
|
|
5
4
|
showNormalToast,
|
|
6
5
|
isJdApp,
|
|
7
6
|
isH5AndJdShopView,
|
|
8
7
|
isH5,
|
|
9
8
|
isH5AndJdShopViewH5Scroll,
|
|
10
9
|
stopNativeScrollEvent,
|
|
11
10
|
pxTransformFromData,
|
|
12
11
|
remoteCustomReport,
|
|
13
12
|
isLanguageForEn,
|
|
14
13
|
dateFormat,
|
|
15
14
|
showSuccessToast,
|
|
16
15
|
showFailToast,
|
|
17
16
|
showNormalToast,
|
|
18
17
|
openDialog: openTaroEventDialog,
|
|
19
18
|
closeDialog: closeTaroEventDialog,
|
|
20
19
|
isJdApp,
|
|
21
20
|
isH5AndJdShopView,
|
|
22
21
|
isH5,
|
|
23
22
|
isH5AndJdShopViewH5Scroll,
|
|
24
23
|
stopNativeScrollEvent,
|
|
25
24
|
pxTransformFromData,
|
|
26
25
|
remoteCustomReport,
|
|
27
26
|
isLanguageForEn,
|
|
27
|
+
import {
|
|
28
28
|
dateFormat,
|
|
29
29
|
showSuccessToast,
|
|
30
30
|
showFailToast,
|
|
31
31
|
showNormalToast,
|
|
32
32
|
isJdApp,
|
|
33
33
|
isH5AndJdShopView,
|
|
34
34
|
isH5,
|
|
35
35
|
isH5AndJdShopViewH5Scroll,
|
|
36
36
|
stopNativeScrollEvent,
|
|
37
37
|
pxTransformFromData,
|
|
38
38
|
remoteCustomReport,
|
|
39
39
|
isLanguageForEn,
|
|
40
40
|
lodashThrottle,
|
|
41
41
|
dateFormat,
|
|
42
42
|
showSuccessToast,
|
|
43
43
|
showFailToast,
|
|
44
44
|
showNormalToast,
|
|
45
45
|
openDialog: openTaroEventDialog,
|
|
46
46
|
closeDialog: closeTaroEventDialog,
|
|
47
47
|
isJdApp,
|
|
48
48
|
isH5AndJdShopView,
|
|
49
49
|
isH5,
|
|
50
50
|
isH5AndJdShopViewH5Scroll,
|
|
51
51
|
stopNativeScrollEvent,
|
|
52
52
|
pxTransformFromData,
|
|
53
53
|
remoteCustomReport,
|
|
54
54
|
isLanguageForEn,
|
|
55
55
|
lodashThrottle,
|