@conecli/cone-render 0.9.1-shop2.7 → 0.9.1-shop2.8

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 (40) hide show
  1. package/dist/common/const.ts +1 -1
  2. package/dist/common/index.h5.ts +1 -1
  3. package/dist/common/index.ts +1 -1
  4. package/dist/common/token/token.ts +1 -1
  5. package/dist/components/base/CountDown/index.tsx +1 -1
  6. package/dist/components/base/CustomScrollView/index.tsx +1 -1
  7. package/dist/components/base/Dialog/index.module.scss +5 -0
  8. package/dist/components/base/Dialog/index.tsx +1 -1
  9. package/dist/components/base/ExposureSmart/index.tsx +1 -1
  10. package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
  11. package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
  12. package/dist/components/remoteFloorItem.tsx +1 -1
  13. package/dist/interface/common.ts +1 -1
  14. package/dist/interface/component.ts +1 -1
  15. package/dist/interface/jumpEventReport.ts +1 -1
  16. package/dist/jumpEventReport/base.ts +1 -1
  17. package/dist/jumpEventReport/const.ts +1 -1
  18. package/dist/jumpEventReport/createReportFloorData.ts +1 -1
  19. package/dist/jumpEventReport/index.weapp.ts +1 -1
  20. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  21. package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
  22. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  23. package/dist/jumpEventReport/web/report.ts +1 -1
  24. package/dist/jumpEventReport/web.base.ts +1 -1
  25. package/dist/jumpEventReport/web.jd.ts +1 -1
  26. package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
  27. package/dist/open/api/jump copy.ts +1 -1
  28. package/dist/open/api/shopMember.ts +1 -1
  29. package/dist/open/api/track.ts +1 -1
  30. package/dist/open/api/util.ts +1 -1
  31. package/dist/sass/app.h5.scss +39 -3
  32. package/dist/service/requestServer.ts +1 -1
  33. package/dist/utils/connectNativeJsBridge.ts +1 -1
  34. package/dist/utils/connectNativeJsBridge.weapp.ts +1 -1
  35. package/dist/utils/h5Utils.ts +1 -1
  36. package/dist/utils/index.h5.ts +1 -1
  37. package/dist/utils/index.ts +1 -1
  38. package/dist/utils/index.weapp.ts +1 -1
  39. package/dist/utils/utils.ts +1 -1
  40. package/package.json +1 -1
@@ -1 +1 @@
1
- import Taro from '@tarojs/taro'
2
1
  console.log('PageScrollEnd fire')
3
2
  Taro.eventCenter.trigger(TaroEventType.PAGE_SCROLL_END, options)
4
3
  Taro.eventCenter.trigger(TaroEventType.PAGE_INIT_EXPOSURE, options)
4
+ import Taro from '@tarojs/taro'
5
5
  console.log('PageScrollEnd fire')
6
6
  Taro.eventCenter.trigger(TaroEventType.PAGE_SCROLL_END, options)
7
7
  Taro.eventCenter.trigger(TaroEventType.PAGE_INIT_EXPOSURE, options)
@@ -1 +1 @@
1
- import {
2
1
  isApp,
3
2
  isIOS,
4
3
  getAppVersion,
5
4
  version,
6
5
  getUUID,
7
6
  getUrlQuery,
8
7
  assign,
9
8
  isString,
10
9
  isObject,
11
10
  serialize,
12
11
  isAndroid,
13
12
  versionCompare,
14
13
  CHANNEL_TYPE,
15
14
  JDShopViewBusinessPathType,
16
15
  JDShopViewBusinessPathList,
17
16
  SECTION_HOME_TAB_NAME_TYPE,
18
17
  SECTION_HOME_TAB_TYPE,
19
18
  parseQueryUrlString(window?.location?.href ?? ''),
20
19
  try {
21
20
  return JSON.parse(decodeURIComponent(getUrlQuery('cookie')))
22
21
  } catch (e) {
23
22
  return {}
24
23
  }
25
24
  isWxMiniH5View && urlCookie['wxapp_type'] == '1'
26
25
  if (isJdApp) {
27
26
  isIosDevice
28
27
  ? e && e.stopPropagation()
29
28
  : androidDeviceStopNativeScrollEvent(state)
30
29
  }
31
30
  isJdApp &&
32
31
  isAndroidDevice &&
33
32
  window?.JdAndroid &&
34
33
  window?.JdAndroid.requestEvent(state)
35
34
  if (isH5AndJdShopView) {
36
35
  return (
37
36
  CHANNEL_TYPE[currentChannel] ||
38
37
  CHANNEL_TYPE[JDShopViewBusinessPathType.HOME]
39
38
  )
40
39
  }
41
40
  return null
42
41
  isH5 && ['/app/home', '/app/classify', '/member/shopcard','/favorite/list'].includes(urlPathname)
43
42
  isH5 && isJdApp && !['/app/home'].includes(urlPathname)
44
43
  return isJdApp ? versionCompare(nowVersion || jdAppVersionStr,compareVersion) >= 0 : -2
45
44
  const getCustomObj = {
46
45
  type: 1,
47
46
  code: 'all',
48
47
  cost1: 1,
49
48
  ...customObj
50
49
  }
51
50
  try {
52
51
  window.__sgm__.custom(getCustomObj, '9HwAEg@fTtWBB3EnwA5VgLT')
53
52
  } catch (e) {}
54
53
  if(isJdAndAndroidDevice && typeof displayObj === 'object'){
55
54
  const deviceRatio = window?.devicePixelRatio
56
55
  Object.keys(displayObj).forEach(key => {
57
56
  if(key === 'nativeHeaderHeight'){
58
57
  displayObj[key] = Math.ceil(displayObj[key] / (deviceRatio * deviceRatio) - 2)
59
58
  }else {
60
59
  displayObj[key] = Math.ceil(displayObj[key] / deviceRatio)
61
60
  }
62
61
  })
63
62
  }
64
63
  return displayObj
64
+ import {
65
65
  isApp,
66
66
  isIOS,
67
67
  getAppVersion,
68
68
  version,
69
69
  getUUID,
70
70
  getUrlQuery,
71
71
  assign,
72
72
  isString,
73
73
  isObject,
74
74
  serialize,
75
75
  isAndroid,
76
76
  versionCompare,
77
77
  CHANNEL_TYPE,
78
78
  JDShopViewBusinessPathType,
79
79
  JDShopViewBusinessPathList,
80
80
  SECTION_HOME_TAB_NAME_TYPE,
81
81
  SECTION_HOME_TAB_TYPE,
82
82
  parseQueryUrlString(window?.location?.href ?? ''),
83
83
  try {
84
84
  return JSON.parse(decodeURIComponent(getUrlQuery('cookie')))
85
85
  } catch (e) {
86
86
  return {}
87
87
  }
88
88
  isWxMiniH5View && urlCookie['wxapp_type'] == '1'
89
89
  if (isJdApp) {
90
90
  isIosDevice
91
91
  ? e && e.stopPropagation()
92
92
  : androidDeviceStopNativeScrollEvent(state)
93
93
  }
94
94
  isJdApp &&
95
95
  isAndroidDevice &&
96
96
  window?.JdAndroid &&
97
97
  window?.JdAndroid.requestEvent(state)
98
98
  if (isH5AndJdShopView) {
99
99
  return (
100
100
  CHANNEL_TYPE[currentChannel] ||
101
101
  CHANNEL_TYPE[JDShopViewBusinessPathType.HOME]
102
102
  )
103
103
  }
104
104
  return null
105
105
  isH5 && isJdApp && ['/app/home', '/app/classify', '/member/shopcard','/favorite/list', '/favorite/home'].includes(urlPathname)
106
106
  isH5 && isJdApp && !['/app/home'].includes(urlPathname)
107
107
  return isJdApp ? versionCompare(nowVersion, compareVersion) : -2
108
108
  const getCustomObj = {
109
109
  type: 1,
110
110
  code: 'all',
111
111
  cost1: 1,
112
112
  ...customObj
113
113
  }
114
114
  try {
115
115
  window.__sgm__.custom(getCustomObj, '9HwAEg@fTtWBB3EnwA5VgLT')
116
116
  } catch (e) {}
117
117
  if(isJdAndAndroidDevice && typeof displayObj === 'object'){
118
118
  const deviceRatio = window?.devicePixelRatio
119
119
  Object.keys(displayObj).forEach(key => {
120
120
  if(key === 'nativeHeaderHeight'){
121
121
  displayObj[key] = Math.ceil(displayObj[key] / (deviceRatio * deviceRatio) - 2)
122
122
  }else {
123
123
  displayObj[key] = Math.ceil(displayObj[key] / deviceRatio)
124
124
  }
125
125
  })
126
126
  }
127
127
  return displayObj
@@ -1 +1 @@
1
- import Taro from '@tarojs/taro'
2
1
  UtilsInterFace
3
2
  nativePageShowToast,
4
3
  ToastAndroidType,
5
4
  ToastIosType,
6
5
  getAppChannelType,
7
6
  isAndroidDevice,
8
7
  isH5AndJdShopView,
9
8
  isChartH5,
10
9
  isH5AndJdShopViewNativeScroll,
11
10
  isIosDevice,
12
11
  isJdAndAndroidDevice,
13
12
  isJdAndIosDevice,
14
13
  isJdApp,
15
14
  isWxApp,
16
15
  isWxMiniH5View,
17
16
  isJdAndHarmonyDevice,
18
17
  isH5AndJingGouMini,
19
18
  urlCookie,
20
19
  sgmCustomReport,
21
20
  isMemberPage,
22
21
  isH5AndJdShopViewH5Scroll,
23
22
  isH5AndJdShopH5CustomScrollView,
24
23
  isAppClassifyPage,
25
24
  isPc,
26
25
  ipLoc_djd,
27
26
  jdAppVersionCompare,
28
27
  dealNativePixelToCssPixel,
29
28
  isAppStowShop,
30
29
  addHttps,
31
30
  clearTaroStorageKey,
32
31
  countStringify,
33
32
  dateFormat,
34
33
  dealAddress,
35
34
  dealShopContentData as originDealShopContentData,
36
35
  debounce,
37
36
  filterUrlQueryData,
38
37
  formatTabActiveMenuType,
39
38
  getQualityImage,
40
39
  getTaroStorageKeyValue,
41
40
  getWxAppCookieStr,
42
41
  isH5,
43
42
  isJdMin,
44
43
  isWxMin,
45
44
  isWxMinAndWxapp,
46
45
  lodashThrottle,
47
46
  objectToUrlEncode,
48
47
  parseQueryUrlString,
49
48
  removeTaroStorageKey,
50
49
  setLowSmallPicUrl,
51
50
  setTaroStorage,
52
51
  showFailToast,
53
52
  showNormalToast,
54
53
  showSuccessToast,
55
54
  sliceArrToChunkList,
56
55
  throttle,
57
56
  dealJdOpenAppData,
58
57
  BUILD_TYPE
59
58
  getFloorDataToDataDefines
60
59
  num,
61
60
  widthSize = 375,
62
61
  layoutWidth,
63
62
  const getNum = Number(num)
64
63
  let _changeLayoutWidth = layoutWidth
65
64
  if (!_changeLayoutWidth) {
66
65
  _changeLayoutWidth = _ShopSystemInfo && _ShopSystemInfo?.windowWidth ? _ShopSystemInfo.windowWidth : Taro.getSystemInfoSync()?.windowWidth
67
66
  }
68
67
  return Math.round((getNum / widthSize) * _changeLayoutWidth)
69
68
  const getRootFontSize = 40 * (systemInfo?.windowWidth ?? _ShopSystemInfo.windowWidth) / 750
70
69
  const getRealRootFontSize = getRootFontSize > 40 ? 40 : getRootFontSize < 20 ? 20 : getRootFontSize
71
70
  return (
72
71
  Math.ceil(((parseInt(String(changeSize), 10) / 40) * 750) / designWidth * getRealRootFontSize)
73
72
  )
74
73
  console.log('获取系统宽度systemInfo?.windowWidth', systemInfo?.windowWidth,
75
74
  'taroToTransformRoutimePXNumber(changeWidth)', taroToTransformRoutimePXNumber(changeWidth, 750,
76
75
  systemInfo))
77
76
  return buildType === BUILD_TYPE.CLASSIFY && systemInfo?.windowWidth ?systemInfo ?.windowWidth -
78
77
  taroToTransformRoutimePXNumber(changeWidth, 750, systemInfo) : systemInfo ?.windowWidth ?? 0
79
78
  const systemInfo = Taro.getSystemInfoSync()
80
79
  if (params && params?.pageWidth && params?.pageHeight) {
81
80
  systemInfo.windowWidth = params?.pageWidth
82
81
  systemInfo.windowHeight = params?.pageHeight
83
82
  }
84
83
  systemInfo['containerWidth'] = getContainerWidth(buildType, systemInfo)
85
84
  console.warn('====获取系统信息=====', systemInfo)
86
85
  return systemInfo
87
86
  const getSystemInfo = getSystemAndContainerWidthInfo(params) || {
88
87
  windowWidth: window.innerWidth,
89
88
  containerWidth: getContainerWidth(buildType, {
90
89
  windowWidth: window.innerWidth,
91
90
  }),
92
91
  screenWidth: window.innerWidth,
93
92
  platform: '',
94
93
  model: '',
95
94
  system: '',
96
95
  }
97
96
  if (isJdApp && isAndroidDevice && getSystemInfo.windowWidth <= 0) {
98
97
  getSystemInfo.windowWidth = getSystemInfo.screenWidth
99
98
  getSystemInfo['containerWidth'] = getContainerWidth(buildType, getSystemInfo)
100
99
  }
101
100
  return getSystemInfo
102
101
  const params = Object.assign({}, {
103
102
  title: '',
104
103
  duration: 1500,
105
104
  },
106
105
  options,
107
106
  )
108
107
  params.duration = params.duration / 1000
109
108
  if (isJdApp && isH5AndJdShopView) {
110
109
  const showSuccessType = isIosDevice ?
111
110
  ToastIosType.SUCCESS :
112
111
  ToastAndroidType.SUCCESS
113
112
  const duration = isAndroidDevice ? 0 : params.duration
114
113
  nativePageShowToast(options.title, showSuccessType, duration)
115
114
  console.log('执行原生toast success')
116
115
  } else {
117
116
  showSuccessToast(options)
118
117
  }
119
118
  const params = Object.assign({}, {
120
119
  title: '',
121
120
  duration: 1500,
122
121
  },
123
122
  options,
124
123
  )
125
124
  params.duration = params.duration / 1000
126
125
  console.log(`isJdApp${isJdApp}`)
127
126
  if (isJdApp && isH5AndJdShopView) {
128
127
  const showSuccessType = isIosDevice ?
129
128
  ToastIosType.FAIL :
130
129
  ToastAndroidType.FAIL
131
130
  const duration = isAndroidDevice ? 0 : params.duration
132
131
  nativePageShowToast(options.title, showSuccessType, duration)
133
132
  console.log('执行原生toast fail')
134
133
  } else {
135
134
  console.log('执行H5 toast fail')
136
135
  showFailToast(options)
137
136
  }
138
137
  const params = Object.assign({}, {
139
138
  title: '',
140
139
  duration: 1500,
141
140
  },
142
141
  options,
143
142
  )
144
143
  params.duration = params.duration / 1000
145
144
  if (isJdApp) {
146
145
  const showSuccessType = isIosDevice ?
147
146
  ToastIosType.NORMAL :
148
147
  ToastAndroidType.NORMAL
149
148
  const duration = isAndroidDevice ? 0 : params.duration
150
149
  nativePageShowToast(options.title, showSuccessType, duration)
151
150
  } else {
152
151
  showNormalToast(options)
153
152
  }
154
153
  const createLoadingEle = document.createElement('div')
155
154
  createLoadingEle.id = 'J_shopLoading'
156
155
  createLoadingEle.className = `d-shop-loading flexible-center-box ${customClassName}`
157
156
  createLoadingEle.innerHTML =
158
157
  `<div class='d-loading-content'>
159
158
  <span class='d-shop-loading-icon'></span>
160
159
  <p class='d-shop-text'>${text}</p>
161
160
  </div>`
162
161
  const getEle = document.body ? document.body : document.getElementsByTagName('body')[0]
163
162
  getEle.appendChild(createLoadingEle)
164
163
  const getEle = document.getElementById('J_shopLoading')
165
164
  getEle && getEle.remove()
166
165
  const systemInfo: UtilsInterFace.taroGetSystemInfoSyncRes = getReviseSystemInfo(params)
167
166
  if (!systemInfo.system && window) {
168
167
  systemInfo.system = window.navigator.userAgent
169
168
  systemInfo.isChrome = !!systemInfo?.system.match(/chrome/i)
170
169
  }
171
170
  const isIOS = !!systemInfo?.system.match(/ios/i)
172
171
  const isAndroid = !!systemInfo?.system.match(/android/i)
173
172
  systemInfo.navBarHeight = 0
174
173
  systemInfo.statusBarHeight = 0
175
174
  systemInfo.capsulePosition = null
176
175
  systemInfo.isIOS = isIOS
177
176
  systemInfo.isAndroid = isAndroid
178
177
  _ShopSystemInfo = systemInfo
179
178
  return systemInfo
180
179
  return originDealShopContentData(pageData, sgmCustomReport, isvdev)
181
180
  isJdApp,
182
181
  isWxApp,
183
182
  isIosDevice,
184
183
  isAndroidDevice,
185
184
  isJdAndIosDevice,
186
185
  isJdAndAndroidDevice,
187
186
  isJdAndHarmonyDevice,
188
187
  isWxMin,
189
188
  isWxMinAndWxapp,
190
189
  isJdMin,
191
190
  isH5,
192
191
  isH5AndJdShopView,
193
192
  isChartH5,
194
193
  isH5AndJdShopViewNativeScroll,
195
194
  isH5AndJdShopViewH5Scroll,
196
195
  isH5AndJdShopH5CustomScrollView,
197
196
  isH5AndJingGouMini,
198
197
  isWxMiniH5View,
199
198
  urlCookie,
200
199
  sliceArrToChunkList,
201
200
  dealAddress,
202
201
  objectToUrlEncode,
203
202
  parseQueryUrlString,
204
203
  setLowSmallPicUrl,
205
204
  setTaroStorage,
206
205
  getTaroStorageKeyValue,
207
206
  removeTaroStorageKey,
208
207
  clearTaroStorageKey,
209
208
  getQualityImage,
210
209
  countStringify,
211
210
  getWxAppCookieStr,
212
211
  getSystemInfos,
213
212
  pxTransformFromData,
214
213
  dealShopContentDataAndReport as dealShopContentData,
215
214
  dateFormat,
216
215
  throttle,
217
216
  lodashThrottle,
218
217
  debounce,
219
218
  addHttps,
220
219
  commonShowSuccessToast as showSuccessToast,
221
220
  commonShowFailToast as showFailToast,
222
221
  commonShowNormalToast as showNormalToast,
223
222
  showShopLoading,
224
223
  hideShopLoading,
225
224
  getAppChannelType,
226
225
  formatTabActiveMenuType,
227
226
  filterUrlQueryData,
228
227
  sgmCustomReport,
229
228
  isMemberPage,
230
229
  memberFormatUtils,
231
230
  getFloorDataToDataDefines,
232
231
  isAppClassifyPage,
233
232
  isPc,
234
233
  ipLoc_djd,
235
234
  jdAppVersionCompare,
236
235
  dealJdOpenAppData,
237
236
  dealNativePixelToCssPixel,
238
237
  isAppStowShop,
238
+ import Taro from '@tarojs/taro'
239
239
  UtilsInterFace
240
240
  nativePageShowToast,
241
241
  ToastAndroidType,
242
242
  ToastIosType,
243
243
  getAppChannelType,
244
244
  isAndroidDevice,
245
245
  isH5AndJdShopView,
246
246
  isChartH5,
247
247
  isH5AndJdShopViewNativeScroll,
248
248
  isIosDevice,
249
249
  isJdAndAndroidDevice,
250
250
  isJdAndIosDevice,
251
251
  isJdApp,
252
252
  isWxApp,
253
253
  isWxMiniH5View,
254
254
  isJdAndHarmonyDevice,
255
255
  isH5AndJingGouMini,
256
256
  urlCookie,
257
257
  sgmCustomReport,
258
258
  isMemberPage,
259
259
  isH5AndJdShopViewH5Scroll,
260
260
  isH5AndJdShopH5CustomScrollView,
261
261
  isAppClassifyPage,
262
262
  isPc,
263
263
  ipLoc_djd,
264
264
  jdAppVersionCompare,
265
265
  dealNativePixelToCssPixel,
266
266
  isAppStowShop,
267
267
  isJdAndroidX5Core,
268
268
  addHttps,
269
269
  clearTaroStorageKey,
270
270
  countStringify,
271
271
  dateFormat,
272
272
  dealAddress,
273
273
  dealShopContentData as originDealShopContentData,
274
274
  debounce,
275
275
  filterUrlQueryData,
276
276
  formatTabActiveMenuType,
277
277
  getQualityImage,
278
278
  getTaroStorageKeyValue,
279
279
  getWxAppCookieStr,
280
280
  isH5,
281
281
  isJdMin,
282
282
  isWxMin,
283
283
  isWxMinAndWxapp,
284
284
  lodashThrottle,
285
285
  objectToUrlEncode,
286
286
  parseQueryUrlString,
287
287
  removeTaroStorageKey,
288
288
  setLowSmallPicUrl,
289
289
  setTaroStorage,
290
290
  showFailToast,
291
291
  showNormalToast,
292
292
  showSuccessToast,
293
293
  sliceArrToChunkList,
294
294
  throttle,
295
295
  isOpenJdAppUrl,
296
296
  jdOpenAppParams,
297
297
  createJdOpenAppUrl,
298
298
  isEmpty,
299
299
  getJdAppReportPageSource,
300
300
  dealJdOpenAppData,
301
301
  const getNum = Number(num)
302
302
  let _changeLayoutWidth = layoutWidth
303
303
  if (!_changeLayoutWidth) {
304
304
  _changeLayoutWidth =
305
305
  _ShopSystemInfo && _ShopSystemInfo?.windowWidth
306
306
  ? _ShopSystemInfo.windowWidth
307
307
  : Taro.getSystemInfoSync()?.windowWidth
308
308
  }
309
309
  return Math.round((getNum / widthSize) * _changeLayoutWidth)
310
310
  changeSize,
311
311
  designWidth = 750,
312
312
  systemInfo,
313
313
  const getRootFontSize =
314
314
  (40 * (systemInfo?.windowWidth ?? _ShopSystemInfo.windowWidth)) / 750
315
315
  const getRealRootFontSize =
316
316
  getRootFontSize > 40 ? 40 : getRootFontSize < 20 ? 20 : getRootFontSize
317
317
  return Math.ceil(
318
318
  (((parseInt(String(changeSize), 10) / 40) * 750) / designWidth) *
319
319
  getRealRootFontSize,
320
320
  )
321
321
  console.log(
322
322
  '获取系统宽度systemInfo?.windowWidth',
323
323
  systemInfo?.windowWidth,
324
324
  'taroToTransformRoutimePXNumber(changeWidth)',
325
325
  taroToTransformRoutimePXNumber(changeWidth, 750, systemInfo),
326
326
  )
327
327
  return buildType === BUILD_TYPE.CLASSIFY && systemInfo?.windowWidth
328
328
  ? systemInfo?.windowWidth -
329
329
  taroToTransformRoutimePXNumber(changeWidth, 750, systemInfo)
330
330
  : systemInfo?.windowWidth ?? 0
331
331
  const systemInfo = Taro.getSystemInfoSync()
332
332
  if (params && params?.pageWidth && params?.pageHeight) {
333
333
  systemInfo.windowWidth = params?.pageWidth
334
334
  systemInfo.windowHeight = params?.pageHeight
335
335
  }
336
336
  systemInfo['containerWidth'] = getContainerWidth(buildType, systemInfo)
337
337
  console.warn('====获取系统信息=====', systemInfo)
338
338
  return systemInfo
339
339
  const getSystemInfo = getSystemAndContainerWidthInfo(params) || {
340
340
  windowWidth: window.innerWidth,
341
341
  containerWidth: getContainerWidth(buildType, {
342
342
  windowWidth: window.innerWidth,
343
343
  }),
344
344
  screenWidth: window.innerWidth,
345
345
  platform: '',
346
346
  model: '',
347
347
  system: '',
348
348
  }
349
349
  if (isJdApp && isAndroidDevice && getSystemInfo.windowWidth <= 0) {
350
350
  getSystemInfo.windowWidth = getSystemInfo.screenWidth
351
351
  getSystemInfo['containerWidth'] = getContainerWidth(
352
352
  buildType,
353
353
  getSystemInfo,
354
354
  )
355
355
  }
356
356
  return getSystemInfo
357
357
  const params = Object.assign(
358
358
  {},
359
359
  {
360
360
  title: '',
361
361
  duration: 1500,
362
362
  },
363
363
  options,
364
364
  )
365
365
  params.duration = params.duration / 1000
366
366
  if (isJdApp) {
367
367
  const showSuccessType = isIosDevice
368
368
  ? ToastIosType.SUCCESS
369
369
  : ToastAndroidType.SUCCESS
370
370
  const duration = isAndroidDevice ? 0 : params.duration
371
371
  nativePageShowToast(options.title, showSuccessType, duration)
372
372
  console.log('执行原生toast success')
373
373
  } else {
374
374
  showSuccessToast(options)
375
375
  }
376
376
  const params = Object.assign(
377
377
  {},
378
378
  {
379
379
  title: '',
380
380
  duration: 1500,
381
381
  },
382
382
  options,
383
383
  )
384
384
  params.duration = params.duration / 1000
385
385
  if (isJdApp) {
386
386
  const showSuccessType = isIosDevice
387
387
  ? ToastIosType.FAIL
388
388
  : ToastAndroidType.FAIL
389
389
  const duration = isAndroidDevice ? 0 : params.duration
390
390
  nativePageShowToast(options.title, showSuccessType, duration)
391
391
  console.log('执行原生toast fail')
392
392
  } else {
393
393
  console.log('执行H5 toast fail')
394
394
  showFailToast(options)
395
395
  }
396
396
  const params = Object.assign(
397
397
  {},
398
398
  {
399
399
  title: '',
400
400
  duration: 1500,
401
401
  },
402
402
  options,
403
403
  )
404
404
  params.duration = params.duration / 1000
405
405
  if (isJdApp) {
406
406
  const showSuccessType = isIosDevice ?
407
407
  ToastIosType.NORMAL :
408
408
  ToastAndroidType.NORMAL
409
409
  const duration = isAndroidDevice ? 0 : params.duration
410
410
  nativePageShowToast(options.title, showSuccessType, duration)
411
411
  } else {
412
412
  showNormalToast(options)
413
413
  }
414
414
  const createLoadingEle = document.createElement('div')
415
415
  createLoadingEle.id = 'J_shopLoading'
416
416
  createLoadingEle.className = `d-shop-loading flexible-center-box ${customClassName}`
417
417
  createLoadingEle.innerHTML =
418
418
  `<div class='d-loading-content'>
419
419
  <span class='d-shop-loading-icon'></span>
420
420
  <p class='d-shop-text'>${text}</p>
421
421
  </div>`
422
422
  const getEle = document.body
423
423
  ? document.body
424
424
  : document.getElementsByTagName('body')[0]
425
425
  getEle.appendChild(createLoadingEle)
426
426
  const getEle = document.getElementById('J_shopLoading')
427
427
  getEle && getEle.remove()
428
428
  const systemInfo: UtilsInterFace.taroGetSystemInfoSyncRes = getReviseSystemInfo(
429
429
  params,
430
430
  )
431
431
  if (!systemInfo.system && window) {
432
432
  systemInfo.system = window.navigator.userAgent
433
433
  systemInfo.isChrome = !!systemInfo?.system.match(/chrome/i)
434
434
  }
435
435
  const isIOS = !!systemInfo?.system.match(/ios/i)
436
436
  const isAndroid = !!systemInfo?.system.match(/android/i)
437
437
  systemInfo.navBarHeight = 0
438
438
  systemInfo.statusBarHeight = 0
439
439
  systemInfo.capsulePosition = null
440
440
  systemInfo.isIOS = isIOS
441
441
  systemInfo.isAndroid = isAndroid
442
442
  _ShopSystemInfo = systemInfo
443
443
  return systemInfo
444
444
  return originDealShopContentData(pageData, sgmCustomReport, isvdev)
445
445
  isJdApp,
446
446
  isWxApp,
447
447
  isIosDevice,
448
448
  isAndroidDevice,
449
449
  isJdAndIosDevice,
450
450
  isJdAndAndroidDevice,
451
451
  isJdAndHarmonyDevice,
452
452
  isJdAndroidX5Core,
453
453
  isWxMin,
454
454
  isWxMinAndWxapp,
455
455
  isJdMin,
456
456
  isH5,
457
457
  isH5AndJdShopView,
458
458
  isChartH5,
459
459
  isH5AndJdShopViewNativeScroll,
460
460
  isH5AndJdShopViewH5Scroll,
461
461
  isH5AndJdShopH5CustomScrollView,
462
462
  isH5AndJingGouMini,
463
463
  isWxMiniH5View,
464
464
  urlCookie,
465
465
  sliceArrToChunkList,
466
466
  dealAddress,
467
467
  objectToUrlEncode,
468
468
  parseQueryUrlString,
469
469
  setLowSmallPicUrl,
470
470
  setTaroStorage,
471
471
  getTaroStorageKeyValue,
472
472
  removeTaroStorageKey,
473
473
  clearTaroStorageKey,
474
474
  getQualityImage,
475
475
  countStringify,
476
476
  getWxAppCookieStr,
477
477
  getSystemInfos,
478
478
  pxTransformFromData,
479
479
  dealShopContentDataAndReport as dealShopContentData,
480
480
  dateFormat,
481
481
  throttle,
482
482
  lodashThrottle,
483
483
  debounce,
484
484
  addHttps,
485
485
  commonShowSuccessToast as showSuccessToast,
486
486
  commonShowFailToast as showFailToast,
487
487
  commonShowNormalToast as showNormalToast,
488
488
  showShopLoading,
489
489
  hideShopLoading,
490
490
  getAppChannelType,
491
491
  formatTabActiveMenuType,
492
492
  filterUrlQueryData,
493
493
  sgmCustomReport,
494
494
  isMemberPage,
495
495
  getFloorDataToDataDefines,
496
496
  isOpenJdAppUrl,
497
497
  jdOpenAppParams,
498
498
  createJdOpenAppUrl,
499
499
  isEmpty,
500
500
  getJdAppReportPageSource,
501
501
  isAppClassifyPage,
502
502
  isPc,
503
503
  ipLoc_djd,
504
504
  dealJdOpenAppData,
505
505
  jdAppVersionCompare,
506
506
  dealNativePixelToCssPixel,
507
507
  isAppStowShop,
@@ -1 +1 @@
1
- import {
2
1
  isChartH5,
3
2
  isH5AndJdShopViewH5Scroll,
4
3
  isH5AndJdShopH5CustomScrollView,
5
4
  isMemberPage,
6
5
  isPc,
7
6
  ipLoc_djd,
8
7
  jdAppVersionCompare,
9
8
  dealNativePixelToCssPixel,
10
9
  isAppStowShop,
11
10
  dealJdOpenAppData
12
11
  isJdAndHarmonyDevice,
13
12
  isChartH5,
14
13
  isH5AndJdShopViewH5Scroll,
15
14
  isH5AndJdShopH5CustomScrollView,
16
15
  isH5AndJingGouMini,
17
16
  urlCookie,
18
17
  isMemberPage,
19
18
  isPc,
20
19
  ipLoc_djd,
21
20
  jdAppVersionCompare,
22
21
  dealNativePixelToCssPixel,
23
22
  isAppStowShop,
24
23
  dealJdOpenAppData
24
+ import {
25
25
  isChartH5,
26
26
  isH5AndJdShopViewH5Scroll,
27
27
  isH5AndJdShopH5CustomScrollView,
28
28
  isMemberPage,
29
29
  sgmCustomReport,
30
30
  isOpenJdAppUrl,
31
31
  jdOpenAppParams,
32
32
  createJdOpenAppUrl,
33
33
  isEmpty,
34
34
  getJdAppReportPageSource,
35
35
  isPc,
36
36
  ipLoc_djd,
37
37
  dealJdOpenAppData,
38
38
  jdAppVersionCompare,
39
39
  dealNativePixelToCssPixel,
40
40
  isAppStowShop,
41
41
  isJdAndHarmonyDevice,
42
42
  isJdAndroidX5Core,
43
43
  isChartH5,
44
44
  isH5AndJdShopViewH5Scroll,
45
45
  isH5AndJdShopH5CustomScrollView,
46
46
  isH5AndJingGouMini,
47
47
  urlCookie,
48
48
  isMemberPage,
49
49
  sgmCustomReport,
50
50
  isOpenJdAppUrl,
51
51
  jdOpenAppParams,
52
52
  createJdOpenAppUrl,
53
53
  isEmpty,
54
54
  isPc,
55
55
  ipLoc_djd,
56
56
  dealJdOpenAppData,
57
57
  jdAppVersionCompare,
58
58
  dealNativePixelToCssPixel,
59
59
  isAppStowShop,