@conecli/cone-render 0.9.1-shop2.9 → 0.10.1-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/assets/icon_blue_info.svg +1 -0
- 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/common/jdplayerSdk.ts +1 -0
- package/dist/common/sgmCustomCode.ts +1 -1
- package/dist/components/base/CustomVideo/index.tsx +1 -1
- package/dist/components/base/InOrOutViewObserver/index.tsx +1 -1
- package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
- package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
- package/dist/components/base/NetworkDataError/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/EmptyFloorModule/index.tsx +1 -1
- package/dist/components/isv/Floor/index.tsx +1 -1
- package/dist/interface/component.ts +1 -1
- package/dist/jumpEventReport/web.tjm.ts +1 -1
- package/dist/open/api/index.ts +1 -1
- package/dist/sass/app.h5.scss +5 -0
- 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/utils.ts +1 -1
- package/package.json +42 -39
- package/dist/customHooks/useDocumentVisibilitychange.ts +0 -1
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
|
|
2
|
+
.debug-layout-warp {
|
|
3
|
+
position: absolute;
|
|
4
|
+
border-radius: 12PX;
|
|
5
|
+
top: 0;
|
|
6
|
+
left: 0;
|
|
7
|
+
right: 0;
|
|
8
|
+
bottom: 0;
|
|
9
|
+
z-index: 50;
|
|
10
|
+
|
|
11
|
+
.debug-layout {
|
|
12
|
+
position: absolute;
|
|
13
|
+
border-radius: 12PX;
|
|
14
|
+
top: 0;
|
|
15
|
+
left: 0;
|
|
16
|
+
right: 0;
|
|
17
|
+
bottom: 0;
|
|
18
|
+
|
|
19
|
+
border: 1PX solid #f50707;
|
|
20
|
+
background-color: rgba(219, 38, 38, 0.2);
|
|
21
|
+
|
|
22
|
+
&[data-module-type='JOINT'] {
|
|
23
|
+
border: 1PX solid #f507c9;
|
|
24
|
+
background-color: rgba(219, 38, 150, 0.2);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&.green {
|
|
28
|
+
border: 1PX solid #04a607;
|
|
29
|
+
background-color: rgba(38, 219, 71, 0.2);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.cd-version-list {
|
|
33
|
+
pointer-events: none;
|
|
34
|
+
position: absolute;
|
|
35
|
+
font-size: 0;
|
|
36
|
+
top: 0;
|
|
37
|
+
left: 0;
|
|
38
|
+
right: 0;
|
|
39
|
+
background-color: transparent;
|
|
40
|
+
text-align: center;
|
|
41
|
+
overflow: hidden;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.cd-version-item {
|
|
45
|
+
display: inline-block;
|
|
46
|
+
background-color: #00c853;
|
|
47
|
+
font-size: 30px;
|
|
48
|
+
color: white;
|
|
49
|
+
padding: 1PX 3PX;
|
|
50
|
+
border-radius: 4PX;
|
|
51
|
+
margin: 0 5PX;
|
|
52
|
+
&[data-version='3.5.4'] {
|
|
53
|
+
background-color: #999;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.d-info {
|
|
59
|
+
position: relative;
|
|
60
|
+
cursor: pointer;
|
|
61
|
+
z-index: 3;
|
|
62
|
+
margin: 3PX 3PX;
|
|
63
|
+
width: 22PX;
|
|
64
|
+
height: 22PX;
|
|
65
|
+
background: url('../../../assets/icon_blue_info.svg') center center / 22PX 22PX no-repeat;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
const { debug } = global.info.queryInfo
|
|
1
3
|
const { floorData, index } = props
|
|
2
4
|
if (debug != '1' || !floorData) {
|
|
3
5
|
return null
|
|
4
6
|
}
|
|
5
7
|
const renderRemoteLayout = () => {
|
|
6
8
|
const isRemote = isRemoteFloor(floorData)
|
|
7
9
|
if (isRemote) {
|
|
8
10
|
const moduleType = getModuleType(floorData)
|
|
9
11
|
const packResult = floorData?.floorExtInfo?.modularPackResult
|
|
10
12
|
const packResultObj = JSONParse(packResult)
|
|
11
13
|
const taroVersionList = getTaroVersionList(packResultObj)
|
|
12
14
|
const layoutClass = classNames(style['debug-layout'], {
|
|
13
15
|
[style['green']]: taroVersionList.length >= 2,
|
|
14
16
|
})
|
|
15
17
|
return (
|
|
16
18
|
<View data-module-type={moduleType} className={layoutClass}>
|
|
17
19
|
<View className={style['cd-version-list']}>
|
|
18
20
|
{taroVersionList.map(item => {
|
|
19
21
|
return (
|
|
20
22
|
<Text className={style['cd-version-item']} data-version={item}>
|
|
21
23
|
v{item}
|
|
22
24
|
</Text>
|
|
23
25
|
)
|
|
24
26
|
})}
|
|
25
27
|
</View>
|
|
26
28
|
</View>
|
|
27
29
|
)
|
|
28
30
|
} else {
|
|
29
31
|
return null
|
|
30
32
|
}
|
|
31
33
|
}
|
|
32
34
|
return (
|
|
33
35
|
<View className={style['debug-layout-warp']}>
|
|
34
36
|
<View
|
|
35
37
|
className={style['d-info']}
|
|
36
38
|
onClick={() => {
|
|
37
39
|
Messager && Messager.trigger('openDebugLayout', { floorData, index })
|
|
38
40
|
}}
|
|
39
41
|
/>
|
|
40
42
|
{renderRemoteLayout()}
|
|
41
43
|
</View>
|
|
42
44
|
)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { RemoteLoadFloorList, FloorModuleType } from '../../../common/const'
|
|
2
|
if (!packResultObj) {
|
|
1
3
|
return []
|
|
2
4
|
}
|
|
3
5
|
const result: string[] = []
|
|
4
6
|
if (packResultObj.bundleUrl) {
|
|
5
7
|
result.push(packResultObj.taroVersion || '3.5.4')
|
|
6
8
|
}
|
|
7
9
|
if (packResultObj.bundleUrlV2) {
|
|
8
10
|
result.push(packResultObj.taroVersionV2)
|
|
9
11
|
}
|
|
10
12
|
return result
|
|
11
13
|
if (!floorData) {
|
|
12
14
|
return false
|
|
13
15
|
}
|
|
14
16
|
const moduleFlag = floorData.floorExtInfo?.moduleFlag
|
|
15
17
|
const floorLoadWay = floorData.floorExtInfo?.floorLoadWay
|
|
16
18
|
return RemoteLoadFloorList.includes(moduleFlag) || floorLoadWay === 2
|
|
17
19
|
if (!floorData) {
|
|
18
20
|
return ''
|
|
19
21
|
}
|
|
20
22
|
const moduleFlag = floorData.floorExtInfo?.moduleFlag
|
|
21
23
|
const floorLoadWay = floorData.floorExtInfo?.floorLoadWay
|
|
22
24
|
if (moduleFlag === FloorModuleType.ISVDESIGNERH5MODULE) {
|
|
23
25
|
return 'ISV'
|
|
24
26
|
} else if (
|
|
25
27
|
moduleFlag === FloorModuleType.JOINT_MODULE ||
|
|
26
28
|
floorLoadWay === 2
|
|
27
29
|
) {
|
|
28
30
|
return 'JOINT'
|
|
29
31
|
} else {
|
|
30
32
|
return 'SYSTEM'
|
|
31
33
|
}
|
|
@@ -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 newModuleFloorTypeList = [100, 101, 100000, 99999]
|
|
4
3
|
const isNewFloorState = newModuleFloorTypeList.includes(moduleType)
|
|
5
4
|
if ((moduleType == 99999 || moduleType == 101) && !previewUri) {
|
|
6
5
|
if (moduleFlag && TRUSTEESHIP_MODULE_FLAG_LIST.indexOf(moduleFlag) !== -1) return null
|
|
6
|
+
import { View, Text } from '@tarojs/components'
|
|
7
7
|
'//img11.360buyimg.com/imagetools/jfs/t1/141506/22/31698/7923/637b6db9E2af80265/10e76e2c31e0e356.png'
|
|
8
8
|
const {
|
|
9
9
|
moduleType,
|
|
10
10
|
configEmpty,
|
|
11
11
|
previewUri = null,
|
|
12
12
|
uid,
|
|
13
13
|
moduleFlag,
|
|
14
14
|
moduleName,
|
|
15
15
|
} = props.floorData
|
|
16
16
|
let previewUrl = previewUri
|
|
17
17
|
const newModuleFloorTypeList = [100, 101, 100000, 99999]
|
|
18
18
|
const isNewFloorState = newModuleFloorTypeList.includes(moduleType)
|
|
19
19
|
if ((moduleType == 99999 || moduleType == 101) && !previewUri) {
|
|
20
20
|
previewUrl = decorateModulePrevDefaultUrl
|
|
21
21
|
}
|
|
22
22
|
const loadImageErr = e => {
|
|
23
23
|
e.target.src = decorateModulePrevDefaultUrl
|
|
24
24
|
}
|
|
25
25
|
if (moduleFlag && TRUSTEESHIP_MODULE_FLAG_LIST.indexOf(moduleFlag) !== -1)
|
|
26
26
|
return null
|
|
27
27
|
return isNewFloorState && configEmpty && previewUrl ? (
|
|
28
28
|
<View
|
|
29
29
|
className={emptyModuleStyle['d-empty-module']}
|
|
30
30
|
data-floor-uid={uid}
|
|
31
31
|
data-floor-type={moduleFlag}
|
|
32
32
|
data-floor-modulename={moduleName}
|
|
33
33
|
>
|
|
34
34
|
{}
|
|
35
35
|
{}
|
|
36
36
|
{}
|
|
37
37
|
{}
|
|
38
38
|
{}
|
|
39
39
|
{}
|
|
40
40
|
{}
|
|
41
41
|
<View className={classNames(emptyModuleStyle['d-empty-img'])}>
|
|
42
42
|
<img
|
|
43
43
|
width={355}
|
|
44
44
|
className={classNames('J_floorEmptyDataImg')}
|
|
45
45
|
src={previewUrl}
|
|
46
46
|
onError={loadImageErr.bind(this)}
|
|
47
47
|
/>
|
|
48
48
|
</View>
|
|
49
49
|
</View>
|
|
50
50
|
) : (
|
|
51
51
|
<View
|
|
52
52
|
className={classNames(
|
|
53
53
|
emptyModuleStyle['d-empty-module'],
|
|
54
54
|
emptyModuleStyle['d-empty-text-warp'],
|
|
55
55
|
)}
|
|
56
56
|
data-floor-uid={uid}
|
|
57
57
|
data-floor-type={moduleFlag}
|
|
58
58
|
data-floor-modulename={moduleName}
|
|
59
59
|
>
|
|
60
60
|
<Text className={emptyModuleStyle['d-empty-text']}>
|
|
61
61
|
该楼层还未配置数据
|
|
62
62
|
</Text>
|
|
63
63
|
</View>
|
|
64
64
|
)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import React, { useCallback } from 'react'
|
|
2
1
|
const getRenderRealTimeKeyObj = {
|
|
3
2
|
key: isRealTimeRender ? Date.now() : forceRenderTime
|
|
4
3
|
}
|
|
5
4
|
console.log("远程加载楼层渲染key信息", getRenderRealTimeKeyObj)
|
|
6
5
|
{floorData?.showCommonFloorHead === false ? null : <CommonFloorHead dataDefines={dataDefines} floorData={floorData} {...getRenderRealTimeKeyObj} />}
|
|
7
6
|
...getRenderRealTimeKeyObj
|
|
8
7
|
isRealTimeRender: false,
|
|
9
8
|
forceRenderTime: 1,
|
|
9
|
+
import React, { useCallback } from 'react'
|
|
10
10
|
const {
|
|
11
11
|
style,
|
|
12
12
|
dataDefines,
|
|
13
13
|
containerBorderRadius,
|
|
14
14
|
floorData,
|
|
15
15
|
isRealTimeRender,
|
|
16
16
|
forceRenderTime,
|
|
17
17
|
} = props
|
|
18
18
|
const getRenderRealTimeKeyObj = {
|
|
19
19
|
key: isRealTimeRender ? Date.now() : forceRenderTime,
|
|
20
20
|
}
|
|
21
21
|
console.log('远程加载楼层渲染key信息', getRenderRealTimeKeyObj)
|
|
22
22
|
return (
|
|
23
23
|
<View className={floorStyle['wrap']} style={style}>
|
|
24
24
|
{floorData?.showCommonFloorHead === false ? null : (
|
|
25
25
|
<CommonFloorHead
|
|
26
26
|
dataDefines={dataDefines}
|
|
27
27
|
floorData={floorData}
|
|
28
28
|
{...getRenderRealTimeKeyObj}
|
|
29
29
|
/>
|
|
30
30
|
)}
|
|
31
31
|
<View
|
|
32
32
|
className={floorStyle['wrap']}
|
|
33
33
|
style={
|
|
34
34
|
containerBorderRadius
|
|
35
35
|
? {
|
|
36
36
|
borderRadius: containerBorderRadius + 'px',
|
|
37
37
|
}
|
|
38
38
|
: {}
|
|
39
39
|
}
|
|
40
40
|
>
|
|
41
41
|
{}
|
|
42
42
|
{props.children &&
|
|
43
43
|
React.cloneElement(props.children, {
|
|
44
44
|
dataDefines: dataDefines,
|
|
45
45
|
...getRenderRealTimeKeyObj,
|
|
46
46
|
})}
|
|
47
47
|
</View>
|
|
48
48
|
</View>
|
|
49
49
|
)
|
|
50
50
|
isRealTimeRender: false,
|
|
51
51
|
forceRenderTime: 1,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
1
|
subMessage?: string
|
|
3
2
|
viewMaxHeight?: string
|
|
4
3
|
floorLoadWay?: number
|
|
5
4
|
floorKind?: number
|
|
6
5
|
shopId?: string
|
|
7
6
|
moduleDesignerType?: string
|
|
8
7
|
showCommonFloorHead?: boolean
|
|
9
8
|
borderRadius: number
|
|
10
9
|
borderTopLeftRadius?: number
|
|
11
10
|
borderTopRightRadius?: number
|
|
12
11
|
borderBottomLeftRadius?: number
|
|
13
12
|
borderBottomRightRadius?: number
|
|
14
13
|
marginTop?: number
|
|
15
14
|
marginBottom?: number
|
|
16
15
|
marginLeft?: number
|
|
17
16
|
marginRight?: number
|
|
18
17
|
paddingTop?: number
|
|
19
18
|
paddingBottom?: number
|
|
20
19
|
paddingLeft?: number
|
|
21
20
|
paddingRight?: number
|
|
22
21
|
containerId: string
|
|
23
22
|
background?: string
|
|
24
23
|
containerPosition?: string
|
|
25
24
|
key?: string
|
|
26
25
|
floors: floorItemData[]
|
|
27
26
|
includeUids: string[]
|
|
28
27
|
typeCn: string
|
|
29
28
|
typeCode?: string
|
|
30
29
|
addLuxuryStyle?: boolean
|
|
31
30
|
addLuxuryBackupStyle?: boolean
|
|
32
31
|
renderExtendComponent?: Function
|
|
33
32
|
floorExtendData?: any
|
|
34
33
|
}
|
|
35
34
|
isRealTimeRender: boolean
|
|
36
35
|
forceRenderTime: number
|
|
37
36
|
customErrorIsvFloorModule?: React.ReactElement | undefined
|
|
38
37
|
containerIndex?: number
|
|
39
38
|
containerData?: any
|
|
40
39
|
shopTotalInfo?: any
|
|
41
40
|
selectContainerFn?: Function
|
|
42
41
|
selectContainerId?: string
|
|
43
42
|
placeHolderPreContainerId?: string
|
|
44
43
|
children?: any
|
|
45
44
|
style?: {
|
|
46
45
|
[key: string]: any
|
|
47
46
|
};
|
|
48
47
|
layoutLeftRightMargin?: number
|
|
49
48
|
}
|
|
50
49
|
showDayToSecondState?: boolean
|
|
51
50
|
onFormSubmit?: Function
|
|
52
51
|
onFormReset?: Function
|
|
53
52
|
isFormDialog?: boolean
|
|
54
53
|
forbiddenBgScrollState?: boolean
|
|
55
54
|
evenList: any[]
|
|
56
55
|
oddList: any[]
|
|
56
|
+
import React from 'react'
|
|
57
57
|
subMessage?: string
|
|
58
58
|
viewMaxHeight?: string
|
|
59
59
|
floorLoadWay?: number
|
|
60
60
|
floorKind?: number
|
|
61
61
|
shopId?: string
|
|
62
62
|
moduleDesignerType?: string
|
|
63
63
|
showCommonFloorHead?: boolean
|
|
64
64
|
borderRadius: number
|
|
65
65
|
borderTopLeftRadius?: number
|
|
66
66
|
borderTopRightRadius?: number
|
|
67
67
|
borderBottomLeftRadius?: number
|
|
68
68
|
borderBottomRightRadius?: number
|
|
69
69
|
marginTop?: number
|
|
70
70
|
marginBottom?: number
|
|
71
71
|
marginLeft?: number
|
|
72
72
|
marginRight?: number
|
|
73
73
|
paddingTop?: number
|
|
74
74
|
paddingBottom?: number
|
|
75
75
|
paddingLeft?: number
|
|
76
76
|
paddingRight?: number
|
|
77
77
|
containerId: string
|
|
78
78
|
background?: string
|
|
79
79
|
containerPosition?: string
|
|
80
80
|
key?: string
|
|
81
81
|
floors: floorItemData[]
|
|
82
82
|
includeUids: string[]
|
|
83
83
|
typeCn: string
|
|
84
84
|
typeCode?: string
|
|
85
85
|
addLuxuryStyle?: boolean
|
|
86
86
|
addLuxuryBackupStyle?: boolean
|
|
87
87
|
renderExtendComponent?: Function
|
|
88
88
|
floorExtendData?: any
|
|
89
89
|
}
|
|
90
90
|
isRealTimeRender: boolean
|
|
91
91
|
forceRenderTime: number
|
|
92
92
|
customErrorIsvFloorModule?: React.ReactElement | undefined
|
|
93
93
|
containerIndex?: number
|
|
94
94
|
containerData?: any
|
|
95
95
|
shopTotalInfo?: any
|
|
96
96
|
selectContainerFn?: Function
|
|
97
97
|
selectContainerId?: string
|
|
98
98
|
placeHolderPreContainerId?: string
|
|
99
99
|
children?: any
|
|
100
100
|
style?: {
|
|
101
101
|
[key: string]: any
|
|
102
102
|
};
|
|
103
103
|
layoutLeftRightMargin?: number
|
|
104
104
|
}
|
|
105
105
|
showDayToSecondState?: boolean
|
|
106
106
|
onFormSubmit?: Function
|
|
107
107
|
onFormReset?: Function
|
|
108
108
|
isFormDialog?: boolean
|
|
109
109
|
forbiddenBgScrollState?: boolean
|
|
110
110
|
evenList: any[]
|
|
111
111
|
oddList: any[]
|