@conecli/cone-render 0.10.1-shop-beta.4 → 0.10.1-shop-beta.6

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 (102) 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/pageType.ts +1 -1
  9. package/dist/common/sgmCustomCode.ts +1 -1
  10. package/dist/common/token/token.jd.ts +1 -1
  11. package/dist/components/ErrorBoundary.tsx +1 -1
  12. package/dist/components/base/CommonFloorHead/index.module.scss +126 -111
  13. package/dist/components/base/CommonFloorHead/index.tsx +1 -1
  14. package/dist/components/base/CountDown/index.module.scss +49 -44
  15. package/dist/components/base/CountDown/index.tsx +1 -1
  16. package/dist/components/base/CustomScrollView/index-back.tsx +1 -0
  17. package/dist/components/base/CustomScrollView/index.tsx +1 -1
  18. package/dist/components/base/CustomVideo/common.ts +1 -0
  19. package/dist/components/base/CustomVideo/index.tsx +1 -1
  20. package/dist/components/base/Dialog/index.module.scss +11 -0
  21. package/dist/components/base/ExposureSmart/index.h5.module.scss +12 -2
  22. package/dist/components/base/ExposureSmart/index.h5.tsx +1 -1
  23. package/dist/components/base/ExposureSmart/reporter.tsx +1 -1
  24. package/dist/components/base/InOrOutViewObserver/index.tsx +1 -1
  25. package/dist/components/base/InViewRender/index.tsx +1 -1
  26. package/dist/components/base/InViewRender/index.weapp.tsx +1 -1
  27. package/dist/components/base/ItemViewExposureSmart/index.module.scss +2 -2
  28. package/dist/components/base/ItemViewExposureSmart/index.tsx +1 -1
  29. package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
  30. package/dist/components/base/LazyLayoutLoad/index.weapp.tsx +1 -1
  31. package/dist/components/base/LazyLoadImage/index.h5.module.scss +11 -3
  32. package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
  33. package/dist/components/base/LazyLoadImage/index.tsx +1 -1
  34. package/dist/components/base/MobileCommonHeader/index.tsx +1 -1
  35. package/dist/components/base/NetworkDataError/index.module.scss +3 -0
  36. package/dist/components/base/NetworkDataError/index.tsx +1 -1
  37. package/dist/components/base/Price/Base/index.tsx +1 -1
  38. package/dist/components/base/Price/Double/index.module.scss +8 -0
  39. package/dist/components/base/Price/Double/index.tsx +1 -1
  40. package/dist/components/decorate/DecorateFloorModule/index.module.scss +11 -0
  41. package/dist/components/decorate/DecorateFloorModule/index.tsx +1 -1
  42. package/dist/components/decorate/EmptyFloorModule/index.tsx +1 -1
  43. package/dist/components/decorate/PlaceHolder/index.tsx +1 -1
  44. package/dist/components/floorItem.jd.tsx +1 -1
  45. package/dist/components/floorItem.tsx +1 -1
  46. package/dist/components/floorItem.weapp.tsx +1 -1
  47. package/dist/components/isv/Floor/index.tsx +1 -1
  48. package/dist/components/remoteFloorItem.tsx +1 -1
  49. package/dist/interface/common.ts +1 -1
  50. package/dist/interface/component.ts +1 -1
  51. package/dist/interface/jumpEventReport.ts +1 -1
  52. package/dist/interface/service.ts +1 -1
  53. package/dist/jumpEventReport/base.ts +1 -1
  54. package/dist/jumpEventReport/const.ts +1 -1
  55. package/dist/jumpEventReport/index.jd.ts +1 -1
  56. package/dist/jumpEventReport/index.weapp.ts +1 -1
  57. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  58. package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
  59. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  60. package/dist/jumpEventReport/web/report.ts +1 -1
  61. package/dist/jumpEventReport/web.base.ts +1 -1
  62. package/dist/jumpEventReport/web.jd.ts +1 -1
  63. package/dist/jumpEventReport/web.jdb.ts +1 -1
  64. package/dist/jumpEventReport/web.jdjch.ts +1 -1
  65. package/dist/jumpEventReport/web.jxwxapp.ts +1 -1
  66. package/dist/jumpEventReport/web.pc.ts +1 -1
  67. package/dist/jumpEventReport/web.tjapp.ts +1 -1
  68. package/dist/jumpEventReport/web.tjm.ts +1 -1
  69. package/dist/jumpEventReport/web.wxapp.ts +1 -1
  70. package/dist/libs/taroAppReport.js +2 -2
  71. package/dist/modules/ContainerFloorList/index.h5.module.scss +66 -52
  72. package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
  73. package/dist/modules/ContainerFloorList/index.tsx +1 -1
  74. package/dist/open/api/device.ts +1 -1
  75. package/dist/open/api/request.ts +1 -1
  76. package/dist/open/api/shopMember.ts +1 -1
  77. package/dist/open/api/util.ts +1 -1
  78. package/dist/open/components/index.ts +1 -1
  79. package/dist/sass/app.h5.scss +275 -221
  80. package/dist/sass/base.scss +183 -137
  81. package/dist/service/fetchGateway.ts +1 -1
  82. package/dist/service/fetchGateway.weapp.ts +1 -0
  83. package/dist/service/http/colorSign.ts +1 -1
  84. package/dist/service/http/const.ts +1 -1
  85. package/dist/service/http/h5Http.ts +1 -0
  86. package/dist/service/http/index.h5.ts +1 -0
  87. package/dist/service/requestServer.h5.ts +1 -0
  88. package/dist/service/requestServer.ts +1 -1
  89. package/dist/service/requestServer.weapp.ts +1 -0
  90. package/dist/utils/connectNativeJsBridge.ts +1 -1
  91. package/dist/utils/connectNativeJsBridge.weapp.ts +1 -1
  92. package/dist/utils/h5Utils.ts +1 -1
  93. package/dist/utils/index.h5.ts +1 -1
  94. package/dist/utils/index.ts +1 -1
  95. package/dist/utils/index.weapp.ts +1 -1
  96. package/dist/utils/jumpExtMapUtil.js +1 -0
  97. package/dist/utils/sColor.js +1 -0
  98. package/dist/utils/sgmCodeUtils.ts +1 -1
  99. package/dist/utils/taroRenderUtil.ts +1 -1
  100. package/dist/utils/utils.ts +1 -1
  101. package/package.json +53 -28
  102. 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('🚗 ~~ file: index.ts:93 ~~ 通用的isInGrayscale还没有实现,不应该被调用!');
217
217
  return false;
218
218
  isJdApp,
219
219
  isWxApp,
220
220
  isIosDevice,
221
221
  isAndroidDevice,
222
222
  isJdAndIosDevice,
223
223
  isJdAndAndroidDevice,
224
224
  isJdAndHarmonyDevice,
225
225
  isJdAndroidX5Core,
226
226
  isWxMin,
227
227
  isMin,
228
228
  isJdMinAndHarmony,
229
229
  isWxMinAndWxapp,
230
230
  isJdMin,
231
231
  isH5,
232
232
  isH5AndJdShopView,
233
233
  isChartH5,
234
234
  isH5AndJdShopViewNativeScroll,
235
235
  isH5AndJdShopViewH5Scroll,
236
236
  isH5AndJdShopH5CustomScrollView,
237
237
  isH5AndJingGouMini,
238
238
  isWxMiniH5View,
239
239
  urlCookie,
240
240
  sliceArrToChunkList,
241
241
  dealAddress,
242
242
  objectToUrlEncode,
243
243
  parseQueryUrlString,
244
244
  setLowSmallPicUrl,
245
245
  countStringify,
246
246
  setTaroStorage,
247
247
  getTaroStorageKeyValue,
248
248
  removeTaroStorageKey,
249
249
  clearTaroStorageKey,
250
250
  getQualityImage,
251
251
  getSystemInfos,
252
252
  getWxAppCookieStr,
253
253
  pxTransformFromData,
254
254
  dealShopContentData,
255
255
  dateFormat,
256
256
  throttle,
257
257
  lodashThrottle,
258
258
  debounce,
259
259
  addHttps,
260
260
  showSuccessToast,
261
261
  showFailToast,
262
262
  showNormalToast,
263
263
  showShopLoading,
264
264
  hideShopLoading,
265
265
  stopNativeScrollEvent,
266
266
  getAppChannelType,
267
267
  formatTabActiveMenuType,
268
268
  getAvifSupport,
269
269
  getWebpSupport,
270
270
  filterUrlQueryData,
271
271
  isMemberPage,
272
272
  getFloorDataToDataDefines,
273
273
  sgmCustomReport,
274
274
  draCustomReport,
275
275
  remoteCustomReport,
276
276
  draInterfaceCustomReport,
277
277
  draBusinessCustomReport,
278
278
  isOpenJdAppUrl,
279
279
  jdOpenAppParams,
280
280
  createJdOpenAppUrl,
281
281
  isEmpty,
282
282
  isAppClassifyPage,
283
283
  isAppHomeForMarketPage,
284
284
  getJdAppReportPageSource,
285
285
  isImageOptimizeEnable,
286
286
  isPc,
287
287
  ipLoc_djd,
288
288
  isTjM,
289
289
  isTjJxM,
290
290
  isTjScence,
291
291
  isH5AdnJxMini,
292
292
  isTJApp,
293
293
  isH5AdnHaoWuJie,
294
294
  tjChannel,
295
295
  dealJdOpenAppData,
296
296
  jdAppVersionCompare,
297
297
  dealNativePixelToCssPixel,
298
298
  isAppStowShop,
299
299
  getSgmCustomCode,
300
300
  handleSgmCodeTaroVersion,
301
301
  isInGrayscale,
302
302
  isIpadDevice,
303
303
  getBorderStyle,
304
304
  isLanguageForEn,
305
305
  sColor,
306
306
  draInterfaceDSMCustomReport,
307
307
  isTabletDevice,
@@ -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
  isJdApp,
209
209
  isWxApp,
210
210
  isIosDevice,
211
211
  isAndroidDevice,
212
212
  isJdAndIosDevice,
213
213
  isJdAndAndroidDevice,
214
214
  isJdAndHarmonyDevice,
215
215
  isJdAndroidX5Core,
216
216
  isWxMin,
217
217
  isWxMinAndWxapp,
218
218
  isJdMin,
219
219
  isMin,
220
220
  isJdMinAndHarmony,
221
221
  isH5,
222
222
  isH5AndJdShopView,
223
223
  isChartH5,
224
224
  isH5AndJdShopViewNativeScroll,
225
225
  isH5AndJdShopViewH5Scroll,
226
226
  isH5AndJdShopH5CustomScrollView,
227
227
  isH5AndJingGouMini,
228
228
  isWxMiniH5View,
229
229
  urlCookie,
230
230
  sliceArrToChunkList,
231
231
  dealAddress,
232
232
  objectToUrlEncode,
233
233
  parseQueryUrlString,
234
234
  setLowSmallPicUrl,
235
235
  setTaroStorage,
236
236
  getTaroStorageKeyValue,
237
237
  removeTaroStorageKey,
238
238
  clearTaroStorageKey,
239
239
  getQualityImage,
240
240
  countStringify,
241
241
  getSystemInfos,
242
242
  getWxAppCookieStr,
243
243
  pxTransformFromData,
244
244
  dealShopContentData,
245
245
  dateFormat,
246
246
  throttle,
247
247
  lodashThrottle,
248
248
  debounce,
249
249
  addHttps,
250
250
  showSuccessToast,
251
251
  showFailToast,
252
252
  showNormalToast,
253
253
  showShopLoading,
254
254
  hideShopLoading,
255
255
  stopNativeScrollEvent,
256
256
  getAppChannelType,
257
257
  formatTabActiveMenuType,
258
258
  getAvifSupport,
259
259
  getWebpSupport,
260
260
  filterUrlQueryData,
261
261
  getFloorDataToDataDefines,
262
262
  sgmCustomReport,
263
263
  draCustomReport,
264
264
  remoteCustomReport,
265
265
  draInterfaceCustomReport,
266
266
  draBusinessCustomReport,
267
267
  isOpenJdAppUrl,
268
268
  jdOpenAppParams,
269
269
  createJdOpenAppUrl,
270
270
  isEmpty,
271
271
  getJdAppReportPageSource,
272
272
  isMemberPage,
273
273
  isAppClassifyPage,
274
274
  isAppHomeForMarketPage,
275
275
  isImageOptimizeEnable,
276
276
  isPc,
277
277
  ipLoc_djd,
278
278
  isTjM,
279
279
  isTjJxM,
280
280
  isTjScence,
281
281
  isH5AdnJxMini,
282
282
  isTJApp,
283
283
  isH5AdnHaoWuJie,
284
284
  tjChannel,
285
285
  dealJdOpenAppData,
286
286
  jdAppVersionCompare,
287
287
  dealNativePixelToCssPixel,
288
288
  getSgmCustomCode,
289
289
  handleSgmCodeTaroVersion,
290
290
  isInGrayscale,
291
291
  isIpadDevice,
292
292
  getBorderStyle,
293
293
  isLanguageForEn,
294
294
  sColor,
295
295
  draInterfaceDSMCustomReport,
296
296
  isTabletDevice,
@@ -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
  });