Text and URL adjustments, handle more website URLs

master
Skylar Ittner 1 year ago
parent 89df54c1fe
commit 8e64fdfe62

@ -229,6 +229,8 @@ function initCordova() {
switch (link.path) { switch (link.path) {
case "/": case "/":
break; break;
case "/app":
break;
case "/track": case "/track":
if (link.fragment) { if (link.fragment) {
router.navigate("/track/" + link.fragment); router.navigate("/track/" + link.fragment);
@ -253,21 +255,32 @@ function initCordova() {
router.navigate("/telegram"); router.navigate("/telegram");
break; break;
case "/das": case "/das":
router.navigate("/dropandsend"); router.navigate("/das");
break; break;
case "/das/map": case "/das/map":
router.navigate("/dropandsend"); router.navigate("/das");
break; break;
case "/das/pickup": case "/das/pickup":
if (link.fragment) { if (link.fragment) {
sendPickupCode(link.fragment); sendPickupCode(link.fragment);
} else { } else {
router.navigate("/dropandsend"); router.navigate("/das");
} }
break; break;
case "/das/account": case "/das/account":
router.navigate("/account"); router.navigate("/account");
break; break;
case "/mobile":
case "/mobile/":
router.navigate("/mobile");
break;
case "/postalpoint":
case "/postalpoint/":
router.navigate("/postalpoint");
break;
case "/money":
router.navigate("/moneyorder");
break;
default: default:
openBrowser(link.url); openBrowser(link.url);
break; break;

@ -160,7 +160,7 @@
<i class="fa-regular fa-qrcode"></i> Scan the Pickup Code to alert us there's a package to send. <i class="fa-regular fa-qrcode"></i> Scan the Pickup Code to alert us there's a package to send.
</li> </li>
<li> <li>
<i class="fa-duotone fa-receipt"></i> Wait for an emailed receipt from us with the tracking code. Your credit card is automatically billed for the cost of shipping. <i class="fa-duotone fa-receipt"></i> Wait for an emailed receipt from us with the tracking code. Your credit card is automatically billed for the cost of shipping plus a small pickup fee.
</li> </li>
</ul> </ul>
</div> </div>

@ -23,7 +23,7 @@
<div class="row justify-content-center"> <div class="row justify-content-center">
{{#each pages}} {{#each pages}}
<div class="col-100 small-50 large-33 no-margin-vertical"> <div class="col-100 small-50 large-33 no-margin-vertical">
<div class="card hapticbtn pointercursor" onclick="router.navigate('{{href}}');"> <div class="card hapticbtn pointercursor margin-half" onclick="router.navigate('{{href}}');">
<div class="card-content text-align-center padding"> <div class="card-content text-align-center padding">
<h1 class="no-margin"><i class="{{icon}}"></i></h1> <h1 class="no-margin"><i class="{{icon}}"></i></h1>
<br /> <br />

@ -162,7 +162,7 @@ var routes = [
title: "Send a Package", title: "Send a Package",
href: "/send", href: "/send",
icon: "fa-duotone fa-box-alt", icon: "fa-duotone fa-box-alt",
text: "Find a drop box or schedule a pickup." text: "Find locations or request a pickup."
}, },
{ {
title: "Notarize a Document", title: "Notarize a Document",
@ -171,10 +171,10 @@ var routes = [
text: "Book a mobile notary visit." text: "Book a mobile notary visit."
}, },
{ {
title: "Write a Telegram", title: "My Account",
href: "/telegram", href: "/account",
icon: "fa-duotone fa-typewriter", icon: "fa-duotone fa-user-circle",
text: "Send a hand-delivered telegram anywhere in the Helena area." text: "View receipts, get account number, update payment method, and more."
}, },
{ {
title: "Shop for Supplies", title: "Shop for Supplies",
@ -182,18 +182,18 @@ var routes = [
icon: "fa-duotone fa-shopping-cart", icon: "fa-duotone fa-shopping-cart",
text: "Get boxes, labels, and shipping supplies delivered to your door." text: "Get boxes, labels, and shipping supplies delivered to your door."
}, },
{
title: "Write a Telegram",
href: "/telegram",
icon: "fa-duotone fa-typewriter",
text: "Send a hand-delivered telegram anywhere in the Helena area."
},
{ {
title: "Money Services", title: "Money Services",
href: "/money", href: "/money",
icon: "fa-duotone fa-money-bill-wave", icon: "fa-duotone fa-money-bill-wave",
text: "Manage money orders and cryptocurrency." text: "Manage money orders and cryptocurrency."
}, }
{
title: "My Account",
href: "/account",
icon: "fa-duotone fa-user-circle",
text: "View receipts, get account number, update payment method, and more."
},
] ]
}) })
}, {}); }, {});
@ -213,25 +213,31 @@ var routes = [
// text: "Send USPS Flat Rate packages from your phone. Printer optional." // text: "Send USPS Flat Rate packages from your phone. Printer optional."
// }, // },
{ {
title: "From a Drop Box", title: "Shipping Kiosk",
href: "/dropandsend", href: "/postalpoint",
icon: "fa-duotone fa-shop",
text: "Stop by a PostalPoint kiosk at a local business, put your package on the scale, and print postage."
},
{
title: "Drop Box",
href: "/das",
icon: "fa-duotone fa-box-alt", icon: "fa-duotone fa-box-alt",
text: "Bring your package to a Drop and Send drop box or kiosk and we'll ship it for you. No postage or appointment needed." text: "Just drop your package into a Drop and Send drop box. We'll add postage for you and charge your account."
}, },
{ {
title: "Request a Pickup", title: "Pickup",
href: "/pickup", href: "/pickup",
icon: "fa-duotone fa-home", icon: "fa-duotone fa-home",
text: "Leave your package on your porch and we'll pick it up and ship it for you. No postage or appointment needed." text: "Leave your package on your porch and we'll pick it up and ship it for you. No postage or appointment needed."
}, },
{ {
title: "Visit Us", title: "Mobile Shipping Center",
href: "/trailer", href: "/mobile",
icon: "fa-duotone fa-caravan", icon: "fa-duotone fa-caravan",
text: "Our Mobile Shipping Center roams the Helena area like a food truck for mail. Find dates and places here." text: "Our Mobile Shipping Center roams the Helena area like a food truck for mail. Find dates and places here."
}, },
{ {
title: "By Appointment", title: "Appointment",
href: "/appointment/shipping", href: "/appointment/shipping",
icon: "fa-duotone fa-calendar-alt", icon: "fa-duotone fa-calendar-alt",
text: "A courier will come to you on your schedule. No account required." text: "A courier will come to you on your schedule. No account required."
@ -374,7 +380,7 @@ var routes = [
] ]
}, },
{ {
path: '/dropandsend', path: '/das',
name: 'dropandsend', name: 'dropandsend',
content: compiledPages.dropandsend(), content: compiledPages.dropandsend(),
on: { on: {
@ -455,7 +461,7 @@ var routes = [
} }
}, },
{ {
path: '/trailer', path: '/mobile',
name: 'trailer', name: 'trailer',
async: function ( {resolve, reject}) { async: function ( {resolve, reject}) {
app.dialog.preloader("Checking the schedule..."); app.dialog.preloader("Checking the schedule...");

Loading…
Cancel
Save