@pisell/private-materials 3.0.34 → 3.0.35

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.
@@ -31,7 +31,7 @@ import CollapsibleList from "../../../components/collapsibleList";
31
31
  import { renderBundles } from "../../../components/collapsibleList/utils";
32
32
  import dayjs from "dayjs";
33
33
  import { useUpdateEffect, useMemoizedFn } from "ahooks";
34
- import { sliceDayIntoFiveMinutes, formatResource, getErrorList, getServiceTimes, getServerItemExtend, deleteCacheParams, getEndDate, flexibleObj, getDuration, getDiscountTime } from "../../../utils";
34
+ import { sliceDayIntoFiveMinutes, formatResource, getErrorList, getServiceTimes, getServerItemExtend, deleteCacheParams, getEndDate, flexibleObj, getDuration, getDiscountTime, getServeStartTime } from "../../../utils";
35
35
  import Like from "../like";
36
36
  import { getNoResource } from "../../../mock";
37
37
  var Info = function Info() {
@@ -90,7 +90,7 @@ var Info = function Info() {
90
90
  var _currentResource$_ext, _state$bookingConfig, _state$bookingConfig$, _state$bookingConfig$2;
91
91
  var _cacheItem = getCurrentCacheItem();
92
92
  return {
93
- startDate: dayjs(dayjs(_cacheItem._extend.start_date).format("YYYY-MM-DD ") + (useStartTime || "00:00")),
93
+ startDate: dayjs(dayjs(_cacheItem._extend.start_date).format("YYYY-MM-DD ") + (getServeStartTime(useStartTime) || "00:00")),
94
94
  usableTime: currentResource === null || currentResource === void 0 ? void 0 : (_currentResource$_ext = currentResource._extend) === null || _currentResource$_ext === void 0 ? void 0 : _currentResource$_ext.usableTime,
95
95
  duration: getDuration(_cacheItem === null || _cacheItem === void 0 ? void 0 : _cacheItem.duration),
96
96
  locale: locales.locale,
@@ -79,7 +79,7 @@ var Info = () => {
79
79
  let _cacheItem = getCurrentCacheItem();
80
80
  return {
81
81
  startDate: (0, import_dayjs.default)(
82
- (0, import_dayjs.default)(_cacheItem._extend.start_date).format("YYYY-MM-DD ") + (useStartTime || "00:00")
82
+ (0, import_dayjs.default)(_cacheItem._extend.start_date).format("YYYY-MM-DD ") + ((0, import_utils3.getServeStartTime)(useStartTime) || "00:00")
83
83
  ),
84
84
  usableTime: (_a2 = currentResource == null ? void 0 : currentResource._extend) == null ? void 0 : _a2.usableTime,
85
85
  duration: (0, import_utils3.getDuration)(_cacheItem == null ? void 0 : _cacheItem.duration),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "3.0.34",
3
+ "version": "3.0.35",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",