техподдержка сервиса пишет, что - то вроде "Вы указали неверную сумму, теперь вам нужно заплатить ещё столько же", или " Чтобы использовать необходимо внести страховой взнос",
function places() {
const places = [...PlacesList];
const sortedPlaces = {};
for (const place of places) {
const letter = place.name[0];
if (!(letter in sortedPlaces)) {
sortedPlaces[letter] = [];
}
sortedPlaces[letter].push(place);
}
return Object.values(sortedPlaces);
}
const routes = [
{
path: '/',
name: 'Main',
component: () => import('./views/Main.vue'),
},
{
path: '/category',
name: 'Category',
component: () => import('./views/Category.vue'),
},
{
path: '/:category',
// ...
}
]
function getTimes(start, end, interval) {
const [ s, e ] = [ start, end ].map(n => moment(n, 'HH:mm'));
const result = [];
if (s > e) {
e.add(1, 'day');
}
for (; s <= e; s.add(interval, 'minutes')) {
result.push(s.format('HH:mm'));
}
return result;
}
function getTimes(start, end, interval) {
const [ s, e ] = [ start, end ].map(n => new Date(`2000-01-01 ${n}`));
const result = [];
if (s > e) {
e.setDate(e.getDate() + 1);
}
for (; s <= e; s.setMinutes(s.getMinutes() + interval)) {
result.push(s.toTimeString().split(':', 2).join(':'));
// или
result.push(s.toLocaleTimeString('ru', {
hour: '2-digit',
minute: '2-digit',
}));
}
return result;
}
const times = getTimes('10:00', '18:00', 30);
. currentDate() {
return moment(this.getCurrentDateRange.start, "YYYYMMDD(или какой там формат)").format('YYYY-MM-DD')
},
<form id="data" action="handler.php">
<p><input placeholder="Ваше имя" name="user"></p>
</form>
<p><button type="submit" form="data">Отправить форму</button></p>
</body>
</html>