@conecli/cone-render 0.10.1-shop3.11 → 0.10.1-shop3.110

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 (115) hide show
  1. package/README.md +1 -1
  2. package/dist/api/index.ts +1 -1
  3. package/dist/common/accessibility.h5.ts +1 -0
  4. package/dist/common/accessibility.ts +1 -0
  5. package/dist/common/const.ts +1 -1
  6. package/dist/common/index.h5.ts +1 -1
  7. package/dist/common/index.jd.ts +1 -1
  8. package/dist/common/index.ts +1 -1
  9. package/dist/common/index.weapp.ts +1 -1
  10. package/dist/common/jdplayerSdk.weapp.tsx +1 -0
  11. package/dist/common/jssdk.ts +1 -1
  12. package/dist/common/jssdk.weapp.ts +1 -0
  13. package/dist/common/pageType.ts +1 -1
  14. package/dist/common/token/index.h5.ts +1 -1
  15. package/dist/common/token/token.jd.ts +1 -1
  16. package/dist/common/wxappApi.ascf.ts +1 -0
  17. package/dist/common/wxappApi.ts +1 -1
  18. package/dist/components/ErrorBoundary.tsx +1 -1
  19. package/dist/components/base/CommonFloorHead/index.tsx +1 -1
  20. package/dist/components/base/CountDown/index.tsx +1 -1
  21. package/dist/components/base/CustomScrollView/index.tsx +1 -1
  22. package/dist/components/base/CustomVideo/index.tsx +1 -1
  23. package/dist/components/base/CustomVideo/index.weapp.tsx +1 -0
  24. package/dist/components/base/ExposureSmart/index.h5.tsx +1 -1
  25. package/dist/components/base/ExposureSmart/index.tsx +1 -1
  26. package/dist/components/base/ExposureSmart/reporter.tsx +1 -1
  27. package/dist/components/base/InOrOutViewObserver/index.weapp.tsx +1 -0
  28. package/dist/components/base/ItemViewExposureSmart/index.tsx +1 -1
  29. package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
  30. package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
  31. package/dist/components/base/MobileCommonHeader/index.tsx +1 -1
  32. package/dist/components/base/MobileCommonHeader/index.weapp.tsx +1 -0
  33. package/dist/components/base/NetworkDataError/const.ts +1 -1
  34. package/dist/components/base/NetworkDataError/index.module.scss +118 -72
  35. package/dist/components/base/NetworkDataError/index.tsx +1 -1
  36. package/dist/components/base/Price/Base/index.module.scss +12 -0
  37. package/dist/components/base/Price/Base/index.tsx +1 -1
  38. package/dist/components/base/Price/Double/index.module.scss +25 -1
  39. package/dist/components/base/Price/Double/index.tsx +1 -1
  40. package/dist/components/base/ShopLeGaoTag/index.h5.module.scss +35 -0
  41. package/dist/components/base/ShopLeGaoTag/index.h5.tsx +1 -0
  42. package/dist/components/base/ShopLeGaoTag/index.module.scss +33 -0
  43. package/dist/components/base/ShopLeGaoTag/index.tsx +1 -0
  44. package/dist/components/debug/DebugLayout/index.module.scss +2 -2
  45. package/dist/components/floorItem.tsx +1 -1
  46. package/dist/components/isv/Floor/index.tsx +1 -1
  47. package/dist/components/remoteFloorItem.tsx +1 -1
  48. package/dist/config/env.ts +1 -1
  49. package/dist/interface/common.ts +1 -1
  50. package/dist/interface/component.ts +1 -1
  51. package/dist/interface/jumpEventReport.ts +1 -1
  52. package/dist/interface/service.ts +1 -1
  53. package/dist/jumpEventReport/base.ts +1 -1
  54. package/dist/jumpEventReport/const.ts +1 -1
  55. package/dist/jumpEventReport/createReportFloorData.ts +1 -1
  56. package/dist/jumpEventReport/index.h5.ts +1 -1
  57. package/dist/jumpEventReport/index.jd.ts +1 -1
  58. package/dist/jumpEventReport/index.weapp.ts +1 -1
  59. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  60. package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
  61. package/dist/jumpEventReport/logEventConfig.h5.ts +1 -0
  62. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  63. package/dist/jumpEventReport/web/report.ts +1 -1
  64. package/dist/jumpEventReport/web.base.ts +1 -1
  65. package/dist/jumpEventReport/web.jd.ts +1 -1
  66. package/dist/jumpEventReport/web.pc.ts +1 -1
  67. package/dist/jumpEventReport/web.tjm.ts +1 -1
  68. package/dist/jumpEventReport/web.wxapp.ts +1 -1
  69. package/dist/language/en_US.json +395 -0
  70. package/dist/language/zh_CN.json +395 -0
  71. package/dist/language/zh_HK.json +395 -0
  72. package/dist/libs/openShopBridge.js +161 -0
  73. package/dist/libs/openShopBridge.min.js +1 -0
  74. package/dist/libs/taroAppReport.js +2 -2
  75. package/dist/modules/ContainerFloorList/index.h5.module.scss +16 -2
  76. package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
  77. package/dist/modules/ContainerFloorList/index.tsx +1 -1
  78. package/dist/modules/DecorateContainerFloorList/index.weapp.tsx +1 -0
  79. package/dist/open/api/environment.ts +1 -1
  80. package/dist/open/api/shopMember.ts +1 -1
  81. package/dist/open/api/shopMember.weapp.ts +1 -0
  82. package/dist/open/api/track.ts +1 -1
  83. package/dist/open/api/util.ts +1 -1
  84. package/dist/open/components/index.ts +1 -1
  85. package/dist/open/index.ts +1 -1
  86. package/dist/sass/app.h5.scss +19 -2
  87. package/dist/sass/base.scss +8 -4
  88. package/dist/service/fetchGateway.ts +1 -1
  89. package/dist/service/fetchGateway.weapp.ts +1 -1
  90. package/dist/service/fetchJsonp.weapp.ts +1 -0
  91. package/dist/service/http/const.ts +1 -1
  92. package/dist/service/http/h5Http.ts +1 -1
  93. package/dist/service/http/httpInterceptors.weapp.ts +1 -0
  94. package/dist/service/requestServer.h5.ts +1 -1
  95. package/dist/service/requestServer.ts +1 -1
  96. package/dist/service/requestServer.weapp.ts +1 -1
  97. package/dist/utils/connectNativeJsBridge.ts +1 -1
  98. package/dist/utils/h5Utils.ts +1 -1
  99. package/dist/utils/harmonyCallRouter.h5.ts +1 -0
  100. package/dist/utils/harmonyCallRouter.ts +0 -0
  101. package/dist/utils/index.h5.ts +1 -1
  102. package/dist/utils/index.ts +1 -1
  103. package/dist/utils/index.weapp.ts +1 -1
  104. package/dist/utils/jumpExtMapUtil.ts +1 -0
  105. package/dist/utils/jumpExtMapUtil.weapp.ts +1 -0
  106. package/dist/utils/log.ts +1 -0
  107. package/dist/utils/{sColor.js → sColor.ts} +1 -1
  108. package/dist/utils/sColor.weapp.ts +1 -0
  109. package/dist/utils/utils.ts +1 -1
  110. package/dist/wxapp/common/address_api/address_api_v2.js +1 -0
  111. package/dist/wxapp/common/user_info.js +1 -1
  112. package/package.json +165 -141
  113. package/dist/jumpEventReport/web/wqshop.report.ts +0 -1
  114. package/dist/utils/priceUtils.js +0 -1
  115. /package/dist/utils/{jumpExtMapUtil.js → jumpExtMapUtil.h5.ts} +0 -0
@@ -1,10 +1,17 @@
1
1
 
2
2
  :global {
3
3
  .d-mini-price {
4
+ --after-ele-color: '';
4
5
  position: relative;
5
6
  color: #f23030;
6
7
  display: inline-block;
7
8
  font-family: 'JDZhengHT-Regular';
9
+ &.d-font-v2 {
10
+ font-family: 'JDZhengHeiV2-Regular';
11
+ }
12
+ &.d-font-v2-bold {
13
+ font-family: 'JDZhengHeiV2-Bold';
14
+ }
8
15
 
9
16
  &-sym {
10
17
  font-size: 22px;
@@ -61,6 +68,11 @@
61
68
  margin-left: 8px;
62
69
  }
63
70
  }
71
+ &.d-price-text-clor {
72
+ &:after {
73
+ color: var(--after-ele-color) !important;
74
+ }
75
+ }
64
76
  &.d-plus-price {
65
77
  .int-txt,
66
78
  .sym-sub,
@@ -1 +1 @@
1
- import React from 'react'
2
1
  if(/^\d+(\.\d+)?[eE][+-]?\d+$/.test(value)){
3
2
  sgmCustomReport({
4
3
  code: getSgmCustomCode(`${SgmCustomCode.PRICE_RENDER}_basePrice`),
5
4
  msg: {
6
5
  price: value,
7
6
  originalPrice: initValue,
8
7
  msg: "当前价格为科学计数数据,上报关注该价格"
9
8
  },
10
9
  })
11
10
  }
12
11
  if(value === "NaN"){
13
12
  sgmCustomReport({
14
13
  code: getSgmCustomCode(`${SgmCustomCode.PRICE_RENDER}_basePrice`),
15
14
  msg: {
16
15
  price: value,
17
16
  originalPrice: initValue,
18
17
  msg: "价格转换异常,兜底展示暂无报价"
19
18
  },
20
19
  })
21
20
  value = "暂无报价"
22
21
  }
23
22
  priceLabelText: "到手价"
23
+ import React, { useEffect, useRef } from 'react';
24
24
  let value = `${initValue}`;
25
25
  if (!cnPriceTextList.includes(value)) {
26
26
  if (value && !/^[0123456789-]*$/.test(value.substring(0, 1))) {
27
27
  symbol = value.substring(0, 1);
28
28
  value = value.substring(1);
29
29
  }
30
30
  if (/^\d+(\.\d+)?[eE][+-]?\d+$/.test(value)) {
31
31
  draBusinessCustomReport({
32
32
  eventName: 'business',
33
33
  errorName: getSgmCustomCode(`${SgmCustomCode.PRICE_RENDER}_basePrice`),
34
34
  errorMessage: '当前价格为科学计数数据,上报关注该价格',
35
35
  extraData: JSON.stringify({
36
36
  price: value,
37
37
  originalPrice: initValue,
38
38
  }),
39
39
  });
40
40
  }
41
41
  if (!decToIntegerState) {
42
42
  value = parseFloat(value).toFixed(decLength);
43
43
  } else {
44
44
  if (value.indexOf('.') !== -1) {
45
45
  value = parseFloat(value).toFixed(decLength);
46
46
  value = `${value}`.replace(/0+$/, '');
47
47
  }
48
48
  }
49
49
  if (value === 'NaN') {
50
50
  draBusinessCustomReport({
51
51
  eventName: 'business',
52
52
  errorName: getSgmCustomCode(`${SgmCustomCode.PRICE_RENDER}_basePrice`),
53
53
  errorMessage: '价格转换异常,兜底展示暂无报价',
54
54
  extraData: JSON.stringify({
55
55
  price: value,
56
56
  originalPrice: initValue,
57
57
  }),
58
58
  });
59
59
  value = '暂无报价';
60
60
  }
61
61
  }
62
62
  const [intVal, decimalVal] = `${value}`.split('.');
63
63
  return {
64
64
  currencySymbol: !cnPriceTextList.includes(intVal) ? symbol : '',
65
65
  intVal,
66
66
  decimalVal,
67
67
  };
68
68
  const {
69
69
  prefixCls,
70
70
  symPos,
71
71
  symbol,
72
72
  decPos,
73
73
  status,
74
74
  className,
75
75
  style,
76
76
  symClassName,
77
77
  intClassName,
78
78
  decClassName,
79
79
  noPriceClassName,
80
80
  value,
81
81
  decLength,
82
82
  decToIntegerState,
83
83
  isPlusPrice,
84
84
  isSamsPrice,
85
85
  isMemberPrice,
86
86
  isSfpPrice,
87
87
  memberPriceIcon,
88
88
  isShowPriceLabel,
89
89
  priceLabelText,
90
90
  priceTextColor,
91
91
  useFontV2 = false,
92
92
  useFontV2Bold = false,
93
93
  nativeProps,
94
94
  } = props;
95
95
  const cRef = useRef<any>(null);
96
96
  useEffect(() => {
97
97
  if (isShowPriceLabel && priceTextColor && cRef.current) {
98
98
  cRef.current?.style?.setProperty('--after-ele-color', priceTextColor);
99
99
  }
100
100
  }, [isShowPriceLabel, priceTextColor]);
101
101
  const cls = classNames(
102
102
  className ? `${className}` : '',
103
103
  prefixCls,
104
104
  {
105
105
  'd-font-v2': useFontV2,
106
106
  'd-font-v2-bold': useFontV2Bold,
107
107
  },
108
108
  'd-imag-rendering-crisp-edges',
109
109
  {
110
110
  del: status === 'del',
111
111
  },
112
112
  {
113
113
  'd-plus-price': isPlusPrice,
114
114
  },
115
115
  {
116
116
  'd-sams-price': isSamsPrice,
117
117
  },
118
118
  {
119
119
  'd-sfp-price': isSfpPrice,
120
120
  },
121
121
  {
122
122
  'd-member-price': isMemberPrice,
123
123
  },
124
124
  {
125
125
  [`d-member-price-${memberPriceIcon}`]: memberPriceIcon,
126
126
  },
127
127
  {
128
128
  'd-price-label': isShowPriceLabel,
129
129
  },
130
130
  {
131
131
  'd-price-text-clor': isShowPriceLabel && priceTextColor,
132
132
  },
133
133
  );
134
134
  const symCls = classNames(symClassName ? `${symClassName}` : '', {
135
135
  'sym-sub': symPos === 'sub',
136
136
  'sym-sup': symPos === 'sup',
137
137
  });
138
138
  const intCls = classNames(intClassName ? `${intClassName}` : '');
139
139
  const decCls = classNames(decClassName ? `${decClassName}` : '', {
140
140
  'dec-sub': decPos === 'sub',
141
141
  'dec-sup': decPos === 'sup',
142
142
  });
143
143
  const noPriceCls = classNames(noPriceClassName ? `${noPriceClassName}` : '');
144
144
  const { currencySymbol, intVal, decimalVal } = dealPrice(
145
145
  value,
146
146
  decLength,
147
147
  symbol,
148
148
  decToIntegerState,
149
149
  );
150
150
  return (
151
151
  <View
152
152
  ref={cRef}
153
153
  className={cls}
154
154
  style={style}
155
155
  data-after={isShowPriceLabel ? priceLabelText : ''}
156
156
  {...nativeProps}
157
157
  >
158
158
  {intVal === '-1' ? (
159
159
  <Text className={`${prefixCls}-txt int-txt off-shelf ${noPriceCls}`}>{`暂无报价`}</Text>
160
160
  ) : (
161
161
  <>
162
162
  <Text className={`${prefixCls}-sym ${symCls}`}>{currencySymbol}</Text>
163
163
  <Text className={`${prefixCls}-txt int-txt ${intCls}`}>{intVal}</Text>
164
164
  {!!decimalVal && (
165
165
  <Text className={`${prefixCls}-txt dec-txt ${decCls}`}>.{decimalVal}</Text>
166
166
  )}
167
167
  </>
168
168
  )}
169
169
  </View>
170
170
  );
171
171
  prefixCls: 'd-mini-price',
172
172
  style: {},
173
173
  status: '',
174
174
  symbol: '¥',
175
175
  symPos: 'sub',
176
176
  decLength: 2,
177
177
  decPos: 'sub',
178
178
  decToIntegerState: false,
179
179
  isPlusPrice: false,
180
180
  isShowPriceLabel: false,
181
181
  priceLabelText: '到手价',
182
182
  priceTextColor: '',
183
183
  useFontV2: false,
184
184
  useFontV2Bold: false,
@@ -91,7 +91,7 @@
91
91
  }
92
92
 
93
93
  .priceDesc {
94
- margin-left: 4px;
94
+ margin-left: 8px;
95
95
  font-family: PingFang SC;
96
96
  &.priceHiddenDesc {
97
97
  width: 0;
@@ -117,6 +117,24 @@
117
117
  .priceDescXS {
118
118
  font-size: 20px;
119
119
  }
120
+ .priceUnit {
121
+ font-family: PingFang SC;
122
+ }
123
+ .priceUnitXL {
124
+ font-size: 26px;
125
+ }
126
+ .priceUnitL {
127
+ font-size: 24px;
128
+ }
129
+ .priceUnitM {
130
+ font-size: 22px;
131
+ }
132
+ .priceUnitS {
133
+ font-size: 20px;
134
+ }
135
+ .priceUnitXS {
136
+ font-size: 18px;
137
+ }
120
138
 
121
139
  .missPriceDesc {
122
140
  }
@@ -164,3 +182,9 @@
164
182
  .memberStyle {
165
183
  color: #f6b303;
166
184
  }
185
+ .fontV2 {
186
+ font-family: 'JDZhengHeiV2-Regular';
187
+ }
188
+ .fontV2Bold {
189
+ font-family: 'JDZhengHeiV2-Bold';
190
+ }