-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathaccountdetails.html
202 lines (169 loc) · 7.61 KB
/
accountdetails.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
<!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">
<link rel="icon" href="https://www.jiomart.com/msassets/favicon.svg?v2" >
<title>Buy Grocery Online at Best Prices Pan India</title>
<link rel="stylesheet" href="styles/accountdetais.css">
<link rel="stylesheet" href="styles/edit.css">
</head>
<body class="body">
<h1>My Account</h1>
<div class="box">
<div class="name-detail-section">
<div class="name-detail-section1">
<div class="name-details">
<div id="image">
<img src="https://www.jiomart.com/msassets/images/icons/profile_white.svg" alt="">
</div>
<div class="name-section">
<h4 id="acc_name">Name</h4>
<p id="mail">Email</p>
<p id="num">Number</p>
</div>
</div>
<div class="payment">
<div class="payment-methods">
<img id="logo" src="https://www.jiomart.com/msassets/images/icons/credit_card.svg" alt="">
<p>Payment Methods</p>
</div>
<div class="order-history">
<img id="logo" src="https://www.jiomart.com/msassets/images/icons/orders.svg" alt="">
<p>Order History</p>
</div>
<div class="delivery-addresses">
<img id="logo" src="https://www.jiomart.com/msassets/images/icons/location_white.svg" alt="">
<p>Delivery Addresses</p>
</div>
</div>
</div>
</div>
<div class="account-information">
<div id="account-information-upper">
<p id="heading">Account Information</p>
<button id="term" onclick="show()">Edit</button>
<!-- <a href="#" >Edit</a> -->
</div>
<div class="customer-details">
<div>
<div class="name">
<p id="frstp">Full Name</p>
<p id="1" class="lastp">Customer Name</p>
</div>
<div class="name">
<p id="frstp">Email id</p>
<p id="2" class="lastp" >Customer Email id</p>
</div>
</div>
<div>
<div class="name">
<p id="frstp">Date Of Birth</p>
<p id="5" class="lastp">Customer date of birth</p>
</div >
<div class="name">
<p id="frstp">Mobile Number</p>
<p id="3" class="lastp">Customer Mobile Number</p>
</div>
<div class="name">
<p id="frstp">Default Address</p>
<p id="4" class="lastp">Customer Default Address</p>
</div>
</div>
</div>
</div>
<div class="logout-section">
<div class="list">My List</div>
<hr>
<div class="list">Wish List</div>
<hr>
<div class="list">Legal Information</div>
<hr>
<div class="list">Need Help</div>
<hr>
<div class="list">Contact us</div>
<hr>
<div class="list">Logout</div>
</div>
</div>
<div class="last-section">
<div class="queries">
<p>For any queries,</p>
<p>WhatsApp us : <span><a href="https://api.whatsapp.com/send/?phone=917000370003&text=Hi&type=phone_number&app_absent=0" id="wpnumber">70003 70003</a></span></p>
</div>
<p class="endp">Due to current situation we are witnessing a huge surge in calls/ e-mails. There may be a delay in response from our side. Kindly bear with us.</p>
</div>
<div class="edit-modal">
<div class="edit">
<div class="cross-red">
<button class="color-red-cross" onclick="cl()"><img src="https://www.jiomart.com/msassets/images/icons/close_red.svg" alt=""></button>
</div>
<div class="customer-form">
<p class="edit-profile">EDIT PROFILE</p>
<form>
<label for="#">FIRST NAME</label>
<input type="text" id="fn" placeholder="Customer first name">
<label for="#">LAST NAME</label>
<input type="text" id="ln" placeholder="Customer last name">
<div class="box1">
<div class="genderbox">
<label for="">GENDER</label>
<select name="gender" id="gender">
<option value="Male">Male</option>
<option value="Female">Female</option>
<option value="#">Others</option>
<option value="#">Unspecified</option>
</select>
</div>
<div class="dob_box">
<label for="">DATE OF BIRTH</label>
<input id="dob" type="date">
</div>
</div>
<label for="#">EMAIL ID</label>
<input type="email" name="" id="eid" placeholder="Customer email id">
<label for="#">MOBILE NO</label>
<input type="number" name="" id="mobnum" placeholder="Customer mobile no">
<button type="submit" id="submit">Save Changes</button>
</form>
</div>
</div>
</div>
</body>
</html>
<script>
let signUpData = JSON.parse(localStorage.getItem('signupData'));
let Mob = JSON.parse(localStorage.getItem('mob'));
let address = JSON.parse(localStorage.getItem('address'));
let form = document.querySelector('form');
form.addEventListener('submit', (e) => {
e.preventDefault();
let data = {
email: form.eid.value,
firstname: form.fn.value,
lastname: form.ln.value,
mobile: form.mobnum.value,
dateofbirth: form.dob.value,
gender: form.gender.value
}
localStorage.setItem('signupData', JSON.stringify(data));
window.location.href = 'accountdetails.html';
})
document.getElementById('acc_name').innerText = `${signUpData.firstname} ${signUpData.lastname}`;
document.getElementById('1').innerText = `${signUpData.firstname} ${signUpData.lastname}`;
document.getElementById('mail').innerText = signUpData.email;
document.getElementById('2').innerText = signUpData.email;
document.getElementById('num').innerText = `+91-${signUpData.mobile}`;
document.getElementById('3').innerText = `+91-${signUpData.mobile}`;
document.getElementById('4').innerText = `+91-${signUpData.mobile}`;
if(signUpData.dateofbirth !== undefined) document.getElementById('5').innerText = signUpData.dateofbirth;
// else document.getElementById('5').innerText = "asdasd";
if(address !== null) document.getElementById('4').innerText = address.houseNo;
let show =()=>{
document.querySelector(".edit-modal").style.display="flex"
}
let cl =()=>{
document.querySelector(".edit-modal").style.display="none"
}
</script>