@conecli/cone-render 0.8.44 → 0.8.46-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/dist/api/index.ts +1 -1
  2. package/dist/assets/icon_blue_info.svg +1 -0
  3. package/dist/common/const.ts +1 -1
  4. package/dist/common/environmentType.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/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/base/CommonFloorHead/index.module.scss +126 -111
  15. package/dist/components/base/CommonFloorHead/index.tsx +1 -1
  16. package/dist/components/base/CountDown/index.module.scss +49 -44
  17. package/dist/components/base/CountDown/index.tsx +1 -1
  18. package/dist/components/base/CustomScrollView/index.tsx +1 -1
  19. package/dist/components/base/CustomVideo/common.ts +1 -0
  20. package/dist/components/base/CustomVideo/index.tsx +1 -1
  21. package/dist/components/base/Dialog/index.module.scss +11 -0
  22. package/dist/components/base/ExposureSmart/index.h5.module.scss +12 -2
  23. package/dist/components/base/ExposureSmart/index.h5.tsx +1 -1
  24. package/dist/components/base/ExposureSmart/reporter.tsx +1 -1
  25. package/dist/components/base/ItemViewExposureSmart/index.module.scss +2 -2
  26. package/dist/components/base/ItemViewExposureSmart/index.tsx +1 -1
  27. package/dist/components/base/LazyLoadImage/index.h5.module.scss +4 -0
  28. package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
  29. package/dist/components/base/Price/Base/index.tsx +1 -1
  30. package/dist/components/base/Price/Double/index.module.scss +8 -0
  31. package/dist/components/base/Price/Double/index.tsx +1 -1
  32. package/dist/components/debug/DebugLayout/index.module.scss +67 -0
  33. package/dist/components/debug/DebugLayout/index.tsx +1 -0
  34. package/dist/components/debug/DebugLayout/utils.ts +1 -0
  35. package/dist/components/decorate/DecorateFloorModule/index.module.scss +11 -0
  36. package/dist/components/decorate/DecorateFloorModule/index.tsx +1 -1
  37. package/dist/components/decorate/EmptyFloorModule/index.tsx +1 -1
  38. package/dist/components/decorate/PlaceHolder/index.tsx +1 -1
  39. package/dist/components/floorItem.tsx +1 -1
  40. package/dist/components/floorItem.weapp.tsx +1 -1
  41. package/dist/components/isv/Floor/index.tsx +1 -1
  42. package/dist/interface/common.ts +1 -1
  43. package/dist/interface/component.ts +1 -1
  44. package/dist/interface/jumpEventReport.ts +1 -1
  45. package/dist/interface/service.ts +1 -1
  46. package/dist/jumpEventReport/base.ts +1 -1
  47. package/dist/jumpEventReport/const.ts +1 -1
  48. package/dist/jumpEventReport/index.jd.ts +1 -1
  49. package/dist/jumpEventReport/index.weapp.ts +1 -1
  50. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  51. package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
  52. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  53. package/dist/jumpEventReport/web/report.ts +1 -1
  54. package/dist/jumpEventReport/web.base.ts +1 -1
  55. package/dist/jumpEventReport/web.jd.ts +1 -1
  56. package/dist/jumpEventReport/web.jdb.ts +1 -1
  57. package/dist/jumpEventReport/web.jdjch.ts +1 -1
  58. package/dist/jumpEventReport/web.jxwxapp.ts +1 -1
  59. package/dist/jumpEventReport/web.pc.ts +1 -1
  60. package/dist/jumpEventReport/web.tjapp.ts +1 -1
  61. package/dist/jumpEventReport/web.tjm.ts +1 -1
  62. package/dist/jumpEventReport/web.wxapp.ts +1 -1
  63. package/dist/libs/taroAppReport.js +2 -2
  64. package/dist/modules/ContainerFloorList/index.h5.module.scss +66 -53
  65. package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
  66. package/dist/modules/ContainerFloorList/index.tsx +1 -1
  67. package/dist/open/api/environment.ts +1 -1
  68. package/dist/open/api/shopMember.ts +1 -1
  69. package/dist/open/api/util.ts +1 -1
  70. package/dist/sass/app.h5.scss +255 -224
  71. package/dist/sass/base.scss +183 -137
  72. package/dist/service/fetchGateway.ts +1 -1
  73. package/dist/service/fetchGateway.weapp.ts +1 -0
  74. package/dist/service/http/colorSign.ts +1 -1
  75. package/dist/service/http/const.ts +1 -1
  76. package/dist/service/http/h5Http.ts +1 -0
  77. package/dist/service/http/index.h5.ts +1 -0
  78. package/dist/service/requestServer.h5.ts +1 -0
  79. package/dist/service/requestServer.ts +1 -1
  80. package/dist/service/requestServer.weapp.ts +1 -0
  81. package/dist/utils/connectNativeJsBridge.ts +1 -1
  82. package/dist/utils/connectNativeJsBridge.weapp.ts +1 -1
  83. package/dist/utils/h5Utils.ts +1 -1
  84. package/dist/utils/index.h5.ts +1 -1
  85. package/dist/utils/index.ts +1 -1
  86. package/dist/utils/index.weapp.ts +1 -1
  87. package/dist/utils/jumpExtMapUtil.h5.ts +1 -0
  88. package/dist/utils/jumpExtMapUtil.ts +1 -0
  89. package/dist/utils/sColor.js +1 -0
  90. package/dist/utils/utils.ts +1 -1
  91. package/dist/wxapp/common/address_api/address_api_v2.js +1 -0
  92. package/dist/wxapp/common/user_info.js +1 -1
  93. package/package.json +147 -123
  94. package/dist/utils/memberFormatUtils.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
  isOpenJdAppUrl,
12
11
  jdOpenAppParams,
13
12
  createJdOpenAppUrl,
14
13
  isEmpty,
15
14
  getJdAppReportPageSource,
16
15
  isPc,
17
16
  ipLoc_djd,
18
17
  dealJdOpenAppData,
19
18
  jdAppVersionCompare,
20
19
  dealNativePixelToCssPixel,
21
20
  isAppStowShop,
22
21
  isImageOptimizeEnable,
23
22
  isJdAndHarmonyDevice,
24
23
  isJdAndroidX5Core,
25
24
  isMin,
26
25
  isJdMinAndHarmony,
27
26
  isChartH5,
28
27
  isH5AndJdShopViewH5Scroll,
29
28
  isH5AndJdShopH5CustomScrollView,
30
29
  isH5AndJingGouMini,
31
30
  urlCookie,
32
31
  getAvifSupport,
33
32
  getWebpSupport,
34
33
  isMemberPage,
35
34
  sgmCustomReport,
36
35
  isOpenJdAppUrl,
37
36
  jdOpenAppParams,
38
37
  createJdOpenAppUrl,
39
38
  isEmpty,
40
39
  isAppHomeForMarketPage,
41
40
  getJdAppReportPageSource,
42
41
  isImageOptimizeEnable,
43
42
  isPc,
44
43
  ipLoc_djd,
45
44
  isTjM,
46
45
  isTjJxM,
47
46
  isTjScence,
48
47
  isH5AdnJxMini,
49
48
  isTJApp,
50
49
  isH5AdnHaoWuJie,
51
50
  tjChannel,
52
51
  dealJdOpenAppData,
53
52
  jdAppVersionCompare,
54
53
  dealNativePixelToCssPixel,
55
54
  isAppStowShop,
56
55
  getSgmCustomCode,
57
56
  handleSgmCodeTaroVersion,
57
+ import {
58
58
  isJdApp,
59
59
  isWxApp,
60
60
  isIosDevice,
61
61
  isAndroidDevice,
62
62
  isJdAndIosDevice,
63
63
  isJdAndAndroidDevice,
64
64
  isWxMin,
65
65
  isMin,
66
66
  isJdMinAndHarmony,
67
67
  isWxMinAndWxapp,
68
68
  isJdMin,
69
69
  isH5,
70
70
  isH5AndJdShopView,
71
71
  isChartH5,
72
72
  isH5AndJdShopViewNativeScroll,
73
73
  isH5AndJdShopViewH5Scroll,
74
74
  isH5AndJdShopH5CustomScrollView,
75
75
  isWxMiniH5View,
76
76
  sliceArrToChunkList,
77
77
  dealAddress,
78
78
  objectToUrlEncode,
79
79
  setLowSmallPicUrl,
80
80
  parseQueryUrlString,
81
81
  countStringify,
82
82
  setTaroStorage,
83
83
  getTaroStorageKeyValue,
84
84
  removeTaroStorageKey,
85
85
  clearTaroStorageKey,
86
86
  getQualityImage,
87
87
  getSystemInfos,
88
88
  getWxAppCookieStr,
89
89
  pxTransformFromData,
90
90
  dealShopContentData,
91
91
  dateFormat,
92
92
  throttle,
93
93
  lodashThrottle,
94
94
  debounce,
95
95
  addHttps,
96
96
  showSuccessToast,
97
97
  showFailToast,
98
98
  showNormalToast,
99
99
  showShopLoading,
100
100
  hideShopLoading,
101
101
  getAppChannelType,
102
102
  formatTabActiveMenuType,
103
103
  getAvifSupport,
104
104
  getWebpSupport,
105
105
  filterUrlQueryData,
106
106
  isMemberPage,
107
107
  sgmCustomReport,
108
108
  draCustomReport,
109
109
  remoteCustomReport,
110
110
  draInterfaceCustomReport,
111
111
  draBusinessCustomReport,
112
112
  isOpenJdAppUrl,
113
113
  jdOpenAppParams,
114
114
  createJdOpenAppUrl,
115
115
  isEmpty,
116
116
  getJdAppReportPageSource,
117
117
  isAppClassifyPage,
118
118
  isPc,
119
119
  ipLoc_djd,
120
120
  dealJdOpenAppData,
121
121
  jdAppVersionCompare,
122
122
  dealNativePixelToCssPixel,
123
123
  isAppStowShop,
124
124
  isImageOptimizeEnable,
125
125
  isIpadDevice,
126
126
  getBorderStyle,
127
127
  isLanguageForEn,
128
128
  sColor,
129
129
  draInterfaceDSMCustomReport,
130
130
  isTabletDevice,
131
131
  console.warn('暂未实现', code);
132
132
  console.warn('暂未实现', code);
133
133
  console.warn('暂未实现');
134
134
  console.warn('🚗 ~~ file: index.ts:93 ~~ 通用的isInGrayscale还没有实现,不应该被调用!');
135
135
  return false;
136
136
  isJdApp,
137
137
  isWxApp,
138
138
  isIosDevice,
139
139
  isAndroidDevice,
140
140
  isHarmonyDevice,
141
141
  isJdAndIosDevice,
142
142
  isJdAndAndroidDevice,
143
143
  isJdAndHarmonyDevice,
144
144
  isJdAndroidX5Core,
145
145
  isWxMin,
146
146
  isMin,
147
147
  isJdMinAndHarmony,
148
148
  isWxMinAndWxapp,
149
149
  isJdMin,
150
150
  isH5,
151
151
  isH5AndJdShopView,
152
152
  isChartH5,
153
153
  isH5AndJdShopViewNativeScroll,
154
154
  isH5AndJdShopViewH5Scroll,
155
155
  isH5AndJdShopH5CustomScrollView,
156
156
  isH5AndJingGouMini,
157
157
  isWxMiniH5View,
158
158
  urlCookie,
159
159
  sliceArrToChunkList,
160
160
  dealAddress,
161
161
  objectToUrlEncode,
162
162
  parseQueryUrlString,
163
163
  setLowSmallPicUrl,
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
  stopNativeScrollEvent,
185
185
  getAppChannelType,
186
186
  formatTabActiveMenuType,
187
187
  getAvifSupport,
188
188
  getWebpSupport,
189
189
  filterUrlQueryData,
190
190
  isMemberPage,
191
191
  getFloorDataToDataDefines,
192
192
  sgmCustomReport,
193
193
  draCustomReport,
194
194
  remoteCustomReport,
195
195
  draInterfaceCustomReport,
196
196
  draBusinessCustomReport,
197
197
  isOpenJdAppUrl,
198
198
  jdOpenAppParams,
199
199
  createJdOpenAppUrl,
200
200
  isEmpty,
201
201
  isAppClassifyPage,
202
202
  isAppHomeForMarketPage,
203
203
  getJdAppReportPageSource,
204
204
  isImageOptimizeEnable,
205
205
  isPc,
206
206
  ipLoc_djd,
207
207
  isTjM,
208
208
  isTjJxM,
209
209
  isTjScence,
210
210
  isH5AdnJxMini,
211
211
  isTJApp,
212
212
  isH5AdnHaoWuJie,
213
213
  tjChannel,
214
214
  dealJdOpenAppData,
215
215
  jdAppVersionCompare,
216
216
  dealNativePixelToCssPixel,
217
217
  isAppStowShop,
218
218
  getSgmCustomCode,
219
219
  handleSgmCodeTaroVersion,
220
220
  isInGrayscale,
221
221
  isIpadDevice,
222
222
  getBorderStyle,
223
223
  isLanguageForEn,
224
224
  sColor,
225
225
  draInterfaceDSMCustomReport,
226
226
  isTabletDevice,
227
227
  updateContainerWidth,
@@ -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
  isOpenJdAppUrl,
10
9
  jdOpenAppParams,
11
10
  createJdOpenAppUrl,
12
11
  isEmpty,
13
12
  getJdAppReportPageSource,
14
13
  isMemberPage,
15
14
  isAppClassifyPage,
16
15
  dealJdOpenAppData,
17
16
  jdAppVersionCompare,
18
17
  dealNativePixelToCssPixel,
19
18
  isImageOptimizeEnable,
20
19
  isJdAndHarmonyDevice,
21
20
  isJdAndroidX5Core,
22
21
  isMin,
23
22
  isJdMinAndHarmony,
24
23
  isH5AndJdShopViewH5Scroll,
25
24
  isH5AndJdShopH5CustomScrollView,
26
25
  isH5AndJingGouMini,
27
26
  urlCookie,
28
27
  getAvifSupport,
29
28
  getWebpSupport,
30
29
  sgmCustomReport,
31
30
  isOpenJdAppUrl,
32
31
  jdOpenAppParams,
33
32
  createJdOpenAppUrl,
34
33
  isEmpty,
35
34
  getJdAppReportPageSource,
36
35
  isMemberPage,
37
36
  isAppClassifyPage,
38
37
  isAppHomeForMarketPage,
39
38
  isImageOptimizeEnable,
40
39
  isPc,
41
40
  isTjM,
42
41
  isTjJxM,
43
42
  isTjScence,
44
43
  isH5AdnJxMini,
45
44
  isTJApp,
46
45
  isH5AdnHaoWuJie,
47
46
  tjChannel,
48
47
  dealJdOpenAppData,
49
48
  jdAppVersionCompare,
50
49
  dealNativePixelToCssPixel,
51
50
  getSgmCustomCode,
52
51
  handleSgmCodeTaroVersion,
52
+ import {
53
53
  isJdApp,
54
54
  isWxApp,
55
55
  isIosDevice,
56
56
  isAndroidDevice,
57
57
  isJdAndIosDevice,
58
58
  isJdAndAndroidDevice,
59
59
  isWxMin,
60
60
  isWxMinAndWxapp,
61
61
  isJdMin,
62
62
  isJdMinAndHarmony,
63
63
  isH5,
64
64
  isH5AndJdShopView,
65
65
  isChartH5,
66
66
  isH5AndJdShopViewNativeScroll,
67
67
  isH5AndJdShopViewH5Scroll,
68
68
  isH5AndJdShopH5CustomScrollView,
69
69
  isWxMiniH5View,
70
70
  sliceArrToChunkList,
71
71
  dealAddress,
72
72
  objectToUrlEncode,
73
73
  parseQueryUrlString,
74
74
  setLowSmallPicUrl,
75
75
  setTaroStorage,
76
76
  getTaroStorageKeyValue,
77
77
  removeTaroStorageKey,
78
78
  clearTaroStorageKey,
79
79
  getQualityImage,
80
80
  countStringify,
81
81
  getSystemInfos,
82
82
  getWxAppCookieStr,
83
83
  pxTransformFromData,
84
84
  dealShopContentData,
85
85
  dateFormat,
86
86
  throttle,
87
87
  lodashThrottle,
88
88
  debounce,
89
89
  addHttps,
90
90
  showSuccessToast,
91
91
  showFailToast,
92
92
  showNormalToast,
93
93
  showShopLoading,
94
94
  hideShopLoading,
95
95
  getAppChannelType,
96
96
  formatTabActiveMenuType,
97
97
  getAvifSupport,
98
98
  getWebpSupport,
99
99
  filterUrlQueryData,
100
100
  sgmCustomReport,
101
101
  draCustomReport,
102
102
  remoteCustomReport,
103
103
  draInterfaceCustomReport,
104
104
  draBusinessCustomReport,
105
105
  isOpenJdAppUrl,
106
106
  jdOpenAppParams,
107
107
  createJdOpenAppUrl,
108
108
  isEmpty,
109
109
  getJdAppReportPageSource,
110
110
  isMemberPage,
111
111
  isAppClassifyPage,
112
112
  dealJdOpenAppData,
113
113
  jdAppVersionCompare,
114
114
  dealNativePixelToCssPixel,
115
115
  isImageOptimizeEnable,
116
116
  isIpadDevice,
117
117
  getBorderStyle,
118
118
  isLanguageForEn,
119
119
  sColor,
120
120
  draInterfaceDSMCustomReport,
121
121
  isTabletDevice,
122
122
  console.warn('暂未实现', code);
123
123
  console.warn('暂未实现', code);
124
124
  console.warn('🚗 ~~ file: index.ts:93 ~~ wxapp的isInGrayscale还没有实现,不应该被调用!');
125
125
  return false;
126
126
  console.warn('暂未实现');
127
127
  isJdApp,
128
128
  isWxApp,
129
129
  isIosDevice,
130
130
  isAndroidDevice,
131
131
  isHarmonyDevice,
132
132
  isJdAndIosDevice,
133
133
  isJdAndAndroidDevice,
134
134
  isJdAndHarmonyDevice,
135
135
  isJdAndroidX5Core,
136
136
  isWxMin,
137
137
  isWxMinAndWxapp,
138
138
  isJdMin,
139
139
  isMin,
140
140
  isJdMinAndHarmony,
141
141
  isH5,
142
142
  isH5AndJdShopView,
143
143
  isChartH5,
144
144
  isH5AndJdShopViewNativeScroll,
145
145
  isH5AndJdShopViewH5Scroll,
146
146
  isH5AndJdShopH5CustomScrollView,
147
147
  isH5AndJingGouMini,
148
148
  isWxMiniH5View,
149
149
  urlCookie,
150
150
  sliceArrToChunkList,
151
151
  dealAddress,
152
152
  objectToUrlEncode,
153
153
  parseQueryUrlString,
154
154
  setLowSmallPicUrl,
155
155
  setTaroStorage,
156
156
  getTaroStorageKeyValue,
157
157
  removeTaroStorageKey,
158
158
  clearTaroStorageKey,
159
159
  getQualityImage,
160
160
  countStringify,
161
161
  getSystemInfos,
162
162
  getWxAppCookieStr,
163
163
  pxTransformFromData,
164
164
  dealShopContentData,
165
165
  dateFormat,
166
166
  throttle,
167
167
  lodashThrottle,
168
168
  debounce,
169
169
  addHttps,
170
170
  showSuccessToast,
171
171
  showFailToast,
172
172
  showNormalToast,
173
173
  showShopLoading,
174
174
  hideShopLoading,
175
175
  stopNativeScrollEvent,
176
176
  getAppChannelType,
177
177
  formatTabActiveMenuType,
178
178
  getAvifSupport,
179
179
  getWebpSupport,
180
180
  filterUrlQueryData,
181
181
  getFloorDataToDataDefines,
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
  isAppHomeForMarketPage,
195
195
  isImageOptimizeEnable,
196
196
  isPc,
197
197
  ipLoc_djd,
198
198
  isTjM,
199
199
  isTjJxM,
200
200
  isTjScence,
201
201
  isH5AdnJxMini,
202
202
  isTJApp,
203
203
  isH5AdnHaoWuJie,
204
204
  tjChannel,
205
205
  dealJdOpenAppData,
206
206
  jdAppVersionCompare,
207
207
  dealNativePixelToCssPixel,
208
208
  getSgmCustomCode,
209
209
  handleSgmCodeTaroVersion,
210
210
  isInGrayscale,
211
211
  isIpadDevice,
212
212
  getBorderStyle,
213
213
  isLanguageForEn,
214
214
  sColor,
215
215
  draInterfaceDSMCustomReport,
216
216
  isTabletDevice,
217
217
  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
+ 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),