@conecli/cone-render 0.10.1-shop3.0 → 0.10.1-shop3.10

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 (69) hide show
  1. package/dist/api/index.ts +1 -1
  2. package/dist/common/const.ts +1 -1
  3. package/dist/common/index.h5.ts +1 -1
  4. package/dist/common/index.jd.ts +1 -1
  5. package/dist/common/index.ts +1 -1
  6. package/dist/common/index.weapp.ts +1 -1
  7. package/dist/common/token/token.jd.ts +1 -1
  8. package/dist/components/base/CommonFloorHead/index.module.scss +126 -111
  9. package/dist/components/base/CommonFloorHead/index.tsx +1 -1
  10. package/dist/components/base/CountDown/index.module.scss +49 -44
  11. package/dist/components/base/CountDown/index.tsx +1 -1
  12. package/dist/components/base/CustomScrollView/index-back.tsx +1 -0
  13. package/dist/components/base/CustomScrollView/index.tsx +1 -1
  14. package/dist/components/base/Dialog/index.module.scss +11 -0
  15. package/dist/components/base/ExposureSmart/index.h5.module.scss +12 -2
  16. package/dist/components/base/ExposureSmart/index.h5.tsx +1 -1
  17. package/dist/components/base/ExposureSmart/reporter.tsx +1 -1
  18. package/dist/components/base/InViewRender/index.tsx +1 -1
  19. package/dist/components/base/ItemViewExposureSmart/index.module.scss +2 -2
  20. package/dist/components/base/ItemViewExposureSmart/index.tsx +1 -1
  21. package/dist/components/base/Price/Double/index.module.scss +8 -0
  22. package/dist/components/base/Price/Double/index.tsx +1 -1
  23. package/dist/components/floorItem.weapp.tsx +1 -1
  24. package/dist/interface/common.ts +1 -1
  25. package/dist/interface/jumpEventReport.ts +1 -1
  26. package/dist/interface/service.ts +1 -1
  27. package/dist/jumpEventReport/base.ts +1 -1
  28. package/dist/jumpEventReport/const.ts +1 -1
  29. package/dist/jumpEventReport/index.jd.ts +1 -1
  30. package/dist/jumpEventReport/index.weapp.ts +1 -1
  31. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  32. package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
  33. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  34. package/dist/jumpEventReport/web/report.ts +1 -1
  35. package/dist/jumpEventReport/web.base.ts +1 -1
  36. package/dist/jumpEventReport/web.jd.ts +1 -1
  37. package/dist/jumpEventReport/web.jdb.ts +1 -1
  38. package/dist/jumpEventReport/web.jdjch.ts +1 -1
  39. package/dist/jumpEventReport/web.jxwxapp.ts +1 -1
  40. package/dist/jumpEventReport/web.pc.ts +1 -1
  41. package/dist/jumpEventReport/web.tjapp.ts +1 -1
  42. package/dist/jumpEventReport/web.tjm.ts +1 -1
  43. package/dist/jumpEventReport/web.wxapp.ts +1 -1
  44. package/dist/libs/taroAppReport.js +2 -2
  45. package/dist/modules/ContainerFloorList/index.h5.module.scss +66 -53
  46. package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
  47. package/dist/modules/ContainerFloorList/index.tsx +1 -1
  48. package/dist/open/api/shopMember.ts +1 -1
  49. package/dist/open/api/util.ts +1 -1
  50. package/dist/sass/app.h5.scss +261 -224
  51. package/dist/sass/base.scss +142 -141
  52. package/dist/service/fetchGateway.ts +1 -1
  53. package/dist/service/fetchGateway.weapp.ts +1 -0
  54. package/dist/service/http/colorSign.ts +1 -1
  55. package/dist/service/http/const.ts +1 -1
  56. package/dist/service/http/h5Http.ts +1 -1
  57. package/dist/service/requestServer.h5.ts +1 -1
  58. package/dist/service/requestServer.ts +1 -1
  59. package/dist/service/requestServer.weapp.ts +1 -0
  60. package/dist/utils/connectNativeJsBridge.ts +1 -1
  61. package/dist/utils/h5Utils.ts +1 -1
  62. package/dist/utils/index.h5.ts +1 -1
  63. package/dist/utils/index.ts +1 -1
  64. package/dist/utils/index.weapp.ts +1 -1
  65. package/dist/utils/jumpExtMapUtil.js +1 -0
  66. package/dist/utils/sColor.js +1 -0
  67. package/dist/utils/utils.ts +1 -1
  68. package/package.json +35 -29
  69. 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
  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
  console.warn("🚗 ~~ file: index.ts:93 ~~ 通用的isInGrayscale还没有实现,不应该被调用!")
30
29
  return false
31
30
  isJdAndHarmonyDevice,
32
31
  isJdAndroidX5Core,
33
32
  isMin,
34
33
  isJdMinAndHarmony,
35
34
  isChartH5,
36
35
  isH5AndJdShopViewH5Scroll,
37
36
  isH5AndJdShopH5CustomScrollView,
38
37
  isH5AndJingGouMini,
39
38
  urlCookie,
40
39
  stopNativeScrollEvent,
41
40
  getAvifSupport,
42
41
  getWebpSupport,
43
42
  isMemberPage,
44
43
  sgmCustomReport,
45
44
  draCustomReport,
46
45
  remoteCustomReport,
47
46
  draInterfaceCustomReport,
48
47
  draBusinessCustomReport,
49
48
  isOpenJdAppUrl,
50
49
  jdOpenAppParams,
51
50
  createJdOpenAppUrl,
52
51
  isEmpty,
53
52
  isAppHomeForMarketPage,
54
53
  getJdAppReportPageSource,
55
54
  isImageOptimizeEnable,
56
55
  isPc,
57
56
  ipLoc_djd,
58
57
  isTjM,
59
58
  isTjJxM,
60
59
  isTjScence,
61
60
  isH5AdnJxMini,
62
61
  isTJApp,
63
62
  isH5AdnHaoWuJie,
64
63
  tjChannel,
65
64
  dealJdOpenAppData,
66
65
  jdAppVersionCompare,
67
66
  dealNativePixelToCssPixel,
68
67
  isAppStowShop,
69
68
  getSgmCustomCode,
70
69
  handleSgmCodeTaroVersion,
71
70
  isInGrayscale,
72
71
  isIpadDevice,
73
72
  getBorderStyle,
73
+ import {
74
74
  isJdApp,
75
75
  isWxApp,
76
76
  isIosDevice,
77
77
  isAndroidDevice,
78
78
  isJdAndIosDevice,
79
79
  isJdAndAndroidDevice,
80
80
  isWxMin,
81
81
  isMin,
82
82
  isJdMinAndHarmony,
83
83
  isWxMinAndWxapp,
84
84
  isJdMin,
85
85
  isH5,
86
86
  isH5AndJdShopView,
87
87
  isChartH5,
88
88
  isH5AndJdShopViewNativeScroll,
89
89
  isH5AndJdShopViewH5Scroll,
90
90
  isH5AndJdShopH5CustomScrollView,
91
91
  isWxMiniH5View,
92
92
  sliceArrToChunkList,
93
93
  dealAddress,
94
94
  objectToUrlEncode,
95
95
  setLowSmallPicUrl,
96
96
  parseQueryUrlString,
97
97
  countStringify,
98
98
  setTaroStorage,
99
99
  getTaroStorageKeyValue,
100
100
  removeTaroStorageKey,
101
101
  clearTaroStorageKey,
102
102
  getQualityImage,
103
103
  getSystemInfos,
104
104
  getWxAppCookieStr,
105
105
  pxTransformFromData,
106
106
  dealShopContentData,
107
107
  dateFormat,
108
108
  throttle,
109
109
  lodashThrottle,
110
110
  debounce,
111
111
  addHttps,
112
112
  showSuccessToast,
113
113
  showFailToast,
114
114
  showNormalToast,
115
115
  showShopLoading,
116
116
  hideShopLoading,
117
117
  getAppChannelType,
118
118
  formatTabActiveMenuType,
119
119
  getAvifSupport,
120
120
  getWebpSupport,
121
121
  filterUrlQueryData,
122
122
  isMemberPage,
123
123
  sgmCustomReport,
124
124
  draCustomReport,
125
125
  remoteCustomReport,
126
126
  draInterfaceCustomReport,
127
127
  draBusinessCustomReport,
128
128
  isOpenJdAppUrl,
129
129
  jdOpenAppParams,
130
130
  createJdOpenAppUrl,
131
131
  isEmpty,
132
132
  getJdAppReportPageSource,
133
133
  isAppClassifyPage,
134
134
  isPc,
135
135
  ipLoc_djd,
136
136
  dealJdOpenAppData,
137
137
  jdAppVersionCompare,
138
138
  dealNativePixelToCssPixel,
139
139
  isAppStowShop,
140
140
  isImageOptimizeEnable,
141
141
  isIpadDevice,
142
142
  getBorderStyle,
143
143
  isLanguageForEn,
144
144
  sColor,
145
145
  draInterfaceDSMCustomReport,
146
146
  isTabletDevice,
147
147
  console.warn('暂未实现', code);
148
148
  console.warn('暂未实现', code);
149
149
  console.warn('🚗 ~~ file: index.ts:93 ~~ 通用的isInGrayscale还没有实现,不应该被调用!');
150
150
  return false;
151
151
  isJdApp,
152
152
  isWxApp,
153
153
  isIosDevice,
154
154
  isAndroidDevice,
155
155
  isJdAndIosDevice,
156
156
  isJdAndAndroidDevice,
157
157
  isJdAndHarmonyDevice,
158
158
  isJdAndroidX5Core,
159
159
  isWxMin,
160
160
  isMin,
161
161
  isJdMinAndHarmony,
162
162
  isWxMinAndWxapp,
163
163
  isJdMin,
164
164
  isH5,
165
165
  isH5AndJdShopView,
166
166
  isChartH5,
167
167
  isH5AndJdShopViewNativeScroll,
168
168
  isH5AndJdShopViewH5Scroll,
169
169
  isH5AndJdShopH5CustomScrollView,
170
170
  isH5AndJingGouMini,
171
171
  isWxMiniH5View,
172
172
  urlCookie,
173
173
  sliceArrToChunkList,
174
174
  dealAddress,
175
175
  objectToUrlEncode,
176
176
  parseQueryUrlString,
177
177
  setLowSmallPicUrl,
178
178
  countStringify,
179
179
  setTaroStorage,
180
180
  getTaroStorageKeyValue,
181
181
  removeTaroStorageKey,
182
182
  clearTaroStorageKey,
183
183
  getQualityImage,
184
184
  getSystemInfos,
185
185
  getWxAppCookieStr,
186
186
  pxTransformFromData,
187
187
  dealShopContentData,
188
188
  dateFormat,
189
189
  throttle,
190
190
  lodashThrottle,
191
191
  debounce,
192
192
  addHttps,
193
193
  showSuccessToast,
194
194
  showFailToast,
195
195
  showNormalToast,
196
196
  showShopLoading,
197
197
  hideShopLoading,
198
198
  stopNativeScrollEvent,
199
199
  getAppChannelType,
200
200
  formatTabActiveMenuType,
201
201
  getAvifSupport,
202
202
  getWebpSupport,
203
203
  filterUrlQueryData,
204
204
  isMemberPage,
205
205
  getFloorDataToDataDefines,
206
206
  sgmCustomReport,
207
207
  draCustomReport,
208
208
  remoteCustomReport,
209
209
  draInterfaceCustomReport,
210
210
  draBusinessCustomReport,
211
211
  isOpenJdAppUrl,
212
212
  jdOpenAppParams,
213
213
  createJdOpenAppUrl,
214
214
  isEmpty,
215
215
  isAppClassifyPage,
216
216
  isAppHomeForMarketPage,
217
217
  getJdAppReportPageSource,
218
218
  isImageOptimizeEnable,
219
219
  isPc,
220
220
  ipLoc_djd,
221
221
  isTjM,
222
222
  isTjJxM,
223
223
  isTjScence,
224
224
  isH5AdnJxMini,
225
225
  isTJApp,
226
226
  isH5AdnHaoWuJie,
227
227
  tjChannel,
228
228
  dealJdOpenAppData,
229
229
  jdAppVersionCompare,
230
230
  dealNativePixelToCssPixel,
231
231
  isAppStowShop,
232
232
  getSgmCustomCode,
233
233
  handleSgmCodeTaroVersion,
234
234
  isInGrayscale,
235
235
  isIpadDevice,
236
236
  getBorderStyle,
237
237
  isLanguageForEn,
238
238
  sColor,
239
239
  draInterfaceDSMCustomReport,
240
240
  isTabletDevice,
@@ -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
  console.warn("🚗 ~~ file: index.ts:93 ~~ wxapp的isInGrayscale还没有实现,不应该被调用!")
27
26
  return false
28
27
  isJdAndHarmonyDevice,
29
28
  isJdAndroidX5Core,
30
29
  isMin,
31
30
  isJdMinAndHarmony,
32
31
  isH5AndJdShopViewH5Scroll,
33
32
  isH5AndJdShopH5CustomScrollView,
34
33
  isH5AndJingGouMini,
35
34
  urlCookie,
36
35
  stopNativeScrollEvent,
37
36
  getAvifSupport,
38
37
  getWebpSupport,
39
38
  sgmCustomReport,
40
39
  draCustomReport,
41
40
  remoteCustomReport,
42
41
  draInterfaceCustomReport,
43
42
  draBusinessCustomReport,
44
43
  isOpenJdAppUrl,
45
44
  jdOpenAppParams,
46
45
  createJdOpenAppUrl,
47
46
  isEmpty,
48
47
  getJdAppReportPageSource,
49
48
  isMemberPage,
50
49
  isAppClassifyPage,
51
50
  isAppHomeForMarketPage,
52
51
  isImageOptimizeEnable,
53
52
  isPc,
54
53
  isTjM,
55
54
  isTjJxM,
56
55
  isTjScence,
57
56
  isH5AdnJxMini,
58
57
  isTJApp,
59
58
  isH5AdnHaoWuJie,
60
59
  tjChannel,
61
60
  dealJdOpenAppData,
62
61
  jdAppVersionCompare,
63
62
  dealNativePixelToCssPixel,
64
63
  getSgmCustomCode,
65
64
  handleSgmCodeTaroVersion,
66
65
  isInGrayscale,
67
66
  isIpadDevice,
68
67
  getBorderStyle,
68
+ import {
69
69
  isJdApp,
70
70
  isWxApp,
71
71
  isIosDevice,
72
72
  isAndroidDevice,
73
73
  isJdAndIosDevice,
74
74
  isJdAndAndroidDevice,
75
75
  isWxMin,
76
76
  isWxMinAndWxapp,
77
77
  isJdMin,
78
78
  isJdMinAndHarmony,
79
79
  isH5,
80
80
  isH5AndJdShopView,
81
81
  isChartH5,
82
82
  isH5AndJdShopViewNativeScroll,
83
83
  isH5AndJdShopViewH5Scroll,
84
84
  isH5AndJdShopH5CustomScrollView,
85
85
  isWxMiniH5View,
86
86
  sliceArrToChunkList,
87
87
  dealAddress,
88
88
  objectToUrlEncode,
89
89
  parseQueryUrlString,
90
90
  setLowSmallPicUrl,
91
91
  setTaroStorage,
92
92
  getTaroStorageKeyValue,
93
93
  removeTaroStorageKey,
94
94
  clearTaroStorageKey,
95
95
  getQualityImage,
96
96
  countStringify,
97
97
  getSystemInfos,
98
98
  getWxAppCookieStr,
99
99
  pxTransformFromData,
100
100
  dealShopContentData,
101
101
  dateFormat,
102
102
  throttle,
103
103
  lodashThrottle,
104
104
  debounce,
105
105
  addHttps,
106
106
  showSuccessToast,
107
107
  showFailToast,
108
108
  showNormalToast,
109
109
  showShopLoading,
110
110
  hideShopLoading,
111
111
  getAppChannelType,
112
112
  formatTabActiveMenuType,
113
113
  getAvifSupport,
114
114
  getWebpSupport,
115
115
  filterUrlQueryData,
116
116
  sgmCustomReport,
117
117
  draCustomReport,
118
118
  remoteCustomReport,
119
119
  draInterfaceCustomReport,
120
120
  draBusinessCustomReport,
121
121
  isOpenJdAppUrl,
122
122
  jdOpenAppParams,
123
123
  createJdOpenAppUrl,
124
124
  isEmpty,
125
125
  getJdAppReportPageSource,
126
126
  isMemberPage,
127
127
  isAppClassifyPage,
128
128
  dealJdOpenAppData,
129
129
  jdAppVersionCompare,
130
130
  dealNativePixelToCssPixel,
131
131
  isImageOptimizeEnable,
132
132
  isIpadDevice,
133
133
  getBorderStyle,
134
134
  isLanguageForEn,
135
135
  sColor,
136
136
  draInterfaceDSMCustomReport,
137
137
  isTabletDevice,
138
138
  console.warn('暂未实现', code);
139
139
  console.warn('暂未实现', code);
140
140
  console.warn('🚗 ~~ file: index.ts:93 ~~ wxapp的isInGrayscale还没有实现,不应该被调用!');
141
141
  return false;
142
142
  isJdApp,
143
143
  isWxApp,
144
144
  isIosDevice,
145
145
  isAndroidDevice,
146
146
  isJdAndIosDevice,
147
147
  isJdAndAndroidDevice,
148
148
  isJdAndHarmonyDevice,
149
149
  isJdAndroidX5Core,
150
150
  isWxMin,
151
151
  isWxMinAndWxapp,
152
152
  isJdMin,
153
153
  isMin,
154
154
  isJdMinAndHarmony,
155
155
  isH5,
156
156
  isH5AndJdShopView,
157
157
  isChartH5,
158
158
  isH5AndJdShopViewNativeScroll,
159
159
  isH5AndJdShopViewH5Scroll,
160
160
  isH5AndJdShopH5CustomScrollView,
161
161
  isH5AndJingGouMini,
162
162
  isWxMiniH5View,
163
163
  urlCookie,
164
164
  sliceArrToChunkList,
165
165
  dealAddress,
166
166
  objectToUrlEncode,
167
167
  parseQueryUrlString,
168
168
  setLowSmallPicUrl,
169
169
  setTaroStorage,
170
170
  getTaroStorageKeyValue,
171
171
  removeTaroStorageKey,
172
172
  clearTaroStorageKey,
173
173
  getQualityImage,
174
174
  countStringify,
175
175
  getSystemInfos,
176
176
  getWxAppCookieStr,
177
177
  pxTransformFromData,
178
178
  dealShopContentData,
179
179
  dateFormat,
180
180
  throttle,
181
181
  lodashThrottle,
182
182
  debounce,
183
183
  addHttps,
184
184
  showSuccessToast,
185
185
  showFailToast,
186
186
  showNormalToast,
187
187
  showShopLoading,
188
188
  hideShopLoading,
189
189
  stopNativeScrollEvent,
190
190
  getAppChannelType,
191
191
  formatTabActiveMenuType,
192
192
  getAvifSupport,
193
193
  getWebpSupport,
194
194
  filterUrlQueryData,
195
195
  getFloorDataToDataDefines,
196
196
  sgmCustomReport,
197
197
  draCustomReport,
198
198
  remoteCustomReport,
199
199
  draInterfaceCustomReport,
200
200
  draBusinessCustomReport,
201
201
  isOpenJdAppUrl,
202
202
  jdOpenAppParams,
203
203
  createJdOpenAppUrl,
204
204
  isEmpty,
205
205
  getJdAppReportPageSource,
206
206
  isMemberPage,
207
207
  isAppClassifyPage,
208
208
  isAppHomeForMarketPage,
209
209
  isImageOptimizeEnable,
210
210
  isPc,
211
211
  ipLoc_djd,
212
212
  isTjM,
213
213
  isTjJxM,
214
214
  isTjScence,
215
215
  isH5AdnJxMini,
216
216
  isTJApp,
217
217
  isH5AdnHaoWuJie,
218
218
  tjChannel,
219
219
  dealJdOpenAppData,
220
220
  jdAppVersionCompare,
221
221
  dealNativePixelToCssPixel,
222
222
  getSgmCustomCode,
223
223
  handleSgmCodeTaroVersion,
224
224
  isInGrayscale,
225
225
  isIpadDevice,
226
226
  getBorderStyle,
227
227
  isLanguageForEn,
228
228
  sColor,
229
229
  draInterfaceDSMCustomReport,
230
230
  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
  });
@@ -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
  const { nodePageData } = window;
42
44
  const { DSMDowngradeList } = nodePageData;
43
45
  console.log('DSMDowngradeList:', DSMDowngradeList);
44
46
  if (
45
47
  !Array.isArray(DSMDowngradeList) ||
46
48
  (DSMDowngradeList.length > 0 &&
47
49
  DSMDowngradeList.some((prefix) => url.startsWith(prefix)) &&
48
50
  url.includes('?')) ||
49
51
  DSMDowngradeList.includes(url)
50
52
  ) {
51
53
  return true;
52
54
  }
53
55
  return false;
54
56
  getSColorPara: (url) => getSColorPara(url),
55
57
  checkIsNeedDeconstruction: (url) => checkIsNeedDeconstruction(url),
56
58
  checkIsDSM: (url) => checkIsDSM(url),