Added oil page. Typos . google fixes
This commit is contained in:
@@ -2,14 +2,18 @@
|
||||
import "../../../app.postcss";
|
||||
import { onMount } from "svelte";
|
||||
import { PUBLIC_BASE_URL } from "$env/static/public";
|
||||
import type { company } from '$lib/types/types'
|
||||
import type { company, priceitems } from '$lib/types/types'
|
||||
|
||||
export let company_data: company;
|
||||
|
||||
export let oil_data: priceitems;
|
||||
|
||||
let company_name: string = '';
|
||||
let tel_number: string = '';
|
||||
|
||||
let price_emergency: string = '';
|
||||
let price_prime: string = '';
|
||||
let price_same_day: string = '';
|
||||
|
||||
onMount(async () => {
|
||||
await fetch(PUBLIC_BASE_URL + "/info/company", {
|
||||
method: "get",
|
||||
@@ -26,8 +30,27 @@
|
||||
tel_number = company_data["company_phone_number"];
|
||||
}
|
||||
});
|
||||
onMount(async () => {
|
||||
await fetch(PUBLIC_BASE_URL + "/info/price/oil/items", {
|
||||
method: "get",
|
||||
credentials: "include",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
})
|
||||
.then((response) => response.json())
|
||||
.then((result) => (oil_data = result));
|
||||
|
||||
if (oil_data["ok"] == true) {
|
||||
price_emergency = oil_data["price_emergency"];
|
||||
price_prime = oil_data["price_prime"];
|
||||
price_same_day = oil_data["price_same_day"];
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
</script>
|
||||
<title>Home Heating Oil Delivery</title>
|
||||
<div class="bg-secondary px-10">
|
||||
<div
|
||||
@@ -51,8 +74,9 @@
|
||||
Worcester County
|
||||
</div>
|
||||
<div class="col-span-12 text-lg">
|
||||
<ul>100 Gallon Minimum to Worcester County</ul>
|
||||
<ul>Prime - 25$</ul>
|
||||
<ul>100 Gallon Minimum to Worcester County</ul>
|
||||
<ul>Prime - ${price_prime}</ul>
|
||||
<ul>Same Day - ${price_same_day} + price oil</ul>
|
||||
<ul>After Hours Emergency - $150 + price oil (prime included)</ul>
|
||||
</div>
|
||||
|
||||
@@ -63,6 +87,7 @@
|
||||
<div class="col-span-12 text-lg">
|
||||
<ul>Cash on Delivery (C.O.D)</ul>
|
||||
<ul>Credit Card</ul>
|
||||
<ul>Money Order</ul>
|
||||
<ul>Check (with credit card hold till it clears)</ul>
|
||||
</div>
|
||||
|
||||
@@ -90,7 +115,8 @@
|
||||
</li>
|
||||
</div>
|
||||
<div class="flex gap-5">
|
||||
<li class=" font-bold">
|
||||
<li class=" font-bold">
|
||||
4.) Pay with above payments mentioned.
|
||||
|
||||
</li>
|
||||
</div>
|
||||
@@ -103,7 +129,7 @@
|
||||
</div>
|
||||
|
||||
<div class="col-span-12 md:col-span-6">
|
||||
<div class="col-span-12">
|
||||
<div class="col-span-12">
|
||||
<img alt="" class="w-full p-0 m-0" src="/images/truckauburn.jpg" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user