@conecli/cone-render 0.8.13-beta.6 → 0.8.15-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) 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/base/CommonFloorHead/index.tsx +1 -1
  9. package/dist/components/base/CountDown/index.module.scss +4 -4
  10. package/dist/components/base/CountDown/index.tsx +1 -1
  11. package/dist/components/base/CustomImageLoadRealInfo/index.tsx +1 -1
  12. package/dist/components/base/CustomScrollView/index.tsx +1 -1
  13. package/dist/components/base/Dialog/index.tsx +1 -1
  14. package/dist/components/base/Exposure/index.h5.tsx +1 -1
  15. package/dist/components/base/Exposure/index.tsx +1 -1
  16. package/dist/components/base/LazyLayoutLoad/index.module.scss +2 -1
  17. package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
  18. package/dist/components/base/LazyLayoutLoad/index.weapp.tsx +1 -1
  19. package/dist/components/base/LazyLoadImage/const.ts +1 -1
  20. package/dist/components/base/LazyLoadImage/index.h5.module.scss +1 -0
  21. package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
  22. package/dist/components/base/LazyLoadImage/index.module.scss +1 -0
  23. package/dist/components/base/LazyLoadImage/index.tsx +1 -1
  24. package/dist/components/base/NetworkDataError/index.module.scss +2 -2
  25. package/dist/components/base/NetworkDataError/index.tsx +1 -1
  26. package/dist/components/base/Price/index.module.scss +18 -30
  27. package/dist/components/base/Price/index.tsx +1 -1
  28. package/dist/components/floorItem.tsx +1 -1
  29. package/dist/components/system/Banner/index.module.scss +39 -1
  30. package/dist/components/system/Banner/index.tsx +1 -1
  31. package/dist/components/system/PictureHotSpot/index.module.scss +4 -0
  32. package/dist/config/env.ts +1 -1
  33. package/dist/customHooks/useDocumentVisibilitychange.ts +1 -1
  34. package/dist/interface/common.ts +1 -1
  35. package/dist/interface/component.ts +1 -1
  36. package/dist/interface/jumpEventReport.ts +1 -1
  37. package/dist/interface/service.ts +1 -1
  38. package/dist/interface/utils.ts +1 -1
  39. package/dist/jumpEventReport/base.ts +1 -1
  40. package/dist/jumpEventReport/createReportFloorData.ts +1 -1
  41. package/dist/jumpEventReport/index.h5.ts +1 -1
  42. package/dist/jumpEventReport/index.ts +1 -1
  43. package/dist/jumpEventReport/index.weapp.ts +1 -1
  44. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  45. package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
  46. package/dist/jumpEventReport/jumpUrlConfig/index.ts +1 -1
  47. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  48. package/dist/jumpEventReport/web.base.ts +1 -1
  49. package/dist/jumpEventReport/web.jd.ts +1 -1
  50. package/dist/jumpEventReport/web.wxapp.ts +1 -1
  51. package/dist/modules/ContainerFloorList/index.tsx +1 -1
  52. package/dist/modules/DecorateContainerFloorList/index.tsx +1 -1
  53. package/dist/open/api/global.ts +1 -0
  54. package/dist/open/api/index.ts +1 -1
  55. package/dist/open/api/jump.ts +1 -1
  56. package/dist/open/api/track.ts +1 -1
  57. package/dist/open/api/util.ts +1 -1
  58. package/dist/open/index.ts +1 -1
  59. package/dist/sass/app.h5.scss +2 -1
  60. package/dist/sass/normalize.scss +261 -0
  61. package/dist/utils/connectNativeJsBridge.ts +1 -1
  62. package/dist/utils/h5Utils.ts +1 -1
  63. package/dist/utils/index.h5.ts +1 -1
  64. package/dist/utils/index.ts +1 -1
  65. package/dist/utils/index.weapp.ts +1 -1
  66. package/dist/utils/utils.ts +1 -1
  67. package/package.json +99 -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'
@@ -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'
@@ -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, useState} from 'react'
2
2
  const {
3
3
  src,
4
4
  lazyLoad,
5
5
  width,
6
6
  height,
7
7
  className,
8
8
  isSkuImage,
9
9
  hideErrorImage,
10
10
  style,
11
11
  backgroundColor,
12
12
  errorSrc,
13
13
  onLoad,
14
14
  onError,
15
15
  ...otherOption
16
16
  } = props
17
17
  getNetWorkType === NetWorkTypeQuality.default &&
18
18
  (getNetWorkType = taroJdBaseInfo.info.sysInfo.netWorkType)
19
19
  const [loadSuccess, setLoadSuccess] = useState(false)
20
20
  const [imageErrState, setImageErrState] = useState(false)
21
21
  const [imgSrc, setImgSrc] = useState(src)
22
22
  const imageError = useCallback(
23
23
  (e) => {
24
24
  console.log('图片加载错误', e)
25
25
  errorSrc && setImgSrc(errorSrc)
26
26
  hideErrorImage && setImageErrState(true)
27
27
  typeof onError === 'function' && onError(e, src, props)
28
28
  },
29
29
  [src],
30
30
  )
31
31
 
32
32
  const imageLoad = useCallback(
@@ -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'
2
2
  const {
3
3
  src,
4
4
  lazyLoad,
5
5
  width,
6
6
  height,
7
7
  className,
8
8
  isSkuImage,
9
9
  hideErrorImage,
10
10
  style,
11
11
  backgroundColor,
12
12
  errorSrc,
13
13
  onLoad,
14
14
  onError,
15
15
  ...otherOption
16
16
  } = props
17
17
  getNetWorkType === NetWorkTypeQuality.default &&
18
18
  (getNetWorkType = taroJdBaseInfo.info.sysInfo.netWorkType)
19
19
  const [loadSuccess, setLoadSuccess] = useState(false)
20
20
  const [imgSrc, setImgSrc] = useState(src)
21
21
  const [imageErrState, setImageErrState] = useState(false)
22
22
  const imageError = useCallback(
23
23
  (e) => {
24
24
  console.log('图片加载错误', e)
25
25
  errorSrc && setImgSrc(errorSrc)
26
26
  hideErrorImage && setImageErrState(true)
27
27
  typeof onError === 'function' && onError(e, src, props)
28
28
  },
29
29
  [src],
30
30
  )
31
31
 
32
32
  const imageLoad = useCallback(
33
33
  (event) => {
34
34
  setLoadSuccess(true)
35
35
  typeof onLoad === 'function' && onLoad(event, src, props)
36
36
  },
37
37
  [src],
38
38
  )
39
39
 
40
40
  const changeStyleIncludeWidthAndHeightAndBgColor = () => {
41
41
  const changeStyle = {}
42
42
  width && (changeStyle['width'] = width)
43
43
  height && (changeStyle['height'] = height)
44
44
  backgroundColor && (changeStyle['backgroundColor'] = backgroundColor)
45
45
  return changeStyle
46
46
  }
47
47
  return (
48
48
  <Image
49
49
  style={{
50
50
  ...style,
51
51
  ...changeStyleIncludeWidthAndHeightAndBgColor(),
52
52
  }}
53
53
  className={classNames(
54
54
  imageStyle['d-lazy-image'],
55
55
  {
56
56
  [imageStyle['d-lazy-sku-image']]: isSkuImage,
57
57
  },
58
58
  {
59
59
  [imageStyle['d-hide-image-error']]: imageErrState,
60
60
  },
61
61
  {
62
62
  },
63
63
  'd-imag-rendering-crisp-edges',
64
64
  className,
65
65
  )}
66
66
  src={getQualityImage(imgSrc, NetWorkTypeQuality[getNetWorkType])}
67
67
  lazyLoad={lazyLoad}
68
68
  onError={imageError}
69
69
  onLoad={imageLoad}
70
70
  {...otherOption}
71
71
  />
72
72
  )
73
73
  lazyLoad: true,
74
74
  isSkuImage: false,
75
75
  hideErrorImage: false,
76
76
  src: null,
77
77
  style: null,
78
78
  width: null,
79
79
  height: null,
80
80
  backgroundColor: null,
81
81
  className: null,
82
82
  errorSrc: null,
83
83
  onLoad: null,
84
84
  onError: null,
@@ -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
- 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
- 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 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}
@@ -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'
@@ -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'
@@ -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,101 @@
1
1
  {
2
- "name": "@conecli/cone-render",
3
- "version": "0.8.13-beta.6",
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-beta.0",
4
+ "private": false,
5
+ "main": "dist/open/index.ts",
6
+ "files": [
7
+ "dist/"
8
+ ],
9
+ "exports": {
10
+ ".": "./dist/open/index.ts",
11
+ "./api": "./dist/open/api/index.ts",
12
+ "./components": "./dist/open/components/index.ts",
13
+ "./modules": "./dist/open/modules/index.ts"
14
+ },
15
+ "description": "cone-render",
16
+ "templateInfo": {
17
+ "name": "default",
18
+ "typescript": true,
19
+ "css": "sass"
20
+ },
21
+ "scripts": {
22
+ "build:weapp": "taro build --type weapp",
23
+ "build:swan": "taro build --type swan",
24
+ "build:alipay": "taro build --type alipay",
25
+ "build:tt": "taro build --type tt",
26
+ "build:h5": "taro build --type h5",
27
+ "build:rn": "taro build --type rn",
28
+ "build:qq": "taro build --type qq",
29
+ "build:jd": "taro build --type jd",
30
+ "build:quickapp": "taro build --type quickapp",
31
+ "dev:weapp": "npm run build:weapp -- --watch",
32
+ "dev:swan": "npm run build:swan -- --watch",
33
+ "dev:alipay": "npm run build:alipay -- --watch",
34
+ "dev:tt": "npm run build:tt -- --watch",
35
+ "dev:h5": "npm run build:h5 -- --watch",
36
+ "dev:rn": "npm run build:rn -- --watch",
37
+ "dev:qq": "npm run build:qq -- --watch",
38
+ "dev:jd": "npm run build:jd -- --watch",
39
+ "dev:quickapp": "npm run build:quickapp -- --watch",
40
+ "compressWatch": "gulp compressWatch --gulpfile ./publish/gulpfile.js",
41
+ "compress": "gulp compress --gulpfile ./publish/gulpfile.js",
42
+ "check": "gulp check --gulpfile ./publish/gulpfile.js"
43
+ },
44
+ "browserslist": [
45
+ "last 3 versions",
46
+ "Android >= 4.1",
47
+ "ios >= 8"
48
+ ],
49
+ "keywords": [
50
+ "conecli",
51
+ "render"
52
+ ],
53
+ "author": "conecli",
54
+ "dependencies": {
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-refresh": "^0.14.0",
72
+ "react-intersection-observer": "^9.1.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
+ "@types/react": "^18.0.17",
79
+ "@types/webpack-env": "^1.13.6",
80
+ "@typescript-eslint/eslint-plugin": "^5.20.0",
81
+ "@typescript-eslint/parser": "^5.20.0",
82
+ "babel-preset-taro": "3.5.4",
83
+ "del": "^6.1.1",
84
+ "escodegen": "^2.0.0",
85
+ "eslint": "^6.8.0",
86
+ "eslint-config-taro": "3.5.4",
87
+ "eslint-plugin-import": "^2.12.0",
88
+ "eslint-plugin-react": "^7.8.2",
89
+ "eslint-plugin-react-hooks": "^4.2.0",
90
+ "espree": "^9.3.2",
91
+ "esprima": "^4.0.1",
92
+ "estraverse": "^5.3.0",
93
+ "gulp": "^4.0.2",
94
+ "gulp-util": "^3.0.8",
95
+ "sass": "^1.53.0",
96
+ "shelljs": "^0.8.5",
97
+ "stylelint": "^14.4.0",
98
+ "typescript": "^4.1.0",
99
+ "webpack": "5.69.0"
100
+ }
89
101
  }