@conecli/cone-render 0.10.1-isv2.2 → 0.10.1-isv3.1

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 (123) hide show
  1. package/README.md +1 -1
  2. package/dist/api/index.ts +1 -1
  3. package/dist/common/accessibility.h5.ts +1 -0
  4. package/dist/common/accessibility.ts +1 -0
  5. package/dist/common/const.ts +1 -1
  6. package/dist/common/index.h5.ts +1 -1
  7. package/dist/common/index.jd.ts +1 -1
  8. package/dist/common/index.ts +1 -1
  9. package/dist/common/index.weapp.ts +1 -1
  10. package/dist/common/jdplayerSdk.weapp.tsx +1 -0
  11. package/dist/common/jssdk.ts +1 -1
  12. package/dist/common/jssdk.weapp.ts +1 -0
  13. package/dist/common/pageType.ts +1 -1
  14. package/dist/common/token/index.h5.ts +1 -1
  15. package/dist/common/token/token.jd.ts +1 -1
  16. package/dist/common/wxappApi.ascf.ts +1 -0
  17. package/dist/common/wxappApi.ts +1 -1
  18. package/dist/components/ErrorBoundary.tsx +1 -1
  19. package/dist/components/base/CommonFloorHead/index.module.scss +126 -111
  20. package/dist/components/base/CommonFloorHead/index.tsx +1 -1
  21. package/dist/components/base/CountDown/index.tsx +1 -1
  22. package/dist/components/base/CustomScrollView/index-back.tsx +1 -0
  23. package/dist/components/base/CustomScrollView/index.tsx +1 -1
  24. package/dist/components/base/CustomVideo/index.tsx +1 -1
  25. package/dist/components/base/CustomVideo/index.weapp.tsx +1 -0
  26. package/dist/components/base/Dialog/index.module.scss +11 -0
  27. package/dist/components/base/ExposureSmart/index.h5.module.scss +12 -2
  28. package/dist/components/base/ExposureSmart/index.h5.tsx +1 -1
  29. package/dist/components/base/ExposureSmart/index.tsx +1 -1
  30. package/dist/components/base/ExposureSmart/reporter.tsx +1 -1
  31. package/dist/components/base/InOrOutViewObserver/index.weapp.tsx +1 -0
  32. package/dist/components/base/InViewRender/index.tsx +1 -1
  33. package/dist/components/base/ItemViewExposureSmart/index.module.scss +2 -2
  34. package/dist/components/base/ItemViewExposureSmart/index.tsx +1 -1
  35. package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
  36. package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
  37. package/dist/components/base/MobileCommonHeader/index.tsx +1 -1
  38. package/dist/components/base/MobileCommonHeader/index.weapp.tsx +1 -0
  39. package/dist/components/base/NetworkDataError/const.ts +1 -1
  40. package/dist/components/base/NetworkDataError/index.module.scss +118 -72
  41. package/dist/components/base/NetworkDataError/index.tsx +1 -1
  42. package/dist/components/base/Price/Base/index.module.scss +12 -0
  43. package/dist/components/base/Price/Base/index.tsx +1 -1
  44. package/dist/components/base/Price/Double/index.module.scss +25 -1
  45. package/dist/components/base/Price/Double/index.tsx +1 -1
  46. package/dist/components/base/ShopLeGaoTag/index.h5.module.scss +35 -0
  47. package/dist/components/base/ShopLeGaoTag/index.h5.tsx +1 -0
  48. package/dist/components/base/ShopLeGaoTag/index.module.scss +33 -0
  49. package/dist/components/base/ShopLeGaoTag/index.tsx +1 -0
  50. package/dist/components/debug/DebugLayout/index.module.scss +2 -2
  51. package/dist/components/floorItem.tsx +1 -1
  52. package/dist/components/floorItem.weapp.tsx +1 -1
  53. package/dist/components/isv/Floor/index.tsx +1 -1
  54. package/dist/components/remoteFloorItem.tsx +1 -1
  55. package/dist/config/env.ts +1 -1
  56. package/dist/interface/common.ts +1 -1
  57. package/dist/interface/component.ts +1 -1
  58. package/dist/interface/jumpEventReport.ts +1 -1
  59. package/dist/interface/service.ts +1 -1
  60. package/dist/jumpEventReport/base.ts +1 -1
  61. package/dist/jumpEventReport/const.ts +1 -1
  62. package/dist/jumpEventReport/createReportFloorData.ts +1 -1
  63. package/dist/jumpEventReport/index.h5.ts +1 -1
  64. package/dist/jumpEventReport/index.jd.ts +1 -1
  65. package/dist/jumpEventReport/index.weapp.ts +1 -1
  66. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  67. package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
  68. package/dist/jumpEventReport/logEventConfig.h5.ts +1 -0
  69. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  70. package/dist/jumpEventReport/web/report.ts +1 -1
  71. package/dist/jumpEventReport/web.base.ts +1 -1
  72. package/dist/jumpEventReport/web.jd.ts +1 -1
  73. package/dist/jumpEventReport/web.pc.ts +1 -1
  74. package/dist/jumpEventReport/web.tjm.ts +1 -1
  75. package/dist/jumpEventReport/web.wxapp.ts +1 -1
  76. package/dist/language/en_US.json +395 -0
  77. package/dist/language/zh_CN.json +395 -0
  78. package/dist/language/zh_HK.json +395 -0
  79. package/dist/libs/openShopBridge.js +161 -0
  80. package/dist/libs/openShopBridge.min.js +1 -0
  81. package/dist/libs/taroAppReport.js +2 -2
  82. package/dist/modules/ContainerFloorList/index.h5.module.scss +80 -53
  83. package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
  84. package/dist/modules/ContainerFloorList/index.tsx +1 -1
  85. package/dist/modules/DecorateContainerFloorList/index.weapp.tsx +1 -0
  86. package/dist/open/api/environment.ts +1 -1
  87. package/dist/open/api/shopMember.ts +1 -1
  88. package/dist/open/api/shopMember.weapp.ts +1 -0
  89. package/dist/open/api/track.ts +1 -1
  90. package/dist/open/api/util.ts +1 -1
  91. package/dist/open/components/index.ts +1 -1
  92. package/dist/open/index.ts +1 -1
  93. package/dist/sass/app.h5.scss +278 -224
  94. package/dist/sass/base.scss +8 -4
  95. package/dist/service/fetchGateway.ts +1 -1
  96. package/dist/service/fetchGateway.weapp.ts +1 -0
  97. package/dist/service/fetchJsonp.weapp.ts +1 -0
  98. package/dist/service/http/colorSign.ts +1 -1
  99. package/dist/service/http/const.ts +1 -1
  100. package/dist/service/http/h5Http.ts +1 -1
  101. package/dist/service/http/httpInterceptors.weapp.ts +1 -0
  102. package/dist/service/requestServer.h5.ts +1 -1
  103. package/dist/service/requestServer.ts +1 -1
  104. package/dist/service/requestServer.weapp.ts +1 -0
  105. package/dist/utils/connectNativeJsBridge.ts +1 -1
  106. package/dist/utils/h5Utils.ts +1 -1
  107. package/dist/utils/harmonyCallRouter.h5.ts +1 -0
  108. package/dist/utils/harmonyCallRouter.ts +0 -0
  109. package/dist/utils/index.h5.ts +1 -1
  110. package/dist/utils/index.ts +1 -1
  111. package/dist/utils/index.weapp.ts +1 -1
  112. package/dist/utils/jumpExtMapUtil.h5.ts +1 -0
  113. package/dist/utils/jumpExtMapUtil.ts +1 -0
  114. package/dist/utils/jumpExtMapUtil.weapp.ts +1 -0
  115. package/dist/utils/log.ts +1 -0
  116. package/dist/utils/sColor.ts +1 -0
  117. package/dist/utils/sColor.weapp.ts +1 -0
  118. package/dist/utils/utils.ts +1 -1
  119. package/dist/wxapp/common/address_api/address_api_v2.js +1 -0
  120. package/dist/wxapp/common/user_info.js +1 -1
  121. package/package.json +164 -141
  122. package/dist/jumpEventReport/web/wqshop.report.ts +0 -1
  123. package/dist/utils/priceUtils.js +0 -1
@@ -1 +1 @@
1
- import {
2
1
  isMin,
3
2
  isJdMinAndHarmony,
4
3
  isChartH5,
5
4
  isH5AndJdShopViewH5Scroll,
6
5
  isH5AndJdShopH5CustomScrollView,
7
6
  getAvifSupport,
8
7
  getWebpSupport,
9
8
  isMemberPage,
10
9
  sgmCustomReport,
11
10
  draCustomReport,
12
11
  remoteCustomReport,
13
12
  draInterfaceCustomReport,
14
13
  draBusinessCustomReport,
15
14
  isOpenJdAppUrl,
16
15
  jdOpenAppParams,
17
16
  createJdOpenAppUrl,
18
17
  isEmpty,
19
18
  getJdAppReportPageSource,
20
19
  isPc,
21
20
  ipLoc_djd,
22
21
  dealJdOpenAppData,
23
22
  jdAppVersionCompare,
24
23
  dealNativePixelToCssPixel,
25
24
  isAppStowShop,
26
25
  isImageOptimizeEnable,
27
26
  isIpadDevice,
28
27
  getBorderStyle,
29
28
  isLanguageForEn,
30
29
  console.warn("🚗 ~~ file: index.ts:93 ~~ 通用的isInGrayscale还没有实现,不应该被调用!")
31
30
  return false
32
31
  isJdAndHarmonyDevice,
33
32
  isJdAndroidX5Core,
34
33
  isMin,
35
34
  isJdMinAndHarmony,
36
35
  isChartH5,
37
36
  isH5AndJdShopViewH5Scroll,
38
37
  isH5AndJdShopH5CustomScrollView,
39
38
  isH5AndJingGouMini,
40
39
  urlCookie,
41
40
  stopNativeScrollEvent,
42
41
  getAvifSupport,
43
42
  getWebpSupport,
44
43
  isMemberPage,
45
44
  sgmCustomReport,
46
45
  draCustomReport,
47
46
  remoteCustomReport,
48
47
  draInterfaceCustomReport,
49
48
  draBusinessCustomReport,
50
49
  isOpenJdAppUrl,
51
50
  jdOpenAppParams,
52
51
  createJdOpenAppUrl,
53
52
  isEmpty,
54
53
  isAppHomeForMarketPage,
55
54
  getJdAppReportPageSource,
56
55
  isImageOptimizeEnable,
57
56
  isPc,
58
57
  ipLoc_djd,
59
58
  isTjM,
60
59
  isTjJxM,
61
60
  isTjScence,
62
61
  isH5AdnJxMini,
63
62
  isTJApp,
64
63
  isH5AdnHaoWuJie,
65
64
  tjChannel,
66
65
  dealJdOpenAppData,
67
66
  jdAppVersionCompare,
68
67
  dealNativePixelToCssPixel,
69
68
  isAppStowShop,
70
69
  getSgmCustomCode,
71
70
  handleSgmCodeTaroVersion,
72
71
  isInGrayscale,
73
72
  isIpadDevice,
74
73
  getBorderStyle,
75
74
  isLanguageForEn,
75
+ import {
76
76
  isJdApp,
77
77
  isWxApp,
78
78
  isIosDevice,
79
79
  isAndroidDevice,
80
80
  isJdAndIosDevice,
81
81
  isJdAndAndroidDevice,
82
82
  isWxMin,
83
83
  isMin,
84
84
  isJdMinAndHarmony,
85
85
  isWxMinAndWxapp,
86
86
  isJdMin,
87
87
  isH5,
88
88
  isH5AndJdShopView,
89
89
  isChartH5,
90
90
  isAppHomePage,
91
91
  isH5AndJdShopViewNativeScroll,
92
92
  isH5AndJdShopViewH5Scroll,
93
93
  isH5AndJdShopH5CustomScrollView,
94
94
  isWxMiniH5View,
95
95
  sliceArrToChunkList,
96
96
  dealAddress,
97
97
  objectToUrlEncode,
98
98
  setLowSmallPicUrl,
99
99
  parseQueryUrlString,
100
100
  countStringify,
101
101
  setTaroStorage,
102
102
  getTaroStorageKeyValue,
103
103
  removeTaroStorageKey,
104
104
  clearTaroStorageKey,
105
105
  getQualityImage,
106
106
  getSystemInfos,
107
107
  getWxAppCookieStr,
108
108
  pxTransformFromData,
109
109
  fontStylePxTransformFromData,
110
110
  dealShopContentData,
111
111
  dateFormat,
112
112
  throttle,
113
113
  lodashThrottle,
114
114
  debounce,
115
115
  addHttps,
116
116
  showSuccessToast,
117
117
  showFailToast,
118
118
  showNormalToast,
119
119
  showShopLoading,
120
120
  hideShopLoading,
121
121
  getAppChannelType,
122
122
  formatTabActiveMenuType,
123
123
  getAvifSupport,
124
124
  getWebpSupport,
125
125
  filterUrlQueryData,
126
126
  isMemberPage,
127
127
  draCustomReport,
128
128
  remoteCustomReport,
129
129
  draInterfaceCustomReport,
130
130
  draBusinessCustomReport,
131
131
  draBusinessCustomLogReport,
132
132
  isOpenJdAppUrl,
133
133
  jdOpenAppParams,
134
134
  createJdOpenAppUrl,
135
135
  isEmpty,
136
136
  getJdAppReportPageSource,
137
137
  isAppClassifyPage,
138
138
  isPc,
139
139
  isPcClassifyPage,
140
140
  ipLoc_djd,
141
141
  dealJdOpenAppData,
142
142
  jdAppVersionCompare,
143
143
  dealNativePixelToCssPixel,
144
144
  isAppStowShop,
145
145
  isImageOptimizeEnable,
146
146
  isIpadDevice,
147
147
  getBorderStyle,
148
148
  isLanguageForEn,
149
149
  sColor,
150
150
  isTabletDevice,
151
151
  isLanguageForHk,
152
152
  languageNowType,
153
153
  isAscfApp,
154
154
  isInJdAppH5DebugMode,
155
155
  isJdLiteApp,
156
156
  isJdAppForNotMain,
157
157
  console.warn('暂未实现', code);
158
158
  console.warn('暂未实现', code);
159
159
  console.warn('暂未实现');
160
160
  console.warn('🚗 ~~ file: index.ts:93 ~~ 通用的isInGrayscale还没有实现,不应该被调用!');
161
161
  return false;
162
162
  isJdApp,
163
163
  isWxApp,
164
164
  isIosDevice,
165
165
  isAndroidDevice,
166
166
  isHarmonyDevice,
167
167
  isJdAndIosDevice,
168
168
  isJdAndAndroidDevice,
169
169
  isJdAndHarmonyDevice,
170
170
  isNewHarmonyShop,
171
171
  isJdAndroidX5Core,
172
172
  isWxMin,
173
173
  isMin,
174
174
  isJdMinAndHarmony,
175
175
  isWxMinAndWxapp,
176
176
  isJdMin,
177
177
  isH5,
178
178
  isH5AndJdShopView,
179
179
  isChartH5,
180
180
  isAppHomePage,
181
181
  isH5AndJdShopViewNativeScroll,
182
182
  isH5AndJdShopViewH5Scroll,
183
183
  isH5AndJdShopH5CustomScrollView,
184
184
  isH5AndJingGouMini,
185
185
  isWxMiniH5View,
186
186
  urlCookie,
187
187
  sliceArrToChunkList,
188
188
  dealAddress,
189
189
  objectToUrlEncode,
190
190
  parseQueryUrlString,
191
191
  setLowSmallPicUrl,
192
192
  countStringify,
193
193
  setTaroStorage,
194
194
  getTaroStorageKeyValue,
195
195
  removeTaroStorageKey,
196
196
  clearTaroStorageKey,
197
197
  getQualityImage,
198
198
  getSystemInfos,
199
199
  getWxAppCookieStr,
200
200
  pxTransformFromData,
201
201
  fontStylePxTransformFromData,
202
202
  dealShopContentData,
203
203
  dateFormat,
204
204
  throttle,
205
205
  lodashThrottle,
206
206
  debounce,
207
207
  addHttps,
208
208
  showSuccessToast,
209
209
  showFailToast,
210
210
  showNormalToast,
211
211
  showShopLoading,
212
212
  hideShopLoading,
213
213
  stopNativeScrollEvent,
214
214
  getAppChannelType,
215
215
  formatTabActiveMenuType,
216
216
  getAvifSupport,
217
217
  getWebpSupport,
218
218
  filterUrlQueryData,
219
219
  isMemberPage,
220
220
  getFloorDataToDataDefines,
221
221
  draCustomReport,
222
222
  remoteCustomReport,
223
223
  draInterfaceCustomReport,
224
224
  draBusinessCustomReport,
225
225
  draBusinessCustomLogReport,
226
226
  isOpenJdAppUrl,
227
227
  jdOpenAppParams,
228
228
  createJdOpenAppUrl,
229
229
  isEmpty,
230
230
  isAppClassifyPage,
231
231
  isAppHomeForMarketPage,
232
232
  getJdAppReportPageSource,
233
233
  isImageOptimizeEnable,
234
234
  isPc,
235
235
  isPcClassifyPage,
236
236
  ipLoc_djd,
237
237
  isTjM,
238
238
  isTjJxM,
239
239
  isTjScence,
240
240
  isH5AdnJxMini,
241
241
  isTJApp,
242
242
  isH5AdnHaoWuJie,
243
243
  tjChannel,
244
244
  dealJdOpenAppData,
245
245
  jdAppVersionCompare,
246
246
  dealNativePixelToCssPixel,
247
247
  isAppStowShop,
248
248
  getSgmCustomCode,
249
249
  handleSgmCodeTaroVersion,
250
250
  isInGrayscale,
251
251
  isIpadDevice,
252
252
  getBorderStyle,
253
253
  isLanguageForEn,
254
254
  sColor,
255
255
  isTabletDevice,
256
256
  updateContainerWidth,
257
257
  isInJdShopView,
258
258
  isDongWebView,
259
259
  isLanguageForHk,
260
260
  languageNowType,
261
261
  isAscfApp,
262
262
  isInJdAppH5DebugMode,
263
263
  isJdLiteApp,
264
264
  isJdAppForNotMain,
265
265
  taroToTransformRoutimePXNumber,
@@ -1 +1 @@
1
- import {
2
1
  isJdMinAndHarmony,
3
2
  isChartH5,
4
3
  isH5AndJdShopViewH5Scroll,
5
4
  isH5AndJdShopH5CustomScrollView,
6
5
  getAvifSupport,
7
6
  getWebpSupport,
8
7
  sgmCustomReport,
9
8
  draCustomReport,
10
9
  remoteCustomReport,
11
10
  draInterfaceCustomReport,
12
11
  draBusinessCustomReport,
13
12
  isOpenJdAppUrl,
14
13
  jdOpenAppParams,
15
14
  createJdOpenAppUrl,
16
15
  isEmpty,
17
16
  getJdAppReportPageSource,
18
17
  isMemberPage,
19
18
  isAppClassifyPage,
20
19
  dealJdOpenAppData,
21
20
  jdAppVersionCompare,
22
21
  dealNativePixelToCssPixel,
23
22
  isImageOptimizeEnable,
24
23
  isIpadDevice,
25
24
  getBorderStyle,
26
25
  isLanguageForEn,
27
26
  console.warn("🚗 ~~ file: index.ts:93 ~~ wxapp的isInGrayscale还没有实现,不应该被调用!")
28
27
  return false
29
28
  isJdAndHarmonyDevice,
30
29
  isJdAndroidX5Core,
31
30
  isMin,
32
31
  isJdMinAndHarmony,
33
32
  isH5AndJdShopViewH5Scroll,
34
33
  isH5AndJdShopH5CustomScrollView,
35
34
  isH5AndJingGouMini,
36
35
  urlCookie,
37
36
  stopNativeScrollEvent,
38
37
  getAvifSupport,
39
38
  getWebpSupport,
40
39
  sgmCustomReport,
41
40
  draCustomReport,
42
41
  remoteCustomReport,
43
42
  draInterfaceCustomReport,
44
43
  draBusinessCustomReport,
45
44
  isOpenJdAppUrl,
46
45
  jdOpenAppParams,
47
46
  createJdOpenAppUrl,
48
47
  isEmpty,
49
48
  getJdAppReportPageSource,
50
49
  isMemberPage,
51
50
  isAppClassifyPage,
52
51
  isAppHomeForMarketPage,
53
52
  isImageOptimizeEnable,
54
53
  isPc,
55
54
  isTjM,
56
55
  isTjJxM,
57
56
  isTjScence,
58
57
  isH5AdnJxMini,
59
58
  isTJApp,
60
59
  isH5AdnHaoWuJie,
61
60
  tjChannel,
62
61
  dealJdOpenAppData,
63
62
  jdAppVersionCompare,
64
63
  dealNativePixelToCssPixel,
65
64
  getSgmCustomCode,
66
65
  handleSgmCodeTaroVersion,
67
66
  isInGrayscale,
68
67
  isIpadDevice,
69
68
  getBorderStyle,
70
69
  isLanguageForEn,
70
+ import {
71
71
  isJdApp,
72
72
  isWxApp,
73
73
  isIosDevice,
74
74
  isAndroidDevice,
75
75
  isJdAndIosDevice,
76
76
  isJdAndAndroidDevice,
77
77
  isWxMin,
78
78
  isWxMinAndWxapp,
79
79
  isJdMin,
80
80
  isJdMinAndHarmony,
81
81
  isH5,
82
82
  isH5AndJdShopView,
83
83
  isChartH5,
84
84
  isH5AndJdShopViewNativeScroll,
85
85
  isH5AndJdShopViewH5Scroll,
86
86
  isH5AndJdShopH5CustomScrollView,
87
87
  isWxMiniH5View,
88
88
  sliceArrToChunkList,
89
89
  dealAddress,
90
90
  objectToUrlEncode,
91
91
  parseQueryUrlString,
92
92
  setLowSmallPicUrl,
93
93
  setTaroStorage,
94
94
  getTaroStorageKeyValue,
95
95
  removeTaroStorageKey,
96
96
  clearTaroStorageKey,
97
97
  getQualityImage,
98
98
  countStringify,
99
99
  getSystemInfos,
100
100
  getWxAppCookieStr,
101
101
  pxTransformFromData,
102
102
  fontStylePxTransformFromData,
103
103
  dealShopContentData,
104
104
  dateFormat,
105
105
  throttle,
106
106
  lodashThrottle,
107
107
  debounce,
108
108
  addHttps,
109
109
  showSuccessToast,
110
110
  showFailToast,
111
111
  showNormalToast,
112
112
  showShopLoading,
113
113
  hideShopLoading,
114
114
  getAppChannelType,
115
115
  formatTabActiveMenuType,
116
116
  getAvifSupport,
117
117
  getWebpSupport,
118
118
  filterUrlQueryData,
119
119
  draCustomReport,
120
120
  remoteCustomReport,
121
121
  draInterfaceCustomReport,
122
122
  draBusinessCustomReport,
123
123
  draBusinessCustomLogReport,
124
124
  isOpenJdAppUrl,
125
125
  jdOpenAppParams,
126
126
  createJdOpenAppUrl,
127
127
  isEmpty,
128
128
  getJdAppReportPageSource,
129
129
  isMemberPage,
130
130
  isAppClassifyPage,
131
131
  dealJdOpenAppData,
132
132
  jdAppVersionCompare,
133
133
  dealNativePixelToCssPixel,
134
134
  isImageOptimizeEnable,
135
135
  isIpadDevice,
136
136
  getBorderStyle,
137
137
  isLanguageForEn,
138
138
  sColor,
139
139
  isTabletDevice,
140
140
  isLanguageForHk,
141
141
  languageNowType,
142
142
  isInJdAppH5DebugMode,
143
143
  isJdLiteApp,
144
144
  isJdAppForNotMain,
145
145
  isAscfApp,
146
146
  console.warn('暂未实现', code);
147
147
  console.warn('暂未实现', code);
148
148
  console.warn('🚗 ~~ file: index.ts:93 ~~ wxapp的isInGrayscale还没有实现,不应该被调用!');
149
149
  return false;
150
150
  console.warn('暂未实现');
151
151
  isJdApp,
152
152
  isWxApp,
153
153
  isIosDevice,
154
154
  isAndroidDevice,
155
155
  isHarmonyDevice,
156
156
  isJdAndIosDevice,
157
157
  isJdAndAndroidDevice,
158
158
  isJdAndHarmonyDevice,
159
159
  isNewHarmonyShop,
160
160
  isJdAndroidX5Core,
161
161
  isWxMin,
162
162
  isWxMinAndWxapp,
163
163
  isJdMin,
164
164
  isMin,
165
165
  isJdMinAndHarmony,
166
166
  isH5,
167
167
  isH5AndJdShopView,
168
168
  isChartH5,
169
169
  isH5AndJdShopViewNativeScroll,
170
170
  isH5AndJdShopViewH5Scroll,
171
171
  isH5AndJdShopH5CustomScrollView,
172
172
  isH5AndJingGouMini,
173
173
  isWxMiniH5View,
174
174
  urlCookie,
175
175
  sliceArrToChunkList,
176
176
  dealAddress,
177
177
  objectToUrlEncode,
178
178
  parseQueryUrlString,
179
179
  setLowSmallPicUrl,
180
180
  setTaroStorage,
181
181
  getTaroStorageKeyValue,
182
182
  removeTaroStorageKey,
183
183
  clearTaroStorageKey,
184
184
  getQualityImage,
185
185
  countStringify,
186
186
  getSystemInfos,
187
187
  getWxAppCookieStr,
188
188
  pxTransformFromData,
189
189
  fontStylePxTransformFromData,
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
  stopNativeScrollEvent,
202
202
  getAppChannelType,
203
203
  formatTabActiveMenuType,
204
204
  getAvifSupport,
205
205
  getWebpSupport,
206
206
  filterUrlQueryData,
207
207
  getFloorDataToDataDefines,
208
208
  draCustomReport,
209
209
  remoteCustomReport,
210
210
  draInterfaceCustomReport,
211
211
  draBusinessCustomReport,
212
212
  draBusinessCustomLogReport,
213
213
  isOpenJdAppUrl,
214
214
  jdOpenAppParams,
215
215
  createJdOpenAppUrl,
216
216
  isEmpty,
217
217
  getJdAppReportPageSource,
218
218
  isMemberPage,
219
219
  isAppClassifyPage,
220
220
  isAppHomeForMarketPage,
221
221
  isImageOptimizeEnable,
222
222
  isPc,
223
223
  ipLoc_djd,
224
224
  isTjM,
225
225
  isTjJxM,
226
226
  isTjScence,
227
227
  isH5AdnJxMini,
228
228
  isTJApp,
229
229
  isH5AdnHaoWuJie,
230
230
  tjChannel,
231
231
  dealJdOpenAppData,
232
232
  jdAppVersionCompare,
233
233
  dealNativePixelToCssPixel,
234
234
  getSgmCustomCode,
235
235
  handleSgmCodeTaroVersion,
236
236
  isInGrayscale,
237
237
  isIpadDevice,
238
238
  getBorderStyle,
239
239
  isLanguageForEn,
240
240
  sColor,
241
241
  isTabletDevice,
242
242
  updateContainerWidth,
243
243
  isInJdShopView,
244
244
  isDongWebView,
245
245
  isLanguageForHk,
246
246
  languageNowType,
247
247
  isInJdAppH5DebugMode,
248
248
  isJdLiteApp,
249
249
  isJdAppForNotMain,
250
250
  isAscfApp,
@@ -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
+ import global from '../common';
2
  if (!str) return null;
1
3
  let decoded = str;
2
4
  const maxAttempts = 5;
3
5
  for (let i = 0; i < maxAttempts; i++) {
4
6
  try {
5
7
  const next = decodeURIComponent(decoded);
6
8
  if (next === decoded) break;
7
9
  decoded = next;
8
10
  } catch {
9
11
  break;
10
12
  }
11
13
  }
12
14
  try {
13
15
  return JSON.parse(decoded);
14
16
  } catch {
15
17
  return null;
16
18
  }
17
19
  const smartCouponParams =
18
20
  typeof global?.info?.queryInfo?.['ad_smart_coupons'] === 'string'
19
21
  ? safeDecodeToJSON(global?.info?.queryInfo?.['ad_smart_coupons'])
20
22
  : null;
21
23
  return {
22
24
  smartCouponInfo: smartCouponParams ? [smartCouponParams] : [],
23
25
  };
24
26
  return {};
25
27
  const { smartCouponInfo = [] } = getEntranceObj();
26
28
  const info = smartCouponInfo.find((item) => `${item.skuId}` === `${skuId}`);
27
29
  return info ? info.adInfos : null;
28
30
  return new Promise((resolve) => {
29
31
  resolve(getEntranceObj()?.smartCouponInfo);
30
32
  });
@@ -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);
@@ -0,0 +1 @@
1
+ const colorDSM = 'https://api.m.jd.com/client.action?functionId=';
2
  [
1
3
  colorDSM + 'op_getGoodListByCatesIds',
2
4
  ['dsm.jshop.operations.api.inner.service.ProductJsfService.getGoodListByCatesIds', true],
3
5
  ,
4
6
  ],
5
7
  console.log('getSColorPara ~ url is:', url);
6
8
  url = colorDSM + url;
7
9
  if (isDowngradeSDM(url)) {
8
10
  return {};
9
11
  }
10
12
  return getDSMValue(url)
11
13
  ? {
12
14
  url: '/api?v=1.0&appId=IEAFE4HKEFPYCKVAUVBR&api=' + getDSMValue(url)[0],
13
15
  }
14
16
  : {};
15
17
  url = colorDSM + url;
16
18
  try {
17
19
  if (isDowngradeSDM(url)) {
18
20
  return false;
19
21
  }
20
22
  console.log('is DSM', !!getDSMValue(url));
21
23
  return !!getDSMValue(url);
22
24
  } catch (error) {
23
25
  console.log('🚀 ~ checkIsDSM ~ error:', error);
24
26
  return false;
25
27
  }
26
28
  url = colorDSM + url;
27
29
  if (isDowngradeSDM(url)) {
28
30
  return false;
29
31
  }
30
32
  console.log('is need deconstruction', getDSMValue(url) ? getDSMValue(url)[1] : false);
31
33
  return getDSMValue(url) ? getDSMValue(url)[1] : false;
32
34
  for (let [key, value] of DSM) {
33
35
  if (url.startsWith(key) && url.includes('?')) {
34
36
  return value;
35
37
  }
36
38
  if (key === url) {
37
39
  return value;
38
40
  }
39
41
  }
40
42
  return '';
41
43
  try {
42
44
  const { nodePageData } = window;
43
45
  const { DSMDowngradeList = null, routeBlackList = null } = nodePageData;
44
46
  if (
45
47
  nodePageData &&
46
48
  routeBlackList &&
47
49
  Array.isArray(routeBlackList) &&
48
50
  ((routeBlackList.length > 0 &&
49
51
  routeBlackList.some((prefix) => url.startsWith(prefix)) &&
50
52
  url.includes('?')) ||
51
53
  routeBlackList.includes(url))
52
54
  ) {
53
55
  return true;
54
56
  }
55
57
  if (DSMDowngradeList === null) return true;
56
58
  if (
57
59
  !Array.isArray(DSMDowngradeList) ||
58
60
  (DSMDowngradeList.length > 0 &&
59
61
  DSMDowngradeList.some((prefix) => url.startsWith(prefix)) &&
60
62
  url.includes('?')) ||
61
63
  DSMDowngradeList.includes(url)
62
64
  ) {
63
65
  return true;
64
66
  }
65
67
  return false;
66
68
  } catch (error) {
67
69
  console.log('🚀 ~ isDowngradeSDM ~ error:', error)
68
70
  return false;
69
71
  }
70
72
  getSColorPara: (url) => getSColorPara(url),
71
73
  checkIsNeedDeconstruction: (url) => checkIsNeedDeconstruction(url),
72
74
  checkIsDSM: (url) => checkIsDSM(url),
@@ -0,0 +1 @@
1
+ const sColor = {
2
  getSColorPara: () => {},
1
3
  checkIsNeedDeconstruction: (_url) => false,
2
4
  checkIsDSM: (_url) => false,