@conecli/cone-render 0.10.1-shop-beta.35 → 0.10.1-shop-beta.36

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.
@@ -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
  fontStylePxTransformFromData,
35
34
  dealShopContentData,
36
35
  dateFormat,
37
36
  throttle,
38
37
  lodashThrottle,
39
38
  debounce,
40
39
  addHttps,
41
40
  showSuccessToast,
42
41
  showFailToast,
43
42
  showNormalToast,
44
43
  showShopLoading,
45
44
  hideShopLoading,
46
45
  getAppChannelType,
47
46
  formatTabActiveMenuType,
48
47
  getAvifSupport,
49
48
  getWebpSupport,
50
49
  filterUrlQueryData,
51
50
  isMemberPage,
52
51
  draCustomReport,
53
52
  remoteCustomReport,
54
53
  draInterfaceCustomReport,
55
54
  draBusinessCustomReport,
56
55
  draBusinessCustomLogReport,
57
56
  isOpenJdAppUrl,
58
57
  jdOpenAppParams,
59
58
  createJdOpenAppUrl,
60
59
  isEmpty,
61
60
  getJdAppReportPageSource,
62
61
  isAppClassifyPage,
63
62
  isPc,
64
63
  isPcClassifyPage,
65
64
  ipLoc_djd,
66
65
  dealJdOpenAppData,
67
66
  jdAppVersionCompare,
68
67
  dealNativePixelToCssPixel,
69
68
  isAppStowShop,
70
69
  isImageOptimizeEnable,
71
70
  isIpadDevice,
72
71
  getBorderStyle,
73
72
  isLanguageForEn,
74
73
  sColor,
75
74
  isTabletDevice,
76
75
  isLanguageForHk,
77
76
  languageNowType,
78
77
  isAscfApp,
79
78
  isInJdAppH5DebugMode,
80
79
  isJdLiteApp,
81
80
  isJdAppForNotMain,
82
81
  console.warn('暂未实现', code);
83
82
  console.warn('暂未实现', code);
84
83
  console.warn('暂未实现');
85
84
  console.warn('🚗 ~~ file: index.ts:93 ~~ 通用的isInGrayscale还没有实现,不应该被调用!');
86
85
  return false;
87
86
  isJdApp,
88
87
  isWxApp,
89
88
  isIosDevice,
90
89
  isAndroidDevice,
91
90
  isHarmonyDevice,
92
91
  isJdAndIosDevice,
93
92
  isJdAndAndroidDevice,
94
93
  isJdAndHarmonyDevice,
95
94
  isNewHarmonyShop,
96
95
  isJdAndroidX5Core,
97
96
  isWxMin,
98
97
  isMin,
99
98
  isJdMinAndHarmony,
100
99
  isWxMinAndWxapp,
101
100
  isJdMin,
102
101
  isH5,
103
102
  isH5AndJdShopView,
104
103
  isChartH5,
105
104
  isH5AndJdShopViewNativeScroll,
106
105
  isH5AndJdShopViewH5Scroll,
107
106
  isH5AndJdShopH5CustomScrollView,
108
107
  isH5AndJingGouMini,
109
108
  isWxMiniH5View,
110
109
  urlCookie,
111
110
  sliceArrToChunkList,
112
111
  dealAddress,
113
112
  objectToUrlEncode,
114
113
  parseQueryUrlString,
115
114
  setLowSmallPicUrl,
116
115
  countStringify,
117
116
  setTaroStorage,
118
117
  getTaroStorageKeyValue,
119
118
  removeTaroStorageKey,
120
119
  clearTaroStorageKey,
121
120
  getQualityImage,
122
121
  getSystemInfos,
123
122
  getWxAppCookieStr,
124
123
  pxTransformFromData,
125
124
  fontStylePxTransformFromData,
126
125
  dealShopContentData,
127
126
  dateFormat,
128
127
  throttle,
129
128
  lodashThrottle,
130
129
  debounce,
131
130
  addHttps,
132
131
  showSuccessToast,
133
132
  showFailToast,
134
133
  showNormalToast,
135
134
  showShopLoading,
136
135
  hideShopLoading,
137
136
  stopNativeScrollEvent,
138
137
  getAppChannelType,
139
138
  formatTabActiveMenuType,
140
139
  getAvifSupport,
141
140
  getWebpSupport,
142
141
  filterUrlQueryData,
143
142
  isMemberPage,
144
143
  getFloorDataToDataDefines,
145
144
  draCustomReport,
146
145
  remoteCustomReport,
147
146
  draInterfaceCustomReport,
148
147
  draBusinessCustomReport,
149
148
  draBusinessCustomLogReport,
150
149
  isOpenJdAppUrl,
151
150
  jdOpenAppParams,
152
151
  createJdOpenAppUrl,
153
152
  isEmpty,
154
153
  isAppClassifyPage,
155
154
  isAppHomeForMarketPage,
156
155
  getJdAppReportPageSource,
157
156
  isImageOptimizeEnable,
158
157
  isPc,
159
158
  isPcClassifyPage,
160
159
  ipLoc_djd,
161
160
  isTjM,
162
161
  isTjJxM,
163
162
  isTjScence,
164
163
  isH5AdnJxMini,
165
164
  isTJApp,
166
165
  isH5AdnHaoWuJie,
167
166
  tjChannel,
168
167
  dealJdOpenAppData,
169
168
  jdAppVersionCompare,
170
169
  dealNativePixelToCssPixel,
171
170
  isAppStowShop,
172
171
  getSgmCustomCode,
173
172
  handleSgmCodeTaroVersion,
174
173
  isInGrayscale,
175
174
  isIpadDevice,
176
175
  getBorderStyle,
177
176
  isLanguageForEn,
178
177
  sColor,
179
178
  isTabletDevice,
180
179
  updateContainerWidth,
181
180
  isInJdShopView,
182
181
  isDongWebView,
183
182
  isLanguageForHk,
184
183
  languageNowType,
185
184
  isAscfApp,
186
185
  isInJdAppH5DebugMode,
187
186
  isJdLiteApp,
188
187
  isJdAppForNotMain,
189
188
  taroToTransformRoutimePXNumber,
189
+ import {
190
190
  isJdApp,
191
191
  isWxApp,
192
192
  isIosDevice,
193
193
  isAndroidDevice,
194
194
  isJdAndIosDevice,
195
195
  isJdAndAndroidDevice,
196
196
  isWxMin,
197
197
  isMin,
198
198
  isJdMinAndHarmony,
199
199
  isWxMinAndWxapp,
200
200
  isJdMin,
201
201
  isH5,
202
202
  isH5AndJdShopView,
203
203
  isChartH5,
204
204
  isAppHomePage,
205
205
  isH5AndJdShopViewNativeScroll,
206
206
  isH5AndJdShopViewH5Scroll,
207
207
  isH5AndJdShopH5CustomScrollView,
208
208
  isWxMiniH5View,
209
209
  sliceArrToChunkList,
210
210
  dealAddress,
211
211
  objectToUrlEncode,
212
212
  setLowSmallPicUrl,
213
213
  parseQueryUrlString,
214
214
  countStringify,
215
215
  setTaroStorage,
216
216
  getTaroStorageKeyValue,
217
217
  removeTaroStorageKey,
218
218
  clearTaroStorageKey,
219
219
  getQualityImage,
220
220
  getSystemInfos,
221
221
  getWxAppCookieStr,
222
222
  pxTransformFromData,
223
223
  fontStylePxTransformFromData,
224
224
  dealShopContentData,
225
225
  dateFormat,
226
226
  throttle,
227
227
  lodashThrottle,
228
228
  debounce,
229
229
  addHttps,
230
230
  showSuccessToast,
231
231
  showFailToast,
232
232
  showNormalToast,
233
233
  showShopLoading,
234
234
  hideShopLoading,
235
235
  getAppChannelType,
236
236
  formatTabActiveMenuType,
237
237
  getAvifSupport,
238
238
  getWebpSupport,
239
239
  filterUrlQueryData,
240
240
  isMemberPage,
241
241
  draCustomReport,
242
242
  remoteCustomReport,
243
243
  draInterfaceCustomReport,
244
244
  draBusinessCustomReport,
245
245
  draBusinessCustomLogReport,
246
246
  isOpenJdAppUrl,
247
247
  jdOpenAppParams,
248
248
  createJdOpenAppUrl,
249
249
  isEmpty,
250
250
  getJdAppReportPageSource,
251
251
  isAppClassifyPage,
252
252
  isPc,
253
253
  isPcClassifyPage,
254
254
  ipLoc_djd,
255
255
  dealJdOpenAppData,
256
256
  jdAppVersionCompare,
257
257
  dealNativePixelToCssPixel,
258
258
  isAppStowShop,
259
259
  isImageOptimizeEnable,
260
260
  isIpadDevice,
261
261
  getBorderStyle,
262
262
  isLanguageForEn,
263
263
  sColor,
264
264
  isTabletDevice,
265
265
  isLanguageForHk,
266
266
  languageNowType,
267
267
  isAscfApp,
268
268
  isInJdAppH5DebugMode,
269
269
  isJdLiteApp,
270
270
  isJdAppForNotMain,
271
271
  console.warn('暂未实现', code);
272
272
  console.warn('暂未实现', code);
273
273
  console.warn('暂未实现');
274
274
  console.warn('🚗 ~~ file: index.ts:93 ~~ 通用的isInGrayscale还没有实现,不应该被调用!');
275
275
  return false;
276
276
  isJdApp,
277
277
  isWxApp,
278
278
  isIosDevice,
279
279
  isAndroidDevice,
280
280
  isHarmonyDevice,
281
281
  isJdAndIosDevice,
282
282
  isJdAndAndroidDevice,
283
283
  isJdAndHarmonyDevice,
284
284
  isNewHarmonyShop,
285
285
  isJdAndroidX5Core,
286
286
  isWxMin,
287
287
  isMin,
288
288
  isJdMinAndHarmony,
289
289
  isWxMinAndWxapp,
290
290
  isJdMin,
291
291
  isH5,
292
292
  isH5AndJdShopView,
293
293
  isChartH5,
294
294
  isAppHomePage,
295
295
  isH5AndJdShopViewNativeScroll,
296
296
  isH5AndJdShopViewH5Scroll,
297
297
  isH5AndJdShopH5CustomScrollView,
298
298
  isH5AndJingGouMini,
299
299
  isWxMiniH5View,
300
300
  urlCookie,
301
301
  sliceArrToChunkList,
302
302
  dealAddress,
303
303
  objectToUrlEncode,
304
304
  parseQueryUrlString,
305
305
  setLowSmallPicUrl,
306
306
  countStringify,
307
307
  setTaroStorage,
308
308
  getTaroStorageKeyValue,
309
309
  removeTaroStorageKey,
310
310
  clearTaroStorageKey,
311
311
  getQualityImage,
312
312
  getSystemInfos,
313
313
  getWxAppCookieStr,
314
314
  pxTransformFromData,
315
315
  fontStylePxTransformFromData,
316
316
  dealShopContentData,
317
317
  dateFormat,
318
318
  throttle,
319
319
  lodashThrottle,
320
320
  debounce,
321
321
  addHttps,
322
322
  showSuccessToast,
323
323
  showFailToast,
324
324
  showNormalToast,
325
325
  showShopLoading,
326
326
  hideShopLoading,
327
327
  stopNativeScrollEvent,
328
328
  getAppChannelType,
329
329
  formatTabActiveMenuType,
330
330
  getAvifSupport,
331
331
  getWebpSupport,
332
332
  filterUrlQueryData,
333
333
  isMemberPage,
334
334
  getFloorDataToDataDefines,
335
335
  draCustomReport,
336
336
  remoteCustomReport,
337
337
  draInterfaceCustomReport,
338
338
  draBusinessCustomReport,
339
339
  draBusinessCustomLogReport,
340
340
  isOpenJdAppUrl,
341
341
  jdOpenAppParams,
342
342
  createJdOpenAppUrl,
343
343
  isEmpty,
344
344
  isAppClassifyPage,
345
345
  isAppHomeForMarketPage,
346
346
  getJdAppReportPageSource,
347
347
  isImageOptimizeEnable,
348
348
  isPc,
349
349
  isPcClassifyPage,
350
350
  ipLoc_djd,
351
351
  isTjM,
352
352
  isTjJxM,
353
353
  isTjScence,
354
354
  isH5AdnJxMini,
355
355
  isTJApp,
356
356
  isH5AdnHaoWuJie,
357
357
  tjChannel,
358
358
  dealJdOpenAppData,
359
359
  jdAppVersionCompare,
360
360
  dealNativePixelToCssPixel,
361
361
  isAppStowShop,
362
362
  getSgmCustomCode,
363
363
  handleSgmCodeTaroVersion,
364
364
  isInGrayscale,
365
365
  isIpadDevice,
366
366
  getBorderStyle,
367
367
  isLanguageForEn,
368
368
  sColor,
369
369
  isTabletDevice,
370
370
  updateContainerWidth,
371
371
  isInJdShopView,
372
372
  isDongWebView,
373
373
  isLanguageForHk,
374
374
  languageNowType,
375
375
  isAscfApp,
376
376
  isInJdAppH5DebugMode,
377
377
  isJdLiteApp,
378
378
  isJdAppForNotMain,
@@ -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
  });