@conecli/cone-render 0.9.1-shop2.8 → 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/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 -0
- 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 -0
- package/dist/common/wxappApi.jd.ts +1 -0
- package/dist/components/ErrorBoundary.tsx +1 -1
- package/dist/components/base/CustomScrollView/index.jd.tsx +1 -0
- package/dist/components/base/CustomScrollView/index.module.scss +7 -0
- 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/floorItem.jd.tsx +1 -1
- package/dist/components/floorItem.weapp.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/interface/jumpEventReport.ts +1 -1
- package/dist/interface/service.ts +1 -1
- package/dist/interface/utils.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.jd.ts +1 -1
- package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
- package/dist/jumpEventReport/web.jxwxapp.ts +1 -0
- package/dist/jumpEventReport/web.tjapp.ts +1 -0
- package/dist/jumpEventReport/web.tjm.ts +1 -0
- 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/sass/app.h5.scss +5 -0
- package/dist/service/requestServer.ts +1 -1
- package/dist/utils/connectNativeJsBridge.ts +1 -1
- package/dist/utils/draExceptionAndProfile.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/jm-common.js +1 -1
- package/dist/utils/sgmCodeUtils.ts +1 -0
- package/dist/utils/utils.ts +1 -1
- package/package.json +42 -39
- package/dist/customHooks/useDocumentVisibilitychange.ts +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import global from '../common'
|
|
2
|
objectToUrlEncode,
|
|
1
3
|
parseQueryUrlString,
|
|
2
4
|
isTjScence,
|
|
3
5
|
isTjM,
|
|
4
6
|
isTjJxM,
|
|
5
7
|
isH5AdnJxMini,
|
|
6
8
|
tjChannel,
|
|
7
9
|
public logPageId: string
|
|
8
10
|
public jumpConfig: JumpEventReportInterFace.JumpH5ReportConfig
|
|
9
11
|
constructor(opt) {
|
|
10
12
|
super(opt)
|
|
11
13
|
this.getConfig(opt)
|
|
12
14
|
console.log('加载特价/京喜m的跳转js文件....')
|
|
13
15
|
}
|
|
14
16
|
|
|
15
17
|
getTjShopParam() {
|
|
16
18
|
const { tjshop } = global.info.queryInfo
|
|
17
19
|
const tjshopParam = tjshop ? `&tjshop=${tjshop}` : ''
|
|
18
20
|
const tjChannelStr = tjChannel ? `&tjChannel=${tjChannel}` : ''
|
|
19
21
|
return `${tjshopParam}${tjChannelStr}`
|
|
20
22
|
}
|
|
21
23
|
|
|
22
24
|
jdJumpToProduct(skuIds, logEventInfo) {
|
|
23
25
|
skuIds = skuIds.toString().trim()
|
|
24
26
|
const getSkuId = skuIds.indexOf(',') !== -1 ? skuIds.split(',')[0] : skuIds
|
|
25
27
|
const { jingxiSdx, ...otherLogInfo } = logEventInfo
|
|
26
28
|
let url = `${this.jumpWebUrl.detail}${getSkuId}.html`
|
|
27
29
|
if (isTjScence) {
|
|
28
30
|
if (isTjM) {
|
|
29
31
|
url = `${this.jumpWebUrl.tjDetail}?wareId=${getSkuId}`
|
|
30
32
|
} else if (isTjJxM) {
|
|
31
33
|
const { _fd } = global.info.queryInfo
|
|
32
34
|
const fd = _fd ? `&_fd=${_fd}` : ''
|
|
33
35
|
url = `${this.jumpWebUrl.jxDetail}?sku=${getSkuId}${fd}`
|
|
34
36
|
}
|
|
35
37
|
}
|
|
36
38
|
if (jingxiSdx) {
|
|
37
39
|
this.jdNavigateToNative(`${url}?sdx=${jingxiSdx}`, otherLogInfo)
|
|
38
40
|
} else {
|
|
39
41
|
this.jdNavigateToNative(url, logEventInfo)
|
|
40
42
|
}
|
|
41
43
|
}
|
|
42
44
|
|
|
43
45
|
jdJumpToShopHome(shopInfo: JumpEventReportInterFace.ShopIdsInfo = {}) {
|
|
44
46
|
const getInfo = Object.assign(
|
|
45
47
|
{},
|
|
46
48
|
{
|
|
47
49
|
shopId: global.info.queryInfo.shopId,
|
|
48
50
|
venderId: global.info.queryInfo.venderId,
|
|
49
51
|
},
|
|
50
52
|
shopInfo,
|
|
51
53
|
)
|
|
52
54
|
this.jdNavigateToNative(
|
|
53
55
|
`${this.jumpWebUrl.mshop}?${objectToUrlEncode(
|
|
54
56
|
this.getShopIdOrVenderIdParams(getInfo),
|
|
55
57
|
)}${this.getTjShopParam()}`,
|
|
56
58
|
{
|
|
57
59
|
...getInfo,
|
|
58
60
|
},
|
|
59
61
|
)
|
|
60
62
|
}
|
|
61
63
|
|
|
62
64
|
jdJumpToWeb(
|
|
63
65
|
url,
|
|
64
66
|
logEventInfo,
|
|
65
67
|
successBack?: Function | undefined,
|
|
66
68
|
failBack?: Function | undefined,
|
|
67
69
|
) {
|
|
68
70
|
console.log('web.tjm.ts - jdJumpToWeb')
|
|
69
71
|
if (url.indexOf('tjshop') == -1) {
|
|
70
72
|
url = url + this.getTjShopParam()
|
|
71
73
|
}
|
|
72
74
|
this.jdNavigateToNative(
|
|
73
75
|
url,
|
|
74
76
|
{
|
|
75
77
|
...logEventInfo,
|
|
76
78
|
},
|
|
77
79
|
successBack,
|
|
78
80
|
failBack,
|
|
79
81
|
)
|
|
80
82
|
}
|
|
81
83
|
|
|
82
84
|
jdJumpConfigUrl(detail, logEventInfo = {}) {
|
|
83
85
|
const { configDataType, configDataValue } = detail
|
|
84
86
|
console.log(
|
|
85
87
|
'jdJumpConfigUrl web.tj.base configDataType:',
|
|
86
88
|
configDataType,
|
|
87
89
|
configDataValue,
|
|
88
90
|
)
|
|
89
91
|
switch (configDataType) {
|
|
90
92
|
case LinkConfigType.CONFIG_TYPE_SKU_LIST:
|
|
91
93
|
if (logEventInfo?.jsonParam?.logBaseInfo?.mInfo) {
|
|
92
94
|
logEventInfo.jsonParam.logBaseInfo.mInfo.skuid =
|
|
93
95
|
configDataValue.skuIds
|
|
94
96
|
}
|
|
95
97
|
this.jdJumpToProduct(configDataValue.skuIds, logEventInfo)
|
|
96
98
|
break
|
|
97
99
|
case LinkConfigType.CONFIG_TYPE_COUPON_LIST:
|
|
98
100
|
this.jdJumpToWeb(
|
|
99
101
|
`${this.jumpWebUrl.shopCoupon}?couponType=1&shopId=${global.info.queryInfo.shopId}&venderId=${global.info.queryInfo.venderId}`,
|
|
100
102
|
{},
|
|
101
103
|
)
|
|
102
104
|
break
|
|
103
105
|
case LinkConfigType.CONFIG_TYPE_CATEGORY:
|
|
104
106
|
if (this.isOpenJdAppUrl(configDataValue.clickUrl)) {
|
|
105
107
|
const getShopSearchParams = this.jdOpenAppParams(
|
|
106
108
|
configDataValue.clickUrl,
|
|
107
109
|
)
|
|
108
110
|
getShopSearchParams &&
|
|
109
111
|
this.jdJumpToShopSearch(
|
|
110
112
|
Object.assign({}, getShopSearchParams, {
|
|
111
113
|
logEventInfo,
|
|
112
114
|
}),
|
|
113
115
|
)
|
|
114
116
|
} else {
|
|
115
117
|
this.jdJumpToShopSearch(
|
|
116
118
|
configDataValue['cid']
|
|
117
119
|
? Object.assign(
|
|
118
120
|
{},
|
|
119
121
|
{
|
|
120
122
|
shopId: global.info.queryInfo.shopId,
|
|
121
123
|
categoryId: configDataValue.cid,
|
|
122
124
|
...configDataValue,
|
|
123
125
|
logEventInfo,
|
|
124
126
|
},
|
|
125
127
|
)
|
|
126
128
|
: {
|
|
127
129
|
shopId: global.info.queryInfo.shopId,
|
|
128
130
|
logEventInfo,
|
|
129
131
|
},
|
|
130
132
|
)
|
|
131
133
|
}
|
|
132
134
|
break
|
|
133
135
|
case LinkConfigType.CONFIG_TYPE_CATEGORY_PAGE:
|
|
134
136
|
this.jdJumpToShopCategory({
|
|
135
137
|
...configDataValue,
|
|
136
138
|
logEventInfo,
|
|
137
139
|
})
|
|
138
140
|
break
|
|
139
141
|
case LinkConfigType.CONFIG_TYPE_MEMBER:
|
|
140
142
|
if (this.isOpenJdAppUrl(configDataValue.clickUrl)) {
|
|
141
143
|
const getShopMemberParams = this.jdOpenAppParams(
|
|
142
144
|
configDataValue.clickUrl,
|
|
143
145
|
)
|
|
144
146
|
getShopMemberParams &&
|
|
145
147
|
this.jdJumpToShopMember(
|
|
146
148
|
Object.assign({}, getShopMemberParams, {
|
|
147
149
|
logEventInfo,
|
|
148
150
|
}),
|
|
149
151
|
)
|
|
150
152
|
} else {
|
|
151
153
|
this.jdJumpToShopMember({
|
|
152
154
|
shopId: global.info.queryInfo.shopId,
|
|
153
155
|
venderId: configDataValue.shopDetail,
|
|
154
156
|
logEventInfo,
|
|
155
157
|
})
|
|
156
158
|
}
|
|
157
159
|
break
|
|
158
160
|
case LinkConfigType.CONFIG_TYPE_SHOP_ACTIVITY:
|
|
159
161
|
if (this.isOpenJdAppUrl(configDataValue.clickUrl)) {
|
|
160
162
|
const getShopActivityParams = this.jdOpenAppParams(
|
|
161
163
|
configDataValue.clickUrl,
|
|
162
164
|
)
|
|
163
165
|
if (
|
|
164
166
|
getShopActivityParams &&
|
|
165
167
|
getShopActivityParams['des'] == 'jshopActivity'
|
|
166
168
|
) {
|
|
167
169
|
this.jdJumpToShopActivity({
|
|
168
170
|
projectId: configDataValue['projectId'],
|
|
169
171
|
configDataValue,
|
|
170
172
|
logEventInfo,
|
|
171
173
|
})
|
|
172
174
|
}
|
|
173
175
|
} else if (configDataValue['projectId']) {
|
|
174
176
|
this.jdJumpToShopActivity({
|
|
175
177
|
projectId: configDataValue['projectId'],
|
|
176
178
|
configDataValue,
|
|
177
179
|
logEventInfo,
|
|
178
180
|
})
|
|
179
181
|
}
|
|
180
182
|
break
|
|
181
183
|
case LinkConfigType.CONFIG_TYPE_CUSTOM_LINK:
|
|
182
184
|
case LinkConfigType.CONFIG_TYPE_FINANCE_COUPON:
|
|
183
185
|
let _url = configDataValue.linkUrl
|
|
184
186
|
const isProductM = /item\.m\.jd\.com/.test(_url)
|
|
185
187
|
const isProductPC = /item\.jd\.com/.test(_url)
|
|
186
188
|
if (isTjScence) {
|
|
187
189
|
const { appCode } = global.info.queryInfo
|
|
188
190
|
|
|
189
191
|
if (/(pro|prodev)\.jd\.com(\/mall\/)/.test(_url)) {
|
|
190
192
|
if (isH5AdnJxMini) {
|
|
191
193
|
_url =
|
|
192
194
|
_url.replace(
|
|
193
195
|
/([prodev]|[pro])(\.jd\.com)(\/mall)/,
|
|
194
196
|
'$1.m$2/mini',
|
|
195
197
|
) + `appCode=${appCode}&wxAppName=jx`
|
|
196
198
|
} else {
|
|
197
199
|
_url = _url.replace(
|
|
198
200
|
/([prodev]|[pro])(\.jd\.com)(\/mall)/,
|
|
199
201
|
'$1.m$2/jdlite',
|
|
200
202
|
)
|
|
201
203
|
}
|
|
202
204
|
} else if (/(pro|prodev)\.(m\.jd|jd)\.com(\/mall\/)/.test(_url)) {
|
|
203
205
|
if (isH5AdnJxMini) {
|
|
204
206
|
_url =
|
|
205
207
|
_url.replace(
|
|
206
208
|
/([prodev]|[pro])(\.m\.jd\.com)(\/mall)/,
|
|
207
209
|
'$1$2/mini',
|
|
208
210
|
) + `appCode=${appCode}&wxAppName=jx`
|
|
209
211
|
} else {
|
|
210
212
|
_url = _url.replace(
|
|
211
213
|
/([prodev]|[pro])(\.m\.jd\.com)(\/mall)/,
|
|
212
214
|
'$1$2/jdlite',
|
|
213
215
|
)
|
|
214
216
|
}
|
|
215
217
|
}
|
|
216
218
|
}
|
|
217
219
|
if (
|
|
218
220
|
_url.indexOf('to=') === -1 &&
|
|
219
221
|
_url.indexOf(`${domain.mshop.replace(/https?:/, '')}/?shopId=`) !== -1
|
|
220
222
|
) {
|
|
221
223
|
const _shopId = _url.match(/\d+/g)[0]
|
|
222
224
|
this.jdJumpToShopHome({
|
|
223
225
|
shopId: `${_shopId}`,
|
|
224
226
|
logEventInfo,
|
|
225
227
|
})
|
|
226
228
|
} else if (this.isOpenJdAppUrl(_url)) {
|
|
227
229
|
const getOpenAppParams: any = this.jdOpenAppParams(_url)
|
|
228
230
|
if (getOpenAppParams) {
|
|
229
231
|
if (getOpenAppParams.jumpTab == 'allProduct') {
|
|
230
232
|
this.jdJumpToTabAllProduct(
|
|
231
233
|
global.info.queryInfo.shopId,
|
|
232
234
|
global.info.queryInfo.venderId,
|
|
233
235
|
)
|
|
234
236
|
} else if (
|
|
235
237
|
getOpenAppParams.des == 'productList' &&
|
|
236
238
|
getOpenAppParams.from == 'couponBatch'
|
|
237
239
|
) {
|
|
238
240
|
this.jdJumpToCouponSearchProductList(getOpenAppParams?.couponId)
|
|
239
241
|
} else if (getOpenAppParams.des == 'vapp') {
|
|
240
242
|
this.jdJumpToWeb(
|
|
241
243
|
`https:
|
|
242
244
|
getOpenAppParams.category
|
|
243
245
|
}&des=${getOpenAppParams.des}&vapptype=${
|
|
244
246
|
getOpenAppParams.vapptype
|
|
245
247
|
}&appId=${getOpenAppParams.appId}&path=${
|
|
246
248
|
getOpenAppParams.path
|
|
247
249
|
}¶m=${encodeURI(JSON.stringify(getOpenAppParams.param))}`,
|
|
248
250
|
logEventInfo,
|
|
249
251
|
)
|
|
250
252
|
} else {
|
|
251
253
|
this.jdNavigateToNative(
|
|
252
254
|
'',
|
|
253
255
|
Object.assign({}, getOpenAppParams, {
|
|
254
256
|
logEventInfo,
|
|
255
257
|
}),
|
|
256
258
|
)
|
|
257
259
|
}
|
|
258
260
|
}
|
|
259
261
|
} else if (isProductM || isProductPC) {
|
|
260
262
|
const skuid = _url.match(/\d+/g)[0]
|
|
261
263
|
if (skuid) {
|
|
262
264
|
this.jdJumpToProduct(skuid, logEventInfo)
|
|
263
265
|
}
|
|
264
266
|
} else {
|
|
265
267
|
this.jdJumpToWeb(_url, logEventInfo)
|
|
266
268
|
}
|
|
267
269
|
break
|
|
268
270
|
case LinkConfigType.CONFIG_TYPE_JSHOP_DETAIL:
|
|
269
271
|
this.jdJumpToShopDetail({
|
|
270
272
|
venderId: global.info.queryInfo.venderId,
|
|
271
273
|
shopId: global.info.queryInfo.shopId,
|
|
272
274
|
logEventInfo,
|
|
273
275
|
})
|
|
274
276
|
break
|
|
275
277
|
case LinkConfigType.CONFIG_TYPE_SHOP_HOME:
|
|
276
278
|
this.jdJumpToShopHome({
|
|
277
279
|
...configDataValue,
|
|
278
280
|
logEventInfo,
|
|
279
281
|
})
|
|
280
282
|
break
|
|
281
283
|
case LinkConfigType.CONFIG_TYPE_ANCHOR_POINT:
|
|
282
284
|
break
|
|
283
285
|
case LinkConfigType.CONFIG_TYPE_SHOPPING_GUIDE:
|
|
284
286
|
if (this.isOpenJdAppUrl(configDataValue.clickUrl)) {
|
|
285
287
|
const getShoppingGuideParams = this.jdOpenAppParams(
|
|
286
288
|
configDataValue.clickUrl,
|
|
287
289
|
)
|
|
288
290
|
getShoppingGuideParams &&
|
|
289
291
|
this.jdJumpToShopActivity(
|
|
290
292
|
Object.assign({}, getShoppingGuideParams, {
|
|
291
293
|
logEventInfo,
|
|
292
294
|
}),
|
|
293
295
|
)
|
|
294
296
|
}
|
|
295
297
|
break
|
|
296
298
|
case LinkConfigType.CONFIG_TYPE_MINI_PROGRAM: {
|
|
297
299
|
const linkUrl = decodeURIComponent(configDataValue?.linkUrl || '')
|
|
298
300
|
const search = linkUrl.match(/\?.+/)
|
|
299
301
|
if (search) {
|
|
300
302
|
const miniQueryData: JumpEventReportInterFace.LinkMiniParams = parseQueryUrlString(
|
|
301
303
|
linkUrl,
|
|
302
304
|
)
|
|
303
305
|
try {
|
|
304
306
|
miniQueryData.param = JSON.parse(<string>miniQueryData?.param)
|
|
305
307
|
} catch (e) {
|
|
306
308
|
console.warn('解析小程序 param 错误:', miniQueryData.param)
|
|
307
309
|
}
|
|
308
310
|
this.jdJumpToMiniProgram(miniQueryData)
|
|
309
311
|
} else {
|
|
310
312
|
console.warn('小程序地址错误:', linkUrl)
|
|
311
313
|
}
|
|
312
314
|
break
|
|
313
315
|
}
|
|
314
316
|
default:
|
|
315
317
|
}
|
|
316
318
|
}
|
|
317
319
|
|
|
318
320
|
jdJumpToCouponSearchProductList(couponId, logEventInfo = {}) {
|
|
319
321
|
if (isTjM) return
|
|
320
322
|
let batchParam = isTjScence
|
|
321
323
|
? `coupon_batch=${couponId}`
|
|
322
324
|
: `couponbatch=${couponId}`
|
|
323
325
|
this.jdJumpToWeb(
|
|
324
326
|
`${this.jumpWebUrl.jxCouponSearch}?${batchParam}`,
|
|
325
327
|
logEventInfo,
|
|
326
328
|
)
|
|
327
329
|
}
|
|
328
330
|
|
|
329
331
|
jdNavigateToNative(
|
|
330
332
|
url: string,
|
|
331
333
|
params: {
|
|
332
334
|
logEventInfo?: object
|
|
333
335
|
} = {},
|
|
334
336
|
successBack?: Function | undefined,
|
|
335
337
|
failBack?: Function | undefined,
|
|
336
338
|
) {
|
|
337
339
|
const { logEventInfo } = params
|
|
338
340
|
const getEparam = logEventInfo || params
|
|
339
341
|
if (url.indexOf('tjshop') == -1) {
|
|
340
342
|
url = url + this.getTjShopParam()
|
|
341
343
|
}
|
|
342
344
|
console.log(`url:::::::${url}`)
|
|
343
345
|
global.info.pageInfo.dataType === BUSINESS_TYPE.ONLINE &&
|
|
344
346
|
this.clickEventLog(getEparam)
|
|
345
347
|
.then(() => {
|
|
346
348
|
typeof successBack == 'function'
|
|
347
349
|
? successBack(url)
|
|
348
350
|
: (window.location.href = url)
|
|
349
351
|
})
|
|
350
352
|
.catch(() => {
|
|
351
353
|
typeof failBack == 'function' && failBack(url)
|
|
352
354
|
})
|
|
353
355
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import taroJdBaseInfo from '../../common'
|
|
2
1
|
isIosDevice,
|
|
3
2
|
isAndroidDevice,
|
|
4
3
|
isH5,
|
|
5
4
|
isJdApp,
|
|
6
5
|
isJdMin,
|
|
7
6
|
isWxApp,
|
|
8
7
|
isWxMin,
|
|
9
8
|
isWxMinAndWxapp,
|
|
10
9
|
getNetworkType,
|
|
11
10
|
isIos: isIosDevice,
|
|
12
11
|
isAndroid: isAndroidDevice,
|
|
13
12
|
isH5,
|
|
14
13
|
isJdApp,
|
|
15
14
|
isJdMin,
|
|
16
15
|
isWxApp,
|
|
17
16
|
isWxMin,
|
|
18
17
|
isWxJgMin: isWxMinAndWxapp,
|
|
19
18
|
|
|
20
19
|
pageType: pageType,
|
|
21
20
|
return sysInfo.netWorkType
|
|
21
|
+
import taroJdBaseInfo from '../../common'
|
|
22
22
|
isIosDevice,
|
|
23
23
|
isAndroidDevice,
|
|
24
24
|
isH5,
|
|
25
25
|
isJdApp,
|
|
26
26
|
isJdMin,
|
|
27
27
|
isWxApp,
|
|
28
28
|
isWxMin,
|
|
29
29
|
isMin,
|
|
30
30
|
isWxMinAndWxapp,
|
|
31
31
|
getNetworkType,
|
|
32
32
|
isIos: isIosDevice,
|
|
33
33
|
isAndroid: isAndroidDevice,
|
|
34
34
|
isH5,
|
|
35
35
|
isJdApp,
|
|
36
36
|
isJdMin,
|
|
37
37
|
isWxApp,
|
|
38
38
|
isWxMin,
|
|
39
39
|
isMin,
|
|
40
40
|
isWxJgMin: isWxMinAndWxapp,
|
|
41
41
|
|
|
42
42
|
pageType: pageType,
|
|
43
43
|
return sysInfo.netWorkType
|
package/dist/open/api/index.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import * as device from './device'
|
|
2
1
|
device,
|
|
3
2
|
environment,
|
|
4
3
|
jump,
|
|
5
4
|
storage,
|
|
6
5
|
util,
|
|
7
6
|
moduleUtil,
|
|
8
7
|
track,
|
|
9
8
|
trackPromise,
|
|
10
9
|
global,
|
|
11
10
|
http,
|
|
12
11
|
fetchGateway,
|
|
13
12
|
fetchJsonp,
|
|
14
13
|
shopMember,
|
|
15
14
|
userToken,
|
|
16
15
|
TokenPlatform,
|
|
17
16
|
requestServer,
|
|
18
17
|
isvStorage,
|
|
18
|
+
import * as device from './device'
|
|
19
19
|
device,
|
|
20
20
|
environment,
|
|
21
21
|
jump,
|
|
22
22
|
storage,
|
|
23
23
|
util,
|
|
24
24
|
moduleUtil,
|
|
25
25
|
track,
|
|
26
26
|
trackPromise,
|
|
27
27
|
global,
|
|
28
28
|
http,
|
|
29
29
|
fetchGateway,
|
|
30
30
|
fetchJsonp,
|
|
31
31
|
shopMember,
|
|
32
32
|
userToken,
|
|
33
33
|
TokenPlatform,
|
|
34
34
|
requestServer,
|
|
35
35
|
isvStorage,
|
package/dist/open/api/track.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import { JumpEventReport, JumpEventReportPromise } from '../../jumpEventReport'
|
|
2
1
|
getCustomClickEventInfo: (obj: object, obj2: object, obj3: object, groupState?: boolean) => object
|
|
3
2
|
getCustomExposureInfo: (obj: object, obj2: object, obj3: object, groupState?: boolean) => object
|
|
4
3
|
initOpenTriggerExposure: (type: string) => void
|
|
5
4
|
logPageIdInfo: Object
|
|
6
5
|
logPnameInfo: Object
|
|
7
6
|
getFloorPointIndexClassName: (obj: object, index?: number, tip?: string) => string
|
|
8
7
|
getIsvClickEventInfo: (obj) => obj,
|
|
9
8
|
getIsvExposureInfo: (obj) => obj,
|
|
10
9
|
getCustomClickEventInfo: (obj) => obj,
|
|
11
10
|
getCustomExposureInfo: (obj) => obj,
|
|
12
11
|
initOpenTriggerExposure: () => {},
|
|
13
12
|
logPageIdInfo: {},
|
|
14
13
|
logPnameInfo: {},
|
|
15
14
|
initOpenTriggerExposure,
|
|
16
15
|
logPageIdInfo,
|
|
17
16
|
logPnameInfo
|
|
18
17
|
getCustomClickEventInfo: ReportContainerData.getCustomClickEventInfo.bind(ReportContainerData),
|
|
19
18
|
getCustomExposureInfo: ReportContainerData.getCustomExposureInfo.bind(ReportContainerData),
|
|
20
19
|
getCustomClickEventInfo: ReportContainerData.getCustomClickEventInfo.bind(ReportContainerData),
|
|
21
20
|
getCustomExposureInfo: ReportContainerData.getCustomExposureInfo.bind(ReportContainerData),
|
|
22
21
|
initReportBaseData: ReportContainerData.initReportBaseData.bind(ReportContainerData),
|
|
23
22
|
updateSectionTabDataInfo: ReportContainerData.updateSectionTabDataInfo.bind(ReportContainerData),
|
|
24
23
|
initOpenTriggerExposure: initOpenTriggerExposure.bind(JumpEventReport),
|
|
25
24
|
logPnameInfo: logPnameInfo,
|
|
26
25
|
logPageIdInfo: logPageIdInfo,
|
|
27
26
|
getFloorPointIndexClassName: ReportContainerData.getFloorPointIndexClassName.bind(ReportContainerData)
|
|
27
|
+
import { JumpEventReport, JumpEventReportPromise } from '../../jumpEventReport'
|
|
28
28
|
getCustomClickEventInfo: (obj: object, obj2: object, obj3: object, groupState?: boolean) => object
|
|
29
29
|
getCustomExposureInfo: (obj: object, obj2: object, obj3: object, groupState?: boolean) => object
|
|
30
30
|
initOpenTriggerExposure: (type: string) => void
|
|
31
31
|
logPageIdInfo: Object
|
|
32
32
|
logPnameInfo: Object
|
|
33
33
|
getFloorPointIndexClassName: (obj: object, index?: number, tip?: string) => string
|
|
34
34
|
getIsvClickEventInfo: (obj) => obj,
|
|
35
35
|
getIsvExposureInfo: (obj) => obj,
|
|
36
36
|
getCustomClickEventInfo: (obj) => obj,
|
|
37
37
|
getCustomExposureInfo: (obj) => obj,
|
|
38
38
|
initOpenTriggerExposure: () => {},
|
|
39
39
|
logPageIdInfo: {},
|
|
40
40
|
logPnameInfo: {},
|
|
41
41
|
initOpenTriggerExposure,
|
|
42
42
|
logPageIdInfo,
|
|
43
43
|
logPnameInfo
|
|
44
44
|
getCustomClickEventInfo: ReportContainerData.getCustomClickEventInfo.bind(ReportContainerData),
|
|
45
45
|
getCustomExposureInfo: ReportContainerData.getCustomExposureInfo.bind(ReportContainerData),
|
|
46
46
|
initReportBaseData: ReportContainerData.initReportBaseData.bind(ReportContainerData),
|
|
47
47
|
updateSectionTabDataInfo: ReportContainerData.updateSectionTabDataInfo.bind(ReportContainerData),
|
|
48
48
|
initOpenTriggerExposure: initOpenTriggerExposure.bind(JumpEventReport),
|
|
49
49
|
logPnameInfo: logPnameInfo,
|
|
50
50
|
logPageIdInfo: logPageIdInfo,
|
|
51
51
|
getFloorPointIndexClassName: ReportContainerData.getFloorPointIndexClassName.bind(ReportContainerData)
|
package/dist/sass/app.h5.scss
CHANGED
|
@@ -228,6 +228,11 @@ video {
|
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
230
|
|
|
231
|
+
// tarojs会在运行时动态给页面写入这个样式,但是动态写入可能导致在写入之前,有些依赖于 taro-view-core 块行为的逻辑出现异常,比如获取一个view的宽度,block情况下应该是有宽度的,但可能会出现获取到的宽度值是0。所以改成样式表里就直接定义好
|
|
232
|
+
taro-view-core {
|
|
233
|
+
display: block;
|
|
234
|
+
}
|
|
235
|
+
|
|
231
236
|
taro-view-core,
|
|
232
237
|
taro-image-core,
|
|
233
238
|
taro-text-core,
|