@conecli/cone-render 0.10.1-isv2.1 → 0.10.1-isv2.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.
Files changed (111) hide show
  1. package/dist/api/index.ts +1 -1
  2. package/dist/common/const.ts +1 -1
  3. package/dist/common/environmentType.ts +1 -1
  4. package/dist/common/index.h5.ts +1 -1
  5. package/dist/common/index.jd.ts +1 -1
  6. package/dist/common/index.ts +1 -1
  7. package/dist/common/index.weapp.ts +1 -1
  8. package/dist/common/jssdk.ts +1 -1
  9. package/dist/common/pageType.ts +1 -1
  10. package/dist/common/sgmCustomCode.ts +1 -1
  11. package/dist/common/token/index.h5.ts +1 -1
  12. package/dist/common/token/token.jd.ts +1 -1
  13. package/dist/common/wxappApi.ts +1 -1
  14. package/dist/components/ErrorBoundary.tsx +1 -1
  15. package/dist/components/base/CommonFloorHead/index.module.scss +126 -111
  16. package/dist/components/base/CommonFloorHead/index.tsx +1 -1
  17. package/dist/components/base/CountDown/index.module.scss +49 -44
  18. package/dist/components/base/CountDown/index.tsx +1 -1
  19. package/dist/components/base/CustomScrollView/index-back.tsx +1 -0
  20. package/dist/components/base/CustomScrollView/index.tsx +1 -1
  21. package/dist/components/base/CustomVideo/common.ts +1 -0
  22. package/dist/components/base/CustomVideo/index.tsx +1 -1
  23. package/dist/components/base/Dialog/index.module.scss +11 -0
  24. package/dist/components/base/ExposureSmart/index.h5.module.scss +12 -2
  25. package/dist/components/base/ExposureSmart/index.h5.tsx +1 -1
  26. package/dist/components/base/ExposureSmart/reporter.tsx +1 -1
  27. package/dist/components/base/InOrOutViewObserver/index.tsx +1 -1
  28. package/dist/components/base/InViewRender/index.tsx +1 -1
  29. package/dist/components/base/InViewRender/index.weapp.tsx +1 -1
  30. package/dist/components/base/ItemViewExposureSmart/index.module.scss +2 -2
  31. package/dist/components/base/ItemViewExposureSmart/index.tsx +1 -1
  32. package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
  33. package/dist/components/base/LazyLayoutLoad/index.weapp.tsx +1 -1
  34. package/dist/components/base/LazyLoadImage/index.h5.module.scss +11 -3
  35. package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
  36. package/dist/components/base/LazyLoadImage/index.tsx +1 -1
  37. package/dist/components/base/MobileCommonHeader/index.tsx +1 -1
  38. package/dist/components/base/NetworkDataError/index.module.scss +3 -0
  39. package/dist/components/base/NetworkDataError/index.tsx +1 -1
  40. package/dist/components/base/Price/Base/index.tsx +1 -1
  41. package/dist/components/base/Price/Double/index.module.scss +8 -0
  42. package/dist/components/base/Price/Double/index.tsx +1 -1
  43. package/dist/components/debug/DebugLayout/index.module.scss +2 -2
  44. package/dist/components/decorate/DecorateFloorModule/index.module.scss +11 -0
  45. package/dist/components/decorate/DecorateFloorModule/index.tsx +1 -1
  46. package/dist/components/decorate/EmptyFloorModule/index.tsx +1 -1
  47. package/dist/components/decorate/PlaceHolder/index.tsx +1 -1
  48. package/dist/components/floorItem.jd.tsx +1 -1
  49. package/dist/components/floorItem.tsx +1 -1
  50. package/dist/components/floorItem.weapp.tsx +1 -1
  51. package/dist/components/isv/Floor/index.tsx +1 -1
  52. package/dist/components/remoteFloorItem.tsx +1 -1
  53. package/dist/interface/common.ts +1 -1
  54. package/dist/interface/component.ts +1 -1
  55. package/dist/interface/jumpEventReport.ts +1 -1
  56. package/dist/interface/service.ts +1 -1
  57. package/dist/jumpEventReport/base.ts +1 -1
  58. package/dist/jumpEventReport/const.ts +1 -1
  59. package/dist/jumpEventReport/index.jd.ts +1 -1
  60. package/dist/jumpEventReport/index.weapp.ts +1 -1
  61. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  62. package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
  63. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  64. package/dist/jumpEventReport/web/report.ts +1 -1
  65. package/dist/jumpEventReport/web.base.ts +1 -1
  66. package/dist/jumpEventReport/web.jd.ts +1 -1
  67. package/dist/jumpEventReport/web.jdb.ts +1 -1
  68. package/dist/jumpEventReport/web.jdjch.ts +1 -1
  69. package/dist/jumpEventReport/web.jxwxapp.ts +1 -1
  70. package/dist/jumpEventReport/web.pc.ts +1 -1
  71. package/dist/jumpEventReport/web.tjapp.ts +1 -1
  72. package/dist/jumpEventReport/web.tjm.ts +1 -1
  73. package/dist/jumpEventReport/web.wxapp.ts +1 -1
  74. package/dist/libs/taroAppReport.js +2 -2
  75. package/dist/modules/ContainerFloorList/index.h5.module.scss +66 -52
  76. package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
  77. package/dist/modules/ContainerFloorList/index.tsx +1 -1
  78. package/dist/open/api/device.ts +1 -1
  79. package/dist/open/api/environment.ts +1 -1
  80. package/dist/open/api/request.ts +1 -1
  81. package/dist/open/api/shopMember.ts +1 -1
  82. package/dist/open/api/util.ts +1 -1
  83. package/dist/open/components/index.ts +1 -1
  84. package/dist/sass/app.h5.scss +275 -221
  85. package/dist/sass/base.scss +183 -137
  86. package/dist/service/fetchGateway.ts +1 -1
  87. package/dist/service/fetchGateway.weapp.ts +1 -0
  88. package/dist/service/http/colorSign.ts +1 -1
  89. package/dist/service/http/const.ts +1 -1
  90. package/dist/service/http/h5Http.ts +1 -0
  91. package/dist/service/http/index.h5.ts +1 -0
  92. package/dist/service/requestServer.h5.ts +1 -0
  93. package/dist/service/requestServer.ts +1 -1
  94. package/dist/service/requestServer.weapp.ts +1 -0
  95. package/dist/utils/connectNativeJsBridge.ts +1 -1
  96. package/dist/utils/connectNativeJsBridge.weapp.ts +1 -1
  97. package/dist/utils/h5Utils.ts +1 -1
  98. package/dist/utils/index.h5.ts +1 -1
  99. package/dist/utils/index.ts +1 -1
  100. package/dist/utils/index.weapp.ts +1 -1
  101. package/dist/utils/jumpExtMapUtil.h5.ts +1 -0
  102. package/dist/utils/jumpExtMapUtil.ts +1 -0
  103. package/dist/utils/log.ts +1 -0
  104. package/dist/utils/sColor.js +1 -0
  105. package/dist/utils/sgmCodeUtils.ts +1 -1
  106. package/dist/utils/taroRenderUtil.ts +1 -1
  107. package/dist/utils/utils.ts +1 -1
  108. package/dist/wxapp/common/address_api/address_api_v2.js +1 -0
  109. package/dist/wxapp/common/user_info.js +1 -1
  110. package/package.json +158 -135
  111. package/dist/utils/memberFormatUtils.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
  isOpenJdAppUrl,
53
52
  jdOpenAppParams,
54
53
  createJdOpenAppUrl,
55
54
  isEmpty,
56
55
  getJdAppReportPageSource,
57
56
  isAppClassifyPage,
58
57
  isPc,
59
58
  ipLoc_djd,
60
59
  dealJdOpenAppData,
61
60
  jdAppVersionCompare,
62
61
  dealNativePixelToCssPixel,
63
62
  isAppStowShop,
64
63
  isImageOptimizeEnable,
65
64
  isJdApp,
66
65
  isWxApp,
67
66
  isIosDevice,
68
67
  isAndroidDevice,
69
68
  isJdAndIosDevice,
70
69
  isJdAndAndroidDevice,
71
70
  isJdAndHarmonyDevice,
72
71
  isJdAndroidX5Core,
73
72
  isWxMin,
74
73
  isMin,
75
74
  isJdMinAndHarmony,
76
75
  isWxMinAndWxapp,
77
76
  isJdMin,
78
77
  isH5,
79
78
  isH5AndJdShopView,
80
79
  isChartH5,
81
80
  isH5AndJdShopViewNativeScroll,
82
81
  isH5AndJdShopViewH5Scroll,
83
82
  isH5AndJdShopH5CustomScrollView,
84
83
  isH5AndJingGouMini,
85
84
  isWxMiniH5View,
86
85
  urlCookie,
87
86
  sliceArrToChunkList,
88
87
  dealAddress,
89
88
  objectToUrlEncode,
90
89
  parseQueryUrlString,
91
90
  setLowSmallPicUrl,
92
91
  countStringify,
93
92
  setTaroStorage,
94
93
  getTaroStorageKeyValue,
95
94
  removeTaroStorageKey,
96
95
  clearTaroStorageKey,
97
96
  getQualityImage,
98
97
  getSystemInfos,
99
98
  getWxAppCookieStr,
100
99
  pxTransformFromData,
101
100
  dealShopContentData,
102
101
  dateFormat,
103
102
  throttle,
104
103
  lodashThrottle,
105
104
  debounce,
106
105
  addHttps,
107
106
  showSuccessToast,
108
107
  showFailToast,
109
108
  showNormalToast,
110
109
  showShopLoading,
111
110
  hideShopLoading,
112
111
  getAppChannelType,
113
112
  formatTabActiveMenuType,
114
113
  getAvifSupport,
115
114
  getWebpSupport,
116
115
  filterUrlQueryData,
117
116
  isMemberPage,
118
117
  getFloorDataToDataDefines,
119
118
  sgmCustomReport,
120
119
  isOpenJdAppUrl,
121
120
  jdOpenAppParams,
122
121
  createJdOpenAppUrl,
123
122
  isEmpty,
124
123
  isAppClassifyPage,
125
124
  getJdAppReportPageSource,
126
125
  isImageOptimizeEnable,
127
126
  isPc,
128
127
  ipLoc_djd,
129
128
  isTjM,
130
129
  isTjJxM,
131
130
  isTjScence,
132
131
  isH5AdnJxMini,
133
132
  isTJApp,
134
133
  isH5AdnHaoWuJie,
135
134
  tjChannel,
136
135
  dealJdOpenAppData,
137
136
  jdAppVersionCompare,
138
137
  dealNativePixelToCssPixel,
139
138
  isAppStowShop,
140
139
  getSgmCustomCode,
140
+ import {
141
141
  isJdApp,
142
142
  isWxApp,
143
143
  isIosDevice,
144
144
  isAndroidDevice,
145
145
  isJdAndIosDevice,
146
146
  isJdAndAndroidDevice,
147
147
  isWxMin,
148
148
  isMin,
149
149
  isJdMinAndHarmony,
150
150
  isWxMinAndWxapp,
151
151
  isJdMin,
152
152
  isH5,
153
153
  isH5AndJdShopView,
154
154
  isChartH5,
155
155
  isH5AndJdShopViewNativeScroll,
156
156
  isH5AndJdShopViewH5Scroll,
157
157
  isH5AndJdShopH5CustomScrollView,
158
158
  isWxMiniH5View,
159
159
  sliceArrToChunkList,
160
160
  dealAddress,
161
161
  objectToUrlEncode,
162
162
  setLowSmallPicUrl,
163
163
  parseQueryUrlString,
164
164
  countStringify,
165
165
  setTaroStorage,
166
166
  getTaroStorageKeyValue,
167
167
  removeTaroStorageKey,
168
168
  clearTaroStorageKey,
169
169
  getQualityImage,
170
170
  getSystemInfos,
171
171
  getWxAppCookieStr,
172
172
  pxTransformFromData,
173
173
  dealShopContentData,
174
174
  dateFormat,
175
175
  throttle,
176
176
  lodashThrottle,
177
177
  debounce,
178
178
  addHttps,
179
179
  showSuccessToast,
180
180
  showFailToast,
181
181
  showNormalToast,
182
182
  showShopLoading,
183
183
  hideShopLoading,
184
184
  getAppChannelType,
185
185
  formatTabActiveMenuType,
186
186
  getAvifSupport,
187
187
  getWebpSupport,
188
188
  filterUrlQueryData,
189
189
  isMemberPage,
190
190
  sgmCustomReport,
191
191
  draCustomReport,
192
192
  remoteCustomReport,
193
193
  draInterfaceCustomReport,
194
194
  draBusinessCustomReport,
195
195
  isOpenJdAppUrl,
196
196
  jdOpenAppParams,
197
197
  createJdOpenAppUrl,
198
198
  isEmpty,
199
199
  getJdAppReportPageSource,
200
200
  isAppClassifyPage,
201
201
  isPc,
202
202
  ipLoc_djd,
203
203
  dealJdOpenAppData,
204
204
  jdAppVersionCompare,
205
205
  dealNativePixelToCssPixel,
206
206
  isAppStowShop,
207
207
  isImageOptimizeEnable,
208
208
  isIpadDevice,
209
209
  getBorderStyle,
210
210
  isLanguageForEn,
211
211
  sColor,
212
212
  draInterfaceDSMCustomReport,
213
213
  isTabletDevice,
214
214
  console.warn('暂未实现', code);
215
215
  console.warn('暂未实现', code);
216
216
  console.warn('暂未实现');
217
217
  console.warn('🚗 ~~ file: index.ts:93 ~~ 通用的isInGrayscale还没有实现,不应该被调用!');
218
218
  return false;
219
219
  isJdApp,
220
220
  isWxApp,
221
221
  isIosDevice,
222
222
  isAndroidDevice,
223
223
  isHarmonyDevice,
224
224
  isJdAndIosDevice,
225
225
  isJdAndAndroidDevice,
226
226
  isJdAndHarmonyDevice,
227
227
  isJdAndroidX5Core,
228
228
  isWxMin,
229
229
  isMin,
230
230
  isJdMinAndHarmony,
231
231
  isWxMinAndWxapp,
232
232
  isJdMin,
233
233
  isH5,
234
234
  isH5AndJdShopView,
235
235
  isChartH5,
236
236
  isH5AndJdShopViewNativeScroll,
237
237
  isH5AndJdShopViewH5Scroll,
238
238
  isH5AndJdShopH5CustomScrollView,
239
239
  isH5AndJingGouMini,
240
240
  isWxMiniH5View,
241
241
  urlCookie,
242
242
  sliceArrToChunkList,
243
243
  dealAddress,
244
244
  objectToUrlEncode,
245
245
  parseQueryUrlString,
246
246
  setLowSmallPicUrl,
247
247
  countStringify,
248
248
  setTaroStorage,
249
249
  getTaroStorageKeyValue,
250
250
  removeTaroStorageKey,
251
251
  clearTaroStorageKey,
252
252
  getQualityImage,
253
253
  getSystemInfos,
254
254
  getWxAppCookieStr,
255
255
  pxTransformFromData,
256
256
  dealShopContentData,
257
257
  dateFormat,
258
258
  throttle,
259
259
  lodashThrottle,
260
260
  debounce,
261
261
  addHttps,
262
262
  showSuccessToast,
263
263
  showFailToast,
264
264
  showNormalToast,
265
265
  showShopLoading,
266
266
  hideShopLoading,
267
267
  stopNativeScrollEvent,
268
268
  getAppChannelType,
269
269
  formatTabActiveMenuType,
270
270
  getAvifSupport,
271
271
  getWebpSupport,
272
272
  filterUrlQueryData,
273
273
  isMemberPage,
274
274
  getFloorDataToDataDefines,
275
275
  sgmCustomReport,
276
276
  draCustomReport,
277
277
  remoteCustomReport,
278
278
  draInterfaceCustomReport,
279
279
  draBusinessCustomReport,
280
280
  isOpenJdAppUrl,
281
281
  jdOpenAppParams,
282
282
  createJdOpenAppUrl,
283
283
  isEmpty,
284
284
  isAppClassifyPage,
285
285
  isAppHomeForMarketPage,
286
286
  getJdAppReportPageSource,
287
287
  isImageOptimizeEnable,
288
288
  isPc,
289
289
  ipLoc_djd,
290
290
  isTjM,
291
291
  isTjJxM,
292
292
  isTjScence,
293
293
  isH5AdnJxMini,
294
294
  isTJApp,
295
295
  isH5AdnHaoWuJie,
296
296
  tjChannel,
297
297
  dealJdOpenAppData,
298
298
  jdAppVersionCompare,
299
299
  dealNativePixelToCssPixel,
300
300
  isAppStowShop,
301
301
  getSgmCustomCode,
302
302
  handleSgmCodeTaroVersion,
303
303
  isInGrayscale,
304
304
  isIpadDevice,
305
305
  getBorderStyle,
306
306
  isLanguageForEn,
307
307
  sColor,
308
308
  draInterfaceDSMCustomReport,
309
309
  isTabletDevice,
310
310
  updateContainerWidth,
@@ -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
  isOpenJdAppUrl,
51
50
  jdOpenAppParams,
52
51
  createJdOpenAppUrl,
53
52
  isEmpty,
54
53
  getJdAppReportPageSource,
55
54
  isMemberPage,
56
55
  isAppClassifyPage,
57
56
  dealJdOpenAppData,
58
57
  jdAppVersionCompare,
59
58
  dealNativePixelToCssPixel,
60
59
  isImageOptimizeEnable,
61
60
  isJdApp,
62
61
  isWxApp,
63
62
  isIosDevice,
64
63
  isAndroidDevice,
65
64
  isJdAndIosDevice,
66
65
  isJdAndAndroidDevice,
67
66
  isJdAndHarmonyDevice,
68
67
  isJdAndroidX5Core,
69
68
  isWxMin,
70
69
  isWxMinAndWxapp,
71
70
  isJdMin,
72
71
  isMin,
73
72
  isJdMinAndHarmony,
74
73
  isH5,
75
74
  isH5AndJdShopView,
76
75
  isChartH5,
77
76
  isH5AndJdShopViewNativeScroll,
78
77
  isH5AndJdShopViewH5Scroll,
79
78
  isH5AndJdShopH5CustomScrollView,
80
79
  isH5AndJingGouMini,
81
80
  isWxMiniH5View,
82
81
  urlCookie,
83
82
  sliceArrToChunkList,
84
83
  dealAddress,
85
84
  objectToUrlEncode,
86
85
  parseQueryUrlString,
87
86
  setLowSmallPicUrl,
88
87
  setTaroStorage,
89
88
  getTaroStorageKeyValue,
90
89
  removeTaroStorageKey,
91
90
  clearTaroStorageKey,
92
91
  getQualityImage,
93
92
  countStringify,
94
93
  getSystemInfos,
95
94
  getWxAppCookieStr,
96
95
  pxTransformFromData,
97
96
  dealShopContentData,
98
97
  dateFormat,
99
98
  throttle,
100
99
  lodashThrottle,
101
100
  debounce,
102
101
  addHttps,
103
102
  showSuccessToast,
104
103
  showFailToast,
105
104
  showNormalToast,
106
105
  showShopLoading,
107
106
  hideShopLoading,
108
107
  getAppChannelType,
109
108
  formatTabActiveMenuType,
110
109
  getAvifSupport,
111
110
  getWebpSupport,
112
111
  filterUrlQueryData,
113
112
  getFloorDataToDataDefines,
114
113
  sgmCustomReport,
115
114
  isOpenJdAppUrl,
116
115
  jdOpenAppParams,
117
116
  createJdOpenAppUrl,
118
117
  isEmpty,
119
118
  getJdAppReportPageSource,
120
119
  isMemberPage,
121
120
  isAppClassifyPage,
122
121
  isImageOptimizeEnable,
123
122
  isPc,
124
123
  isTjM,
125
124
  isTjJxM,
126
125
  isTjScence,
127
126
  isH5AdnJxMini,
128
127
  isTJApp,
129
128
  isH5AdnHaoWuJie,
130
129
  tjChannel,
131
130
  dealJdOpenAppData,
132
131
  jdAppVersionCompare,
133
132
  dealNativePixelToCssPixel,
134
133
  getSgmCustomCode,
134
+ import {
135
135
  isJdApp,
136
136
  isWxApp,
137
137
  isIosDevice,
138
138
  isAndroidDevice,
139
139
  isJdAndIosDevice,
140
140
  isJdAndAndroidDevice,
141
141
  isWxMin,
142
142
  isWxMinAndWxapp,
143
143
  isJdMin,
144
144
  isJdMinAndHarmony,
145
145
  isH5,
146
146
  isH5AndJdShopView,
147
147
  isChartH5,
148
148
  isH5AndJdShopViewNativeScroll,
149
149
  isH5AndJdShopViewH5Scroll,
150
150
  isH5AndJdShopH5CustomScrollView,
151
151
  isWxMiniH5View,
152
152
  sliceArrToChunkList,
153
153
  dealAddress,
154
154
  objectToUrlEncode,
155
155
  parseQueryUrlString,
156
156
  setLowSmallPicUrl,
157
157
  setTaroStorage,
158
158
  getTaroStorageKeyValue,
159
159
  removeTaroStorageKey,
160
160
  clearTaroStorageKey,
161
161
  getQualityImage,
162
162
  countStringify,
163
163
  getSystemInfos,
164
164
  getWxAppCookieStr,
165
165
  pxTransformFromData,
166
166
  dealShopContentData,
167
167
  dateFormat,
168
168
  throttle,
169
169
  lodashThrottle,
170
170
  debounce,
171
171
  addHttps,
172
172
  showSuccessToast,
173
173
  showFailToast,
174
174
  showNormalToast,
175
175
  showShopLoading,
176
176
  hideShopLoading,
177
177
  getAppChannelType,
178
178
  formatTabActiveMenuType,
179
179
  getAvifSupport,
180
180
  getWebpSupport,
181
181
  filterUrlQueryData,
182
182
  sgmCustomReport,
183
183
  draCustomReport,
184
184
  remoteCustomReport,
185
185
  draInterfaceCustomReport,
186
186
  draBusinessCustomReport,
187
187
  isOpenJdAppUrl,
188
188
  jdOpenAppParams,
189
189
  createJdOpenAppUrl,
190
190
  isEmpty,
191
191
  getJdAppReportPageSource,
192
192
  isMemberPage,
193
193
  isAppClassifyPage,
194
194
  dealJdOpenAppData,
195
195
  jdAppVersionCompare,
196
196
  dealNativePixelToCssPixel,
197
197
  isImageOptimizeEnable,
198
198
  isIpadDevice,
199
199
  getBorderStyle,
200
200
  isLanguageForEn,
201
201
  sColor,
202
202
  draInterfaceDSMCustomReport,
203
203
  isTabletDevice,
204
204
  console.warn('暂未实现', code);
205
205
  console.warn('暂未实现', code);
206
206
  console.warn('🚗 ~~ file: index.ts:93 ~~ wxapp的isInGrayscale还没有实现,不应该被调用!');
207
207
  return false;
208
208
  console.warn('暂未实现');
209
209
  isJdApp,
210
210
  isWxApp,
211
211
  isIosDevice,
212
212
  isAndroidDevice,
213
213
  isHarmonyDevice,
214
214
  isJdAndIosDevice,
215
215
  isJdAndAndroidDevice,
216
216
  isJdAndHarmonyDevice,
217
217
  isJdAndroidX5Core,
218
218
  isWxMin,
219
219
  isWxMinAndWxapp,
220
220
  isJdMin,
221
221
  isMin,
222
222
  isJdMinAndHarmony,
223
223
  isH5,
224
224
  isH5AndJdShopView,
225
225
  isChartH5,
226
226
  isH5AndJdShopViewNativeScroll,
227
227
  isH5AndJdShopViewH5Scroll,
228
228
  isH5AndJdShopH5CustomScrollView,
229
229
  isH5AndJingGouMini,
230
230
  isWxMiniH5View,
231
231
  urlCookie,
232
232
  sliceArrToChunkList,
233
233
  dealAddress,
234
234
  objectToUrlEncode,
235
235
  parseQueryUrlString,
236
236
  setLowSmallPicUrl,
237
237
  setTaroStorage,
238
238
  getTaroStorageKeyValue,
239
239
  removeTaroStorageKey,
240
240
  clearTaroStorageKey,
241
241
  getQualityImage,
242
242
  countStringify,
243
243
  getSystemInfos,
244
244
  getWxAppCookieStr,
245
245
  pxTransformFromData,
246
246
  dealShopContentData,
247
247
  dateFormat,
248
248
  throttle,
249
249
  lodashThrottle,
250
250
  debounce,
251
251
  addHttps,
252
252
  showSuccessToast,
253
253
  showFailToast,
254
254
  showNormalToast,
255
255
  showShopLoading,
256
256
  hideShopLoading,
257
257
  stopNativeScrollEvent,
258
258
  getAppChannelType,
259
259
  formatTabActiveMenuType,
260
260
  getAvifSupport,
261
261
  getWebpSupport,
262
262
  filterUrlQueryData,
263
263
  getFloorDataToDataDefines,
264
264
  sgmCustomReport,
265
265
  draCustomReport,
266
266
  remoteCustomReport,
267
267
  draInterfaceCustomReport,
268
268
  draBusinessCustomReport,
269
269
  isOpenJdAppUrl,
270
270
  jdOpenAppParams,
271
271
  createJdOpenAppUrl,
272
272
  isEmpty,
273
273
  getJdAppReportPageSource,
274
274
  isMemberPage,
275
275
  isAppClassifyPage,
276
276
  isAppHomeForMarketPage,
277
277
  isImageOptimizeEnable,
278
278
  isPc,
279
279
  ipLoc_djd,
280
280
  isTjM,
281
281
  isTjJxM,
282
282
  isTjScence,
283
283
  isH5AdnJxMini,
284
284
  isTJApp,
285
285
  isH5AdnHaoWuJie,
286
286
  tjChannel,
287
287
  dealJdOpenAppData,
288
288
  jdAppVersionCompare,
289
289
  dealNativePixelToCssPixel,
290
290
  getSgmCustomCode,
291
291
  handleSgmCodeTaroVersion,
292
292
  isInGrayscale,
293
293
  isIpadDevice,
294
294
  getBorderStyle,
295
295
  isLanguageForEn,
296
296
  sColor,
297
297
  draInterfaceDSMCustomReport,
298
298
  isTabletDevice,
299
299
  updateContainerWidth,
@@ -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
  });
@@ -0,0 +1 @@
1
+ function getEnterShopExtInfo() {
2
  console.warn("~~ getEnterShopExtInfo() ~~ 暂不支持")
1
3
  return {};
2
4
  console.warn("~~ getAdInfoBySkuId() ~~ 暂不支持")
3
5
  return null;
4
6
  console.warn("~~ getSmartCouponInfo() ~~ 暂不支持")
5
7
  return new Promise((resolve) => {
6
8
  resolve(null);
7
9
  });
@@ -0,0 +1 @@
1
+ export const timeLog = (...messages) => {
2
  const level = 'info';
1
3
  const now = new Date();
2
4
  const timestamp = now.toLocaleString('zh-CN', {
3
5
  year: 'numeric',
4
6
  month: '2-digit',
5
7
  day: '2-digit',
6
8
  hour: '2-digit',
7
9
  minute: '2-digit',
8
10
  second: '2-digit',
9
11
  hour12: false,
10
12
  });
11
13
  const milliseconds = now.getMilliseconds().toString().padStart(3, '0');
12
14
  const prefix = `[${timestamp}.${milliseconds}] `;
13
15
  const logMethods = {
14
16
  info: console.info,
15
17
  warn: console.warn,
16
18
  error: console.error,
17
19
  };
18
20
  logMethods[level](prefix, ...messages);