@pisell/private-materials 3.0.34 → 3.0.36

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.
@@ -278,9 +278,10 @@ var Addons = Provider(function (props) {
278
278
  variant: false,
279
279
  package: true
280
280
  },
281
- is_eject: isEject
281
+ is_eject: isEject ? 1 : 0
282
282
  },
283
283
  callback: function callback(e) {
284
+ console.log("e", e);
284
285
  var product = _objectSpread(_objectSpread({}, item), {}, {
285
286
  _id: getUniqueId(),
286
287
  _key: e.key,
@@ -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,
@@ -216,9 +216,10 @@ var Addons = (0, import_model.Provider)((props) => {
216
216
  variant: false,
217
217
  package: true
218
218
  },
219
- is_eject: isEject
219
+ is_eject: isEject ? 1 : 0
220
220
  },
221
221
  callback: (e) => {
222
+ console.log("e", e);
222
223
  let product = {
223
224
  ...item,
224
225
  _id: (0, import_utils3.getUniqueId)(),
@@ -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.36",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",