-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathorderplaced.html
227 lines (224 loc) · 13.1 KB
/
orderplaced.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Order placed sucessfully</title>
<link rel="shortcut icon" type="image/png" href="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxIQDxAQEBAQEA4QEA8QEA8QEBAPDw8QFhYWFhUSFRUYHyggGBolGxYVITEhJSkrLi4uFx80OTQtOCgtLisBCgoKDg0OGhAQGy0mHyItKy0tKy0wLS0tLS0rLS0tLS0rLS0tKy0wLS0tLSstLS0vLS0tLS0tLS0rLSstLS0tLf/AABEIAN8A4gMBIgACEQEDEQH/xAAbAAEAAgMBAQAAAAAAAAAAAAAAAQQCAwUGB//EAEMQAAIBAgIGBgcGBAMJAAAAAAABAgMRBBIFEyExQVEGYXGRobEUIjJSgcHRFkNTcpOiFUJi4SOCgwczY3OSssLS8f/EABwBAAICAwEBAAA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gPWKlFbLbiDp/wBnI/xnuVd7adl//9k=">
</head>
<style>
body
{
margin: 0;
padding: 0;
}
.header
{
background-color: #2874f0;
width: 100%;
height: 75px;
box-sizing: border-box;
display: flex;
}
.header img
{
width: 130px;
height: 40px;
padding: 18px 0px 0px 205px;
cursor: pointer;
}
.oc
{
font-size: 25px;
font-weight: 500;
font-family: Arial, Helvetica, sans-serif;
color: rgb(236, 235, 235);
margin-top: 22px;
margin-left: 820px;
}
.display
{
background: #f0f0f0;
width: 100%;
height: 730px;
border: 1px solid #f0f0f0;
box-sizing: border-box;
}
.bg
{
background: white;
width: 60%;
height: 90%;
/* border: 1px solid red; */
margin: auto;
margin-top: 20px;
box-sizing: border-box;
}
.name
{
width: 100%;
height: 100px;
/* border: 1px solid green; */
display: flex;
box-sizing: border-box;
}
.cus-det
{
width: 100%;
height: 400px;
display: flex;
/* border: 1px solid blue; */
box-sizing: border-box;
}
.un
{
/* border: 1px solid yellow; */
font-family: Arial, Helvetica, sans-serif;
font-size: 25px;
font-weight: 550;
padding: 32px 100px;
width: 400px;
box-sizing: border-box;
}
.det
{
/* border: 1px solid gray; */
margin-left: 40px;
font-family: Arial, Helvetica, sans-serif;
font-size: 20px;
font-weight: 550;
color: rgb(161, 159, 159);
padding: 32px 20px;
background: #fcfcfc;
}
.det span
{
color: black;
}
.line
{
border: 0.2px solid rgb(241, 238, 238);
height: 80%;
margin-left: 100px;
margin-top: 35px;
}
.div-1
{
font-family: Arial, Helvetica, sans-serif;
margin-top: 25px;
box-sizing: border-box;
}
.txt1
{
/* border: 1px solid gray; */
margin-left: 55px;
font-size: 25px;
font-weight: 600;
}
.txt2
{
/* border: 1px solid red; */
margin-left: 55px;
font-size: 20px;
}
.txt3
{
/* border: 1px solid red; */
margin-left: 55px;
font-size: 20px;
font-weight: 550;
line-height: 7px;
}
button
{
margin-left: 55px;
margin-top: 15px;
background-color: #2874f0;
color: white;
width: 250px;
height: 55px;
font-size: 20px;
cursor: pointer;
}
.div-2
{
font-family: Arial, Helvetica, sans-serif;
margin-top: 25px;
box-sizing: border-box;
}
.pro-det
{
width: 100%;
height: 150px;
/* border: 1px solid black; */
padding: 10px;
box-sizing: border-box;
justify-content: center;
align-items: center;
display: flex;
}
</style>
<body>
<div>
<div class="header">
<div>
<img src="https://static-assets-web.flixcart.com/www/linchpin/fk-cp-zion/img/fk-plus_3b0baa.png" alt="">
</div>
<span class="oc">Order Confirmed</span>
</div>
<div class="display">
<div class="bg">
<div class="name">
<div class="un">Hi vasu,</div>
<div class="det"><span>Order placed</span> ---- Order shipped ---- Out for delivery ---- Delivery</div>
</div>
<div class="cus-det">
<div class="div-1">
<p class="txt1">Order successfully placed.</p>
<p class="txt2">Your order will be delivered by Fri 19,Nov 2021</p><br>
<p class="txt3">We are pleased to confirm your order no</p>
<p class="txt3">OD212065797210234000.</p><br>
<p class="txt3">Thank you for shopping with Flipkart!</p>
<button>Manage your order</button>
</div>
<div class="line"></div>
<div class="div-2">
<p class="txt1">Delivery Address</p>
<p class="txt2" id="custN">Name</p>
<p class="txt2" id="custA">Addess line 1</p>
<p class="txt2">Addess line 2: </p>
<p class="txt2">Addess line 3: </p>
<p class="txt2" id="custP" >Pincode : 506002</p>
<p class="txt2" id="custM">Mobile: 9492370877</p>
</div>
</div>
<div class="pro-det">
Product details to be displayed here.
</div>
</div>
</div>
</div>
</body>
</html>
<script>
let name = JSON.parse(localStorage.getItem("token"))?.user.username;
let usertoken = JSON.parse(localStorage.getItem("token"))?.token;
let id = JSON.parse(localStorage.getItem("token"))?.user._id;
let amount = window.location.hash.split('=')[1];
let mail = JSON.parse(localStorage.getItem("token"))?.user.email;
fetch(`https://flipkart-dummy-server.herokuapp.com/user/${id}`,{
headers : {authorization : "Bearer"+" "+usertoken}
}).then(function(res){
return res.json();
}).then(function(res){
console.log(res);
document.getElementById("custM").textContent = `Phone number : ${res.address[0].split(',')[2]}`;
document.getElementById("custN").textContent = `Name : ${name}`;
document.getElementById("custA").textContent = `Email ID : ${res.address[0].split(',')[0]}`;
document.getElementById("custP").textContent = `Email ID : ${res.address[0].split(',')[1]}`;
});
setTimeout(()=>{
window.location.href = "index.html";
},3000);
</script>