@conecli/cone-render 0.9.1-shop2.3 → 0.9.1-shop2.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/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/jssdk.ts +1 -0
- package/dist/common/pageType.ts +1 -0
- package/dist/common/token/index.h5.ts +1 -1
- package/dist/common/token/token.jd.ts +1 -1
- package/dist/components/base/CustomScrollView/index.tsx +1 -1
- package/dist/components/base/Exposure/index.h5.tsx +1 -1
- package/dist/components/base/ExposureSmart/index.h5.tsx +1 -1
- package/dist/components/base/ExposureSmart/index.tsx +1 -1
- package/dist/components/base/ExposureSmart/reporter.tsx +1 -1
- package/dist/components/base/InViewRender/index.tsx +1 -1
- package/dist/components/base/ItemViewExposureSmart/index.tsx +1 -1
- package/dist/components/base/LazyLoadImage/const.ts +1 -1
- package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
- package/dist/components/base/MobileCommonHeader/index.module.scss +9 -0
- package/dist/components/base/MobileCommonHeader/index.tsx +1 -0
- package/dist/components/base/NetworkDataError/const.ts +1 -1
- package/dist/components/base/NetworkDataError/index.module.scss +4 -0
- package/dist/components/base/NetworkDataError/index.tsx +1 -1
- package/dist/components/base/Price/Double/index.tsx +1 -1
- package/dist/components/base/Price/index.tsx +1 -1
- package/dist/components/decorate/DecorateFloorModule/index.module.scss +21 -2
- package/dist/components/decorate/DecorateFloorModule/index.tsx +1 -1
- package/dist/components/decorate/EmptyFloorModule/index.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/jumpEventReport/const.ts +1 -1
- package/dist/jumpEventReport/createReportFloorData.ts +1 -1
- package/dist/jumpEventReport/index.weapp.ts +1 -1
- package/dist/jumpEventReport/jdJumpJdApp.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.wxapp.ts +1 -1
- 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/index.ts +1 -1
- package/dist/open/api/track.ts +1 -1
- package/dist/open/components/index.ts +1 -1
- package/dist/service/fetchGateway.ts +1 -1
- package/dist/service/http/const.ts +1 -1
- package/dist/service/requestServer.ts +1 -1
- 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/utils.ts +1 -1
- package/package.json +1 -1
|
@@ -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
|
MOBILE_SEARCH = 'MShop_SearchResult',
|
|
11
10
|
APP_SHOP_MEMBER = 'Shop_ShopCard'
|
|
11
|
+
export enum LogPnameInfo {
|
|
12
12
|
HOME = 'home',
|
|
13
13
|
MEMBER = 'member',
|
|
14
14
|
CLASSIFY = 'classify',
|
|
15
15
|
PROMOTION = 'promotion',
|
|
16
16
|
WX_SHOP_HOME = 'wx_shop_home',
|
|
17
17
|
APP_SHOP_DETAIL = 'app_Shop_ShopDetail',
|
|
18
18
|
MOBILE_SEARCH = 'MShop_SearchResult',
|
|
19
19
|
APP_SHOP_MEMBER = 'Shop_ShopCard',
|
|
20
20
|
SALE_VIEW = 'Shop_NewActivity',
|
|
21
21
|
APP_SHOP_NEW_PRODUCT = 'Shop_ProductNew',
|
|
22
22
|
APP_SHOP_NEW_PRODUCT_VIDEO = 'Shop_ProductNewVideo',
|
|
23
23
|
MOBILE = 'Shop_ShopMain',
|
|
24
24
|
APP = 'TerminatorNew_All',
|
|
25
25
|
WX_JDGW_SHOP = 'W_jdgwxcx_shop',
|
|
26
26
|
APP_SHOP_DETAIL = 'Shop_ShopDetail',
|
|
27
27
|
MOBILE_SEARCH = 'MShop_SearchResult',
|
|
28
28
|
APP_SHOP_MEMBER = 'Shop_ShopCard',
|
|
29
29
|
APP_SHOP_NEW_PRODUCT = 'Shop_ProductNew',
|
|
30
30
|
APP_SHOP_NEW_PRODUCT_VIDEO = 'Shop_ProductNewVideo',
|
|
31
31
|
SALE_VIEW = 'Shop_NewActivity'
|
|
32
32
|
ACTIVITY_INIT: 'activityInit',
|
|
33
33
|
SHOP_HEADER: 'shopHeader',
|
|
34
34
|
SHOP_FOOTER: 'shopFooter',
|
|
35
35
|
SHOP_HOME: 'jshopMain',
|
|
36
36
|
SHOP_FOLLOW_BTN: 'shopFollowBtn',
|
|
37
37
|
SHOP_UNFOLLOW_BTN: 'shopUnFollowBtn',
|
|
38
38
|
NETWORK_ERR: 'networkerr',
|
|
39
39
|
RANK_LIST_MORE: 'Jx_Terminator_ShopRankListMore',
|
|
40
40
|
RANK_LIST_TAG: 'Jx_Terminator_ShopRankListTag',
|
|
41
41
|
RANK_LIST: 'Jx_Terminator_ShopRankList',
|
|
42
42
|
EXPO_RANK_LIST: 'Jx_Terminator_Expo_shopRankList',
|
|
43
43
|
[LogEventIds.SHOP_HOME]: 'Jx_Terminator_1620613767283|1',
|
|
44
44
|
[LogEventIds.SHOP_FOLLOW_BTN]: 'Jx_Terminator_1620613767283|2',
|
|
45
45
|
[LogEventIds.SHOP_UNFOLLOW_BTN]: 'Jx_Terminator_1620613767283|3',
|
|
46
46
|
[LogEventIds.NETWORK_ERR]: 'Jx_Terminator_1620613767283|4',
|
|
47
47
|
[LogEventIds.RANK_LIST_MORE]: 'Jx_Terminator_ShopRankListMore',
|
|
48
48
|
[LogEventIds.RANK_LIST_TAG]: 'Jx_Terminator_ShopRankListTag',
|
|
49
49
|
[LogEventIds.RANK_LIST]: 'Jx_Terminator_ShopRankList',
|
|
50
50
|
[LogEventIds.EXPO_RANK_LIST]: 'Jx_Terminator_Expo_shopRankList',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import { sgmCustomReport } from '../../utils'
|
|
2
1
|
if (window.MPing) {
|
|
3
2
|
resolve(true)
|
|
4
3
|
} else {
|
|
5
4
|
if (isReportReadyError) {
|
|
6
5
|
reject(false)
|
|
7
6
|
} else {
|
|
8
7
|
ready('MPing', 3000).then(() => {
|
|
9
8
|
isReportReadyError = false
|
|
10
9
|
resolve(true)
|
|
11
10
|
}).catch(() => {
|
|
12
11
|
isReportReadyError = true
|
|
13
12
|
reject(false)
|
|
14
13
|
})
|
|
15
14
|
}
|
|
16
15
|
}
|
|
17
16
|
return new Promise((resolve, reject) => {
|
|
18
17
|
const { pageId, pageParam, pTag, ...otherParam } = opts
|
|
19
18
|
getReportObjReadyPromise().then(() => {
|
|
20
19
|
const pv = new MPing.inputs.PV({
|
|
21
20
|
page_id: pageId,
|
|
22
21
|
})
|
|
23
22
|
pv.page_param = pageParam
|
|
24
23
|
otherParam &&
|
|
25
24
|
Object.keys(otherParam).forEach((key) => {
|
|
26
25
|
pv[key] = otherParam[key]
|
|
27
26
|
})
|
|
28
27
|
if (window.wqlog && pTag) {
|
|
29
28
|
wqlog('wqmodule.send', 'pv', {
|
|
30
29
|
ptag: pTag,
|
|
31
30
|
})
|
|
32
31
|
console.log('wqmodule.send-pv pTag 上报完毕', pTag)
|
|
33
32
|
}
|
|
34
33
|
const mping = new MPing()
|
|
35
34
|
mping.send(pv)
|
|
36
35
|
setTimeout(() => resolve(true), 200)
|
|
37
36
|
}).catch(e => {
|
|
38
37
|
reject(e)
|
|
39
38
|
})
|
|
40
39
|
}).catch(err => {
|
|
41
40
|
console.log("上报异常", err)
|
|
42
41
|
sgmCustomReport({
|
|
43
42
|
code: 'reportErr',
|
|
44
43
|
msg: '埋点js加载异常,导致MPing不存在,pv具体上报参数如下==>' + JSON.stringify(opts),
|
|
45
44
|
})
|
|
46
45
|
})
|
|
47
46
|
return new Promise((resolve, reject) => {
|
|
48
47
|
const {
|
|
49
48
|
eid,
|
|
50
49
|
eparam,
|
|
51
50
|
jsonParam,
|
|
52
51
|
pageParam,
|
|
53
52
|
elevel,
|
|
54
53
|
pageId = 'TerminatorNew_All',
|
|
55
54
|
} = opts
|
|
56
55
|
getReportObjReadyPromise().then(() => {
|
|
57
56
|
const click = new MPing.inputs.Click(eid)
|
|
58
57
|
click.json_param = jsonParam
|
|
59
58
|
if(eparam) {
|
|
60
59
|
click.event_param = jsonParam
|
|
61
60
|
}
|
|
62
61
|
click.page_id = pageId
|
|
63
62
|
click.page_name = pageName
|
|
64
63
|
pageParam && (click.page_param = pageParam)
|
|
65
64
|
elevel && (click.event_level = elevel)
|
|
66
65
|
click.updateEventSeries()
|
|
67
66
|
new MPing().send(click)
|
|
68
67
|
setTimeout(() => resolve(true), 200)
|
|
69
68
|
}).catch(e => {
|
|
70
69
|
reject(e)
|
|
71
70
|
})
|
|
72
71
|
}).catch(err => {
|
|
73
72
|
console.log("上报异常", err)
|
|
74
73
|
sgmCustomReport({
|
|
75
74
|
code: 'reportErr',
|
|
76
75
|
msg: '埋点js加载异常,导致MPing不存在,click具体上报参数如下==>' + JSON.stringify(opts),
|
|
77
76
|
})
|
|
78
77
|
})
|
|
79
78
|
const { jsonParam } = webLogParams
|
|
80
79
|
const { skuId } = opts
|
|
81
80
|
if(jsonParam && skuId) {
|
|
82
81
|
try {
|
|
83
82
|
let jsonObj = JSON.parse(jsonParam)
|
|
84
83
|
jsonObj['skuid'] = skuId + ''
|
|
85
84
|
webLogParams.jsonParam = JSON.stringify(jsonObj)
|
|
86
85
|
}catch (e) {
|
|
87
86
|
console.log(e)
|
|
88
87
|
}
|
|
89
88
|
}
|
|
90
89
|
return reportClick(webLogParams)
|
|
90
|
+
import { sgmCustomReport } from '../../utils'
|
|
91
91
|
if (window.MPing) {
|
|
92
92
|
resolve(true)
|
|
93
93
|
} else {
|
|
94
94
|
if (isReportReadyError) {
|
|
95
95
|
reject(false)
|
|
96
96
|
} else {
|
|
97
97
|
ready('MPing', 3000).then(() => {
|
|
98
98
|
isReportReadyError = false
|
|
99
99
|
resolve(true)
|
|
100
100
|
}).catch(() => {
|
|
101
101
|
isReportReadyError = true
|
|
102
102
|
reject(false)
|
|
103
103
|
})
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
return new Promise((resolve, reject) => {
|
|
107
107
|
const { pageId, pageParam, pTag, ...otherParam } = opts
|
|
108
108
|
getReportObjReadyPromise().then(() => {
|
|
109
109
|
const pv = new MPing.inputs.PV({
|
|
110
110
|
page_id: pageId,
|
|
111
111
|
})
|
|
112
112
|
pv.page_param = pageParam
|
|
113
113
|
otherParam &&
|
|
114
114
|
Object.keys(otherParam).forEach((key) => {
|
|
115
115
|
pv[key] = otherParam[key]
|
|
116
116
|
})
|
|
117
117
|
const mping = new MPing()
|
|
118
118
|
mping.send(pv)
|
|
119
119
|
setTimeout(() => resolve(true), 200)
|
|
120
120
|
}).catch(e => {
|
|
121
121
|
reject(e)
|
|
122
122
|
})
|
|
123
123
|
}).catch(err => {
|
|
124
124
|
console.log("上报异常", err)
|
|
125
125
|
sgmCustomReport({
|
|
126
126
|
code: 'reportErr',
|
|
127
127
|
msg: '埋点js加载异常,导致MPing不存在,pv具体上报参数如下==>' + JSON.stringify(opts),
|
|
128
128
|
})
|
|
129
129
|
})
|
|
130
130
|
return new Promise((resolve, reject) => {
|
|
131
131
|
const {
|
|
132
132
|
eid,
|
|
133
133
|
eparam,
|
|
134
134
|
jsonParam,
|
|
135
135
|
pageParam,
|
|
136
136
|
elevel,
|
|
137
137
|
pageId = 'TerminatorNew_All',
|
|
138
138
|
} = opts
|
|
139
139
|
getReportObjReadyPromise().then(() => {
|
|
140
140
|
const click = new MPing.inputs.Click(eid)
|
|
141
141
|
click.json_param = jsonParam
|
|
142
142
|
if(eparam) {
|
|
143
143
|
click.event_param = jsonParam
|
|
144
144
|
}
|
|
145
145
|
click.page_id = pageId
|
|
146
146
|
click.page_name = pageName
|
|
147
147
|
pageParam && (click.page_param = pageParam)
|
|
148
148
|
elevel && (click.event_level = elevel)
|
|
149
149
|
click.updateEventSeries()
|
|
150
150
|
new MPing().send(click)
|
|
151
151
|
setTimeout(() => resolve(true), 200)
|
|
152
152
|
}).catch(e => {
|
|
153
153
|
reject(e)
|
|
154
154
|
})
|
|
155
155
|
}).catch(err => {
|
|
156
156
|
console.log("上报异常", err)
|
|
157
157
|
sgmCustomReport({
|
|
158
158
|
code: 'reportErr',
|
|
159
159
|
msg: '埋点js加载异常,导致MPing不存在,click具体上报参数如下==>' + JSON.stringify(opts),
|
|
160
160
|
})
|
|
161
161
|
})
|
|
162
162
|
const { jsonParam } = webLogParams
|
|
163
163
|
const { skuId } = opts
|
|
164
164
|
if(jsonParam && skuId) {
|
|
165
165
|
try {
|
|
166
166
|
let jsonObj = JSON.parse(jsonParam)
|
|
167
167
|
jsonObj['skuid'] = skuId + ''
|
|
168
168
|
webLogParams.jsonParam = JSON.stringify(jsonObj)
|
|
169
169
|
}catch (e) {
|
|
170
170
|
console.log(e)
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
return reportClick(webLogParams)
|