@conecli/cone-render 0.8.18-beta.1 → 0.8.19-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 (40) hide show
  1. package/dist/api/index.ts +1 -1
  2. package/dist/common/const.ts +1 -1
  3. package/dist/components/ErrorBoundary.tsx +1 -1
  4. package/dist/components/base/CustomVideo/index.tsx +1 -1
  5. package/dist/components/base/InOrOutViewObserver/index.tsx +1 -1
  6. package/dist/components/base/LazyLoadImage/const.ts +1 -1
  7. package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
  8. package/dist/components/base/Price/index.module.scss +9 -0
  9. package/dist/components/base/Price/index.tsx +1 -1
  10. package/dist/components/decorate/EmptyFloorModule/index.tsx +1 -1
  11. package/dist/components/decorate/PlaceHolder/index.tsx +1 -1
  12. package/dist/interface/component.ts +1 -1
  13. package/dist/interface/jumpEventReport.ts +1 -1
  14. package/dist/interface/service.ts +1 -1
  15. package/dist/jumpEventReport/base.ts +1 -1
  16. package/dist/jumpEventReport/const.ts +1 -1
  17. package/dist/jumpEventReport/index.ts +1 -1
  18. package/dist/jumpEventReport/index.weapp.ts +1 -1
  19. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  20. package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
  21. package/dist/jumpEventReport/web.base.ts +1 -1
  22. package/dist/jumpEventReport/web.jd.ts +1 -1
  23. package/dist/jumpEventReport/web.wxapp.ts +1 -1
  24. package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
  25. package/dist/modules/DecorateContainerFloorList/index.tsx +1 -1
  26. package/dist/open/api/index.ts +1 -1
  27. package/dist/open/api/jump.ts +1 -1
  28. package/dist/sass/app.h5.scss +7 -139
  29. package/dist/sass/app.scss +8 -0
  30. package/dist/sass/base.scss +0 -9
  31. package/dist/utils/utils.ts +1 -1
  32. package/package.json +1 -1
  33. package/dist/components/base/InOrOutViewObserver/index.module.scss +0 -0
  34. package/dist/open/api/shopMember.ts +0 -1
  35. package/dist/service/http/const.ts +0 -1
  36. package/dist/service/http/http.jd.ts +0 -1
  37. package/dist/service/http/http.ts +0 -1
  38. package/dist/service/http/httpInterceptors.jd.ts +0 -1
  39. package/dist/service/http/httpInterceptors.ts +0 -1
  40. package/dist/service/http/index.ts +0 -1
@@ -1 +1 @@
1
- import React, { useCallback, useEffect, useRef, useState } from 'react'
2
1
  const [componentShowState, setComponentShowState] = useState(false)
3
2
  const componentLazyRef = useRef<HTMLElement | null>(null)
4
3
  const componentShowStateRef = useRef(false)
5
4
  useEffect(() => {
6
5
  const latestRes = latestFromNativeMsgStorage[TaroEventType.PAGE_SCROLL] || {}
7
6
  !componentShowStateRef.current && dealPageScrollInfo(latestRes)
8
7
  Taro.eventCenter.on(TaroEventType.PAGE_SCROLL, (res) => {
9
8
  !componentShowStateRef.current && dealPageScrollInfo(res)
10
9
  })
11
10
 
12
11
 
13
12
  <View
14
13
  ref={componentLazyRef}
15
14
  className={classNames(
16
15
  imageStyle['d-app-lazy-image'],
17
16
  {
18
17
  [imageStyle['d-lazy-sku-image']]: isSkuImage,
19
18
  },
20
19
  {
21
20
  [imageStyle['d-hide-image-error']]: imageErrState,
22
21
  },
23
22
  {
24
23
  [imageStyle['d-load-completed']]: loadSuccess,
25
24
  },
26
25
  {
27
26
  'd-imag-rendering-crisp-edges':
28
27
  !taroJdBaseInfo.info.pageInfo.isVipShop &&
29
28
  imagRenderingSet,
30
29
  },
31
30
  'J_html5ImageBg',
32
31
  className,
33
32
  )}
34
33
  style={{
35
34
  ...style,
36
35
  ...changeStyleIncludeWidthAndHeightAndBgColor(),
37
36
  >
38
37
  {(componentShowState || lazyLoad === false) && <img
39
38
  src={getQualityImage(
40
39
  imgSrc,
41
40
  taroJdBaseInfo.info.pageInfo.isVipShop
42
41
  ? NetWorkTypeQuality['perfect']
43
42
  : NetWorkTypeQuality[getNetWorkType],
44
43
  )}
45
44
  onLoad={imageLoad.bind(this, imgSrc)}
46
45
  onError={imageError}
47
46
  />}
48
47
  </View>
49
48
  ) : (
50
49
  <Image
51
50
  style={{
52
51
  ...style,
53
52
  ...changeStyleIncludeWidthAndHeightAndBgColor(),
54
53
  }}
55
54
  className={classNames(
56
55
  imageStyle['d-lazy-image'],
57
56
  {
58
57
  [imageStyle['d-lazy-sku-image']]: isSkuImage,
59
58
  },
60
59
  {
61
60
  [imageStyle['d-hide-image-error']]: imageErrState,
62
61
  },
63
62
  {
64
63
  [imageStyle['d-load-completed']]: loadSuccess,
65
64
  },
66
65
  {
67
66
  'd-imag-rendering-crisp-edges': imagRenderingSet,
68
67
  },
69
68
  className,
70
69
  )}
71
70
  src={getQualityImage(
72
71
  imgSrc,
73
72
  NetWorkTypeQuality[getNetWorkType],
74
73
  )}
75
74
  lazyLoad={lazyLoad}
76
75
  onError={imageError}
77
76
  onLoad={imageLoad.bind(this, imgSrc)}
78
77
  {...otherOption}
79
78
  />
80
79
  )
80
+ import React, { useCallback, useEffect, useRef, useState } from 'react'
81
81
  const [componentShowState, setComponentShowState] = useState(false)
82
82
  const componentLazyRef = useRef<HTMLElement | null>(null)
83
83
  const componentShowStateRef = useRef(false)
84
84
  useEffect(() => {
85
85
  const latestRes = latestFromNativeMsgStorage[TaroEventType.PAGE_SCROLL] || {}
86
86
  !componentShowStateRef.current && dealPageScrollInfo(latestRes)
87
87
  Taro.eventCenter.on(TaroEventType.PAGE_SCROLL, (res) => {
88
88
  !componentShowStateRef.current && dealPageScrollInfo(res)
89
89
  })
90
90
 
91
91
  <View
92
92
  ref={componentLazyRef}
93
93
  className={classNames(
94
94
  imageStyle['d-app-lazy-image'],
95
95
  {
96
96
  [imageStyle['d-lazy-sku-image']]: isSkuImage,
97
97
  },
98
98
  {
99
99
  [imageStyle['d-hide-image-error']]: imageErrState,
100
100
  },
101
101
  {
102
102
  [imageStyle['d-load-completed']]: loadSuccess,
103
103
  },
104
104
  {
105
105
  'd-imag-rendering-crisp-edges':
106
106
  !taroJdBaseInfo.info.pageInfo.isVipShop &&
107
107
  imagRenderingSet,
108
108
  },
109
109
  'J_html5ImageBg',
110
110
  className,
111
111
  )}
112
112
  style={{
113
113
  ...style,
114
114
  ...changeStyleIncludeWidthAndHeightAndBgColor(),
115
115
  >
116
116
  {(componentShowState || lazyLoad === false) && <img
117
117
  src={getQualityImage(
118
118
  imgSrc,
119
119
  taroJdBaseInfo.info.pageInfo.isVipShop
120
120
  ? NetWorkTypeQuality['perfect']
121
121
  : NetWorkTypeQuality[getNetWorkType],
122
122
  )}
123
123
  onLoad={imageLoad.bind(this, imgSrc)}
124
124
  onError={imageError}
125
125
  />}
126
126
  </View>
127
127
  ) : (
128
128
  <Image
129
129
  style={{
130
130
  ...style,
131
131
  ...changeStyleIncludeWidthAndHeightAndBgColor(),
132
132
  }}
133
133
  className={classNames(
134
134
  imageStyle['d-lazy-image'],
135
135
  {
136
136
  [imageStyle['d-lazy-sku-image']]: isSkuImage,
137
137
  },
138
138
  {
139
139
  [imageStyle['d-hide-image-error']]: imageErrState,
140
140
  },
141
141
  {
142
142
  [imageStyle['d-load-completed']]: loadSuccess,
143
143
  },
144
144
  {
145
145
  'd-imag-rendering-crisp-edges': imagRenderingSet,
146
146
  },
147
147
  className,
148
148
  )}
149
149
  src={getQualityImage(
150
150
  imgSrc,
151
151
  NetWorkTypeQuality[getNetWorkType],
152
152
  )}
153
153
  lazyLoad={lazyLoad}
154
154
  onError={imageError}
155
155
  onLoad={imageLoad.bind(this, imgSrc)}
156
156
  {...otherOption}
157
157
  />
158
158
  )
@@ -52,6 +52,15 @@
52
52
  background-size: contain;
53
53
  }
54
54
  }
55
+ &.d-price-label{
56
+ &:after{
57
+ // 价格后面追加显示文案例如“到手价”的默认样式
58
+ content: attr(data-after);
59
+ font-size: 20px;
60
+ color: #FFFFFF;
61
+ margin-left: 8px;
62
+ }
63
+ }
55
64
  &.d-plus-price {
56
65
  .int-txt,
57
66
  .sym-sub,
@@ -1 +1 @@
1
- import React from 'react'
1
+ import React from 'react'
2
2
  priceLabelText: "到手价"
@@ -1 +1 @@
1
- import { View, Text } from '@tarojs/components'
1
+ import { View, Text } from '@tarojs/components'
@@ -1 +1 @@
1
- import { View, Text } from '@tarojs/components'
1
+ import { View, Text } from '@tarojs/components'
@@ -1 +1 @@
1
- import React from 'react'
2
1
  containerIndex?: number
3
2
  containerData?: any
4
3
  shopTotalInfo?: any
5
4
  selectContainerFn?: Function
6
5
  selectContainerId?: string
7
6
  placeHolderPreContainerId?: string
8
7
  children?: any
9
8
  style?: {
10
9
  [key: string]: any
11
10
  };
12
11
  layoutLeftRightMargin?: number
13
12
  }
13
+ import React from 'react'
14
14
  customErrorIsvFloorModule?: React.ReactElement | undefined
15
15
  containerIndex?: number
16
16
  containerData?: any
17
17
  shopTotalInfo?: any
18
18
  selectContainerFn?: Function
19
19
  selectContainerId?: string
20
20
  placeHolderPreContainerId?: string
21
21
  children?: any
22
22
  style?: {
23
23
  [key: string]: any
24
24
  };
25
25
  layoutLeftRightMargin?: number
26
26
  }
@@ -1 +1 @@
1
- export declare namespace JumpEventReportInterFace {
2
1
  export interface ShopIdsInfo {
3
2
  shopId?: number | string
4
3
  venderId?: number | string
5
4
  logEventInfo?: object
6
5
  type?: string
7
6
  }
8
7
  export interface RouterInfo {
9
8
  params: any
10
9
  pageParamStr?: string
11
10
  [key: string]: any
12
11
  }
13
12
  export interface JumpMiniPath {
14
13
  shop: string
15
14
  shopx: string
16
15
  detail: string
17
16
  searchCoupon: string
18
17
  h5: string
19
18
  jingGouHome: string
20
19
  shopFans: string
21
20
  shopLight: string
22
21
  couponSearch: string
23
22
  }
24
23
  export interface jumpWebUrl {
25
24
  mshop: string
26
25
  pages: string
27
26
  couponSearch: string
28
27
  shopSecondActivity: string
29
28
  shopLight: string
30
29
  detail: string
31
30
  mobileHome: string
32
31
  rank: string
33
32
  wqShopMember: string
34
33
  wqShopDetail: string
35
34
  wqShopSearch: string
36
35
  shopMember: string
37
36
  shopMemberPointDetail: string
38
37
  shopMemberBenefit: string
39
38
  shopMemberRule: string
40
39
  shopMemberCloseAccount: string
41
40
  shopMemberPointExchange: string
42
41
  shopMemberBonusPurchase: string
43
42
  shopMemberGood: string
44
43
  beanDetail: string
45
44
  totalPromotion: string
46
45
  mLive: string
47
46
  shopHome: string
48
47
  shopIntroduce: string
49
48
  shopSearch: string
50
49
  shopLottery: string
51
50
  shopCoupon: string
52
51
  shopWares: string
53
52
  shopFastShopping: string
54
53
  shopSpeciSeckill: string
55
54
  shopVideos: string
56
55
  shopUseShareOrderUgcContent: string
57
56
  dongDongChat: string
58
57
  samCenter: string
59
58
  samCard: string
60
59
  }
61
60
  export interface EventReportConfig {
62
61
  routerInfo: RouterInfo
63
62
  nativeEvent: any
64
63
  }
65
64
  export interface OptEventLogParams {
66
65
  eventId?: string
67
66
  eventParam?: string | object
68
67
  pTag?: string
69
68
  jsonParam?: {
70
69
  [key: string]: any
71
70
  }
72
71
  skuId?: string | number
73
72
  eventLevel?: string
74
73
  exposureState?: boolean
75
74
  otherParams?: object
76
75
  }
77
76
 
78
77
  export interface JumpH5ReportConfig {
79
78
  shopId?: number | string
80
79
  venderId?: number | string
81
80
  sourceValue?: string
82
81
  sourceType?: string
83
82
  }
84
83
  export interface JumpEventReportInit extends EventReportConfig {
85
84
  getConfig(opt): EventReportConfig
86
85
  updateInfo(routerInfo, logPname): void
87
86
  }
88
87
  export interface CouponUrlParams {
89
88
  batchId: number
90
89
  bindType: number
91
90
  startTime?: number
92
91
  endTime?: number
93
92
  quangoufrom?: number
94
93
  sceneId?: number
95
94
  }
96
95
  export interface JdMiniJumpParams {
97
96
  param: string | object
98
97
  sourceValue: string
99
98
  sourceType: string
100
99
  des?: any
101
100
  logEventInfo?: object
102
101
  }
103
102
  export interface LinkMiniParams {
104
103
  param?: {
105
104
  pageType?: string
106
105
  }
107
106
  appId?: string | number
108
107
  path?: string
109
108
  }
110
109
  export interface JdJumpWxappReportConfig {
111
110
  wxApiVersion: string
112
111
  wxApiUrl: string
113
112
  wqReportUrl: string
114
113
  }
114
+ export declare namespace JumpEventReportInterFace {
@@ -1 +1 @@
1
- import { ComponentInterFace } from './component'
2
1
  mobileLogin: string
2
+ import { ComponentInterFace } from './component'
3
3
  mobileLogin: string