@conecli/cone-render 0.8.13-beta.5 → 0.8.15-alpha.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 (76) hide show
  1. package/dist/api/index.ts +1 -1
  2. package/dist/common/business.ts +1 -1
  3. package/dist/common/const.ts +1 -1
  4. package/dist/common/index.h5.ts +1 -1
  5. package/dist/common/index.jd.ts +1 -1
  6. package/dist/common/index.ts +1 -1
  7. package/dist/common/index.weapp.ts +1 -1
  8. package/dist/components/ErrorBoundary.tsx +1 -0
  9. package/dist/components/base/CommonFloorHead/index.module.scss +1 -1
  10. package/dist/components/base/CommonFloorHead/index.tsx +1 -1
  11. package/dist/components/base/CountDown/index.module.scss +4 -4
  12. package/dist/components/base/CountDown/index.tsx +1 -1
  13. package/dist/components/base/CustomImageLoadRealInfo/index.tsx +1 -1
  14. package/dist/components/base/CustomScrollView/index.tsx +1 -1
  15. package/dist/components/base/Dialog/index.tsx +1 -1
  16. package/dist/components/base/Exposure/index.h5.tsx +1 -1
  17. package/dist/components/base/Exposure/index.tsx +1 -1
  18. package/dist/components/base/LazyLayoutLoad/index.module.scss +2 -1
  19. package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
  20. package/dist/components/base/LazyLayoutLoad/index.weapp.tsx +1 -1
  21. package/dist/components/base/LazyLoadImage/const.ts +1 -1
  22. package/dist/components/base/LazyLoadImage/index.h5.module.scss +1 -0
  23. package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
  24. package/dist/components/base/LazyLoadImage/index.module.scss +1 -0
  25. package/dist/components/base/LazyLoadImage/index.tsx +1 -1
  26. package/dist/components/base/NetworkDataError/index.module.scss +2 -2
  27. package/dist/components/base/NetworkDataError/index.tsx +1 -1
  28. package/dist/components/base/Price/index.module.scss +18 -30
  29. package/dist/components/base/Price/index.tsx +1 -1
  30. package/dist/components/floorItem.tsx +1 -1
  31. package/dist/components/system/Banner/index.module.scss +39 -1
  32. package/dist/components/system/Banner/index.tsx +1 -1
  33. package/dist/components/system/PictureHotSpot/index.module.scss +4 -0
  34. package/dist/components/system/PictureHotSpot/index.tsx +1 -1
  35. package/dist/components/system/Video/index.tsx +1 -1
  36. package/dist/config/env.ts +1 -1
  37. package/dist/customHooks/useDocumentVisibilitychange.ts +1 -1
  38. package/dist/interface/common.ts +1 -1
  39. package/dist/interface/component.ts +1 -1
  40. package/dist/interface/jumpEventReport.ts +1 -1
  41. package/dist/interface/service.ts +1 -1
  42. package/dist/interface/utils.ts +1 -1
  43. package/dist/jumpEventReport/base.ts +1 -1
  44. package/dist/jumpEventReport/const.ts +1 -1
  45. package/dist/jumpEventReport/createReportFloorData.ts +1 -1
  46. package/dist/jumpEventReport/index.h5.ts +1 -1
  47. package/dist/jumpEventReport/index.ts +1 -1
  48. package/dist/jumpEventReport/index.weapp.ts +1 -1
  49. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  50. package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
  51. package/dist/jumpEventReport/jumpUrlConfig/index.ts +1 -1
  52. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  53. package/dist/jumpEventReport/web.base.ts +1 -1
  54. package/dist/jumpEventReport/web.jd.ts +1 -1
  55. package/dist/jumpEventReport/web.wxapp.ts +1 -1
  56. package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
  57. package/dist/modules/ContainerFloorList/index.tsx +1 -1
  58. package/dist/modules/DecorateContainerFloorList/index.module.scss +5 -4
  59. package/dist/modules/DecorateContainerFloorList/index.tsx +1 -1
  60. package/dist/open/api/global.ts +1 -0
  61. package/dist/open/api/index.ts +1 -1
  62. package/dist/open/api/jump.ts +1 -1
  63. package/dist/{modules/moduleUtil/index.ts → open/api/moduleUtil.ts} +0 -0
  64. package/dist/open/api/track.ts +1 -1
  65. package/dist/open/api/util.ts +1 -1
  66. package/dist/open/index.ts +1 -1
  67. package/dist/open/modules/index.ts +1 -1
  68. package/dist/sass/app.h5.scss +2 -1
  69. package/dist/sass/normalize.scss +261 -0
  70. package/dist/utils/connectNativeJsBridge.ts +1 -1
  71. package/dist/utils/h5Utils.ts +1 -1
  72. package/dist/utils/index.h5.ts +1 -1
  73. package/dist/utils/index.ts +1 -1
  74. package/dist/utils/index.weapp.ts +1 -1
  75. package/dist/utils/utils.ts +1 -1
  76. package/package.json +104 -87
package/dist/api/index.ts CHANGED
@@ -1 +1 @@
1
- import { protocol, isBetaServer, isH5 } from '../config/env'
1
+ import { protocol, isBetaServer, isH5 } from '../config/env'
@@ -1 +1 @@
1
- import Taro from '@tarojs/taro'
1
+ import Taro from '@tarojs/taro'
@@ -1 +1 @@
1
- export const BUSINESS_TYPE = {
1
+ import { isPublishToWxapp } from '../config/env'
@@ -1 +1 @@
1
- import Taro from '@tarojs/taro'
1
+ import Taro from '@tarojs/taro'
@@ -1 +1 @@
1
- import Taro from '@tarojs/taro'
1
+ import Taro from '@tarojs/taro'
@@ -1 +1 @@
1
- import Taro from '@tarojs/taro'
1
+ import Taro from '@tarojs/taro'
@@ -1 +1 @@
1
- import Taro from '@tarojs/taro'
1
+ import Taro from '@tarojs/taro'
@@ -0,0 +1 @@
1
+ import React from 'react'
@@ -138,7 +138,7 @@
138
138
  display: block;
139
139
  // height: auto;
140
140
  height: 96px;
141
- background: no-repeat center/cover;
141
+ background: no-repeat top/100% auto;
142
142
  }
143
143
 
144
144
  .d-place-holder {
@@ -1 +1 @@
1
- import React, { useMemo } from 'react'
1
+ import React, { useMemo } from 'react'
@@ -34,10 +34,10 @@
34
34
  //margin: 0 2px;
35
35
  font-size: 20px;
36
36
  }
37
- .d-count-from-end {
38
- margin-right: 4px;
39
- font-size: 9px;
40
- }
37
+ // .d-count-from-end {
38
+ // margin-right: 4px;
39
+ // font-size: 9px;
40
+ // }
41
41
  }
42
42
  :global(.d-count-down-time) {
43
43
  &:global(.d-day-time) {
@@ -1 +1 @@
1
- import Taro from '@tarojs/taro'
1
+ import Taro from '@tarojs/taro'
@@ -1 +1 @@
1
- import Taro from '@tarojs/taro'
1
+ import Taro from '@tarojs/taro'
@@ -1 +1 @@
1
- import React, { useRef, useEffect } from 'react'
1
+ import React, {useRef, useEffect} from 'react'
@@ -1 +1 @@
1
- import Taro from '@tarojs/taro'
1
+ import Taro from '@tarojs/taro'
@@ -1 +1 @@
1
- import Taro from '@tarojs/taro'
1
+ import Taro from '@tarojs/taro'
@@ -1 +1 @@
1
- import Taro from '@tarojs/taro'
1
+ import Taro from '@tarojs/taro'
@@ -10,7 +10,8 @@
10
10
 
11
11
  .d-mobile-prestrain-component {
12
12
  position: absolute;
13
- top: -50vh;
13
+ //top: -50vh;
14
+ top: -35vh;
14
15
  width: 100%;
15
16
  height: 0;
16
17
  }
@@ -1 +1 @@
1
- import Taro, { useRouter } from '@tarojs/taro'
1
+ import Taro, { useRouter } from '@tarojs/taro'
2
2
  floorData = {},
3
3
  const rootDom = document.querySelector('#J_shopHomeRoot')
4
4
  root: rootDom,
5
5
  rootMargin: `0px 0px ${window.innerHeight}px 0px`,
6
6
  const latestRes = latestFromNativeMsgStorage[TaroEventType.PAGE_SCROLL] || {}
7
7
  !componentShowStateRef.current && dealPageScrollInfo(latestRes)
8
8
  useEffect(() => {
9
9
  if(componentShowState === true){
10
10
  console.log('>>>>>>>>>>>>>>>>>>> 楼层【id=' + containerId + '】已经渲染!')
11
11
  const modularPackResult = floorData?.floorExtInfo?.modularPackResult
12
12
  console.log('>>>>>>>>>>>>>>>>>>> 向IOS原生发送通知请求ISV模块依赖JS文件:', bundleUrl)
13
13
  nativePageRegisterMessage(
14
14
  Message_Type.NATIVE_INJECT_JS_FILE,
15
15
  {
16
16
  data: {
17
17
  "bundleUrl": [bundleUrl]
18
18
  },
19
19
  },
20
20
  )
21
21
  }
22
22
  }
23
23
  }, [componentShowState])
24
24
  ref={ref}
@@ -1 +1 @@
1
- import Taro, { useRouter } from '@tarojs/taro'
1
+ import Taro from '@tarojs/taro'
@@ -1 +1 @@
1
- export const NetWorkTypeQuality = {
1
+ export const NetWorkTypeQuality = {
@@ -1,6 +1,7 @@
1
1
 
2
2
  .d-lazy-image,
3
3
  .d-app-lazy-image {
4
+ //background: #F8F8F8 url("../../resoure/jd_logo_bg.png") center center/50% no-repeat;
4
5
  background: #fff
5
6
  url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEsAAAAeCAMAAABT0xOcAAAAe1BMVEUAAADx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fELy0NOAAAAKHRSTlMApwmfFtYm9rWveHDm70yJHYJaD2k8IeIr6pY2X0HHfsGRZDHdu1XNmO+CqgAAAu9JREFUSMfNlNmymzAQRAchkCUhdrMZbLze/v8vjIRMKN8kRR7ykFNeVIPV9Ewj039P1TR8+eILjL7RdLFFJUO8QMS7ZmyDJvZ0nDYGY+aKKDSJpY3OwWX6uFUEY/peCNEbY4Rp6AABixFYkLQRAK3VOmAjUrawMt1GrfWtXD7rlFF3uiA6HV/p0TF1tBECEVskYe+7qqW08mqT1jruneu21/72JfHoSZ7faj2bJu6mOlgEa3qjEXKeL/ACV1s5YSbqYP6stXUeX2FZnV3wuBSZqnVWqDNCIvaFRzZIiGAIw+CS/1brQCslgOQdUBoW10C2EFJei7AkygOlAnmGeMprJq/NjhZpAIrepOpOte2Oq9EXjupIMVoiXduQ9rTo7KsODhxJYaAGuJPjgRvdkRD1KP9CawRwettyF5SbVLZ49ZbuMJxGW93XisXPKA/oXNMDEReJT6N0OfZ2V4RqX4tFQPbOQbntwrl8oXCOQmu2hVosSr6j5QcW+uvukZJP37CWzL7tQs2lH8B53Nd6eq192N/72mdfa52XhdXPx6zcXKYgikLXbaNP66M27edoAO2X+RkQ9tVRhoWC6IZkCZAbHHa1SgDHNdHDsbrLr0ojKTkfDWp6+WPh1APakMAXbVrb6B/Mn+311zlETJZOCJYChttWxedUIyvyi9bLt+J4IPcLvVYypBNaDG5TguCzmct3rUkAPSdHJRLyDEjXQ6Un3GZQBamxaU09gJg+/r+4gqV0uzixXjBfLnDzixrjhDJGNoDXXqvK76OEJaO3L1bx/FQOCSxqcfJVUWiXCydEPowHeIqaZnf3wmvNRsBiC28ttEnS+1oy+lNtOMVAzayZCwsQ5ESNREgvKKuNjjI/ewNHr9Y4N5Is98llx2U8iOQXcKczhDwAM6ObayaanfWDDwhJcMvpU8ucr6+cPji5a8+UEVMCMNo97tLm0MU2uoMmi850yrc8s8Khyzuj7+Q6U7GPMCt8mOtGljP6l/wAUcBZ6lceL/8AAAAASUVORK5CYII=')
6
7
  center center no-repeat;
@@ -1 +1 @@
1
- import React, { useCallback, useState } from 'react'
1
+ import React, { useCallback, useEffect, useRef, useState } from 'react'
2
2
  const [componentShowState, setComponentShowState] = useState(false)
3
3
  const componentLazyRef = useRef<HTMLElement | null>(null)
4
4
  const componentShowStateRef = useRef(false)
5
5
  useEffect(() => {
6
6
  const latestRes = latestFromNativeMsgStorage[TaroEventType.PAGE_SCROLL] || {}
7
7
  !componentShowStateRef.current && dealPageScrollInfo(latestRes)
8
8
  Taro.eventCenter.on(TaroEventType.PAGE_SCROLL, (res) => {
9
9
  !componentShowStateRef.current && dealPageScrollInfo(res)
10
10
  })
11
11
 
12
12
 
13
13
  <View
14
14
  ref={componentLazyRef}
15
15
  className={classNames(
16
16
  imageStyle['d-app-lazy-image'],
17
17
  {
18
18
  [imageStyle['d-lazy-sku-image']]: isSkuImage,
19
19
  },
20
20
  {
21
21
  [imageStyle['d-hide-image-error']]: imageErrState,
22
22
  },
23
23
  {
24
24
  [imageStyle['d-load-completed']]: loadSuccess,
25
25
  },
26
26
  {
27
27
  'd-imag-rendering-crisp-edges':
28
28
  !taroJdBaseInfo.info.pageInfo.isVipShop &&
29
29
  imagRenderingSet,
30
30
  },
31
31
  'J_html5ImageBg',
32
32
  className,
33
33
  )}
34
34
  style={{
35
35
  ...style,
36
36
  ...changeStyleIncludeWidthAndHeightAndBgColor(),
37
37
  }}
38
38
  >
39
39
  {componentShowState && <img
40
40
  src={getQualityImage(
41
41
  imgSrc,
42
42
  taroJdBaseInfo.info.pageInfo.isVipShop
43
43
  ? NetWorkTypeQuality['perfect']
44
44
  : NetWorkTypeQuality[getNetWorkType],
45
45
  )}
46
46
  onLoad={imageLoad.bind(this, imgSrc)}
47
47
  onError={imageError}
48
48
  />}
49
49
  </View>
50
50
  ) : (
51
51
  <Image
52
52
  style={{
53
53
  ...style,
54
54
  ...changeStyleIncludeWidthAndHeightAndBgColor(),
55
55
  }}
56
56
  className={classNames(
57
57
  imageStyle['d-lazy-image'],
58
58
  {
59
59
  [imageStyle['d-lazy-sku-image']]: isSkuImage,
60
60
  },
61
61
  {
62
62
  [imageStyle['d-hide-image-error']]: imageErrState,
63
63
  },
64
64
  {
65
65
  [imageStyle['d-load-completed']]: loadSuccess,
66
66
  },
67
67
  {
68
68
  'd-imag-rendering-crisp-edges': imagRenderingSet,
69
69
  },
70
70
  className,
71
71
  )}
72
72
  src={getQualityImage(
73
73
  imgSrc,
74
74
  NetWorkTypeQuality[getNetWorkType],
75
75
  )}
76
76
  lazyLoad={lazyLoad}
77
77
  onError={imageError}
78
78
  onLoad={imageLoad.bind(this, imgSrc)}
79
79
  {...otherOption}
80
80
  />
81
81
  )
@@ -1,5 +1,6 @@
1
1
 
2
2
  .d-lazy-image {
3
+ //background: #F8F8F8 url("../../resoure/jd_logo_bg.png") center center/50% no-repeat;
3
4
  background: #fff
4
5
  url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEsAAAAeCAMAAABT0xOcAAAAe1BMVEUAAADx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fELy0NOAAAAKHRSTlMApwmfFtYm9rWveHDm70yJHYJaD2k8IeIr6pY2X0HHfsGRZDHdu1XNmO+CqgAAAu9JREFUSMfNlNmymzAQRAchkCUhdrMZbLze/v8vjIRMKN8kRR7ykFNeVIPV9Ewj039P1TR8+eILjL7RdLFFJUO8QMS7ZmyDJvZ0nDYGY+aKKDSJpY3OwWX6uFUEY/peCNEbY4Rp6AABixFYkLQRAK3VOmAjUrawMt1GrfWtXD7rlFF3uiA6HV/p0TF1tBECEVskYe+7qqW08mqT1jruneu21/72JfHoSZ7faj2bJu6mOlgEa3qjEXKeL/ACV1s5YSbqYP6stXUeX2FZnV3wuBSZqnVWqDNCIvaFRzZIiGAIw+CS/1brQCslgOQdUBoW10C2EFJei7AkygOlAnmGeMprJq/NjhZpAIrepOpOte2Oq9EXjupIMVoiXduQ9rTo7KsODhxJYaAGuJPjgRvdkRD1KP9CawRwettyF5SbVLZ49ZbuMJxGW93XisXPKA/oXNMDEReJT6N0OfZ2V4RqX4tFQPbOQbntwrl8oXCOQmu2hVosSr6j5QcW+uvukZJP37CWzL7tQs2lH8B53Nd6eq192N/72mdfa52XhdXPx6zcXKYgikLXbaNP66M27edoAO2X+RkQ9tVRhoWC6IZkCZAbHHa1SgDHNdHDsbrLr0ojKTkfDWp6+WPh1APakMAXbVrb6B/Mn+311zlETJZOCJYChttWxedUIyvyi9bLt+J4IPcLvVYypBNaDG5TguCzmct3rUkAPSdHJRLyDEjXQ6Un3GZQBamxaU09gJg+/r+4gqV0uzixXjBfLnDzixrjhDJGNoDXXqvK76OEJaO3L1bx/FQOCSxqcfJVUWiXCydEPowHeIqaZnf3wmvNRsBiC28ttEnS+1oy+lNtOMVAzayZCwsQ5ESNREgvKKuNjjI/ewNHr9Y4N5Is98llx2U8iOQXcKczhDwAM6ObayaanfWDDwhJcMvpU8ucr6+cPji5a8+UEVMCMNo97tLm0MU2uoMmi850yrc8s8Khyzuj7+Q6U7GPMCt8mOtGljP6l/wAUcBZ6lceL/8AAAAASUVORK5CYII=')
5
6
  center center no-repeat;
@@ -1 +1 @@
1
- import React, { useCallback, useState } from 'react'
1
+ import React, {useCallback, useState} from 'react'
@@ -45,7 +45,7 @@
45
45
  .d-no-network-err-tip {
46
46
  background-image: url('https://img14.360buyimg.com/imagetools/jfs/t1/146556/1/17745/7493/5fd1e62dE86e86669/96f5c91befa8e991.png');
47
47
  }
48
-
48
+
49
49
  .d-opt-btn {
50
50
  padding: 0;
51
51
  width: 160px;
@@ -53,7 +53,7 @@
53
53
  line-height: 64px;
54
54
  font-size: 24px;
55
55
  color: #fa2c19;
56
- border: 1px solid #fa2c19;
56
+ border: 1PX solid #fa2c19;
57
57
  box-sizing: border-box;
58
58
  border-radius: 48px;
59
59
  &:active {
@@ -1 +1 @@
1
- import { Button, View } from '@tarojs/components'
2
1
  backgroundColorWhite,
2
+ import { Button, View } from '@tarojs/components'
3
3
  backgroundColorWhite,
@@ -38,6 +38,20 @@
38
38
  text-decoration: line-through;
39
39
  }
40
40
  }
41
+ &.d-plus-price,
42
+ &.d-sams-price,
43
+ &.d-sfp-price,
44
+ &.d-member-price {
45
+ &:after {
46
+ content: '';
47
+ display: inline-block;
48
+ margin-left: 5px;
49
+ width: 58px;
50
+ height: 20px;
51
+ background-repeat: no-repeat;
52
+ background-size: contain;
53
+ }
54
+ }
41
55
  &.d-plus-price {
42
56
  .int-txt,
43
57
  .sym-sub,
@@ -46,13 +60,7 @@
46
60
  color: #232326;
47
61
  }
48
62
  &:after {
49
- content: '';
50
- display: inline-block;
51
- margin-left: 5px;
52
- width: 58px;
53
- height: 20px;
54
- background: url('../../../assets/plus-icon.png') no-repeat;
55
- background-size: contain;
63
+ background-image: url('../../../assets/plus-icon.png');
56
64
  }
57
65
  }
58
66
  &.d-sams-price {
@@ -63,14 +71,7 @@
63
71
  color: #1a68bc;
64
72
  }
65
73
  &:after {
66
- content: '';
67
- display: inline-block;
68
- margin-left: 5px;
69
- width: 58px;
70
- height: 20px;
71
- background: url('../../../assets/jsbundles_jdreactshopactivitytab_images_samprice.png')
72
- no-repeat;
73
- background-size: contain;
74
+ background-image: url('../../../assets/jsbundles_jdreactshopactivitytab_images_samprice.png');
74
75
  }
75
76
  }
76
77
  &.d-sfp-price {
@@ -81,13 +82,7 @@
81
82
  color: #714aff;
82
83
  }
83
84
  &:after {
84
- content: '';
85
- display: inline-block;
86
- margin-left: 5px;
87
- width: 58px;
88
- height: 20px;
89
- background: url('../../../assets/fans_price@2x.png') no-repeat;
90
- background-size: contain;
85
+ background-image: url('../../../assets/fans_price@2x.png');
91
86
  }
92
87
  }
93
88
  &.d-member-price {
@@ -99,14 +94,7 @@
99
94
  }
100
95
  // 默认v1会员
101
96
  &:after {
102
- content: '';
103
- display: inline-block;
104
- margin-left: 5px;
105
- width: 58px;
106
- height: 20px;
107
- background: url('https://m.360buyimg.com/cc/jfs/t1/132940/18/11320/4920/5f770610E07069747/92f14ae503ca8b7b.png')
108
- no-repeat;
109
- background-size: contain;
97
+ background-image: url('https://m.360buyimg.com/cc/jfs/t1/132940/18/11320/4920/5f770610E07069747/92f14ae503ca8b7b.png');
110
98
  }
111
99
  // v1 会员
112
100
  &.d-member-price-tab_214 {
@@ -1 +1 @@
1
- import React from 'react'
1
+ import React from 'react'
@@ -1 +1 @@
1
- import React, { Suspense, lazy } from 'react'
1
+ import React, { Suspense, lazy } from 'react'
@@ -23,15 +23,53 @@
23
23
  }
24
24
  .d-img {
25
25
  width: 100%;
26
+ height: 100%;
26
27
  position: relative;
27
28
  overflow: hidden;
28
29
  }
29
30
  }
30
31
 
31
32
  :global {
32
- .swiper-pagination-bullet-active {
33
+ // h5 圆点选中样式
34
+ .swiper-pagination-bullet-active,
35
+ // 小程序圆点选中样式
36
+ .wx-swiper-dot-active {
33
37
  width: 32px;
34
38
  border-radius: 8px;
35
39
  }
36
40
  }
41
+
42
+ &.d-decorate-banner {
43
+ position: relative;
44
+
45
+ :global {
46
+
47
+ .swiper-pagination {
48
+ position: absolute;
49
+ bottom: 10PX;
50
+ left: 0;
51
+ right: 0;
52
+ font-size: 0;
53
+ text-align: center;
54
+ z-index: 10;
55
+ }
56
+
57
+
58
+ .swiper-pagination-bullet {
59
+ margin: 0 4PX;
60
+ width: 8PX;
61
+ height: 8PX;
62
+ display: inline-block;
63
+ border-radius: 50%;
64
+ background: #000;
65
+ background: rgba(0, 0, 0, .3);
66
+ }
67
+
68
+ .swiper-pagination-bullet-active {
69
+ width: 32px;
70
+ border-radius: 8px;
71
+ background: #fa2c19;
72
+ }
73
+ }
74
+ }
37
75
  }
@@ -1 +1 @@
1
- import { ComponentInterFace } from '../../../interface/component'
1
+ import { ComponentInterFace } from '../../../interface/component'
@@ -5,6 +5,10 @@
5
5
  width: 100%;
6
6
  height: auto;
7
7
  // height: 100%;
8
+ // 在h5中父级有高度,子元素img不设置高度自适应或有精度丢失
9
+ img {
10
+ height: 100%;
11
+ }
8
12
  }
9
13
  .d-sku-price {
10
14
  position: absolute;
@@ -1 +1 @@
1
- import React, { useRef } from 'react'
1
+ import React, { useRef } from 'react'
@@ -1 +1 @@
1
- import React, { useCallback, useEffect, useRef } from 'react'
1
+ import React, { useCallback, useEffect, useRef } from 'react'
@@ -1 +1 @@
1
- const buildCopyType = process.env.BUILD_COPY_TYPE || 'none'
1
+ const buildCopyType = process.env.BUILD_COPY_TYPE || 'none'
2
2
  isPublishToWxapp || (!isBetaServer && !isDev)
3
3
  ? 'https:'
4
4
  : isH5
5
5
  ? ''
6
6
  : 'http:'
@@ -1 +1 @@
1
- import Taro from '@tarojs/taro'
1
+ import Taro from '@tarojs/taro'
@@ -1 +1 @@
1
- import Taro from '@tarojs/taro'
1
+ import Taro from '@tarojs/taro'
@@ -1 +1 @@
1
- import React from 'react'
1
+ import React from 'react'
@@ -1 +1 @@
1
- export declare namespace JumpEventReportInterFace {
1
+ export declare namespace JumpEventReportInterFace {
@@ -1 +1 @@
1
- import { ComponentInterFace } from './component'
1
+ import { ComponentInterFace } from './component'
@@ -1 +1 @@
1
- import Taro from '@tarojs/taro'
1
+ import Taro from '@tarojs/taro'
@@ -1 +1 @@
1
- import Taro from '@tarojs/taro'
1
+ import Taro from '@tarojs/taro'
@@ -1 +1 @@
1
- export enum LinkConfigType {
1
+ import { isH5 } from '../utils'
@@ -1 +1 @@
1
- import taroJdBaseInfo from '../common'
1
+ import taroJdBaseInfo from '../common'
@@ -1 +1 @@
1
- import { isApp, getUrlQuery } from '../utils/jm-common'
1
+ import { isApp, getUrlQuery } from '../utils/jm-common'
@@ -1 +1 @@
1
- import Taro from '@tarojs/taro'
1
+ import Taro from '@tarojs/taro'
@@ -1 +1 @@
1
- import Taro from '@tarojs/taro'
1
+ import Taro from '@tarojs/taro'
@@ -1 +1 @@
1
- import Taro from '@tarojs/taro'
1
+ import Taro from '@tarojs/taro'
@@ -1 +1 @@
1
- import { domain } from '../../api'
1
+ import { domain } from '../../api'
@@ -1 +1 @@
1
- import { JumpMiniBasePath, JumpWebBaseUrl } from './base'
1
+ import { JumpMiniBasePath, JumpWebBaseUrl } from './base'
@@ -1 +1 @@
1
- export enum LogPnameInfo {
1
+ export enum LogPnameInfo {
@@ -1 +1 @@
1
- import taroJdBaseInfo from '../common'
1
+ import taroJdBaseInfo from '../common'
@@ -1 +1 @@
1
- import { JdJumpJdApp } from './jdJumpJdApp'
1
+ import { JdJumpJdApp } from './jdJumpJdApp'
@@ -1 +1 @@
1
- import taroJdBaseInfo from '../common'
1
+ import taroJdBaseInfo from '../common'
@@ -1 +1 @@
1
- import React from 'react'
1
+ import React from 'react'
2
2
  floorData={floorItem}
@@ -1 +1 @@
1
- import Taro from '@tarojs/taro'
1
+ import Taro from '@tarojs/taro'
2
2
  className={classNames(
3
3
  id={`J_floor_${floorItem?.uid}`}
4
4
  key={floorItem.uid}
5
5
  data-floor-uid={floorItem?.uid}
6
6
  data-floor-type={floorItem?.floorExtInfo?.moduleFlag || ''}
7
7
  floorIndex={floorIndex}
8
8
  floorData={floorItem}
9
9
  layoutLeftRightMargin={containerLayoutLeftRightMargin}
10
10
  containerBorderRadius={item?.borderRadius || 0}
11
11
  updateShopFloorDataFn={updateShopFloorDataFn}
12
12
  loadingEndComponentFn={loadingEndComponentFn}
13
13
  key={floorItem.uid}
14
14
  changeScrollTopFn={changeContainerFloorListScrollTop}
15
15
  builtInComponents={builtInComponents}
16
16
  className={
17
17
  style={{
18
18
  netWorkShowType={NetWorkShowType.PART}
19
19
  netWorkDataType={NETWORK_DATA_TYPE.DATA_ERROR}
@@ -12,14 +12,15 @@
12
12
  }
13
13
  .taro_router,
14
14
  .taro_page {
15
- height: auto!important;
16
- max-height: inherit!important;
17
- overflow: auto!important;
15
+ height: auto !important;
16
+ max-height: inherit !important;
17
+ overflow: auto !important;
18
18
  }
19
19
 
20
20
  .taro_router {
21
21
  min-height: 800PX;
22
- padding-bottom: 50PX;
22
+ // TODO: 这里的全局样式,用于本地开发工具装修端。但经打包后会影响浏览端样式,使得多出一段间距。暂时屏蔽处理
23
+ // padding-bottom: 50PX;
23
24
  .taro_page {
24
25
  position: static!important;
25
26
  }
@@ -1 +1 @@
1
- import React, { useEffect, useRef, useState } from 'react'
1
+ import React, { useEffect, useRef, useState } from 'react'
@@ -0,0 +1 @@
1
+ import global from "../../common";
@@ -1 +1 @@
1
- import * as device from './device'
1
+ import * as device from './device'
@@ -1 +1 @@
1
- import { JumpEventReport, JumpEventReportPromise } from '../../jumpEventReport'
1
+ import { JumpEventReport, JumpEventReportPromise } from '../../jumpEventReport'
@@ -1 +1 @@
1
- import { JumpEventReport, JumpEventReportPromise } from '../../jumpEventReport'
1
+ import { JumpEventReport, JumpEventReportPromise } from '../../jumpEventReport'
@@ -1 +1 @@
1
- import { dateFormat, showSuccessToast, showFailToast } from '../../utils'
1
+ import { dateFormat, showSuccessToast, showFailToast,showNormalToast } from '../../utils'
@@ -1 +1 @@
1
- import taroJdBaseInfo from '../common'
1
+ import taroJdBaseInfo from '../common'
2
2
  const result = document.domain.match(/jd\.\w+$/)
3
3
  if(result){
4
4
  document.domain = result[0]
5
5
  }
@@ -1 +1 @@
1
- import ContainerFloorList from '../../modules/ContainerFloorList'
1
+ import ContainerFloorList from '../../modules/ContainerFloorList'
@@ -1,5 +1,6 @@
1
1
 
2
- @import '~normalize.css';
2
+ //@import '~normalize.css';
3
+ @import './normalize';
3
4
  @import './base';
4
5
 
5
6
 
@@ -0,0 +1,261 @@
1
+
2
+
3
+
4
+
5
+
6
+
7
+ html {
8
+ line-height: 1.15;
9
+ -webkit-text-size-adjust: 100%;
10
+ }
11
+
12
+
13
+
14
+
15
+
16
+ body {
17
+ margin: 0;
18
+ }
19
+
20
+
21
+
22
+ main {
23
+ display: block;
24
+ }
25
+
26
+
27
+
28
+ h1 {
29
+ font-size: 2em;
30
+ margin: 0.67em 0;
31
+ }
32
+
33
+
34
+
35
+
36
+
37
+ hr {
38
+ box-sizing: content-box;
39
+ height: 0;
40
+ overflow: visible;
41
+ }
42
+
43
+
44
+
45
+ pre {
46
+ font-family: monospace, monospace;
47
+ font-size: 1em;
48
+ }
49
+
50
+
51
+
52
+
53
+
54
+ a {
55
+ background-color: transparent;
56
+ }
57
+
58
+
59
+
60
+ abbr[title] {
61
+ border-bottom: none;
62
+ text-decoration: underline;
63
+ text-decoration: underline dotted;
64
+ }
65
+
66
+
67
+
68
+ b,
69
+ strong {
70
+ font-weight: bolder;
71
+ }
72
+
73
+
74
+
75
+ code,
76
+ kbd,
77
+ samp {
78
+ font-family: monospace, monospace;
79
+ font-size: 1em;
80
+ }
81
+
82
+
83
+
84
+ small {
85
+ font-size: 80%;
86
+ }
87
+
88
+
89
+
90
+ sub,
91
+ sup {
92
+ font-size: 75%;
93
+ line-height: 0;
94
+ position: relative;
95
+ vertical-align: baseline;
96
+ }
97
+
98
+ sub {
99
+ bottom: -0.25em;
100
+ }
101
+
102
+ sup {
103
+ top: -0.5em;
104
+ }
105
+
106
+
107
+
108
+
109
+
110
+ img {
111
+ border-style: none;
112
+ }
113
+
114
+
115
+
116
+
117
+
118
+ button,
119
+ input,
120
+ optgroup,
121
+ select,
122
+ textarea {
123
+ font-family: inherit;
124
+ font-size: 100%;
125
+ line-height: 1.15;
126
+ margin: 0;
127
+ }
128
+
129
+
130
+
131
+ button,
132
+ input {
133
+ overflow: visible;
134
+ }
135
+
136
+
137
+
138
+ button,
139
+ select {
140
+ text-transform: none;
141
+ }
142
+
143
+
144
+
145
+ button,
146
+ [type="button"],
147
+ [type="reset"],
148
+ [type="submit"] {
149
+ -webkit-appearance: button;
150
+ }
151
+
152
+
153
+
154
+ button::-moz-focus-inner,
155
+ [type="button"]::-moz-focus-inner,
156
+ [type="reset"]::-moz-focus-inner,
157
+ [type="submit"]::-moz-focus-inner {
158
+ border-style: none;
159
+ padding: 0;
160
+ }
161
+
162
+
163
+
164
+ button:-moz-focusring,
165
+ [type="button"]:-moz-focusring,
166
+ [type="reset"]:-moz-focusring,
167
+ [type="submit"]:-moz-focusring {
168
+ outline: 1px dotted ButtonText;
169
+ }
170
+
171
+
172
+
173
+ fieldset {
174
+ padding: 0.35em 0.75em 0.625em;
175
+ }
176
+
177
+
178
+
179
+ legend {
180
+ box-sizing: border-box;
181
+ color: inherit;
182
+ display: table;
183
+ max-width: 100%;
184
+ padding: 0;
185
+ white-space: normal;
186
+ }
187
+
188
+
189
+
190
+ progress {
191
+ vertical-align: baseline;
192
+ }
193
+
194
+
195
+
196
+ textarea {
197
+ overflow: auto;
198
+ }
199
+
200
+
201
+
202
+ [type="checkbox"],
203
+ [type="radio"] {
204
+ box-sizing: border-box;
205
+ padding: 0;
206
+ }
207
+
208
+
209
+
210
+ [type="number"]::-webkit-inner-spin-button,
211
+ [type="number"]::-webkit-outer-spin-button {
212
+ height: auto;
213
+ }
214
+
215
+
216
+
217
+ [type="search"] {
218
+ -webkit-appearance: textfield;
219
+ outline-offset: -2px;
220
+ }
221
+
222
+
223
+
224
+ [type="search"]::-webkit-search-decoration {
225
+ -webkit-appearance: none;
226
+ }
227
+
228
+
229
+
230
+ ::-webkit-file-upload-button {
231
+ -webkit-appearance: button;
232
+ font: inherit;
233
+ }
234
+
235
+
236
+
237
+
238
+
239
+ details {
240
+ display: block;
241
+ }
242
+
243
+
244
+
245
+ summary {
246
+ display: list-item;
247
+ }
248
+
249
+
250
+
251
+
252
+
253
+ template {
254
+ display: none;
255
+ }
256
+
257
+
258
+
259
+ [hidden] {
260
+ display: none;
261
+ }
@@ -1 +1 @@
1
- import Taro from '@tarojs/taro'
1
+ import Taro from '@tarojs/taro'
2
2
  latestFromNativeMsgStorage[TaroEventType.PAGE_SCROLL] = {
3
3
  displayHeight: 1920,
4
4
  offSetY: 0
5
5
  }
6
6
  console.log('>>>>>>>>>>>>>>>>>>> render taroEventSendPageScrollInfo origin time:', Date.now(), 'res:', options)
7
7
  if(options){
8
8
  latestFromNativeMsgStorage[TaroEventType.PAGE_SCROLL] = options
9
9
  }
@@ -1 +1 @@
1
- import {
1
+ import {
2
2
  isApp,
3
3
  isIOS,
4
4
  getAppVersion,
5
5
  version,
6
6
  getUUID,
7
7
  getUrlQuery,
8
8
  assign,
9
9
  isString,
10
10
  isObject,
11
11
  serialize,
12
12
  isAndroid,
13
13
  CHANNEL_TYPE,
14
14
  JDShopViewBusinessPathType,
15
15
  JDShopViewBusinessPathList,
16
16
  SECTION_HOME_TAB_NAME_TYPE,
17
17
  parseQueryUrlString(window.location.href),
18
18
  if (isJdApp) {
19
19
  isIosDevice
20
20
  ? e && e.stopPropagation()
21
21
  : androidDeviceStopNativeScrollEvent(state)
22
22
  }
23
23
  isJdApp &&
24
24
  isAndroidDevice &&
25
25
  window?.JdAndroid &&
26
26
  window?.JdAndroid.requestEvent(state)
27
27
  if (isH5AndJdShopView) {
28
28
  return (
29
29
  CHANNEL_TYPE[currentChannel] ||
30
30
  CHANNEL_TYPE[JDShopViewBusinessPathType.HOME]
31
31
  )
32
32
  }
33
33
  return null
34
34
  isH5 &&
35
35
  urlPathname === '/app/home' &&
36
36
  JDShopViewBusinessPathList.includes(currentChannel)
@@ -1 +1 @@
1
- import Taro from '@tarojs/taro'
2
1
  <span class="d-shop-loading-icon"></span>
3
2
  <p class="d-shop-text">${text}</p>
4
3
  </div>`
4
+ import Taro from '@tarojs/taro'
5
5
  <span class="d-shop-loading-icon"></span>
6
6
  <p class="d-shop-text">${text}</p>
7
7
  </div>`
@@ -1 +1 @@
1
- import {
1
+ import {
@@ -1 +1 @@
1
- import {
1
+ import {
@@ -1 +1 @@
1
- import Taro from '@tarojs/taro'
1
+ import Taro from '@tarojs/taro'
package/package.json CHANGED
@@ -1,89 +1,106 @@
1
1
  {
2
- "name": "@conecli/cone-render",
3
- "version": "0.8.13-beta.5",
4
- "private": false,
5
- "main": "dist/open/index.ts",
6
- "files": [
7
- "dist/"
8
- ],
9
- "description": "cone-render",
10
- "templateInfo": {
11
- "name": "default",
12
- "typescript": true,
13
- "css": "sass"
14
- },
15
- "scripts": {
16
- "build:weapp": "taro build --type weapp",
17
- "build:swan": "taro build --type swan",
18
- "build:alipay": "taro build --type alipay",
19
- "build:tt": "taro build --type tt",
20
- "build:h5": "taro build --type h5",
21
- "build:rn": "taro build --type rn",
22
- "build:qq": "taro build --type qq",
23
- "build:jd": "taro build --type jd",
24
- "build:quickapp": "taro build --type quickapp",
25
- "dev:weapp": "npm run build:weapp -- --watch",
26
- "dev:swan": "npm run build:swan -- --watch",
27
- "dev:alipay": "npm run build:alipay -- --watch",
28
- "dev:tt": "npm run build:tt -- --watch",
29
- "dev:h5": "npm run build:h5 -- --watch",
30
- "dev:rn": "npm run build:rn -- --watch",
31
- "dev:qq": "npm run build:qq -- --watch",
32
- "dev:jd": "npm run build:jd -- --watch",
33
- "dev:quickapp": "npm run build:quickapp -- --watch",
34
- "compressWatch": "gulp compressWatch --gulpfile ./publish/gulpfile.js",
35
- "compress": "gulp compress --gulpfile ./publish/gulpfile.js",
36
- "check": "gulp check --gulpfile ./publish/gulpfile.js"
37
- },
38
- "browserslist": [
39
- "last 3 versions",
40
- "Android >= 4.1",
41
- "ios >= 8"
42
- ],
43
- "keywords": [
44
- "conecli",
45
- "render"
46
- ],
47
- "author": "conecli",
48
- "dependencies": {
49
- "@tarojs/components": "3.4.3",
50
- "@tarojs/plugin-framework-react": "3.4.3",
51
- "@tarojs/react": "3.4.3",
52
- "@tarojs/runtime": "3.4.3",
53
- "@tarojs/taro": "3.4.3",
54
- "art-template": "^4.13.2",
55
- "normalize.css": "^8.0.1",
56
- "raf": "^3.4.1",
57
- "react": "^17.0.0",
58
- "react-content-loader": "^6.2.0",
59
- "react-dom": "^17.0.0",
60
- "react-intersection-observer": "^9.1.0"
61
- },
62
- "devDependencies": {
63
- "@babel/core": "^7.8.0",
64
- "@babel/runtime": "^7.17.9",
65
- "@tarojs/mini-runner": "3.4.3",
66
- "@tarojs/webpack-runner": "3.4.3",
67
- "@types/react": "^17.0.2",
68
- "@types/webpack-env": "^1.13.6",
69
- "@typescript-eslint/eslint-plugin": "^4.15.1",
70
- "@typescript-eslint/parser": "^4.15.1",
71
- "babel-preset-taro": "3.4.3",
72
- "del": "^6.1.1",
73
- "escodegen": "^2.0.0",
74
- "eslint": "^6.8.0",
75
- "eslint-config-taro": "3.4.3",
76
- "eslint-plugin-import": "^2.12.0",
77
- "eslint-plugin-react": "^7.8.2",
78
- "eslint-plugin-react-hooks": "^4.2.0",
79
- "espree": "^9.3.2",
80
- "esprima": "^4.0.1",
81
- "estraverse": "^5.3.0",
82
- "gulp": "^4.0.2",
83
- "gulp-util": "^3.0.8",
84
- "sass": "^1.53.0",
85
- "shelljs": "^0.8.5",
86
- "stylelint": "^14.4.0",
87
- "typescript": "^4.1.0"
88
- }
2
+ "name": "@conecli/cone-render",
3
+ "version": "0.8.15-alpha.0",
4
+ "private": false,
5
+ "files": [
6
+ "dist/"
7
+ ],
8
+ "exports": {
9
+ "./api": "./dist/open/api/index.ts",
10
+ "./components": "./dist/open/components/index.ts",
11
+ "./modules": "./dist/open/modules/index.ts",
12
+ "./_utils/": "./dist/utils/"
13
+ },
14
+ "description": "cone-render",
15
+ "templateInfo": {
16
+ "name": "default",
17
+ "typescript": true,
18
+ "css": "sass"
19
+ },
20
+ "scripts": {
21
+ "build:weapp": "taro build --type weapp",
22
+ "build:swan": "taro build --type swan",
23
+ "build:alipay": "taro build --type alipay",
24
+ "build:tt": "taro build --type tt",
25
+ "build:h5": "taro build --type h5",
26
+ "build:rn": "taro build --type rn",
27
+ "build:qq": "taro build --type qq",
28
+ "build:jd": "taro build --type jd",
29
+ "build:quickapp": "taro build --type quickapp",
30
+ "dev:weapp": "npm run build:weapp -- --watch",
31
+ "dev:swan": "npm run build:swan -- --watch",
32
+ "dev:alipay": "npm run build:alipay -- --watch",
33
+ "dev:tt": "npm run build:tt -- --watch",
34
+ "dev:h5": "npm run build:h5 -- --watch",
35
+ "dev:rn": "npm run build:rn -- --watch",
36
+ "dev:qq": "npm run build:qq -- --watch",
37
+ "dev:jd": "npm run build:jd -- --watch",
38
+ "dev:quickapp": "npm run build:quickapp -- --watch",
39
+ "compressWatch": "gulp compressWatch --gulpfile ./publish/gulpfile.js",
40
+ "compress": "gulp compress --gulpfile ./publish/gulpfile.js",
41
+ "check": "gulp check --gulpfile ./publish/gulpfile.js"
42
+ },
43
+ "browserslist": [
44
+ "last 3 versions",
45
+ "Android >= 4.1",
46
+ "ios >= 8"
47
+ ],
48
+ "keywords": [
49
+ "conecli",
50
+ "render"
51
+ ],
52
+ "author": "conecli",
53
+ "dependencies": {
54
+ "@jmfe/jd-jssdk": "^3.3.1-alpha.0",
55
+ "@tarojs/cli": "^3.5.4",
56
+ "@tarojs/components": "3.5.4",
57
+ "@tarojs/plugin-framework-react": "3.5.4",
58
+ "@tarojs/react": "3.5.4",
59
+ "@tarojs/runtime": "3.5.4",
60
+ "@tarojs/shared": "3.5.4",
61
+ "@tarojs/taro": "3.5.4",
62
+ "@tarojs/taro-h5": "3.5.4",
63
+ "@tarojs/taro-loader": "3.5.4",
64
+ "@tarojs/webpack5-runner": "3.5.4",
65
+ "art-template": "^4.13.2",
66
+ "normalize.css": "^8.0.1",
67
+ "raf": "^3.4.1",
68
+ "react": "^18.2.0",
69
+ "react-content-loader": "^6.2.0",
70
+ "react-dom": "^18.2.0",
71
+ "react-intersection-observer": "^9.1.0",
72
+ "react-refresh": "^0.14.0"
73
+ },
74
+ "devDependencies": {
75
+ "@babel/core": "^7.8.0",
76
+ "@babel/runtime": "^7.17.9",
77
+ "@pmmmwh/react-refresh-webpack-plugin": "^0.5.7",
78
+ "@swc/core": "^1.2.242",
79
+ "@swc/register": "^0.1.10",
80
+ "@types/react": "^18.0.17",
81
+ "@types/webpack-env": "^1.13.6",
82
+ "@typescript-eslint/eslint-plugin": "^5.20.0",
83
+ "@typescript-eslint/parser": "^5.20.0",
84
+ "babel-preset-taro": "3.5.4",
85
+ "del": "^6.1.1",
86
+ "escodegen": "^2.0.0",
87
+ "eslint": "^6.8.0",
88
+ "eslint-config-taro": "3.5.4",
89
+ "eslint-plugin-import": "^2.12.0",
90
+ "eslint-plugin-react": "^7.8.2",
91
+ "eslint-plugin-react-hooks": "^4.2.0",
92
+ "espree": "^9.3.2",
93
+ "esprima": "^4.0.1",
94
+ "estraverse": "^5.3.0",
95
+ "gulp": "^4.0.2",
96
+ "gulp-util": "^3.0.8",
97
+ "html-webpack-plugin": "^5.5.0",
98
+ "mini-css-extract-plugin": "^2.6.1",
99
+ "sass": "^1.53.0",
100
+ "shelljs": "^0.8.5",
101
+ "stylelint": "^14.4.0",
102
+ "terser-webpack-plugin": "^5.3.6",
103
+ "typescript": "^4.1.0",
104
+ "webpack": "5.69.0"
105
+ }
89
106
  }