@pisell/private-materials 3.0.145 → 3.0.146
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.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/booking/components/footer/utils.js +4 -1
- package/lib/components/booking/components/footer/utils.js +4 -2
- package/package.json +1 -1
|
@@ -223,8 +223,11 @@ export var formatValues = function formatValues(state) {
|
|
|
223
223
|
|
|
224
224
|
// 日期
|
|
225
225
|
if ((_values = values) !== null && _values !== void 0 && (_values$bookings = _values.bookings) !== null && _values$bookings !== void 0 && (_values$bookings$ = _values$bookings[0]) !== null && _values$bookings$ !== void 0 && _values$bookings$.select_date && !(state !== null && state !== void 0 && state.bookingId)) {
|
|
226
|
+
var _values2, _values2$bookings, _values2$bookings$;
|
|
226
227
|
// 默认用第一个预约的选择日期并且是新建,编辑目前先不处理,用于解决附加费问题
|
|
227
|
-
|
|
228
|
+
var startTime = "".concat((_values2 = values) === null || _values2 === void 0 ? void 0 : (_values2$bookings = _values2.bookings) === null || _values2$bookings === void 0 ? void 0 : (_values2$bookings$ = _values2$bookings[0]) === null || _values2$bookings$ === void 0 ? void 0 : _values2$bookings$.start_time);
|
|
229
|
+
startTime = "".concat(startTime || '00:00', ":00");
|
|
230
|
+
values.schedule_date = "".concat(values.bookings[0].select_date, " ").concat(startTime);
|
|
228
231
|
}
|
|
229
232
|
return values;
|
|
230
233
|
};
|
|
@@ -162,7 +162,7 @@ var formatHolder = (state, values) => {
|
|
|
162
162
|
return obj;
|
|
163
163
|
};
|
|
164
164
|
var formatValues = (state) => {
|
|
165
|
-
var _a, _b, _c;
|
|
165
|
+
var _a, _b, _c, _d, _e;
|
|
166
166
|
let values = {
|
|
167
167
|
type: state.renderType === "eventBooking" ? "event_booking_v2" : "appointment_booking",
|
|
168
168
|
platform: "shop",
|
|
@@ -190,7 +190,9 @@ var formatValues = (state) => {
|
|
|
190
190
|
values.holder = formatHolder(state, values);
|
|
191
191
|
values.bookings = formatBookings(state);
|
|
192
192
|
if (((_c = (_b = values == null ? void 0 : values.bookings) == null ? void 0 : _b[0]) == null ? void 0 : _c.select_date) && !(state == null ? void 0 : state.bookingId)) {
|
|
193
|
-
|
|
193
|
+
let startTime = `${(_e = (_d = values == null ? void 0 : values.bookings) == null ? void 0 : _d[0]) == null ? void 0 : _e.start_time}`;
|
|
194
|
+
startTime = `${startTime || "00:00"}:00`;
|
|
195
|
+
values.schedule_date = `${values.bookings[0].select_date} ${startTime}`;
|
|
194
196
|
}
|
|
195
197
|
return values;
|
|
196
198
|
};
|