@conecli/cone-render 0.10.1-shop3.5 → 0.10.1-shop3.51

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.
Files changed (99) hide show
  1. package/README.md +1 -1
  2. package/dist/common/accessibility.h5.ts +1 -0
  3. package/dist/common/accessibility.ts +0 -0
  4. package/dist/common/const.ts +1 -1
  5. package/dist/common/index.h5.ts +1 -1
  6. package/dist/common/index.jd.ts +1 -1
  7. package/dist/common/index.ts +1 -1
  8. package/dist/common/index.weapp.ts +1 -1
  9. package/dist/common/jdplayerSdk.weapp.tsx +1 -0
  10. package/dist/common/jssdk.ts +1 -1
  11. package/dist/common/jssdk.weapp.ts +1 -0
  12. package/dist/common/pageType.ts +1 -1
  13. package/dist/common/token/index.h5.ts +1 -1
  14. package/dist/common/token/token.jd.ts +1 -1
  15. package/dist/common/wxappApi.ts +1 -1
  16. package/dist/components/ErrorBoundary.tsx +1 -1
  17. package/dist/components/base/CommonFloorHead/index.module.scss +126 -111
  18. package/dist/components/base/CommonFloorHead/index.tsx +1 -1
  19. package/dist/components/base/CountDown/index.tsx +1 -1
  20. package/dist/components/base/CustomScrollView/index-back.tsx +1 -0
  21. package/dist/components/base/CustomScrollView/index.tsx +1 -1
  22. package/dist/components/base/CustomVideo/index.tsx +1 -1
  23. package/dist/components/base/CustomVideo/index.weapp.tsx +1 -0
  24. package/dist/components/base/Dialog/index.module.scss +11 -0
  25. package/dist/components/base/InOrOutViewObserver/index.weapp.tsx +1 -0
  26. package/dist/components/base/InViewRender/index.tsx +1 -1
  27. package/dist/components/base/ItemViewExposureSmart/index.tsx +1 -1
  28. package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
  29. package/dist/components/base/MobileCommonHeader/index.weapp.tsx +1 -0
  30. package/dist/components/base/NetworkDataError/const.ts +1 -1
  31. package/dist/components/base/NetworkDataError/index.module.scss +118 -72
  32. package/dist/components/base/NetworkDataError/index.tsx +1 -1
  33. package/dist/components/base/Price/Base/index.module.scss +12 -0
  34. package/dist/components/base/Price/Base/index.tsx +1 -1
  35. package/dist/components/base/Price/Double/index.module.scss +24 -0
  36. package/dist/components/base/Price/Double/index.tsx +1 -1
  37. package/dist/components/debug/DebugLayout/index.module.scss +2 -2
  38. package/dist/components/floorItem.weapp.tsx +1 -1
  39. package/dist/interface/common.ts +1 -1
  40. package/dist/interface/component.ts +1 -1
  41. package/dist/interface/jumpEventReport.ts +1 -1
  42. package/dist/jumpEventReport/base.ts +1 -1
  43. package/dist/jumpEventReport/const.ts +1 -1
  44. package/dist/jumpEventReport/createReportFloorData.ts +1 -1
  45. package/dist/jumpEventReport/index.h5.ts +1 -1
  46. package/dist/jumpEventReport/index.jd.ts +1 -1
  47. package/dist/jumpEventReport/index.weapp.ts +1 -1
  48. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  49. package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
  50. package/dist/jumpEventReport/logEventConfig.h5.ts +1 -0
  51. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  52. package/dist/jumpEventReport/web/report.ts +1 -1
  53. package/dist/jumpEventReport/web.base.ts +1 -1
  54. package/dist/jumpEventReport/web.jd.ts +1 -1
  55. package/dist/jumpEventReport/web.pc.ts +1 -1
  56. package/dist/jumpEventReport/web.tjm.ts +1 -1
  57. package/dist/jumpEventReport/web.wxapp.ts +1 -1
  58. package/dist/language/en_US.json +231 -0
  59. package/dist/language/zh_CN.json +231 -0
  60. package/dist/language/zh_HK.json +231 -0
  61. package/dist/libs/taroAppReport.js +2 -2
  62. package/dist/modules/ContainerFloorList/index.h5.module.scss +66 -56
  63. package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
  64. package/dist/modules/ContainerFloorList/index.tsx +1 -1
  65. package/dist/modules/DecorateContainerFloorList/index.weapp.tsx +1 -0
  66. package/dist/open/api/environment.ts +1 -1
  67. package/dist/open/api/shopMember.ts +1 -1
  68. package/dist/open/api/shopMember.weapp.ts +1 -0
  69. package/dist/open/api/util.ts +1 -1
  70. package/dist/open/index.ts +1 -1
  71. package/dist/sass/app.h5.scss +278 -224
  72. package/dist/service/fetchGateway.ts +1 -1
  73. package/dist/service/fetchGateway.weapp.ts +1 -0
  74. package/dist/service/fetchJsonp.weapp.ts +1 -0
  75. package/dist/service/http/colorSign.ts +1 -1
  76. package/dist/service/http/const.ts +1 -1
  77. package/dist/service/http/h5Http.ts +1 -1
  78. package/dist/service/http/httpInterceptors.weapp.ts +1 -0
  79. package/dist/service/requestServer.h5.ts +1 -1
  80. package/dist/service/requestServer.ts +1 -1
  81. package/dist/service/requestServer.weapp.ts +1 -0
  82. package/dist/utils/connectNativeJsBridge.ts +1 -1
  83. package/dist/utils/h5Utils.ts +1 -1
  84. package/dist/utils/harmonyCallRouter.h5.ts +1 -0
  85. package/dist/utils/harmonyCallRouter.ts +0 -0
  86. package/dist/utils/index.h5.ts +1 -1
  87. package/dist/utils/index.ts +1 -1
  88. package/dist/utils/index.weapp.ts +1 -1
  89. package/dist/utils/jumpExtMapUtil.h5.ts +1 -0
  90. package/dist/utils/jumpExtMapUtil.ts +1 -0
  91. package/dist/utils/log.ts +1 -0
  92. package/dist/utils/{sColor.js → sColor.ts} +1 -1
  93. package/dist/utils/sColor.weapp.ts +1 -0
  94. package/dist/utils/utils.ts +1 -1
  95. package/dist/wxapp/common/address_api/address_api_v2.js +1 -0
  96. package/dist/wxapp/common/user_info.js +1 -1
  97. package/package.json +160 -141
  98. package/dist/jumpEventReport/web/wqshop.report.ts +0 -1
  99. package/dist/utils/priceUtils.js +0 -1
@@ -1 +1 @@
1
- import {
2
1
  isJdApp,
3
2
  isWxApp,
4
3
  isIosDevice,
5
4
  isAndroidDevice,
6
5
  isJdAndIosDevice,
7
6
  isJdAndAndroidDevice,
8
7
  isWxMin,
9
8
  isMin,
10
9
  isJdMinAndHarmony,
11
10
  isWxMinAndWxapp,
12
11
  isJdMin,
13
12
  isH5,
14
13
  isH5AndJdShopView,
15
14
  isChartH5,
16
15
  isH5AndJdShopViewNativeScroll,
17
16
  isH5AndJdShopViewH5Scroll,
18
17
  isH5AndJdShopH5CustomScrollView,
19
18
  isWxMiniH5View,
20
19
  sliceArrToChunkList,
21
20
  dealAddress,
22
21
  objectToUrlEncode,
23
22
  setLowSmallPicUrl,
24
23
  parseQueryUrlString,
25
24
  countStringify,
26
25
  setTaroStorage,
27
26
  getTaroStorageKeyValue,
28
27
  removeTaroStorageKey,
29
28
  clearTaroStorageKey,
30
29
  getQualityImage,
31
30
  getSystemInfos,
32
31
  getWxAppCookieStr,
33
32
  pxTransformFromData,
34
33
  dealShopContentData,
35
34
  dateFormat,
36
35
  throttle,
37
36
  lodashThrottle,
38
37
  debounce,
39
38
  addHttps,
40
39
  showSuccessToast,
41
40
  showFailToast,
42
41
  showNormalToast,
43
42
  showShopLoading,
44
43
  hideShopLoading,
45
44
  getAppChannelType,
46
45
  formatTabActiveMenuType,
47
46
  getAvifSupport,
48
47
  getWebpSupport,
49
48
  filterUrlQueryData,
50
49
  isMemberPage,
51
50
  sgmCustomReport,
52
51
  draCustomReport,
53
52
  remoteCustomReport,
54
53
  draInterfaceCustomReport,
55
54
  draBusinessCustomReport,
56
55
  isOpenJdAppUrl,
57
56
  jdOpenAppParams,
58
57
  createJdOpenAppUrl,
59
58
  isEmpty,
60
59
  getJdAppReportPageSource,
61
60
  isAppClassifyPage,
62
61
  isPc,
63
62
  ipLoc_djd,
64
63
  dealJdOpenAppData,
65
64
  jdAppVersionCompare,
66
65
  dealNativePixelToCssPixel,
67
66
  isAppStowShop,
68
67
  isImageOptimizeEnable,
69
68
  isIpadDevice,
70
69
  getBorderStyle,
71
70
  isLanguageForEn,
72
71
  sColor,
73
72
  draInterfaceDSMCustomReport,
74
73
  console.warn('🚗 ~~ file: index.ts:93 ~~ 通用的isInGrayscale还没有实现,不应该被调用!');
75
74
  return false;
76
75
  isJdApp,
77
76
  isWxApp,
78
77
  isIosDevice,
79
78
  isAndroidDevice,
80
79
  isJdAndIosDevice,
81
80
  isJdAndAndroidDevice,
82
81
  isJdAndHarmonyDevice,
83
82
  isJdAndroidX5Core,
84
83
  isWxMin,
85
84
  isMin,
86
85
  isJdMinAndHarmony,
87
86
  isWxMinAndWxapp,
88
87
  isJdMin,
89
88
  isH5,
90
89
  isH5AndJdShopView,
91
90
  isChartH5,
92
91
  isH5AndJdShopViewNativeScroll,
93
92
  isH5AndJdShopViewH5Scroll,
94
93
  isH5AndJdShopH5CustomScrollView,
95
94
  isH5AndJingGouMini,
96
95
  isWxMiniH5View,
97
96
  urlCookie,
98
97
  sliceArrToChunkList,
99
98
  dealAddress,
100
99
  objectToUrlEncode,
101
100
  parseQueryUrlString,
102
101
  setLowSmallPicUrl,
103
102
  countStringify,
104
103
  setTaroStorage,
105
104
  getTaroStorageKeyValue,
106
105
  removeTaroStorageKey,
107
106
  clearTaroStorageKey,
108
107
  getQualityImage,
109
108
  getSystemInfos,
110
109
  getWxAppCookieStr,
111
110
  pxTransformFromData,
112
111
  dealShopContentData,
113
112
  dateFormat,
114
113
  throttle,
115
114
  lodashThrottle,
116
115
  debounce,
117
116
  addHttps,
118
117
  showSuccessToast,
119
118
  showFailToast,
120
119
  showNormalToast,
121
120
  showShopLoading,
122
121
  hideShopLoading,
123
122
  stopNativeScrollEvent,
124
123
  getAppChannelType,
125
124
  formatTabActiveMenuType,
126
125
  getAvifSupport,
127
126
  getWebpSupport,
128
127
  filterUrlQueryData,
129
128
  isMemberPage,
130
129
  getFloorDataToDataDefines,
131
130
  sgmCustomReport,
132
131
  draCustomReport,
133
132
  remoteCustomReport,
134
133
  draInterfaceCustomReport,
135
134
  draBusinessCustomReport,
136
135
  isOpenJdAppUrl,
137
136
  jdOpenAppParams,
138
137
  createJdOpenAppUrl,
139
138
  isEmpty,
140
139
  isAppClassifyPage,
141
140
  isAppHomeForMarketPage,
142
141
  getJdAppReportPageSource,
143
142
  isImageOptimizeEnable,
144
143
  isPc,
145
144
  ipLoc_djd,
146
145
  isTjM,
147
146
  isTjJxM,
148
147
  isTjScence,
149
148
  isH5AdnJxMini,
150
149
  isTJApp,
151
150
  isH5AdnHaoWuJie,
152
151
  tjChannel,
153
152
  dealJdOpenAppData,
154
153
  jdAppVersionCompare,
155
154
  dealNativePixelToCssPixel,
156
155
  isAppStowShop,
157
156
  getSgmCustomCode,
158
157
  handleSgmCodeTaroVersion,
159
158
  isInGrayscale,
160
159
  isIpadDevice,
161
160
  getBorderStyle,
162
161
  isLanguageForEn,
163
162
  sColor,
164
163
  draInterfaceDSMCustomReport,
164
+ import {
165
165
  isJdApp,
166
166
  isWxApp,
167
167
  isIosDevice,
168
168
  isAndroidDevice,
169
169
  isJdAndIosDevice,
170
170
  isJdAndAndroidDevice,
171
171
  isWxMin,
172
172
  isMin,
173
173
  isJdMinAndHarmony,
174
174
  isWxMinAndWxapp,
175
175
  isJdMin,
176
176
  isH5,
177
177
  isH5AndJdShopView,
178
178
  isChartH5,
179
179
  isH5AndJdShopViewNativeScroll,
180
180
  isH5AndJdShopViewH5Scroll,
181
181
  isH5AndJdShopH5CustomScrollView,
182
182
  isWxMiniH5View,
183
183
  sliceArrToChunkList,
184
184
  dealAddress,
185
185
  objectToUrlEncode,
186
186
  setLowSmallPicUrl,
187
187
  parseQueryUrlString,
188
188
  countStringify,
189
189
  setTaroStorage,
190
190
  getTaroStorageKeyValue,
191
191
  removeTaroStorageKey,
192
192
  clearTaroStorageKey,
193
193
  getQualityImage,
194
194
  getSystemInfos,
195
195
  getWxAppCookieStr,
196
196
  pxTransformFromData,
197
197
  dealShopContentData,
198
198
  dateFormat,
199
199
  throttle,
200
200
  lodashThrottle,
201
201
  debounce,
202
202
  addHttps,
203
203
  showSuccessToast,
204
204
  showFailToast,
205
205
  showNormalToast,
206
206
  showShopLoading,
207
207
  hideShopLoading,
208
208
  getAppChannelType,
209
209
  formatTabActiveMenuType,
210
210
  getAvifSupport,
211
211
  getWebpSupport,
212
212
  filterUrlQueryData,
213
213
  isMemberPage,
214
214
  sgmCustomReport,
215
215
  draCustomReport,
216
216
  remoteCustomReport,
217
217
  draInterfaceCustomReport,
218
218
  draBusinessCustomReport,
219
219
  draBusinessCustomLogReport,
220
220
  isOpenJdAppUrl,
221
221
  jdOpenAppParams,
222
222
  createJdOpenAppUrl,
223
223
  isEmpty,
224
224
  getJdAppReportPageSource,
225
225
  isAppClassifyPage,
226
226
  isPc,
227
227
  ipLoc_djd,
228
228
  dealJdOpenAppData,
229
229
  jdAppVersionCompare,
230
230
  dealNativePixelToCssPixel,
231
231
  isAppStowShop,
232
232
  isImageOptimizeEnable,
233
233
  isIpadDevice,
234
234
  getBorderStyle,
235
235
  isLanguageForEn,
236
236
  sColor,
237
237
  draInterfaceDSMCustomReport,
238
238
  isTabletDevice,
239
239
  isLanguageForHk,
240
240
  languageNowType,
241
241
  console.warn('暂未实现', code);
242
242
  console.warn('暂未实现', code);
243
243
  console.warn('暂未实现');
244
244
  console.warn('🚗 ~~ file: index.ts:93 ~~ 通用的isInGrayscale还没有实现,不应该被调用!');
245
245
  return false;
246
246
  isJdApp,
247
247
  isWxApp,
248
248
  isIosDevice,
249
249
  isAndroidDevice,
250
250
  isHarmonyDevice,
251
251
  isJdAndIosDevice,
252
252
  isJdAndAndroidDevice,
253
253
  isJdAndHarmonyDevice,
254
254
  isNewHarmonyShop,
255
255
  isJdAndroidX5Core,
256
256
  isWxMin,
257
257
  isMin,
258
258
  isJdMinAndHarmony,
259
259
  isWxMinAndWxapp,
260
260
  isJdMin,
261
261
  isH5,
262
262
  isH5AndJdShopView,
263
263
  isChartH5,
264
264
  isH5AndJdShopViewNativeScroll,
265
265
  isH5AndJdShopViewH5Scroll,
266
266
  isH5AndJdShopH5CustomScrollView,
267
267
  isH5AndJingGouMini,
268
268
  isWxMiniH5View,
269
269
  urlCookie,
270
270
  sliceArrToChunkList,
271
271
  dealAddress,
272
272
  objectToUrlEncode,
273
273
  parseQueryUrlString,
274
274
  setLowSmallPicUrl,
275
275
  countStringify,
276
276
  setTaroStorage,
277
277
  getTaroStorageKeyValue,
278
278
  removeTaroStorageKey,
279
279
  clearTaroStorageKey,
280
280
  getQualityImage,
281
281
  getSystemInfos,
282
282
  getWxAppCookieStr,
283
283
  pxTransformFromData,
284
284
  dealShopContentData,
285
285
  dateFormat,
286
286
  throttle,
287
287
  lodashThrottle,
288
288
  debounce,
289
289
  addHttps,
290
290
  showSuccessToast,
291
291
  showFailToast,
292
292
  showNormalToast,
293
293
  showShopLoading,
294
294
  hideShopLoading,
295
295
  stopNativeScrollEvent,
296
296
  getAppChannelType,
297
297
  formatTabActiveMenuType,
298
298
  getAvifSupport,
299
299
  getWebpSupport,
300
300
  filterUrlQueryData,
301
301
  isMemberPage,
302
302
  getFloorDataToDataDefines,
303
303
  sgmCustomReport,
304
304
  draCustomReport,
305
305
  remoteCustomReport,
306
306
  draInterfaceCustomReport,
307
307
  draBusinessCustomReport,
308
308
  draBusinessCustomLogReport,
309
309
  isOpenJdAppUrl,
310
310
  jdOpenAppParams,
311
311
  createJdOpenAppUrl,
312
312
  isEmpty,
313
313
  isAppClassifyPage,
314
314
  isAppHomeForMarketPage,
315
315
  getJdAppReportPageSource,
316
316
  isImageOptimizeEnable,
317
317
  isPc,
318
318
  ipLoc_djd,
319
319
  isTjM,
320
320
  isTjJxM,
321
321
  isTjScence,
322
322
  isH5AdnJxMini,
323
323
  isTJApp,
324
324
  isH5AdnHaoWuJie,
325
325
  tjChannel,
326
326
  dealJdOpenAppData,
327
327
  jdAppVersionCompare,
328
328
  dealNativePixelToCssPixel,
329
329
  isAppStowShop,
330
330
  getSgmCustomCode,
331
331
  handleSgmCodeTaroVersion,
332
332
  isInGrayscale,
333
333
  isIpadDevice,
334
334
  getBorderStyle,
335
335
  isLanguageForEn,
336
336
  sColor,
337
337
  draInterfaceDSMCustomReport,
338
338
  isTabletDevice,
339
339
  updateContainerWidth,
340
340
  isInJdShopView,
341
341
  isDongWebView,
342
342
  isLanguageForHk,
343
343
  languageNowType,
@@ -1 +1 @@
1
- import {
2
1
  isJdApp,
3
2
  isWxApp,
4
3
  isIosDevice,
5
4
  isAndroidDevice,
6
5
  isJdAndIosDevice,
7
6
  isJdAndAndroidDevice,
8
7
  isWxMin,
9
8
  isWxMinAndWxapp,
10
9
  isJdMin,
11
10
  isJdMinAndHarmony,
12
11
  isH5,
13
12
  isH5AndJdShopView,
14
13
  isChartH5,
15
14
  isH5AndJdShopViewNativeScroll,
16
15
  isH5AndJdShopViewH5Scroll,
17
16
  isH5AndJdShopH5CustomScrollView,
18
17
  isWxMiniH5View,
19
18
  sliceArrToChunkList,
20
19
  dealAddress,
21
20
  objectToUrlEncode,
22
21
  parseQueryUrlString,
23
22
  setLowSmallPicUrl,
24
23
  setTaroStorage,
25
24
  getTaroStorageKeyValue,
26
25
  removeTaroStorageKey,
27
26
  clearTaroStorageKey,
28
27
  getQualityImage,
29
28
  countStringify,
30
29
  getSystemInfos,
31
30
  getWxAppCookieStr,
32
31
  pxTransformFromData,
33
32
  dealShopContentData,
34
33
  dateFormat,
35
34
  throttle,
36
35
  lodashThrottle,
37
36
  debounce,
38
37
  addHttps,
39
38
  showSuccessToast,
40
39
  showFailToast,
41
40
  showNormalToast,
42
41
  showShopLoading,
43
42
  hideShopLoading,
44
43
  getAppChannelType,
45
44
  formatTabActiveMenuType,
46
45
  getAvifSupport,
47
46
  getWebpSupport,
48
47
  filterUrlQueryData,
49
48
  sgmCustomReport,
50
49
  draCustomReport,
51
50
  remoteCustomReport,
52
51
  draInterfaceCustomReport,
53
52
  draBusinessCustomReport,
54
53
  isOpenJdAppUrl,
55
54
  jdOpenAppParams,
56
55
  createJdOpenAppUrl,
57
56
  isEmpty,
58
57
  getJdAppReportPageSource,
59
58
  isMemberPage,
60
59
  isAppClassifyPage,
61
60
  dealJdOpenAppData,
62
61
  jdAppVersionCompare,
63
62
  dealNativePixelToCssPixel,
64
63
  isImageOptimizeEnable,
65
64
  isIpadDevice,
66
65
  getBorderStyle,
67
66
  isLanguageForEn,
68
67
  sColor,
69
68
  draInterfaceDSMCustomReport,
70
69
  console.warn('🚗 ~~ file: index.ts:93 ~~ wxapp的isInGrayscale还没有实现,不应该被调用!');
71
70
  return false;
72
71
  isJdApp,
73
72
  isWxApp,
74
73
  isIosDevice,
75
74
  isAndroidDevice,
76
75
  isJdAndIosDevice,
77
76
  isJdAndAndroidDevice,
78
77
  isJdAndHarmonyDevice,
79
78
  isJdAndroidX5Core,
80
79
  isWxMin,
81
80
  isWxMinAndWxapp,
82
81
  isJdMin,
83
82
  isMin,
84
83
  isJdMinAndHarmony,
85
84
  isH5,
86
85
  isH5AndJdShopView,
87
86
  isChartH5,
88
87
  isH5AndJdShopViewNativeScroll,
89
88
  isH5AndJdShopViewH5Scroll,
90
89
  isH5AndJdShopH5CustomScrollView,
91
90
  isH5AndJingGouMini,
92
91
  isWxMiniH5View,
93
92
  urlCookie,
94
93
  sliceArrToChunkList,
95
94
  dealAddress,
96
95
  objectToUrlEncode,
97
96
  parseQueryUrlString,
98
97
  setLowSmallPicUrl,
99
98
  setTaroStorage,
100
99
  getTaroStorageKeyValue,
101
100
  removeTaroStorageKey,
102
101
  clearTaroStorageKey,
103
102
  getQualityImage,
104
103
  countStringify,
105
104
  getSystemInfos,
106
105
  getWxAppCookieStr,
107
106
  pxTransformFromData,
108
107
  dealShopContentData,
109
108
  dateFormat,
110
109
  throttle,
111
110
  lodashThrottle,
112
111
  debounce,
113
112
  addHttps,
114
113
  showSuccessToast,
115
114
  showFailToast,
116
115
  showNormalToast,
117
116
  showShopLoading,
118
117
  hideShopLoading,
119
118
  stopNativeScrollEvent,
120
119
  getAppChannelType,
121
120
  formatTabActiveMenuType,
122
121
  getAvifSupport,
123
122
  getWebpSupport,
124
123
  filterUrlQueryData,
125
124
  getFloorDataToDataDefines,
126
125
  sgmCustomReport,
127
126
  draCustomReport,
128
127
  remoteCustomReport,
129
128
  draInterfaceCustomReport,
130
129
  draBusinessCustomReport,
131
130
  isOpenJdAppUrl,
132
131
  jdOpenAppParams,
133
132
  createJdOpenAppUrl,
134
133
  isEmpty,
135
134
  getJdAppReportPageSource,
136
135
  isMemberPage,
137
136
  isAppClassifyPage,
138
137
  isAppHomeForMarketPage,
139
138
  isImageOptimizeEnable,
140
139
  isPc,
141
140
  isTjM,
142
141
  isTjJxM,
143
142
  isTjScence,
144
143
  isH5AdnJxMini,
145
144
  isTJApp,
146
145
  isH5AdnHaoWuJie,
147
146
  tjChannel,
148
147
  dealJdOpenAppData,
149
148
  jdAppVersionCompare,
150
149
  dealNativePixelToCssPixel,
151
150
  getSgmCustomCode,
152
151
  handleSgmCodeTaroVersion,
153
152
  isInGrayscale,
154
153
  isIpadDevice,
155
154
  getBorderStyle,
156
155
  isLanguageForEn,
157
156
  sColor,
158
157
  draInterfaceDSMCustomReport,
158
+ import {
159
159
  isJdApp,
160
160
  isWxApp,
161
161
  isIosDevice,
162
162
  isAndroidDevice,
163
163
  isJdAndIosDevice,
164
164
  isJdAndAndroidDevice,
165
165
  isWxMin,
166
166
  isWxMinAndWxapp,
167
167
  isJdMin,
168
168
  isJdMinAndHarmony,
169
169
  isH5,
170
170
  isH5AndJdShopView,
171
171
  isChartH5,
172
172
  isH5AndJdShopViewNativeScroll,
173
173
  isH5AndJdShopViewH5Scroll,
174
174
  isH5AndJdShopH5CustomScrollView,
175
175
  isWxMiniH5View,
176
176
  sliceArrToChunkList,
177
177
  dealAddress,
178
178
  objectToUrlEncode,
179
179
  parseQueryUrlString,
180
180
  setLowSmallPicUrl,
181
181
  setTaroStorage,
182
182
  getTaroStorageKeyValue,
183
183
  removeTaroStorageKey,
184
184
  clearTaroStorageKey,
185
185
  getQualityImage,
186
186
  countStringify,
187
187
  getSystemInfos,
188
188
  getWxAppCookieStr,
189
189
  pxTransformFromData,
190
190
  dealShopContentData,
191
191
  dateFormat,
192
192
  throttle,
193
193
  lodashThrottle,
194
194
  debounce,
195
195
  addHttps,
196
196
  showSuccessToast,
197
197
  showFailToast,
198
198
  showNormalToast,
199
199
  showShopLoading,
200
200
  hideShopLoading,
201
201
  getAppChannelType,
202
202
  formatTabActiveMenuType,
203
203
  getAvifSupport,
204
204
  getWebpSupport,
205
205
  filterUrlQueryData,
206
206
  sgmCustomReport,
207
207
  draCustomReport,
208
208
  remoteCustomReport,
209
209
  draInterfaceCustomReport,
210
210
  draBusinessCustomReport,
211
211
  draBusinessCustomLogReport,
212
212
  isOpenJdAppUrl,
213
213
  jdOpenAppParams,
214
214
  createJdOpenAppUrl,
215
215
  isEmpty,
216
216
  getJdAppReportPageSource,
217
217
  isMemberPage,
218
218
  isAppClassifyPage,
219
219
  dealJdOpenAppData,
220
220
  jdAppVersionCompare,
221
221
  dealNativePixelToCssPixel,
222
222
  isImageOptimizeEnable,
223
223
  isIpadDevice,
224
224
  getBorderStyle,
225
225
  isLanguageForEn,
226
226
  sColor,
227
227
  draInterfaceDSMCustomReport,
228
228
  isTabletDevice,
229
229
  isLanguageForHk,
230
230
  languageNowType,
231
231
  console.warn('暂未实现', code);
232
232
  console.warn('暂未实现', code);
233
233
  console.warn('🚗 ~~ file: index.ts:93 ~~ wxapp的isInGrayscale还没有实现,不应该被调用!');
234
234
  return false;
235
235
  console.warn('暂未实现');
236
236
  isJdApp,
237
237
  isWxApp,
238
238
  isIosDevice,
239
239
  isAndroidDevice,
240
240
  isHarmonyDevice,
241
241
  isJdAndIosDevice,
242
242
  isJdAndAndroidDevice,
243
243
  isJdAndHarmonyDevice,
244
244
  isNewHarmonyShop,
245
245
  isJdAndroidX5Core,
246
246
  isWxMin,
247
247
  isWxMinAndWxapp,
248
248
  isJdMin,
249
249
  isMin,
250
250
  isJdMinAndHarmony,
251
251
  isH5,
252
252
  isH5AndJdShopView,
253
253
  isChartH5,
254
254
  isH5AndJdShopViewNativeScroll,
255
255
  isH5AndJdShopViewH5Scroll,
256
256
  isH5AndJdShopH5CustomScrollView,
257
257
  isH5AndJingGouMini,
258
258
  isWxMiniH5View,
259
259
  urlCookie,
260
260
  sliceArrToChunkList,
261
261
  dealAddress,
262
262
  objectToUrlEncode,
263
263
  parseQueryUrlString,
264
264
  setLowSmallPicUrl,
265
265
  setTaroStorage,
266
266
  getTaroStorageKeyValue,
267
267
  removeTaroStorageKey,
268
268
  clearTaroStorageKey,
269
269
  getQualityImage,
270
270
  countStringify,
271
271
  getSystemInfos,
272
272
  getWxAppCookieStr,
273
273
  pxTransformFromData,
274
274
  dealShopContentData,
275
275
  dateFormat,
276
276
  throttle,
277
277
  lodashThrottle,
278
278
  debounce,
279
279
  addHttps,
280
280
  showSuccessToast,
281
281
  showFailToast,
282
282
  showNormalToast,
283
283
  showShopLoading,
284
284
  hideShopLoading,
285
285
  stopNativeScrollEvent,
286
286
  getAppChannelType,
287
287
  formatTabActiveMenuType,
288
288
  getAvifSupport,
289
289
  getWebpSupport,
290
290
  filterUrlQueryData,
291
291
  getFloorDataToDataDefines,
292
292
  sgmCustomReport,
293
293
  draCustomReport,
294
294
  remoteCustomReport,
295
295
  draInterfaceCustomReport,
296
296
  draBusinessCustomReport,
297
297
  draBusinessCustomLogReport,
298
298
  isOpenJdAppUrl,
299
299
  jdOpenAppParams,
300
300
  createJdOpenAppUrl,
301
301
  isEmpty,
302
302
  getJdAppReportPageSource,
303
303
  isMemberPage,
304
304
  isAppClassifyPage,
305
305
  isAppHomeForMarketPage,
306
306
  isImageOptimizeEnable,
307
307
  isPc,
308
308
  ipLoc_djd,
309
309
  isTjM,
310
310
  isTjJxM,
311
311
  isTjScence,
312
312
  isH5AdnJxMini,
313
313
  isTJApp,
314
314
  isH5AdnHaoWuJie,
315
315
  tjChannel,
316
316
  dealJdOpenAppData,
317
317
  jdAppVersionCompare,
318
318
  dealNativePixelToCssPixel,
319
319
  getSgmCustomCode,
320
320
  handleSgmCodeTaroVersion,
321
321
  isInGrayscale,
322
322
  isIpadDevice,
323
323
  getBorderStyle,
324
324
  isLanguageForEn,
325
325
  sColor,
326
326
  draInterfaceDSMCustomReport,
327
327
  isTabletDevice,
328
328
  updateContainerWidth,
329
329
  isInJdShopView,
330
330
  isDongWebView,
331
331
  isLanguageForHk,
332
332
  languageNowType,
@@ -0,0 +1 @@
1
+ import { isH5, isJdAndIosDevice, isJdAndAndroidDevice } from './index';
2
  'The current environment does not support the getEnterShopJumpExtMap method call!';
1
3
  const routerURL = 'router://JDShopModule/getHomeEntranceObj';
2
4
  const callBackName = `nativeGetHomeEntranceObj${Date.now()}`;
3
5
  const params = {
4
6
  routerURL,
5
7
  routerParam: null,
6
8
  callBackName,
7
9
  };
8
10
  return new Promise((resolve) => {
9
11
  window[callBackName] = (res) => {
10
12
  const data = typeof res === 'string' ? JSON.parse(res) : res;
11
13
  const tempVal = data?.data?.jumpExtMap ?? {};
12
14
  const entranceObj = typeof tempVal === 'string' ? JSON.parse(tempVal) : tempVal;
13
15
  resolve(entranceObj);
14
16
  };
15
17
  if (isH5 && isJdAndAndroidDevice) {
16
18
  callRouterAndroid(params);
17
19
  } else if (isH5 && isJdAndIosDevice) {
18
20
  callRouterIOS(params);
19
21
  } else {
20
22
  console.warn(errorTip);
21
23
  resolve({});
22
24
  }
23
25
  });
24
26
  getEnterShopJumpExtMap()
25
27
  .then((data) => {
26
28
  hasResult = true;
27
29
  entranceObj = data;
28
30
  })
29
31
  .catch((e) => {
30
32
  console.error('requestServer.getEnterShopJumpExtMap() ~~ error:', e);
31
33
  });
32
34
  hasResult = true;
33
35
  console.warn(errorTip);
34
36
  return entranceObj;
35
37
  const { smartCouponInfo = [] } = entranceObj;
36
38
  const info = smartCouponInfo.find((item) => item.skuId === skuId + '');
37
39
  return info ? info.adInfos : null;
38
40
  return new Promise((resolve) => {
39
41
  if (hasResult) {
40
42
  resolve(entranceObj.smartCouponInfo);
41
43
  } else {
42
44
  setTimeout(() => {
43
45
  resolve(entranceObj.smartCouponInfo || null);
44
46
  }, 16);
45
47
  }
46
48
  });