@conecli/cone-render 0.10.1-shop3.12 → 0.10.1-shop3.121

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 (118) 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/CountDownForApp/index.module.scss +52 -0
  22. package/dist/components/base/CountDownForApp/index.tsx +1 -0
  23. package/dist/components/base/CustomScrollView/index.tsx +1 -1
  24. package/dist/components/base/CustomVideo/index.tsx +1 -1
  25. package/dist/components/base/CustomVideo/index.weapp.tsx +1 -0
  26. package/dist/components/base/ExposureSmart/index.h5.tsx +1 -1
  27. package/dist/components/base/ExposureSmart/index.tsx +1 -1
  28. package/dist/components/base/ExposureSmart/reporter.tsx +1 -1
  29. package/dist/components/base/InOrOutViewObserver/index.weapp.tsx +1 -0
  30. package/dist/components/base/InViewRender/index.tsx +1 -1
  31. package/dist/components/base/LazyLayoutLoad/index.module.scss +9 -9
  32. package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
  33. package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
  34. package/dist/components/base/MobileCommonHeader/index.tsx +1 -1
  35. package/dist/components/base/MobileCommonHeader/index.weapp.tsx +1 -0
  36. package/dist/components/base/NetworkDataError/const.ts +1 -1
  37. package/dist/components/base/NetworkDataError/index.module.scss +118 -72
  38. package/dist/components/base/NetworkDataError/index.tsx +1 -1
  39. package/dist/components/base/Price/Base/index.module.scss +12 -0
  40. package/dist/components/base/Price/Base/index.tsx +1 -1
  41. package/dist/components/base/Price/Double/index.module.scss +25 -1
  42. package/dist/components/base/Price/Double/index.tsx +1 -1
  43. package/dist/components/base/ShopLeGaoTag/index.h5.module.scss +35 -0
  44. package/dist/components/base/ShopLeGaoTag/index.h5.tsx +1 -0
  45. package/dist/components/base/ShopLeGaoTag/index.module.scss +33 -0
  46. package/dist/components/base/ShopLeGaoTag/index.tsx +1 -0
  47. package/dist/components/debug/DebugLayout/index.module.scss +2 -2
  48. package/dist/components/floorItem.tsx +1 -1
  49. package/dist/components/isv/Floor/index.tsx +1 -1
  50. package/dist/components/remoteFloorItem.tsx +1 -1
  51. package/dist/config/env.ts +1 -1
  52. package/dist/interface/common.ts +1 -1
  53. package/dist/interface/component.ts +1 -1
  54. package/dist/interface/jumpEventReport.ts +1 -1
  55. package/dist/interface/service.ts +1 -1
  56. package/dist/jumpEventReport/base.ts +1 -1
  57. package/dist/jumpEventReport/const.ts +1 -1
  58. package/dist/jumpEventReport/createReportFloorData.ts +1 -1
  59. package/dist/jumpEventReport/index.h5.ts +1 -1
  60. package/dist/jumpEventReport/index.jd.ts +1 -1
  61. package/dist/jumpEventReport/index.weapp.ts +1 -1
  62. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  63. package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
  64. package/dist/jumpEventReport/logEventConfig.h5.ts +1 -0
  65. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  66. package/dist/jumpEventReport/web/report.ts +1 -1
  67. package/dist/jumpEventReport/web.base.ts +1 -1
  68. package/dist/jumpEventReport/web.jd.ts +1 -1
  69. package/dist/jumpEventReport/web.pc.ts +1 -1
  70. package/dist/jumpEventReport/web.tjm.ts +1 -1
  71. package/dist/jumpEventReport/web.wxapp.ts +1 -1
  72. package/dist/language/en_US.json +397 -0
  73. package/dist/language/zh_CN.json +397 -0
  74. package/dist/language/zh_HK.json +397 -0
  75. package/dist/libs/openShopBridge.js +161 -0
  76. package/dist/libs/openShopBridge.min.js +1 -0
  77. package/dist/libs/taroAppReport.js +2 -2
  78. package/dist/modules/ContainerFloorList/index.h5.module.scss +16 -2
  79. package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
  80. package/dist/modules/ContainerFloorList/index.tsx +1 -1
  81. package/dist/modules/DecorateContainerFloorList/index.weapp.tsx +1 -0
  82. package/dist/open/api/environment.ts +1 -1
  83. package/dist/open/api/shopMember.ts +1 -1
  84. package/dist/open/api/shopMember.weapp.ts +1 -0
  85. package/dist/open/api/track.ts +1 -1
  86. package/dist/open/api/util.ts +1 -1
  87. package/dist/open/components/index.ts +1 -1
  88. package/dist/open/index.ts +1 -1
  89. package/dist/sass/app.h5.scss +19 -2
  90. package/dist/sass/base.scss +8 -4
  91. package/dist/service/fetchGateway.ts +1 -1
  92. package/dist/service/fetchGateway.weapp.ts +1 -1
  93. package/dist/service/fetchJsonp.weapp.ts +1 -0
  94. package/dist/service/http/const.ts +1 -1
  95. package/dist/service/http/h5Http.ts +1 -1
  96. package/dist/service/http/httpInterceptors.weapp.ts +1 -0
  97. package/dist/service/requestServer.h5.ts +1 -1
  98. package/dist/service/requestServer.ts +1 -1
  99. package/dist/service/requestServer.weapp.ts +1 -1
  100. package/dist/utils/connectNativeJsBridge.ts +1 -1
  101. package/dist/utils/h5Utils.ts +1 -1
  102. package/dist/utils/harmonyCallRouter.h5.ts +1 -0
  103. package/dist/utils/harmonyCallRouter.ts +0 -0
  104. package/dist/utils/index.h5.ts +1 -1
  105. package/dist/utils/index.ts +1 -1
  106. package/dist/utils/index.weapp.ts +1 -1
  107. package/dist/utils/jumpExtMapUtil.ts +1 -0
  108. package/dist/utils/jumpExtMapUtil.weapp.ts +1 -0
  109. package/dist/utils/log.ts +1 -0
  110. package/dist/utils/{sColor.js → sColor.ts} +1 -1
  111. package/dist/utils/sColor.weapp.ts +1 -0
  112. package/dist/utils/utils.ts +1 -1
  113. package/dist/wxapp/common/address_api/address_api_v2.js +1 -0
  114. package/dist/wxapp/common/user_info.js +1 -1
  115. package/package.json +166 -141
  116. package/dist/jumpEventReport/web/wqshop.report.ts +0 -1
  117. package/dist/utils/priceUtils.js +0 -1
  118. /package/dist/utils/{jumpExtMapUtil.js → jumpExtMapUtil.h5.ts} +0 -0
@@ -0,0 +1,52 @@
1
+
2
+ .d-count-down {
3
+ position: relative;
4
+ z-index: 2;
5
+ padding-top: 1px;
6
+ line-height: 28px;
7
+ font-size: 24px;
8
+ font-weight: bolder;
9
+ color: #fff;
10
+ text-align: center;
11
+ &.d-ios-10-count-down {
12
+ padding-top: 9px;
13
+ }
14
+ :global {
15
+ .d-count-down-title {
16
+ // position: relative;
17
+ // top: -2px;
18
+ display: inline-block;
19
+ padding-right: 5px;
20
+ height: 24px;
21
+ line-height: 24px;
22
+ font-size: 20px;
23
+ }
24
+ .d-count-down-time {
25
+ display: inline-block;
26
+ //margin: 0 2px;
27
+ min-width: 24px;
28
+ line-height: 28px;
29
+ font-size: 20px;
30
+ text-align: center;
31
+ }
32
+ .d-time-space-text {
33
+ display: inline-block;
34
+ //margin: 0 2px;
35
+ font-size: 20px;
36
+ }
37
+ .d-day-time {
38
+ min-width: 12px;
39
+ }
40
+ // .d-count-from-end {
41
+ // margin-right: 4px;
42
+ // font-size: 9px;
43
+ // }
44
+ }
45
+ &.d-en-count-down {
46
+ :global {
47
+ .d-day-space-text {
48
+ padding-right: 4px;
49
+ }
50
+ }
51
+ }
52
+ }
@@ -0,0 +1 @@
1
+ import Taro from '@tarojs/taro';
2
  ? 'd'
1
3
  : taroJdBaseInfo?.languageJsonData?.timeUnitDay || '天';
2
4
  ? ':'
3
5
  : taroJdBaseInfo?.languageJsonData?.timeUnitHour || '时';
4
6
  ? ''
5
7
  : taroJdBaseInfo?.languageJsonData?.timeUnitMinute || '分';
6
8
  const {
7
9
  residueTime,
8
10
  serverTime,
9
11
  startTime,
10
12
  endTime,
11
13
  className,
12
14
  info,
13
15
  endTimeEndCallBack,
14
16
  startTimeEndCallBack,
15
17
  startTitleText,
16
18
  endTitleText,
17
19
  timeNumSpaceTextState,
18
20
  showDaytimeNumSpaceTextState,
19
21
  onlyShowDaySpaceTextState,
20
22
  getDaysToHours,
21
23
  onlyShowDayState,
22
24
  showDayState,
23
25
  showHourState,
24
26
  showMinuteState,
25
27
  showSecondState,
26
28
  showDayToSecondState,
27
29
  fromStartText,
28
30
  fromEndText,
29
31
  numTextColor,
30
32
  textColor,
31
33
  numTextBgColor,
32
34
  useFontV2,
33
35
  useFontV2Bold,
34
36
  useDateNowCalc,
35
37
  } = props;
36
38
  const [endTimeFormat, setEndTimeFormat] = useState<{
37
39
  day: number;
38
40
  hour: number;
39
41
  minute: number;
40
42
  second: number;
41
43
  }>({
42
44
  day: 0,
43
45
  hour: 0,
44
46
  minute: 0,
45
47
  second: 0,
46
48
  });
47
49
  const countDownTimer = useRef<ReturnType<typeof setTimeout> | null>();
48
50
  const nextTickTimeRef = useRef<number>(0);
49
51
  const scheduleNextTickRef = useRef<(() => void) | null>(null);
50
52
  const countDownTypeText = useRef<ComponentInterFace.CountDownTimerRef>({
51
53
  type: 'end',
52
54
  text: endTitleText,
53
55
  time: null,
54
56
  });
55
57
 
56
58
  const diffTimerRef = useRef({
57
59
  stopDocumentTime: 0,
58
60
  recoverDocumentTime: 0,
59
61
  diffTime: 0,
60
62
  });
61
63
 
62
64
  useEffect(() => {
63
65
  function visibilityChanged(state) {
64
66
  if (state) {
65
67
  if (diffTimerRef.current.stopDocumentTime && diffTimerRef.current.stopDocumentTime > 0) {
66
68
  diffTimerRef.current.recoverDocumentTime = Date.now();
67
69
  diffTimerRef.current.diffTime =
68
70
  diffTimerRef.current.recoverDocumentTime - diffTimerRef.current.stopDocumentTime;
69
71
  if (useDateNowCalc && endTime) {
70
72
  diffTimerRef.current.diffTime = 0;
71
73
  diffTimerRef.current.stopDocumentTime = 0;
72
74
  diffTimerRef.current.recoverDocumentTime = 0;
73
75
  }
74
76
  changeTimerSetInterval(true);
75
77
  }
76
78
  } else {
77
79
  diffTimerRef.current.stopDocumentTime = Date.now();
78
80
  if (countDownTimer.current) {
79
81
  clearTimeout(countDownTimer.current);
80
82
  countDownTimer.current = null;
81
83
  }
82
84
  }
83
85
  }
84
86
  Taro.eventCenter.on(TaroEventType.PAGE_DOCUMENT_VISIBILITY_CHANGE, visibilityChanged);
85
87
  return () => {
86
88
  Taro.eventCenter.off(TaroEventType.PAGE_DOCUMENT_VISIBILITY_CHANGE, visibilityChanged);
87
89
  };
88
90
  }, []);
89
91
  useEffect(() => {
90
92
  if (serverTime > 0 || residueTime > 0) {
91
93
  let getNowEndTime = residueTime > 0 ? residueTime : endTime - serverTime;
92
94
  if (startTime && endTime) {
93
95
  if (serverTime <= startTime) {
94
96
  getNowEndTime = startTime - serverTime;
95
97
  countDownTypeText.current = {
96
98
  type: 'start',
97
99
  text: startTitleText,
98
100
  time: null,
99
101
  };
100
102
  } else {
101
103
  getNowEndTime = endTime - serverTime;
102
104
  countDownTypeText.current = {
103
105
  type: 'end',
104
106
  text: endTitleText,
105
107
  time: null,
106
108
  };
107
109
  }
108
110
  } else {
109
111
  countDownTypeText.current = {
110
112
  type: 'end',
111
113
  text: endTitleText,
112
114
  time: null,
113
115
  };
114
116
  }
115
117
  if (getNowEndTime > 0) {
116
118
  countDownTimeFormat(getNowEndTime);
117
119
  countDownTypeText.current.time = getNowEndTime;
118
120
  countDownTypeText.current.type === 'start' &&
119
121
  (countDownTypeText.current.endTime = endTime - serverTime);
120
122
  changeTimerSetInterval();
121
123
  } else {
122
124
  countDownTypeText.current = {
123
125
  type: 'end',
124
126
  text: endTitleText,
125
127
  time: 0,
126
128
  };
127
129
  }
128
130
  }
129
131
  return () => {
130
132
  countDownTimer.current && clearTimeout(countDownTimer.current);
131
133
  };
132
134
  }, [serverTime, residueTime]);
133
135
 
134
136
  const changeTimerSetInterval = (recoverState = false) => {
135
137
  countDownTimer.current && clearTimeout(countDownTimer.current);
136
138
  nextTickTimeRef.current = Math.ceil(Date.now() / 1000) * 1000;
137
139
  recoverState && changeTimerFunc();
138
140
  const scheduleNextTick = () => {
139
141
  const now = Date.now();
140
142
  const delay = Math.max(0, nextTickTimeRef.current - now);
141
143
  countDownTimer.current = setTimeout(() => {
142
144
  nextTickTimeRef.current += 1000;
143
145
  changeTimerFunc();
144
146
  }, delay);
145
147
  };
146
148
  scheduleNextTickRef.current = scheduleNextTick;
147
149
  scheduleNextTick();
148
150
  };
149
151
  const changeTimerFunc = () => {
150
152
  if (countDownTypeText.current.time && diffTimerRef.current.diffTime > 0) {
151
153
  countDownTypeText.current.time -= diffTimerRef.current.diffTime;
152
154
  countDownTypeText.current.type === 'start' &&
153
155
  countDownTypeText.current.endTime &&
154
156
  (countDownTypeText.current.endTime -= diffTimerRef.current.diffTime);
155
157
  console.log(
156
158
  '当前id倒计时获取倒计时息屏时间计算差值',
157
159
  countDownTimer.current,
158
160
  diffTimerRef.current,
159
161
  countDownTypeText.current,
160
162
  );
161
163
  diffTimerRef.current.stopDocumentTime = 0;
162
164
  diffTimerRef.current.recoverDocumentTime = 0;
163
165
  diffTimerRef.current.diffTime = 0;
164
166
  }
165
167
  if (countDownTypeText.current.time && countDownTypeText.current.time > 1000) {
166
168
  if (useDateNowCalc && endTime && countDownTypeText.current.type === 'end') {
167
169
  const now = Date.now();
168
170
  countDownTypeText.current.time = endTime - now;
169
171
  } else {
170
172
  countDownTypeText.current.time -= 1000;
171
173
  countDownTypeText.current.type === 'start' &&
172
174
  countDownTypeText.current.endTime &&
173
175
  (countDownTypeText.current.endTime -= 1000);
174
176
  }
175
177
  countDownTimeFormat(countDownTypeText.current.time);
176
178
  scheduleNextTickRef.current && scheduleNextTickRef.current();
177
179
  } else {
178
180
  countDownTypeText.current.time = 0;
179
181
  countDownTimeFormat(countDownTypeText.current.time);
180
182
  countDownTimer.current && clearTimeout(countDownTimer.current);
181
183
  if (countDownTypeText.current.type === 'start') {
182
184
  let triggerStartTimeEndCallBackState = true;
183
185
  countDownTypeText.current = Object.assign({}, countDownTypeText.current, {
184
186
  type: 'end',
185
187
  text: endTitleText,
186
188
  });
187
189
  countDownTypeText.current.time = countDownTypeText.current.endTime;
188
190
  countDownTypeText.current.time && (countDownTypeText.current.time -= 1000);
189
191
  if (countDownTypeText.current.time && countDownTypeText.current.time > 0) {
190
192
  nextTickTimeRef.current = Math.ceil(Date.now() / 1000) * 1000;
191
193
  const scheduleEndTick = () => {
192
194
  const now = Date.now();
193
195
  const delay = Math.max(0, nextTickTimeRef.current - now);
194
196
  countDownTimer.current = setTimeout(() => {
195
197
  nextTickTimeRef.current += 1000;
196
198
  if (countDownTypeText.current.time && diffTimerRef.current.diffTime > 0) {
197
199
  countDownTypeText.current.time -= diffTimerRef.current.diffTime;
198
200
  diffTimerRef.current.stopDocumentTime = 0;
199
201
  diffTimerRef.current.recoverDocumentTime = 0;
200
202
  diffTimerRef.current.diffTime = 0;
201
203
  }
202
204
  if (triggerStartTimeEndCallBackState && startTimeEndCallBack) {
203
205
  startTimeEndCallBack({
204
206
  type: 'start',
205
207
  endState: true,
206
208
  ...info,
207
209
  });
208
210
  triggerStartTimeEndCallBackState = false;
209
211
  }
210
212
  if (countDownTypeText.current.time && countDownTypeText.current.time > 1000) {
211
213
  countDownTypeText.current.time -= 1000;
212
214
  countDownTimeFormat(countDownTypeText.current.time);
213
215
  scheduleEndTick();
214
216
  } else {
215
217
  endTimeEndCallBack &&
216
218
  endTimeEndCallBack({
217
219
  type: 'end',
218
220
  endState: true,
219
221
  ...info,
220
222
  });
221
223
  }
222
224
  }, delay);
223
225
  };
224
226
  scheduleNextTickRef.current = scheduleEndTick;
225
227
  scheduleEndTick();
226
228
  }
227
229
  } else {
228
230
  endTimeEndCallBack &&
229
231
  endTimeEndCallBack({
230
232
  type: 'end',
231
233
  endState: true,
232
234
  ...info,
233
235
  });
234
236
  }
235
237
  }
236
238
  };
237
239
  const countDownTimeFormat = (nowEndTime) => {
238
240
  const totalSeconds = Math.max(Math.round(nowEndTime / 1000), 0);
239
241
  let day = Math.max(Math.floor(totalSeconds / 86400), 0);
240
242
  let hour = Math.max(Math.floor((totalSeconds / 3600) % 24), 0);
241
243
  const minute = Math.max(Math.floor((totalSeconds / 60) % 60), 0);
242
244
  const second = Math.max(Math.floor(totalSeconds % 60), 0);
243
245
  if (getDaysToHours && day > 0) {
244
246
  hour = hour + day * 24;
245
247
  day = 0;
246
248
  }
247
249
  setEndTimeFormat({
248
250
  day,
249
251
  hour,
250
252
  minute,
251
253
  second,
252
254
  });
253
255
  };
254
256
  const numCustomStyle = numTextColor
255
257
  ? useRef({ color: numTextColor, backgroundColor: numTextBgColor })
256
258
  : useRef({});
257
259
  const textCustomStyle = textColor ? useRef({ color: textColor }) : useRef({});
258
260
  const padStartTime = useCallback((time) => {
259
261
  return `${time}`.padStart(2, '0');
260
262
  }, []);
261
263
  return (
262
264
  <View
263
265
  className={classNames(
264
266
  countDownStyle['d-count-down'],
265
267
  {
266
268
  [countDownStyle['d-ios-10-count-down']]: ios10State && !devToolPlatformState,
267
269
  },
268
270
  {
269
271
  [countDownStyle['d-en-count-down']]: isLanguageForEn,
270
272
  },
271
273
  className,
272
274
  )}
273
275
  >
274
276
  {countDownTypeText.current && countDownTypeText.current.text && (
275
277
  <Text
276
278
  className={classNames('d-count-down-title', {
277
279
  'font-jdzht-v2': useFontV2,
278
280
  'font-jdzht-v2-bold': useFontV2Bold,
279
281
  })}
280
282
  >
281
283
  {countDownTypeText.current.text}
282
284
  </Text>
283
285
  )}
284
286
  <View className="display-inline-block">
285
287
  {fromStartText && <Text className="d-count-from-start">{fromStartText}</Text>}
286
288
  {onlyShowDayState && endTimeFormat.day > 0 ? (
287
289
  <>
288
290
  <Text
289
291
  className={classNames('d-count-down-time', 'd-day-time', {
290
292
  'font-jdzht-v2': useFontV2,
291
293
  'font-jdzht-v2-bold': useFontV2Bold,
292
294
  })}
293
295
  style={numCustomStyle.current}
294
296
  >
295
297
  {endTimeFormat.day}
296
298
  </Text>
297
299
  <Text className="d-time-space-text d-day-space-text" style={textCustomStyle.current}>
298
300
  {showDaytimeNumSpaceTextState || onlyShowDaySpaceTextState ? countDownTimeDay : ':'}
299
301
  </Text>
300
302
  </>
301
303
  ) : (
302
304
  <>
303
305
  {(showDayState || showDayToSecondState) && endTimeFormat.day > 0 && (
304
306
  <>
305
307
  <Text
306
308
  className={classNames('d-count-down-time', 'd-day-time', {
307
309
  'font-jdzht-v2': useFontV2,
308
310
  'font-jdzht-v2-bold': useFontV2Bold,
309
311
  })}
310
312
  style={numCustomStyle.current}
311
313
  >
312
314
  {endTimeFormat.day}
313
315
  </Text>
314
316
  <Text
315
317
  className="d-time-space-text d-day-space-text"
316
318
  style={textCustomStyle.current}
317
319
  >
318
320
  {showDaytimeNumSpaceTextState || onlyShowDaySpaceTextState
319
321
  ? countDownTimeDay
320
322
  : ':'}
321
323
  </Text>
322
324
  </>
323
325
  )}
324
326
  {showHourState && endTimeFormat.hour > 0 && (
325
327
  <>
326
328
  <Text
327
329
  className={classNames('d-count-down-time', 'd-hour-time', {
328
330
  'font-jdzht-v2': useFontV2,
329
331
  'font-jdzht-v2-bold': useFontV2Bold,
330
332
  })}
331
333
  style={numCustomStyle.current}
332
334
  >
333
335
  {padStartTime(endTimeFormat.hour)}
334
336
  </Text>
335
337
  <Text className="d-time-space-text" style={textCustomStyle.current}>
336
338
  {(endTimeFormat.day > 0 && showDaytimeNumSpaceTextState) || timeNumSpaceTextState
337
339
  ? countDownTimeHour
338
340
  : ':'}
339
341
  </Text>
340
342
  </>
341
343
  )}
342
344
  {showMinuteState && (
343
345
  <>
344
346
  <Text
345
347
  className={classNames('d-count-down-time', 'd-minute-time', {
346
348
  'font-jdzht-v2': useFontV2,
347
349
  'font-jdzht-v2-bold': useFontV2Bold,
348
350
  })}
349
351
  style={numCustomStyle.current}
350
352
  >
351
353
  {padStartTime(endTimeFormat.minute)}
352
354
  </Text>
353
355
  <Text className="d-time-space-text" style={textCustomStyle.current}>
354
356
  {(endTimeFormat.day > 0 && showDaytimeNumSpaceTextState) || timeNumSpaceTextState
355
357
  ? countDownTimeMin
356
358
  : endTimeFormat.day > 0 && !showDayToSecondState
357
359
  ? ''
358
360
  : ':'}
359
361
  </Text>
360
362
  </>
361
363
  )}
362
364
  {showSecondState && (endTimeFormat.day <= 0 || showDayToSecondState) && (
363
365
  <>
364
366
  <Text
365
367
  className={classNames('d-count-down-time', 'd-second-time', {
366
368
  'font-jdzht-v2': useFontV2,
367
369
  'font-jdzht-v2-bold': useFontV2Bold,
368
370
  })}
369
371
  style={numCustomStyle.current}
370
372
  >
371
373
  {padStartTime(endTimeFormat.second)}
372
374
  </Text>
373
375
  {(timeNumSpaceTextState ||
374
376
  (showDayToSecondState && showDaytimeNumSpaceTextState)) && (
375
377
  <Text className="d-time-space-text" style={textCustomStyle.current}>
376
378
  秒
377
379
  </Text>
378
380
  )}
379
381
  </>
380
382
  )}
381
383
  </>
382
384
  )}
383
385
  {fromEndText && <Text className="d-count-from-end">{fromEndText}</Text>}
384
386
  </View>
385
387
  </View>
386
388
  );
387
389
  return useMemo(() => {
388
390
  return <CountDownTimer {...props} />;
389
391
  }, [props.residueTime, props.endTime]);
390
392
  residueTime: -1,
391
393
  serverTime: null,
392
394
  className: null,
393
395
  startTime: null,
394
396
  endTime: null,
395
397
  info: null,
396
398
  startTitleText: '距活动开始',
397
399
  endTitleText: '距活动结束',
398
400
  fromEndText: null,
399
401
  startTimeEndCallBack: null,
400
402
  endTimeEndCallBack: null,
401
403
  timeNumSpaceTextState: false,
402
404
  showDaytimeNumSpaceTextState: true,
403
405
  onlyShowDayState: false,
404
406
  onlyShowDaySpaceTextState: false,
405
407
  showDayState: false,
406
408
  showDayToSecondState: false,
407
409
  getDaysToHours: false,
408
410
  showHourState: true,
409
411
  showMinuteState: true,
410
412
  showSecondState: true,
411
413
  numTextColor: null,
412
414
  textColor: null,
413
415
  numTextBgColor: null,
414
416
  useFontV2: false,
415
417
  useFontV2Bold: false,