@conecli/cone-render 0.8.44 → 0.8.46-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/api/index.ts +1 -1
- package/dist/assets/icon_blue_info.svg +1 -0
- 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/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/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.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/ItemViewExposureSmart/index.module.scss +2 -2
- package/dist/components/base/ItemViewExposureSmart/index.tsx +1 -1
- package/dist/components/base/LazyLoadImage/index.h5.module.scss +4 -0
- package/dist/components/base/LazyLoadImage/index.h5.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 +67 -0
- package/dist/components/debug/DebugLayout/index.tsx +1 -0
- package/dist/components/debug/DebugLayout/utils.ts +1 -0
- 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.tsx +1 -1
- package/dist/components/floorItem.weapp.tsx +1 -1
- package/dist/components/isv/Floor/index.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 -53
- package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
- package/dist/modules/ContainerFloorList/index.tsx +1 -1
- package/dist/open/api/environment.ts +1 -1
- package/dist/open/api/shopMember.ts +1 -1
- package/dist/open/api/util.ts +1 -1
- package/dist/sass/app.h5.scss +255 -224
- 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/sColor.js +1 -0
- 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 +147 -123
- package/dist/utils/memberFormatUtils.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import { View } from '@tarojs/components'
|
|
2
1
|
const {
|
|
3
2
|
selectContainerId,
|
|
4
3
|
placeHolderPreContainerId,
|
|
5
4
|
containerData,
|
|
6
5
|
children,
|
|
7
6
|
style,
|
|
8
7
|
shopTotalInfo,
|
|
9
8
|
urlQueryData
|
|
10
9
|
} = props;
|
|
11
10
|
const { isTrusteeship = false } = urlQueryData || {}
|
|
12
11
|
const selectContainerState = selectContainerId == containerData?.containerId
|
|
13
12
|
const ChildrenComponent = useCallback(() => {
|
|
14
13
|
return children ? children : null;
|
|
15
14
|
}, [containerData, shopTotalInfo]);
|
|
16
15
|
const isHideFloor = isTrusteeship && containerData?.floors?.[0]?.status === -1
|
|
17
16
|
return (
|
|
18
17
|
<View
|
|
19
18
|
className={classNames(
|
|
20
19
|
decorateModuleStyle[isTrusteeship ? 'd-container-item-trusteeship' : 'd-container-item'],
|
|
21
20
|
'J_container',
|
|
22
21
|
{
|
|
23
22
|
[decorateModuleStyle['d-container-item-active']]:
|
|
24
23
|
selectContainerState,
|
|
25
24
|
},
|
|
26
25
|
{
|
|
27
26
|
J_floorItemActive: selectContainerState,
|
|
28
27
|
},
|
|
29
28
|
{
|
|
30
29
|
[decorateModuleStyle['d-container-item-hide']]:
|
|
31
30
|
isHideFloor,
|
|
32
31
|
}
|
|
33
32
|
)}
|
|
34
33
|
id={`J_container_${containerData?.containerId}`}
|
|
35
34
|
data-container-id={containerData?.containerId}
|
|
36
35
|
data-container-type={containerData?.typeCode}
|
|
37
36
|
data-container-cn={containerData?.typeCn}
|
|
38
37
|
data-container-floorFlag={containerData?.extInfo?.floorFlag || ''}
|
|
39
38
|
data-container-moduleInstanceType={containerData?.extInfo?.moduleInstanceType || ''}
|
|
40
39
|
data-container-position={containerData?.containerPosition}
|
|
41
40
|
data-container-alias={
|
|
42
41
|
containerData?.containerAlias
|
|
43
42
|
? containerData?.containerAlias
|
|
44
43
|
: ''
|
|
45
44
|
}
|
|
46
45
|
data-container-empty={containerData?.floors?.[0]?.configEmpty || 'false'}
|
|
47
46
|
style={
|
|
48
47
|
containerData?.typeCode !== ContainerShopHeaderType ? style : {}
|
|
49
48
|
}
|
|
50
49
|
>
|
|
51
50
|
<input
|
|
52
51
|
type="hidden"
|
|
53
52
|
value={`container_${containerData?.containerId}`}
|
|
54
53
|
/>
|
|
55
54
|
<ChildrenComponent />
|
|
56
55
|
<PlaceHolder
|
|
57
56
|
placeHolderPreContainerId={placeHolderPreContainerId}
|
|
58
57
|
containerId={containerData?.containerId}
|
|
59
58
|
/>
|
|
60
59
|
</View>
|
|
61
60
|
)
|
|
61
|
+
import { View } from '@tarojs/components'
|
|
62
62
|
const {
|
|
63
63
|
selectContainerId,
|
|
64
64
|
placeHolderPreContainerId,
|
|
65
65
|
containerData,
|
|
66
66
|
children,
|
|
67
67
|
style,
|
|
68
68
|
shopTotalInfo,
|
|
69
69
|
urlQueryData,
|
|
70
70
|
containerIndex = -1,
|
|
71
71
|
luxuryFixed = false
|
|
72
72
|
} = props;
|
|
73
73
|
const { isTrusteeship = false } = urlQueryData || {}
|
|
74
74
|
const selectContainerState = selectContainerId == containerData?.containerId
|
|
75
75
|
const ChildrenComponent = useCallback(() => {
|
|
76
76
|
return children ? children : null;
|
|
77
77
|
}, [containerData, shopTotalInfo]);
|
|
78
78
|
const isHideFloor = isTrusteeship && containerData?.floors?.[0]?.status === -1
|
|
79
79
|
return (
|
|
80
80
|
<View
|
|
81
81
|
className={classNames(
|
|
82
82
|
decorateModuleStyle[isTrusteeship ? 'd-container-item-trusteeship' : 'd-container-item'],
|
|
83
83
|
'J_container',
|
|
84
84
|
{
|
|
85
85
|
[decorateModuleStyle['d-container-item-active']]:
|
|
86
86
|
selectContainerState,
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
89
|
J_floorItemActive: selectContainerState,
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
92
|
[decorateModuleStyle['d-container-item-hide']]:
|
|
93
93
|
isHideFloor,
|
|
94
94
|
},
|
|
95
95
|
{
|
|
96
96
|
[decorateModuleStyle['d-container-item-cover']]:
|
|
97
97
|
containerIndex === 0 && luxuryFixed && !isTrusteeship,
|
|
98
98
|
},
|
|
99
99
|
)}
|
|
100
100
|
id={`J_container_${containerData?.containerId}`}
|
|
101
101
|
data-container-id={containerData?.containerId}
|
|
102
102
|
data-container-type={containerData?.typeCode}
|
|
103
103
|
data-container-cn={containerData?.typeCn}
|
|
104
104
|
data-container-floorFlag={containerData?.extInfo?.floorFlag || ''}
|
|
105
105
|
data-container-moduleInstanceType={containerData?.extInfo?.moduleInstanceType || ''}
|
|
106
106
|
data-container-position={containerData?.containerPosition}
|
|
107
107
|
data-container-alias={
|
|
108
108
|
containerData?.containerAlias
|
|
109
109
|
? containerData?.containerAlias
|
|
110
110
|
: ''
|
|
111
111
|
}
|
|
112
112
|
data-container-empty={containerData?.floors?.[0]?.configEmpty || 'false'}
|
|
113
113
|
style={
|
|
114
114
|
containerData?.typeCode !== ContainerShopHeaderType ? style : {}
|
|
115
115
|
}
|
|
116
116
|
>
|
|
117
117
|
<input
|
|
118
118
|
type="hidden"
|
|
119
119
|
value={`container_${containerData?.containerId}`}
|
|
120
120
|
/>
|
|
121
121
|
<ChildrenComponent />
|
|
122
122
|
<PlaceHolder
|
|
123
123
|
placeHolderPreContainerId={placeHolderPreContainerId}
|
|
124
124
|
containerId={containerData?.containerId}
|
|
125
125
|
{...(selectContainerId === "luxuryHeader-isUpperHalf" && { isShowPlaceHolder: false })}
|
|
126
126
|
/>
|
|
127
127
|
</View>
|
|
128
128
|
)
|
|
@@ -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
|
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 { floorData, renderSourceType, builtInComponents = {} } = props
|
|
56
56
|
const isDevMode = renderSourceType === BUSINESS_TYPE.DECORATE
|
|
57
57
|
const specificModuleFlag = ['mHeaderVideo']
|
|
58
58
|
const frontEndSpecificModuleFlag = ['header_mVideo']
|
|
59
59
|
const luxuryContainerPosition = 'luxuryFixed'
|
|
60
60
|
const floorPosition = floorData?.floorPosition
|
|
61
61
|
let floorModuleType: any = floorData?.floorExtInfo?.moduleFlag
|
|
62
62
|
specificModuleFlag.includes(floorModuleType) &&
|
|
63
63
|
floorPosition === luxuryContainerPosition &&
|
|
64
64
|
(floorModuleType = frontEndSpecificModuleFlag)
|
|
65
65
|
const FloorContentItem =
|
|
66
66
|
(floorModuleType && builtInComponents[floorModuleType]) || null
|
|
67
67
|
const dataDefines = getFloorDataToDataDefines(floorData)
|
|
68
68
|
|
|
69
69
|
const renderDecorateDefaultModule = () => {
|
|
70
70
|
return (
|
|
71
71
|
<View
|
|
72
72
|
style={{
|
|
73
73
|
lineHeight: '120px',
|
|
74
74
|
textAlign: 'center',
|
|
75
75
|
}}
|
|
76
76
|
>
|
|
77
77
|
当前模块是{floorData.moduleName}
|
|
78
78
|
</View>
|
|
79
79
|
)
|
|
80
80
|
}
|
|
81
81
|
if (
|
|
82
82
|
floorModuleType &&
|
|
83
83
|
(RemoteLoadFloorList.includes(floorModuleType) ||
|
|
84
84
|
floorData?.floorExtInfo?.floorLoadWay === 2)
|
|
85
85
|
) {
|
|
86
86
|
return (
|
|
87
87
|
<RemoteFloorItem {...props} dataDefines={dataDefines}></RemoteFloorItem>
|
|
88
88
|
)
|
|
89
89
|
} else {
|
|
90
90
|
return FloorContentItem ? (
|
|
91
91
|
<ErrorBoundary {...props}>
|
|
92
92
|
<FloorContentItem {...props} dataDefines={dataDefines} />
|
|
93
93
|
</ErrorBoundary>
|
|
94
94
|
) : isDevMode ? (
|
|
95
95
|
renderDecorateDefaultModule()
|
|
96
96
|
) : null
|
|
97
97
|
}
|
|
98
98
|
renderSourceType: BUSINESS_TYPE.ONLINE,
|
|
99
99
|
switch (moduleId) {
|
|
100
100
|
case 83158:
|
|
101
101
|
return 'freeLayout'
|
|
102
102
|
case 99654:
|
|
103
103
|
return 'activeText'
|
|
104
104
|
case 100382:
|
|
105
105
|
return 'superGoods'
|
|
106
106
|
}
|
|
107
107
|
floorList.map((item) => {
|
|
108
108
|
if (!item.floorExtInfo) {
|
|
109
109
|
return null
|
|
110
110
|
}
|
|
111
111
|
const moduleFlag = item.floorExtInfo.moduleFlag
|
|
112
112
|
if (!moduleFlag) {
|
|
113
113
|
const newModuleFlag = moduleId2ModuleFlag(item.moduleId)
|
|
114
114
|
if (newModuleFlag) {
|
|
115
115
|
item.floorExtInfo.moduleFlag = newModuleFlag
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
})
|
|
@@ -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 = (floorModuleType && builtInComponents[floorModuleType]) || null;
|
|
13
13
|
const dataDefines = getFloorDataToDataDefines(floorData);
|
|
14
14
|
|
|
15
15
|
const renderDecorateDefaultModule = () => {
|
|
16
16
|
return (
|
|
17
17
|
<View
|
|
18
18
|
style={{
|
|
19
19
|
lineHeight: '120px',
|
|
20
20
|
textAlign: 'center',
|
|
21
21
|
}}
|
|
22
22
|
>
|
|
23
23
|
当前模块是{floorData.moduleName}
|
|
24
24
|
</View>
|
|
25
25
|
);
|
|
26
26
|
};
|
|
27
27
|
return FloorContentItem ? <FloorContentItem {...props} dataDefines={dataDefines} /> : isDevMode ? (
|
|
28
28
|
renderDecorateDefaultModule()
|
|
29
29
|
) : null;
|
|
30
30
|
renderSourceType: BUSINESS_TYPE.ONLINE,
|
|
31
31
|
switch (moduleId) {
|
|
32
32
|
case 83158:
|
|
33
33
|
return 'freeLayout';
|
|
34
34
|
case 99654:
|
|
35
35
|
return 'activeText';
|
|
36
36
|
case 100382:
|
|
37
37
|
return 'superGoods';
|
|
38
38
|
}
|
|
39
39
|
floorList.map((item) => {
|
|
40
40
|
if (!item.floorExtInfo) {
|
|
41
41
|
return null;
|
|
42
42
|
}
|
|
43
43
|
const moduleFlag = item.floorExtInfo.moduleFlag;
|
|
44
44
|
if (!moduleFlag) {
|
|
45
45
|
const newModuleFlag = moduleId2ModuleFlag(item.moduleId);
|
|
46
46
|
if (newModuleFlag) {
|
|
47
47
|
item.floorExtInfo.moduleFlag = newModuleFlag;
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
});
|
|
@@ -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,
|
package/dist/interface/common.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import Taro from '@tarojs/taro'
|
|
2
1
|
isJingxiMiniViewState?: boolean
|
|
3
2
|
floorVideInfo: object
|
|
4
3
|
originQueryInfo: {
|
|
5
4
|
openAppData?: {
|
|
6
5
|
[key: string]: any
|
|
7
6
|
}
|
|
7
|
+
import Taro from '@tarojs/taro';
|
|
8
8
|
export interface BaseConfigInfo {
|
|
9
9
|
abTestLabels: {
|
|
10
10
|
[key: string]: any;
|
|
11
11
|
};
|
|
12
12
|
nonSellableSkuids: {
|
|
13
13
|
[key: string]: number;
|
|
14
14
|
};
|
|
15
15
|
loginState: boolean;
|
|
16
16
|
cookiesStr: string;
|
|
17
17
|
isImmersive: boolean;
|
|
18
18
|
isJingGouMiniViewState?: boolean;
|
|
19
19
|
isJingxiMiniViewState?: boolean;
|
|
20
20
|
shopInfo: {
|
|
21
21
|
shopId?: string | number;
|
|
22
22
|
venderId?: string | number;
|
|
23
23
|
};
|
|
24
24
|
pageInfo: {
|
|
25
25
|
appId?: string;
|
|
26
26
|
shopId?: string | number;
|
|
27
27
|
venderId?: string | number;
|
|
28
28
|
logoSquare?: string;
|
|
29
29
|
logoUrl?: string;
|
|
30
30
|
address?: string | null;
|
|
31
31
|
addressCommaStr?: string | null;
|
|
32
32
|
un_area?: string | null;
|
|
33
33
|
userLbsAddress?: string;
|
|
34
34
|
shopName?: string;
|
|
35
35
|
jumpTab?: string;
|
|
36
36
|
sourceType?: string;
|
|
37
37
|
sourceValue?: string;
|
|
38
38
|
moduleId?: string;
|
|
39
39
|
entrance?: string;
|
|
40
40
|
EA_PTAG?: string;
|
|
41
41
|
ptag?: string;
|
|
42
42
|
originReferer?: string;
|
|
43
43
|
recBroker?: string;
|
|
44
44
|
rcmdRelateSkuId?: string;
|
|
45
45
|
tabSpm?: string;
|
|
46
46
|
skuId?: string;
|
|
47
47
|
keywords?: string;
|
|
48
48
|
sceneId?: string;
|
|
49
49
|
miniScrollInfo?: {
|
|
50
50
|
scrollLeft: number;
|
|
51
51
|
scrollTop: number;
|
|
52
52
|
scrollHeight: number;
|
|
53
53
|
scrollWidth: number;
|
|
54
54
|
deltaX: number;
|
|
55
55
|
deltaY: number;
|
|
56
56
|
};
|
|
57
57
|
tabsLoadAllDataInfo: {
|
|
58
58
|
[key: string]: boolean;
|
|
59
59
|
};
|
|
60
60
|
wxBusinessType: string;
|
|
61
61
|
vapptype: string;
|
|
62
62
|
pageType: string;
|
|
63
63
|
dataType: string;
|
|
64
64
|
floorExposureInfo: object;
|
|
65
65
|
floorVideInfo: object;
|
|
66
66
|
isExposureState?: boolean;
|
|
67
67
|
appLazyContainerList?: string[];
|
|
68
68
|
appLazyFinishContainerList?: [];
|
|
69
69
|
shopStickyAndToTopInfo?: {
|
|
70
70
|
toTop: boolean;
|
|
71
71
|
sticky: boolean;
|
|
72
72
|
};
|
|
73
73
|
isVipShop?: boolean;
|
|
74
74
|
updateShopInfosState?: boolean;
|
|
75
75
|
pageScrollTop: number;
|
|
76
76
|
shopNavBarHeight: number;
|
|
77
77
|
isFloorInfoDataByPage?: boolean;
|
|
78
78
|
};
|
|
79
79
|
lazyContainer?: {
|
|
80
80
|
wellChosen: {
|
|
81
81
|
appLazyContainerList?: string[];
|
|
82
82
|
appLazyFinishContainerList?: string[];
|
|
83
83
|
};
|
|
84
84
|
};
|
|
85
85
|
queryLogInfo?: {
|
|
86
86
|
sourceType: string;
|
|
87
87
|
sourceValue: string;
|
|
88
88
|
moduleId?: string;
|
|
89
89
|
entrance?: string;
|
|
90
90
|
};
|
|
91
91
|
queryInfo: {
|
|
92
92
|
shopId?: string | number;
|
|
93
93
|
venderId?: string | number;
|
|
94
94
|
shopName?: string;
|
|
95
95
|
[key: string]: any;
|
|
96
96
|
};
|
|
97
97
|
originQueryInfo: {
|
|
98
98
|
shopId?: string | number;
|
|
99
99
|
venderId?: string | number;
|
|
100
100
|
shopName?: string;
|
|
101
101
|
[key: string]: any;
|
|
102
102
|
};
|
|
103
103
|
sysInfo: {
|
|
104
104
|
[key: string]: any;
|
|
105
105
|
};
|
|
106
106
|
userInfo: {
|
|
107
107
|
pin?: string;
|
|
108
108
|
encodePin?: string;
|
|
109
109
|
ptkey?: string;
|
|
110
110
|
wqCookie?: string | null;
|
|
111
111
|
wxappVersion?: string;
|
|
112
112
|
wqAuthToken?: string;
|
|
113
113
|
wqVisitkey?: string;
|
|
114
114
|
};
|
|
115
115
|
openAppData?: {
|
|
116
116
|
[key: string]: any;
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
export interface OneKeyJoinMemberParamInfo {
|
|
121
121
|
title?: string;
|
|
122
122
|
shopId?: string | number;
|
|
123
123
|
venderId?: string | number;
|
|
124
124
|
businessSource?: keyof OneKeyJoinMemberBusinessSource;
|
|
125
125
|
}
|
|
126
126
|
export interface OneKeyJoinMemberBusinessSource {
|
|
127
127
|
isv;
|
|
128
128
|
lv0;
|
|
129
129
|
}
|
|
130
130
|
export type lazyContainer = {
|
|
131
131
|
[key in 'string']?: {
|
|
132
132
|
appLazyFinishContainerList: any[];
|
|
133
133
|
appLazyContainerList: any[];
|
|
134
134
|
};
|
|
135
135
|
};
|
|
136
136
|
export type renderedIsvComponents = {
|
|
137
137
|
[key in 'string']?: any;
|
|
138
138
|
};
|
|
139
139
|
export type MiniApplogUtil = any;
|
|
140
140
|
export type MiniAppLog = any;
|
|
141
141
|
export type WxAppLogin = any;
|
|
142
142
|
export type WxAppUserInfo = any;
|
|
143
143
|
export type wxAppReportManage = any;
|
|
144
144
|
export type WxAppReportGDT = any;
|
|
145
145
|
export type WxAppNavigator = any;
|
|
146
146
|
export type wxAppParamsSign = any;
|
|
147
147
|
export type wxAppFingerReportInstance = any;
|
|
148
148
|
export type wxAppSubsGuider = any;
|
|
149
149
|
export type wxAppAddressV2api = any;
|
|
150
150
|
[key: string]: any;
|