@conecli/cone-render 0.9.1-shop2.11 → 0.9.1-shop2.12
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/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/ExposureSmart/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/MobileCommonHeader/index.module.scss +8 -0
- package/dist/components/base/MobileCommonHeader/index.tsx +1 -1
- 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/logEventConfig.ts +1 -1
- package/dist/jumpEventReport/web.tjm.ts +1 -1
- package/dist/jumpEventReport/web.wxapp.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 +1 -1
- package/dist/customHooks/useDocumentVisibilitychange.ts +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 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[]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export enum LogPnameInfo {
|
|
2
1
|
HOME = 'home',
|
|
3
2
|
MEMBER = 'member',
|
|
4
3
|
CLASSIFY = 'classify',
|
|
5
4
|
PROMOTION = 'promotion',
|
|
6
5
|
WX_SHOP_HOME = 'wx_shop_home',
|
|
7
6
|
APP_SHOP_DETAIL = 'app_Shop_ShopDetail',
|
|
8
7
|
MOBILE_SEARCH = 'MShop_SearchResult',
|
|
9
8
|
APP_SHOP_MEMBER = 'Shop_ShopCard',
|
|
10
9
|
SALE_VIEW = 'Shop_NewActivity',
|
|
11
10
|
STOW_SHOP_VIEW = 'Shop_FollowShopMain',
|
|
12
11
|
APP_SHOP_NEW_PRODUCT = 'Shop_ProductNew',
|
|
13
12
|
APP_SHOP_NEW_PRODUCT_VIDEO = 'Shop_ProductNewVideo',
|
|
14
13
|
APP_SHOP_NEW_PRODUCT_PREFERRED_GOODS = 'shop_preferredGoods',
|
|
15
14
|
APP_SHOP_BUYER_SHOW = 'Shop_ShopBuyerShow',
|
|
16
15
|
APP_SHOP_CARD = 'Shop_ShopCard',
|
|
17
16
|
APP_SHOP_MEMBER = 'Shop_ShopMember',
|
|
18
17
|
APP_SHOP_PAY_MEMBER = 'Shop_PayShopMember',
|
|
19
18
|
SHOP_MEMBER_EXCHANGE_NEW = 'Shop_ShopMemberExchangedNew',
|
|
20
19
|
SHOP_MEMBER_RECEIVED = 'Shop_ShopMemberReceived'
|
|
21
20
|
MOBILE = 'Shop_ShopMain',
|
|
22
21
|
APP = 'TerminatorNew_All',
|
|
23
22
|
WX_JDGW_SHOP = 'W_jdgwxcx_shop',
|
|
24
23
|
APP_SHOP_DETAIL = 'Shop_ShopDetail',
|
|
25
24
|
MOBILE_SEARCH = 'MShop_SearchResult',
|
|
26
25
|
STOW_SHOP_VIEW = 'Shop_FollowShopMain',
|
|
27
26
|
APP_SHOP_CARD = 'Shop_ShopCard',
|
|
28
27
|
APP_SHOP_MEMBER = 'Shop_ShopMember',
|
|
29
28
|
APP_SHOP_PAY_MEMBER = 'Shop_PayShopMember',
|
|
30
29
|
SHOP_MEMBER_EXCHANGE_NEW = 'Shop_ShopMemberExchangedNew',
|
|
31
30
|
SHOP_MEMBER_RECEIVED = 'Shop_ShopMemberReceived',
|
|
32
31
|
APP_SHOP_NEW_PRODUCT = 'Shop_ProductNew',
|
|
33
32
|
APP_SHOP_NEW_PRODUCT_VIDEO = 'Shop_ProductNewVideo',
|
|
34
33
|
APP_SHOP_NEW_PRODUCT_PREFERRED_GOODS = 'shop_preferredGoods',
|
|
35
34
|
APP_SHOP_BUYER_SHOW = 'Shop_ShopBuyerShow',
|
|
36
35
|
SALE_VIEW = 'Shop_NewActivity'
|
|
37
36
|
ACTIVITY_INIT: 'activityInit',
|
|
38
37
|
SHOP_HEADER: 'shopHeader',
|
|
39
38
|
SHOP_FOOTER: 'shopFooter',
|
|
40
39
|
SHOP_HOME: 'jshopMain',
|
|
41
40
|
SHOP_FOLLOW_BTN: 'shopFollowBtn',
|
|
42
41
|
SHOP_UNFOLLOW_BTN: 'shopUnFollowBtn',
|
|
43
42
|
NETWORK_ERR: 'networkerr',
|
|
44
43
|
RANK_LIST_MORE: 'Jx_Terminator_ShopRankListMore',
|
|
45
44
|
RANK_LIST_TAG: 'Jx_Terminator_ShopRankListTag',
|
|
46
45
|
RANK_LIST: 'Jx_Terminator_ShopRankList',
|
|
47
46
|
EXPO_RANK_LIST: 'Jx_Terminator_Expo_shopRankList',
|
|
48
47
|
[LogEventIds.SHOP_HOME]: 'Jx_Terminator_1620613767283|1',
|
|
49
48
|
[LogEventIds.SHOP_FOLLOW_BTN]: 'Jx_Terminator_1620613767283|2',
|
|
50
49
|
[LogEventIds.SHOP_UNFOLLOW_BTN]: 'Jx_Terminator_1620613767283|3',
|
|
51
50
|
[LogEventIds.NETWORK_ERR]: 'Jx_Terminator_1620613767283|4',
|
|
52
51
|
[LogEventIds.RANK_LIST_MORE]: 'Jx_Terminator_ShopRankListMore',
|
|
53
52
|
[LogEventIds.RANK_LIST_TAG]: 'Jx_Terminator_ShopRankListTag',
|
|
54
53
|
[LogEventIds.RANK_LIST]: 'Jx_Terminator_ShopRankList',
|
|
55
54
|
[LogEventIds.EXPO_RANK_LIST]: 'Jx_Terminator_Expo_shopRankList',
|
|
55
|
+
export enum LogPnameInfo {
|
|
56
56
|
HOME = 'home',
|
|
57
57
|
MEMBER = 'member',
|
|
58
58
|
CLASSIFY = 'classify',
|
|
59
59
|
PROMOTION = 'promotion',
|
|
60
60
|
WX_SHOP_HOME = 'wx_shop_home',
|
|
61
61
|
APP_SHOP_DETAIL = 'app_Shop_ShopDetail',
|
|
62
62
|
MOBILE_SEARCH = 'MShop_SearchResult',
|
|
63
63
|
SALE_VIEW = 'Shop_NewActivity',
|
|
64
64
|
STOW_SHOP_VIEW = 'Shop_FollowShopMain',
|
|
65
65
|
APP_SHOP_NEW_PRODUCT = 'Shop_ProductNew',
|
|
66
66
|
APP_SHOP_NEW_PRODUCT_VIDEO = 'Shop_ProductNewVideo',
|
|
67
67
|
APP_SHOP_NEW_PRODUCT_PREFERRED_GOODS = 'shop_preferredGoods',
|
|
68
68
|
APP_SHOP_BUYER_SHOW = 'Shop_ShopBuyerShow',
|
|
69
69
|
APP_SHOP_CARD = 'Shop_ShopCard',
|
|
70
70
|
APP_SHOP_MEMBER = 'Shop_ShopMember',
|
|
71
71
|
APP_SHOP_PAY_MEMBER = 'Shop_PayShopMember',
|
|
72
72
|
SHOP_MEMBER_EXCHANGE_NEW = 'Shop_ShopMemberExchangedNew',
|
|
73
73
|
SHOP_MEMBER_RECEIVED = 'Shop_ShopMemberReceived'
|
|
74
74
|
MOBILE = 'Shop_ShopMain',
|
|
75
75
|
APP = 'TerminatorNew_All',
|
|
76
76
|
WX_JDGW_SHOP = 'W_jdgwxcx_shop',
|
|
77
77
|
APP_SHOP_DETAIL = 'Shop_ShopDetail',
|
|
78
78
|
MOBILE_SEARCH = 'MShop_SearchResult',
|
|
79
79
|
STOW_SHOP_VIEW = 'Shop_FollowShopMain',
|
|
80
80
|
APP_SHOP_CARD = 'Shop_ShopCard',
|
|
81
81
|
APP_SHOP_MEMBER = 'Shop_ShopMember',
|
|
82
82
|
APP_SHOP_PAY_MEMBER = 'Shop_PayShopMember',
|
|
83
83
|
SHOP_MEMBER_EXCHANGE_NEW = 'Shop_ShopMemberExchangedNew',
|
|
84
84
|
SHOP_MEMBER_RECEIVED = 'Shop_ShopMemberReceived',
|
|
85
85
|
APP_SHOP_NEW_PRODUCT = 'Shop_ProductNew',
|
|
86
86
|
APP_SHOP_NEW_PRODUCT_VIDEO = 'Shop_ProductNewVideo',
|
|
87
87
|
APP_SHOP_NEW_PRODUCT_PREFERRED_GOODS = 'shop_preferredGoods',
|
|
88
88
|
APP_SHOP_BUYER_SHOW = 'Shop_ShopBuyerShow',
|
|
89
89
|
SALE_VIEW = 'Shop_NewActivity'
|
|
90
90
|
ACTIVITY_INIT: 'activityInit',
|
|
91
91
|
SHOP_HEADER: 'shopHeader',
|
|
92
92
|
SHOP_FOOTER: 'shopFooter',
|
|
93
93
|
SHOP_HOME: 'jshopMain',
|
|
94
94
|
SHOP_FOLLOW_BTN: 'shopFollowBtn',
|
|
95
95
|
SHOP_UNFOLLOW_BTN: 'shopUnFollowBtn',
|
|
96
96
|
NETWORK_ERR: 'networkerr',
|
|
97
97
|
RANK_LIST_MORE: 'Jx_Terminator_ShopRankListMore',
|
|
98
98
|
RANK_LIST_TAG: 'Jx_Terminator_ShopRankListTag',
|
|
99
99
|
RANK_LIST: 'Jx_Terminator_ShopRankList',
|
|
100
100
|
EXPO_RANK_LIST: 'Jx_Terminator_Expo_shopRankList',
|
|
101
101
|
[LogEventIds.SHOP_HOME]: 'Jx_Terminator_1620613767283|1',
|
|
102
102
|
[LogEventIds.SHOP_FOLLOW_BTN]: 'Jx_Terminator_1620613767283|2',
|
|
103
103
|
[LogEventIds.SHOP_UNFOLLOW_BTN]: 'Jx_Terminator_1620613767283|3',
|
|
104
104
|
[LogEventIds.NETWORK_ERR]: 'Jx_Terminator_1620613767283|4',
|
|
105
105
|
[LogEventIds.RANK_LIST_MORE]: 'Jx_Terminator_ShopRankListMore',
|
|
106
106
|
[LogEventIds.RANK_LIST_TAG]: 'Jx_Terminator_ShopRankListTag',
|
|
107
107
|
[LogEventIds.RANK_LIST]: 'Jx_Terminator_ShopRankList',
|
|
108
108
|
[LogEventIds.EXPO_RANK_LIST]: 'Jx_Terminator_Expo_shopRankList',
|