|
|
|
@ -15,10 +15,10 @@ var routes = [
|
|
|
|
|
context: {
|
|
|
|
|
pages: [
|
|
|
|
|
{
|
|
|
|
|
title: "Schedule Pickup",
|
|
|
|
|
title: "Book Appointment",
|
|
|
|
|
href: "/appointment",
|
|
|
|
|
icon: "fad fa-calendar-alt",
|
|
|
|
|
text: "Request a curbside courier to mail and ship your items."
|
|
|
|
|
text: "Get mailing, shipping, and notary services on your schedule anywhere in the Helena area."
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "Track Package",
|
|
|
|
@ -59,18 +59,45 @@ var routes = [
|
|
|
|
|
path: '/appointment',
|
|
|
|
|
name: 'appointment',
|
|
|
|
|
async: function (routeTo, routeFrom, resolve, reject) {
|
|
|
|
|
var url = SETTINGS.appointmenturl;
|
|
|
|
|
if ($("#app").hasClass("theme-dark")) {
|
|
|
|
|
url = SETTINGS.appointmenturl_darkmode;
|
|
|
|
|
}
|
|
|
|
|
resolve({
|
|
|
|
|
templateUrl: './pages/appointment.html'
|
|
|
|
|
}, {
|
|
|
|
|
context: {
|
|
|
|
|
url: url
|
|
|
|
|
services: [
|
|
|
|
|
{
|
|
|
|
|
title: "Package Pickup",
|
|
|
|
|
text: "A courier will come to you and ship your mail, packages, etc.",
|
|
|
|
|
icon: "fad fa-hand-holding-box",
|
|
|
|
|
serviceid: 19
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "Mobile Notary",
|
|
|
|
|
text: "A notary public will come to you and notarize your documents.",
|
|
|
|
|
icon: "fad fa-file-signature",
|
|
|
|
|
serviceid: 21
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
routes: [
|
|
|
|
|
{
|
|
|
|
|
path: "/:serviceId",
|
|
|
|
|
async: function (routeTo, routeFrom, resolve, reject) {
|
|
|
|
|
var url = SETTINGS.appointmenturl;
|
|
|
|
|
if ($("#app").hasClass("theme-dark")) {
|
|
|
|
|
url = SETTINGS.appointmenturl_darkmode;
|
|
|
|
|
}
|
|
|
|
|
resolve({
|
|
|
|
|
templateUrl: './pages/appointment.html'
|
|
|
|
|
}, {
|
|
|
|
|
context: {
|
|
|
|
|
url: url + "&service=" + routeTo.params.serviceId
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/track',
|
|
|
|
|