@conecli/cone-render 0.8.34 → 0.8.35
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/components/base/CustomScrollView/index.tsx +1 -1
- package/dist/components/base/ExposureSmart/const.ts +1 -0
- package/dist/components/base/ExposureSmart/index.h5.module.scss +18 -4
- package/dist/components/base/ExposureSmart/index.h5.tsx +1 -1
- package/dist/components/base/ExposureSmart/index.module.scss +20 -9
- package/dist/components/base/ExposureSmart/index.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 +8 -0
- package/dist/components/base/ItemViewExposureSmart/index.tsx +1 -0
- package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
- package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
- package/dist/components/base/NetworkDataError/const.ts +1 -1
- package/dist/components/base/NetworkDataError/index.module.scss +4 -1
- package/dist/components/decorate/DecorateFloorModule/index.tsx +1 -1
- package/dist/interface/common.ts +1 -1
- package/dist/jumpEventReport/base.ts +1 -1
- package/dist/jumpEventReport/createReportFloorData.ts +1 -1
- package/dist/jumpEventReport/index.h5.ts +1 -1
- package/dist/jumpEventReport/index.weapp.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 -0
- package/dist/libs/taroAppReport.js +2 -2
- package/dist/modules/ContainerFloorList/index.h5.module.scss +10 -1
- package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
- package/dist/open/api/device.ts +1 -1
- package/dist/open/api/track.ts +1 -1
- package/dist/open/api/util.ts +1 -1
- package/dist/open/components/index.ts +1 -1
- package/dist/service/bMallConst.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/intersectionObserver.ts +1 -1
- package/dist/utils/jm-common.js +1 -1
- package/dist/utils/utils.ts +1 -1
- package/package.json +1 -1
- /package/dist/service/{bMallConst.wxapp.ts → bMallConst.weapp.ts} +0 -0
- /package/dist/service/http/{colorSign.wxapp.ts → colorSign.weapp.ts} +0 -0
|
@@ -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
|
pTag,
|
|
54
53
|
etModel,
|
|
55
54
|
exposureState,
|
|
56
55
|
elevel,
|
|
57
56
|
pageId = 'TerminatorNew_All',
|
|
58
57
|
} = opts
|
|
59
58
|
getReportObjReadyPromise().then(() => {
|
|
60
59
|
const click = new MPing.inputs.Click(eid)
|
|
61
60
|
click.json_param = jsonParam
|
|
62
61
|
if(eparam) {
|
|
63
62
|
click.event_param = jsonParam
|
|
64
63
|
}
|
|
65
64
|
click.et_model = etModel
|
|
66
65
|
click.page_id = pageId
|
|
67
66
|
click.page_name = pageName
|
|
68
67
|
pageParam && (click.page_param = pageParam)
|
|
69
68
|
if (window.wqlog && pTag) {
|
|
70
69
|
const sendTypeKey = exposureState
|
|
71
70
|
? 'wg_wx.000003'
|
|
72
71
|
: 'wg_wx.000001'
|
|
73
72
|
wqlog('wqmodule.send', sendTypeKey, {
|
|
74
73
|
ptag: pTag,
|
|
75
74
|
})
|
|
76
75
|
console.log(
|
|
77
76
|
`wqmodule.send-exposureState ${exposureState} pTag 上报完毕01是点击03是曝光`,
|
|
78
77
|
pTag,
|
|
79
78
|
sendTypeKey,
|
|
80
79
|
)
|
|
81
80
|
}
|
|
82
81
|
elevel && (click.event_level = elevel)
|
|
83
82
|
click.updateEventSeries()
|
|
84
83
|
new MPing().send(click)
|
|
85
84
|
setTimeout(() => resolve(true), 200)
|
|
86
85
|
}).catch(e => {
|
|
87
86
|
reject(e)
|
|
88
87
|
})
|
|
89
88
|
}).catch(err => {
|
|
90
89
|
console.log("上报异常", err)
|
|
91
90
|
sgmCustomReport({
|
|
92
91
|
code: 'reportErr',
|
|
93
92
|
msg: '埋点js加载异常,导致MPing不存在,click具体上报参数如下==>' + JSON.stringify(opts),
|
|
94
93
|
})
|
|
95
94
|
})
|
|
96
95
|
return new Promise((resolve, reject) => {
|
|
97
96
|
const {
|
|
98
97
|
eid,
|
|
99
98
|
eparam,
|
|
100
99
|
jsonParam,
|
|
101
100
|
pageParam,
|
|
102
101
|
skuId,
|
|
103
102
|
pageId = 'TerminatorNew_All',
|
|
104
103
|
} = opts
|
|
105
104
|
getReportObjReadyPromise().then(() => {
|
|
106
105
|
const cart = new MPing.inputs.AddCart(eid, skuId)
|
|
107
106
|
cart.event_param = eparam
|
|
108
107
|
cart.json_param = jsonParam
|
|
109
108
|
cart.page_id = pageId
|
|
110
109
|
cart.page_name = pageName
|
|
111
110
|
pageParam && (cart.page_param = pageParam)
|
|
112
111
|
const mping = new MPing()
|
|
113
112
|
mping.send(cart)
|
|
114
113
|
setTimeout(() => resolve(true), 200)
|
|
115
114
|
}).catch(e => {
|
|
116
115
|
reject(e)
|
|
117
116
|
})
|
|
118
117
|
}).catch(err => {
|
|
119
118
|
console.log("上报异常", err)
|
|
120
119
|
sgmCustomReport({
|
|
121
120
|
code: 'reportErr',
|
|
122
121
|
msg: '埋点js加载异常,导致MPing不存在,toCart具体上报参数如下==>' + JSON.stringify(opts),
|
|
123
122
|
})
|
|
124
123
|
})
|
|
124
|
+
import { sgmCustomReport } from '../../utils'
|
|
125
125
|
if (window.MPing) {
|
|
126
126
|
resolve(true)
|
|
127
127
|
} else {
|
|
128
128
|
if (isReportReadyError) {
|
|
129
129
|
reject(false)
|
|
130
130
|
} else {
|
|
131
131
|
ready('MPing', 3000).then(() => {
|
|
132
132
|
isReportReadyError = false
|
|
133
133
|
resolve(true)
|
|
134
134
|
}).catch(() => {
|
|
135
135
|
isReportReadyError = true
|
|
136
136
|
reject(false)
|
|
137
137
|
})
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
return new Promise((resolve, reject) => {
|
|
141
141
|
const { pageId, pageParam, pTag, ...otherParam } = opts
|
|
142
142
|
getReportObjReadyPromise().then(() => {
|
|
143
143
|
const pv = new MPing.inputs.PV({
|
|
144
144
|
page_id: pageId,
|
|
145
145
|
})
|
|
146
146
|
pv.page_param = pageParam
|
|
147
147
|
otherParam &&
|
|
148
148
|
Object.keys(otherParam).forEach((key) => {
|
|
149
149
|
pv[key] = otherParam[key]
|
|
150
150
|
})
|
|
151
151
|
if (window.wqlog && pTag) {
|
|
152
152
|
wqlog('wqmodule.send', 'pv', {
|
|
153
153
|
ptag: pTag,
|
|
154
154
|
})
|
|
155
155
|
console.log('wqmodule.send-pv pTag 上报完毕', pTag)
|
|
156
156
|
}
|
|
157
157
|
const mping = new MPing()
|
|
158
158
|
mping.send(pv)
|
|
159
159
|
setTimeout(() => resolve(true), 200)
|
|
160
160
|
}).catch(e => {
|
|
161
161
|
reject(e)
|
|
162
162
|
})
|
|
163
163
|
}).catch(err => {
|
|
164
164
|
console.log("上报异常", err)
|
|
165
165
|
sgmCustomReport({
|
|
166
166
|
code: 'reportErr',
|
|
167
167
|
msg: '埋点js加载异常,导致MPing不存在,pv具体上报参数如下==>' + JSON.stringify(opts),
|
|
168
168
|
})
|
|
169
169
|
})
|
|
170
170
|
return new Promise((resolve, reject) => {
|
|
171
171
|
const {
|
|
172
172
|
eid,
|
|
173
173
|
eparam,
|
|
174
174
|
jsonParam,
|
|
175
175
|
pageParam,
|
|
176
176
|
elevel,
|
|
177
177
|
pageId = 'TerminatorNew_All',
|
|
178
178
|
} = opts
|
|
179
179
|
getReportObjReadyPromise().then(() => {
|
|
180
180
|
const click = new MPing.inputs.Click(eid)
|
|
181
181
|
click.json_param = jsonParam
|
|
182
182
|
if(eparam) {
|
|
183
183
|
click.event_param = jsonParam
|
|
184
184
|
}
|
|
185
185
|
click.page_id = pageId
|
|
186
186
|
click.page_name = pageName
|
|
187
187
|
pageParam && (click.page_param = pageParam)
|
|
188
188
|
elevel && (click.event_level = elevel)
|
|
189
189
|
click.updateEventSeries()
|
|
190
190
|
new MPing().send(click)
|
|
191
191
|
setTimeout(() => resolve(true), 200)
|
|
192
192
|
}).catch(e => {
|
|
193
193
|
reject(e)
|
|
194
194
|
})
|
|
195
195
|
}).catch(err => {
|
|
196
196
|
console.log("上报异常", err)
|
|
197
197
|
sgmCustomReport({
|
|
198
198
|
code: 'reportErr',
|
|
199
199
|
msg: '埋点js加载异常,导致MPing不存在,click具体上报参数如下==>' + JSON.stringify(opts),
|
|
200
200
|
})
|
|
201
201
|
})
|
|
202
202
|
const { jsonParam } = webLogParams
|
|
203
203
|
const { skuId } = opts
|
|
204
204
|
if(jsonParam && skuId) {
|
|
205
205
|
try {
|
|
206
206
|
let jsonObj = JSON.parse(jsonParam)
|
|
207
207
|
jsonObj['skuid'] = skuId + ''
|
|
208
208
|
webLogParams.jsonParam = JSON.stringify(jsonObj)
|
|
209
209
|
}catch (e) {
|
|
210
210
|
console.log(e)
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
return reportClick(webLogParams)
|