@conecli/cone-render 0.10.1-isv2.1 → 0.10.1-isv2.4
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/common/environmentType.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/common/jssdk.ts +1 -1
- package/dist/common/pageType.ts +1 -1
- package/dist/common/sgmCustomCode.ts +1 -1
- package/dist/common/token/index.h5.ts +1 -1
- package/dist/common/token/token.jd.ts +1 -1
- package/dist/common/wxappApi.ts +1 -1
- package/dist/components/ErrorBoundary.tsx +1 -1
- package/dist/components/base/CommonFloorHead/index.module.scss +126 -111
- package/dist/components/base/CommonFloorHead/index.tsx +1 -1
- package/dist/components/base/CountDown/index.module.scss +49 -44
- package/dist/components/base/CountDown/index.tsx +1 -1
- package/dist/components/base/CustomScrollView/index-back.tsx +1 -0
- package/dist/components/base/CustomScrollView/index.tsx +1 -1
- package/dist/components/base/CustomVideo/common.ts +1 -0
- package/dist/components/base/CustomVideo/index.tsx +1 -1
- package/dist/components/base/Dialog/index.module.scss +11 -0
- 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/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 +2 -2
- package/dist/components/base/ItemViewExposureSmart/index.tsx +1 -1
- package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
- package/dist/components/base/LazyLayoutLoad/index.weapp.tsx +1 -1
- package/dist/components/base/LazyLoadImage/index.h5.module.scss +11 -3
- package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
- package/dist/components/base/LazyLoadImage/index.tsx +1 -1
- package/dist/components/base/MobileCommonHeader/index.tsx +1 -1
- package/dist/components/base/NetworkDataError/index.module.scss +3 -0
- package/dist/components/base/NetworkDataError/index.tsx +1 -1
- package/dist/components/base/Price/Base/index.tsx +1 -1
- package/dist/components/base/Price/Double/index.module.scss +8 -0
- package/dist/components/base/Price/Double/index.tsx +1 -1
- package/dist/components/debug/DebugLayout/index.module.scss +2 -2
- package/dist/components/decorate/DecorateFloorModule/index.module.scss +11 -0
- package/dist/components/decorate/DecorateFloorModule/index.tsx +1 -1
- package/dist/components/decorate/EmptyFloorModule/index.tsx +1 -1
- package/dist/components/decorate/PlaceHolder/index.tsx +1 -1
- package/dist/components/floorItem.jd.tsx +1 -1
- package/dist/components/floorItem.tsx +1 -1
- package/dist/components/floorItem.weapp.tsx +1 -1
- package/dist/components/isv/Floor/index.tsx +1 -1
- package/dist/components/remoteFloorItem.tsx +1 -1
- package/dist/interface/common.ts +1 -1
- package/dist/interface/component.ts +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/const.ts +1 -1
- package/dist/jumpEventReport/index.jd.ts +1 -1
- package/dist/jumpEventReport/index.weapp.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/jumpEventReport/web.jdb.ts +1 -1
- package/dist/jumpEventReport/web.jdjch.ts +1 -1
- package/dist/jumpEventReport/web.jxwxapp.ts +1 -1
- package/dist/jumpEventReport/web.pc.ts +1 -1
- package/dist/jumpEventReport/web.tjapp.ts +1 -1
- package/dist/jumpEventReport/web.tjm.ts +1 -1
- package/dist/jumpEventReport/web.wxapp.ts +1 -1
- package/dist/libs/taroAppReport.js +2 -2
- package/dist/modules/ContainerFloorList/index.h5.module.scss +66 -52
- 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/environment.ts +1 -1
- package/dist/open/api/request.ts +1 -1
- package/dist/open/api/shopMember.ts +1 -1
- package/dist/open/api/util.ts +1 -1
- package/dist/open/components/index.ts +1 -1
- package/dist/sass/app.h5.scss +275 -221
- package/dist/sass/base.scss +183 -137
- package/dist/service/fetchGateway.ts +1 -1
- package/dist/service/fetchGateway.weapp.ts +1 -0
- package/dist/service/http/colorSign.ts +1 -1
- package/dist/service/http/const.ts +1 -1
- package/dist/service/http/h5Http.ts +1 -0
- package/dist/service/http/index.h5.ts +1 -0
- package/dist/service/requestServer.h5.ts +1 -0
- package/dist/service/requestServer.ts +1 -1
- package/dist/service/requestServer.weapp.ts +1 -0
- 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/jumpExtMapUtil.h5.ts +1 -0
- package/dist/utils/jumpExtMapUtil.ts +1 -0
- package/dist/utils/log.ts +1 -0
- package/dist/utils/sColor.js +1 -0
- package/dist/utils/sgmCodeUtils.ts +1 -1
- package/dist/utils/taroRenderUtil.ts +1 -1
- package/dist/utils/utils.ts +1 -1
- package/dist/wxapp/common/address_api/address_api_v2.js +1 -0
- package/dist/wxapp/common/user_info.js +1 -1
- package/package.json +158 -135
- package/dist/utils/memberFormatUtils.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import { View, Text } from '@tarojs/components'
|
|
2
1
|
'//img11.360buyimg.com/imagetools/jfs/t1/141506/22/31698/7923/637b6db9E2af80265/10e76e2c31e0e356.png'
|
|
3
2
|
const {
|
|
4
3
|
moduleType,
|
|
5
4
|
configEmpty,
|
|
6
5
|
previewUri = null,
|
|
7
6
|
uid,
|
|
8
7
|
moduleFlag,
|
|
9
8
|
moduleName,
|
|
10
9
|
} = props.floorData
|
|
11
10
|
let previewUrl = previewUri
|
|
12
11
|
const newModuleFloorTypeList = [100, 101, 100000, 99999]
|
|
13
12
|
const isNewFloorState = newModuleFloorTypeList.includes(moduleType)
|
|
14
13
|
if ((moduleType == 99999 || moduleType == 101) && !previewUri) {
|
|
15
14
|
previewUrl = decorateModulePrevDefaultUrl
|
|
16
15
|
}
|
|
17
16
|
const loadImageErr = e => {
|
|
18
17
|
e.target.src = decorateModulePrevDefaultUrl
|
|
19
18
|
}
|
|
20
19
|
if (moduleFlag && TRUSTEESHIP_MODULE_FLAG_LIST.indexOf(moduleFlag) !== -1)
|
|
21
20
|
return null
|
|
22
21
|
return isNewFloorState && configEmpty && previewUrl ? (
|
|
23
22
|
<View
|
|
24
23
|
className={emptyModuleStyle['d-empty-module']}
|
|
25
24
|
data-floor-uid={uid}
|
|
26
25
|
data-floor-type={moduleFlag}
|
|
27
26
|
data-floor-modulename={moduleName}
|
|
28
27
|
>
|
|
29
28
|
{}
|
|
30
29
|
{}
|
|
31
30
|
{}
|
|
32
31
|
{}
|
|
33
32
|
{}
|
|
34
33
|
{}
|
|
35
34
|
{}
|
|
36
35
|
<View className={classNames(emptyModuleStyle['d-empty-img'])}>
|
|
37
36
|
<img
|
|
38
37
|
width={355}
|
|
39
38
|
className={classNames('J_floorEmptyDataImg')}
|
|
40
39
|
src={previewUrl}
|
|
41
40
|
onError={loadImageErr.bind(this)}
|
|
42
41
|
/>
|
|
43
42
|
</View>
|
|
44
43
|
</View>
|
|
45
44
|
) : (
|
|
46
45
|
<View
|
|
47
46
|
className={classNames(
|
|
48
47
|
emptyModuleStyle['d-empty-module'],
|
|
49
48
|
emptyModuleStyle['d-empty-text-warp'],
|
|
50
49
|
)}
|
|
51
50
|
data-floor-uid={uid}
|
|
52
51
|
data-floor-type={moduleFlag}
|
|
53
52
|
data-floor-modulename={moduleName}
|
|
54
53
|
>
|
|
55
54
|
<Text className={emptyModuleStyle['d-empty-text']}>
|
|
56
55
|
该楼层还未配置数据
|
|
57
56
|
</Text>
|
|
58
57
|
</View>
|
|
59
58
|
)
|
|
59
|
+
import { View, Text } from '@tarojs/components'
|
|
60
60
|
'//img11.360buyimg.com/imagetools/jfs/t1/141506/22/31698/7923/637b6db9E2af80265/10e76e2c31e0e356.png'
|
|
61
61
|
'//img14.360buyimg.com/imagetools/jfs/t1/247708/11/19310/58975/66ecefa4Fe36ade02/370c18c961aceef1.png'
|
|
62
62
|
const {
|
|
63
63
|
moduleType,
|
|
64
64
|
configEmpty,
|
|
65
65
|
previewUri = null,
|
|
66
66
|
uid,
|
|
67
67
|
moduleFlag,
|
|
68
68
|
moduleName,
|
|
69
69
|
} = props.floorData
|
|
70
70
|
const { luxuryFixed = false } = props
|
|
71
71
|
let previewUrl = previewUri
|
|
72
72
|
const newModuleFloorTypeList = [100, 101, 100000, 99999]
|
|
73
73
|
const isNewFloorState = newModuleFloorTypeList.includes(moduleType)
|
|
74
74
|
if ((moduleType == 99999 || moduleType == 101) && !previewUri) {
|
|
75
75
|
previewUrl = luxuryFixed ? luxuryDecorateModulePrevDefaultUrl : decorateModulePrevDefaultUrl
|
|
76
76
|
}
|
|
77
77
|
const loadImageErr = e => {
|
|
78
78
|
e.target.src = decorateModulePrevDefaultUrl
|
|
79
79
|
}
|
|
80
80
|
if (moduleFlag && TRUSTEESHIP_MODULE_FLAG_LIST.indexOf(moduleFlag) !== -1)
|
|
81
81
|
return null
|
|
82
82
|
return isNewFloorState && configEmpty && previewUrl ? (
|
|
83
83
|
<View
|
|
84
84
|
className={emptyModuleStyle['d-empty-module']}
|
|
85
85
|
data-floor-uid={uid}
|
|
86
86
|
data-floor-type={moduleFlag}
|
|
87
87
|
data-floor-modulename={moduleName}
|
|
88
88
|
>
|
|
89
89
|
{}
|
|
90
90
|
{}
|
|
91
91
|
{}
|
|
92
92
|
{}
|
|
93
93
|
{}
|
|
94
94
|
{}
|
|
95
95
|
{}
|
|
96
96
|
<View className={classNames(emptyModuleStyle['d-empty-img'])}>
|
|
97
97
|
<img
|
|
98
98
|
width={luxuryFixed ? 375 : 355}
|
|
99
99
|
className={classNames('J_floorEmptyDataImg')}
|
|
100
100
|
src={previewUrl}
|
|
101
101
|
onError={loadImageErr.bind(this)}
|
|
102
102
|
/>
|
|
103
103
|
</View>
|
|
104
104
|
</View>
|
|
105
105
|
) : (
|
|
106
106
|
<View
|
|
107
107
|
className={classNames(
|
|
108
108
|
emptyModuleStyle['d-empty-module'],
|
|
109
109
|
emptyModuleStyle['d-empty-text-warp'],
|
|
110
110
|
)}
|
|
111
111
|
data-floor-uid={uid}
|
|
112
112
|
data-floor-type={moduleFlag}
|
|
113
113
|
data-floor-modulename={moduleName}
|
|
114
114
|
>
|
|
115
115
|
<Text className={emptyModuleStyle['d-empty-text']}>
|
|
116
116
|
该楼层还未配置数据
|
|
117
117
|
</Text>
|
|
118
118
|
</View>
|
|
119
119
|
)
|
|
@@ -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
|
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 {
|
|
8
8
|
floorData,
|
|
9
9
|
renderSourceType = BUSINESS_TYPE.ONLINE,
|
|
10
10
|
builtInComponents = {},
|
|
11
11
|
updateContainerFloorListDataFn,
|
|
12
12
|
} = props
|
|
13
13
|
const isDevMode = renderSourceType === BUSINESS_TYPE.DECORATE
|
|
14
14
|
const floorModuleType = floorData?.floorExtInfo?.moduleFlag
|
|
15
15
|
const FloorContentItem =
|
|
16
16
|
(floorModuleType && builtInComponents[floorModuleType]) || null
|
|
17
17
|
const dataDefines = getFloorDataToDataDefines(floorData)
|
|
18
18
|
|
|
19
19
|
const renderDecorateDefaultModule = () => {
|
|
20
20
|
return (
|
|
21
21
|
<View
|
|
22
22
|
style={{
|
|
23
23
|
lineHeight: '120px',
|
|
24
24
|
textAlign: 'center',
|
|
25
25
|
}}
|
|
26
26
|
>
|
|
27
27
|
当前模块是{floorData.moduleName}
|
|
28
28
|
</View>
|
|
29
29
|
)
|
|
30
30
|
}
|
|
31
31
|
return FloorContentItem ? (
|
|
32
32
|
<FloorContentItem {...props} dataDefines={dataDefines} />
|
|
33
33
|
) : isDevMode ? (
|
|
34
34
|
renderDecorateDefaultModule()
|
|
35
35
|
) : null
|
|
36
36
|
switch (moduleId) {
|
|
37
37
|
case 83158:
|
|
38
38
|
return 'freeLayout'
|
|
39
39
|
case 99654:
|
|
40
40
|
return 'activeText'
|
|
41
41
|
case 100382:
|
|
42
42
|
return 'superGoods'
|
|
43
43
|
}
|
|
44
44
|
floorList.map((item) => {
|
|
45
45
|
if (!item.floorExtInfo) {
|
|
46
46
|
return null
|
|
47
47
|
}
|
|
48
48
|
const moduleFlag = item.floorExtInfo.moduleFlag
|
|
49
49
|
if (!moduleFlag) {
|
|
50
50
|
const newModuleFlag = moduleId2ModuleFlag(item.moduleId)
|
|
51
51
|
if (newModuleFlag) {
|
|
52
52
|
item.floorExtInfo.moduleFlag = newModuleFlag
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
})
|
|
@@ -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: any = 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
|
if (floorModuleType && (RemoteLoadFloorList.includes(floorModuleType) || floorData?.floorExtInfo?.floorLoadWay === 2)) {
|
|
22
21
|
return (
|
|
23
22
|
<RemoteFloorItem {...props} dataDefines={dataDefines}></RemoteFloorItem>
|
|
24
23
|
)
|
|
25
24
|
} else {
|
|
26
25
|
return FloorContentItem ? (
|
|
27
26
|
<ErrorBoundary {...props}>
|
|
28
27
|
<FloorContentItem {...props} dataDefines={dataDefines} />
|
|
29
28
|
</ErrorBoundary>
|
|
30
29
|
) : isDevMode ? (
|
|
31
30
|
renderDecorateDefaultModule()
|
|
32
31
|
) : null
|
|
33
32
|
}
|
|
34
33
|
renderSourceType: BUSINESS_TYPE.ONLINE,
|
|
35
34
|
switch (moduleId) {
|
|
36
35
|
case 83158:
|
|
37
36
|
return 'freeLayout'
|
|
38
37
|
case 99654:
|
|
39
38
|
return 'activeText'
|
|
40
39
|
case 100382:
|
|
41
40
|
return 'superGoods'
|
|
42
41
|
}
|
|
43
42
|
floorList.map((item) => {
|
|
44
43
|
if (!item.floorExtInfo) {
|
|
45
44
|
return null
|
|
46
45
|
}
|
|
47
46
|
const moduleFlag = item.floorExtInfo.moduleFlag
|
|
48
47
|
if (!moduleFlag) {
|
|
49
48
|
const newModuleFlag = moduleId2ModuleFlag(item.moduleId)
|
|
50
49
|
if (newModuleFlag) {
|
|
51
50
|
item.floorExtInfo.moduleFlag = newModuleFlag
|
|
52
51
|
}
|
|
53
52
|
}
|
|
54
53
|
})
|
|
54
|
+
import React from 'react'
|
|
55
55
|
const {
|
|
56
56
|
floorData,
|
|
57
57
|
renderSourceType = BUSINESS_TYPE.ONLINE,
|
|
58
58
|
builtInComponents = {},
|
|
59
59
|
} = props
|
|
60
60
|
const isDevMode = renderSourceType === BUSINESS_TYPE.DECORATE
|
|
61
61
|
const specificModuleFlag = ['mHeaderVideo']
|
|
62
62
|
const frontEndSpecificModuleFlag = ['header_mVideo']
|
|
63
63
|
const luxuryContainerPosition = 'luxuryFixed'
|
|
64
64
|
const floorPosition = floorData?.floorPosition
|
|
65
65
|
let floorModuleType: any = floorData?.floorExtInfo?.moduleFlag
|
|
66
66
|
specificModuleFlag.includes(floorModuleType) &&
|
|
67
67
|
floorPosition === luxuryContainerPosition &&
|
|
68
68
|
(floorModuleType = frontEndSpecificModuleFlag)
|
|
69
69
|
const FloorContentItem =
|
|
70
70
|
(floorModuleType && builtInComponents[floorModuleType]) || null
|
|
71
71
|
const dataDefines = getFloorDataToDataDefines(floorData)
|
|
72
72
|
|
|
73
73
|
const renderDecorateDefaultModule = () => {
|
|
74
74
|
return (
|
|
75
75
|
<View
|
|
76
76
|
style={{
|
|
77
77
|
lineHeight: '120px',
|
|
78
78
|
textAlign: 'center',
|
|
79
79
|
}}
|
|
80
80
|
>
|
|
81
81
|
当前模块是{floorData.moduleName}
|
|
82
82
|
</View>
|
|
83
83
|
)
|
|
84
84
|
}
|
|
85
85
|
if (
|
|
86
86
|
floorModuleType &&
|
|
87
87
|
(RemoteLoadFloorList.includes(floorModuleType) ||
|
|
88
88
|
floorData?.floorExtInfo?.floorLoadWay === 2)
|
|
89
89
|
) {
|
|
90
90
|
return (
|
|
91
91
|
<RemoteFloorItem {...props} dataDefines={dataDefines}></RemoteFloorItem>
|
|
92
92
|
)
|
|
93
93
|
} else {
|
|
94
94
|
return FloorContentItem ? (
|
|
95
95
|
<ErrorBoundary {...props}>
|
|
96
96
|
<FloorContentItem {...props} dataDefines={dataDefines} />
|
|
97
97
|
</ErrorBoundary>
|
|
98
98
|
) : isDevMode ? (
|
|
99
99
|
renderDecorateDefaultModule()
|
|
100
100
|
) : null
|
|
101
101
|
}
|
|
102
102
|
switch (moduleId) {
|
|
103
103
|
case 83158:
|
|
104
104
|
return 'freeLayout'
|
|
105
105
|
case 99654:
|
|
106
106
|
return 'activeText'
|
|
107
107
|
case 100382:
|
|
108
108
|
return 'superGoods'
|
|
109
109
|
}
|
|
110
110
|
floorList.map((item) => {
|
|
111
111
|
if (!item.floorExtInfo) {
|
|
112
112
|
return null
|
|
113
113
|
}
|
|
114
114
|
const moduleFlag = item.floorExtInfo.moduleFlag
|
|
115
115
|
if (!moduleFlag) {
|
|
116
116
|
const newModuleFlag = moduleId2ModuleFlag(item.moduleId)
|
|
117
117
|
if (newModuleFlag) {
|
|
118
118
|
item.floorExtInfo.moduleFlag = newModuleFlag
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
1
|
return FloorContentItem ? (
|
|
3
2
|
<ErrorBoundary {...props}>
|
|
4
3
|
<FloorContentItem {...props} dataDefines={dataDefines} />
|
|
5
4
|
</ErrorBoundary>
|
|
6
5
|
) : isDevMode ? (
|
|
7
6
|
renderDecorateDefaultModule()
|
|
8
7
|
) : null
|
|
8
|
+
import React from 'react'
|
|
9
9
|
const { floorData, renderSourceType, builtInComponents = {} } = props
|
|
10
10
|
const isDevMode = renderSourceType === BUSINESS_TYPE.DECORATE
|
|
11
11
|
const floorModuleType = floorData?.floorExtInfo?.moduleFlag
|
|
12
12
|
const FloorContentItem =
|
|
13
13
|
(floorModuleType && builtInComponents[floorModuleType]) || null
|
|
14
14
|
const dataDefines = getFloorDataToDataDefines(floorData)
|
|
15
15
|
|
|
16
16
|
const renderDecorateDefaultModule = () => {
|
|
17
17
|
return (
|
|
18
18
|
<View
|
|
19
19
|
style={{
|
|
20
20
|
lineHeight: '120px',
|
|
21
21
|
textAlign: 'center',
|
|
22
22
|
}}
|
|
23
23
|
>
|
|
24
24
|
当前模块是{floorData.moduleName}
|
|
25
25
|
</View>
|
|
26
26
|
)
|
|
27
27
|
}
|
|
28
28
|
return FloorContentItem ? (
|
|
29
29
|
<ErrorBoundary {...props}>
|
|
30
30
|
<FloorContentItem {...props} dataDefines={dataDefines} />
|
|
31
31
|
</ErrorBoundary>
|
|
32
32
|
) : isDevMode ? (
|
|
33
33
|
renderDecorateDefaultModule()
|
|
34
34
|
) : null
|
|
35
35
|
renderSourceType: BUSINESS_TYPE.ONLINE,
|
|
36
36
|
switch (moduleId) {
|
|
37
37
|
case 83158:
|
|
38
38
|
return 'freeLayout'
|
|
39
39
|
case 99654:
|
|
40
40
|
return 'activeText'
|
|
41
41
|
case 100382:
|
|
42
42
|
return 'superGoods'
|
|
43
43
|
}
|
|
44
44
|
floorList.map((item) => {
|
|
45
45
|
if (!item.floorExtInfo) {
|
|
46
46
|
return null
|
|
47
47
|
}
|
|
48
48
|
const moduleFlag = item.floorExtInfo.moduleFlag
|
|
49
49
|
if (!moduleFlag) {
|
|
50
50
|
const newModuleFlag = moduleId2ModuleFlag(item.moduleId)
|
|
51
51
|
if (newModuleFlag) {
|
|
52
52
|
item.floorExtInfo.moduleFlag = newModuleFlag
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import React, { useCallback } from 'react'
|
|
2
1
|
const {
|
|
3
2
|
style,
|
|
4
3
|
dataDefines,
|
|
5
4
|
containerBorderRadius,
|
|
6
5
|
floorData,
|
|
7
6
|
isRealTimeRender,
|
|
8
7
|
forceRenderTime,
|
|
9
8
|
} = props
|
|
10
9
|
const getRenderRealTimeKeyObj = {
|
|
11
10
|
key: isRealTimeRender ? Date.now() : forceRenderTime,
|
|
12
11
|
}
|
|
13
12
|
console.log('远程加载楼层渲染key信息', getRenderRealTimeKeyObj)
|
|
14
13
|
return (
|
|
15
14
|
<View className={floorStyle['wrap']} style={style}>
|
|
16
15
|
{floorData?.showCommonFloorHead === false ? null : (
|
|
17
16
|
<CommonFloorHead
|
|
18
17
|
dataDefines={dataDefines}
|
|
19
18
|
floorData={floorData}
|
|
20
19
|
{...getRenderRealTimeKeyObj}
|
|
21
20
|
/>
|
|
22
21
|
)}
|
|
23
22
|
<View
|
|
24
23
|
className={floorStyle['wrap']}
|
|
25
24
|
style={
|
|
26
25
|
containerBorderRadius
|
|
27
26
|
? {
|
|
28
27
|
borderRadius: containerBorderRadius + 'px',
|
|
29
28
|
}
|
|
30
29
|
: {}
|
|
31
30
|
}
|
|
32
31
|
>
|
|
33
32
|
{}
|
|
34
33
|
{props.children &&
|
|
35
34
|
React.cloneElement(props.children, {
|
|
36
35
|
dataDefines: dataDefines,
|
|
37
36
|
...getRenderRealTimeKeyObj,
|
|
38
37
|
})}
|
|
39
38
|
</View>
|
|
40
39
|
</View>
|
|
41
40
|
)
|
|
42
41
|
isRealTimeRender: false,
|
|
43
42
|
forceRenderTime: 1,
|
|
43
|
+
import React, { useCallback } from 'react'
|
|
44
44
|
const {
|
|
45
45
|
style,
|
|
46
46
|
dataDefines,
|
|
47
47
|
containerBorderRadius,
|
|
48
48
|
floorData,
|
|
49
49
|
isRealTimeRender,
|
|
50
50
|
forceRenderTime,
|
|
51
51
|
} = props
|
|
52
52
|
const getRenderRealTimeKeyObj = {
|
|
53
53
|
key: isRealTimeRender ? Date.now() : forceRenderTime,
|
|
54
54
|
}
|
|
55
55
|
console.log('远程加载楼层渲染key信息', getRenderRealTimeKeyObj)
|
|
56
56
|
return (
|
|
57
57
|
<View className={floorStyle['wrap']} style={style}>
|
|
58
58
|
{floorData?.showCommonFloorHead === false ? null : (
|
|
59
59
|
<CommonFloorHead
|
|
60
60
|
dataDefines={dataDefines}
|
|
61
61
|
floorData={floorData}
|
|
62
62
|
{...getRenderRealTimeKeyObj}
|
|
63
63
|
/>
|
|
64
64
|
)}
|
|
65
65
|
<View
|
|
66
66
|
className={floorStyle['wrap']}
|
|
67
67
|
style={
|
|
68
68
|
typeof containerBorderRadius === 'number'
|
|
69
69
|
? {
|
|
70
70
|
borderRadius: containerBorderRadius + 'px',
|
|
71
71
|
}
|
|
72
72
|
: containerBorderRadius
|
|
73
73
|
}
|
|
74
74
|
>
|
|
75
75
|
{}
|
|
76
76
|
{props.children &&
|
|
77
77
|
React.cloneElement(props.children, {
|
|
78
78
|
dataDefines: dataDefines,
|
|
79
79
|
...getRenderRealTimeKeyObj,
|
|
80
80
|
})}
|
|
81
81
|
</View>
|
|
82
82
|
</View>
|
|
83
83
|
)
|
|
84
84
|
isRealTimeRender: false,
|
|
85
85
|
forceRenderTime: 1,
|