Commit 8f011a5a by Adarsh K

address

parent e6c872c6
.login_wrapper {
width: 80%;
margin: 0 auto;
padding-top: 30px;
}
.login_wrapper .logo_wrapper {
width: 100%;
text-align: center;
padding-top: 50px;
padding-bottom: 30px;
}
.login_wrapper .logo_wrapper img {
width: 180px;
}
.login_wrapper h6 {
color: #29285b;
margin: 0px;
}
.login_wrapper h6 span {
position: relative;
top: 2px;
}
.login_wrapper h6 a {
color: #29285b;
text-decoration: none;
font-weight: 900;
}
.login_wrapper h6 .styled-checkbox {
position: absolute;
opacity: 0;
}
.login_wrapper h6 .styled-checkbox + label {
position: relative;
cursor: pointer;
padding: 0;
}
.login_wrapper h6 .styled-checkbox + label:before {
content: '';
margin-right: 10px;
display: inline-block;
vertical-align: text-top;
width: 20px;
height: 20px;
border-radius: 10px;
background: white;
border: 1px solid #d7d5e4;
}
.login_wrapper h6 .styled-checkbox:checked + label:before {
background: #29285b;
}
.login_wrapper h6 .styled-checkbox:disabled + label {
color: #b8b8b8;
cursor: auto;
}
.login_wrapper h6 .styled-checkbox:disabled + label:before {
-webkit-box-shadow: none;
box-shadow: none;
background: #ddd;
}
.login_wrapper h6 .styled-checkbox:checked + label:after {
content: '';
position: absolute;
left: 6px;
top: 11px;
background: white;
width: 2px;
height: 2px;
-webkit-box-shadow: 2px 0 0 white, 4px 0 0 white, 4px -2px 0 white, 4px -4px 0 white, 4px -6px 0 white, 4px -8px 0 white;
box-shadow: 2px 0 0 white, 4px 0 0 white, 4px -2px 0 white, 4px -4px 0 white, 4px -6px 0 white, 4px -8px 0 white;
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
}
.login_wrapper .form_div .row {
margin-bottom: 20px;
}
.login_wrapper .form_div .row input {
border: 1px solid #d7d5e4;
background: transparent;
color: #d7d5e4;
width: 100%;
height: 45px;
text-align: left;
border-radius: 8px;
font-size: 16px;
padding-left: 15px;
padding-right: 15px;
}
.login_wrapper .form_div .row .login_btn {
width: 100%;
background-color: #29285b;
color: #fff;
border-radius: 8px;
height: 45px;
font-size: 16px;
}
.login_wrapper .form_div .row hr {
border: 1px solid #d7d5e4;
border-bottom: none;
margin-top: 30px;
margin-bottom: 10px;
}
.login_wrapper .form_div .row P {
text-align: center;
color: #3b394d;
margin: 0px;
position: relative;
bottom: 20px;
}
.login_wrapper .form_div .row P span {
background-color: #fff;
padding: 10px;
font-size: 18px;
}
.login_wrapper .form_div .row h4 {
color: #3b394d;
text-align: center;
margin: 0px;
padding-top: 15px;
}
.login_wrapper .form_div .row h6 {
color: #29285b;
margin: 0px;
}
.login_wrapper .form_div .row h6 span {
position: relative;
top: 5px;
}
.login_wrapper .form_div .row h6 a {
color: #29285b;
text-decoration: none;
font-weight: 900;
}
.login_wrapper .form_div .row h6 .styled-checkbox {
position: absolute;
opacity: 0;
}
.login_wrapper .form_div .row h6 .styled-checkbox + label {
position: relative;
cursor: pointer;
padding: 0;
}
.login_wrapper .form_div .row h6 .styled-checkbox + label:before {
content: '';
margin-right: 10px;
display: inline-block;
vertical-align: text-top;
width: 20px;
height: 20px;
border-radius: 10px;
background: white;
border: 1px solid #d7d5e4;
}
.login_wrapper .form_div .row h6 .styled-checkbox:checked + label:before {
background: #29285b;
}
.login_wrapper .form_div .row h6 .styled-checkbox:disabled + label {
color: #b8b8b8;
cursor: auto;
}
.login_wrapper .form_div .row h6 .styled-checkbox:disabled + label:before {
-webkit-box-shadow: none;
box-shadow: none;
background: #ddd;
}
.login_wrapper .form_div .row h6 .styled-checkbox:checked + label:after {
content: '';
position: absolute;
left: 10px;
top: 15px;
background: white;
width: 2px;
height: 2px;
-webkit-box-shadow: 2px 0 0 white, 4px 0 0 white, 4px -2px 0 white, 4px -4px 0 white, 4px -6px 0 white, 4px -8px 0 white;
box-shadow: 2px 0 0 white, 4px 0 0 white, 4px -2px 0 white, 4px -4px 0 white, 4px -6px 0 white, 4px -8px 0 white;
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
}
.login_wrapper .form_div .row .social_div {
border: 1px solid #d7d5e4;
height: 45px;
border-radius: 20px;
}
.login_wrapper .form_div .row .social_div .social_btn {
display: inline-block;
width: 50%;
text-align: center;
height: 100%;
font-size: 18px;
padding: 9px;
}
/*# sourceMappingURL=addaddresss.page.css.map */
\ No newline at end of file
{
"version": 3,
"mappings": "AAAA,AAAA,cAAc,CAAC;EACX,KAAK,EAAE,GAAG;EACV,MAAM,EAAE,MAAM;EACd,WAAW,EAAE,IAAI;CAkMpB;;AArMD,AAII,cAJU,CAIV,aAAa,CAAC;EACV,KAAK,EAAE,IAAI;EACX,UAAU,EAAE,MAAM;EAClB,WAAW,EAAE,IAAI;EACjB,cAAc,EAAE,IAAI;CAIvB;;AAZL,AASQ,cATM,CAIV,aAAa,CAKT,GAAG,CAAC;EACA,KAAK,EAAE,KAAK;CACf;;AAXT,AAaI,cAbU,CAaV,EAAE,CAAC;EACC,KAAK,EAAE,OAAmB;EAC1B,MAAM,EAAE,GAAG;CA0Dd;;AAzEL,AAgBQ,cAhBM,CAaV,EAAE,CAGE,IAAI,CAAC;EACD,QAAQ,EAAE,QAAQ;EAClB,GAAG,EAAE,GAAG;CACX;;AAnBT,AAoBQ,cApBM,CAaV,EAAE,CAOE,CAAC,CAAC;EACE,KAAK,EAAE,OAAmB;EAC1B,eAAe,EAAE,IAAI;EACrB,WAAW,EAAE,GAAG;CACnB;;AAxBT,AAyBQ,cAzBM,CAaV,EAAE,CAYE,gBAAgB,CAAC;EACb,QAAQ,EAAE,QAAQ;EAClB,OAAO,EAAE,CAAC;CA6Cb;;AAxET,AA4BY,cA5BE,CAaV,EAAE,CAYE,gBAAgB,GAGV,KAAK,CAAC;EACJ,QAAQ,EAAE,QAAQ;EAClB,MAAM,EAAE,OAAO;EACf,OAAO,EAAE,CAAC;CACb;;AAhCb,AAkCY,cAlCE,CAaV,EAAE,CAYE,gBAAgB,GASV,KAAK,AAAA,OAAO,CAAC;EACX,OAAO,EAAE,EAAE;EACX,YAAY,EAAE,IAAI;EAClB,OAAO,EAAE,YAAY;EACrB,cAAc,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gB,AA+BX,SAAS,GAAC,KAAK,AAAA,OAAO,CAAC;EACpB,UAAU,EAAE,IAAI;EAChB,UAAU,EAAE,IAAI;CACnB;;AAvKrB,AAyKoB,cAzKN,CA0EV,SAAS,CACL,IAAI,CA8CA,EAAE,CAYE,gBAAgB,AAoCX,QAAQ,GAAC,KAAK,AAAA,MAAM,CAAC;EAClB,OAAO,EAAE,EAAE;EACX,QAAQ,EAAE,QAAQ;EAClB,IAAI,EAAE,IAAI;EACV,GAAG,EAAE,IAAI;EACT,UAAU,EAAE,KAAK;EACjB,KAAK,EAAE,GAAG;EACV,MAAM,EAAE,GAAG;EACX,UAAU,EAAE,oGAAoG;EAChH,SAAS,EAAE,aAAa;CAC3B;;AAnLrB,AAsLY,cAtLE,CA0EV,SAAS,CACL,IAAI,CA2GA,WAAW,CAAC;EACR,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC,OAAsB;EACxC,MAAM,EAAE,IAAI;EACZ,aAAa,EAAE,IAAI;CAStB;;AAlMb,AA0LgB,cA1LF,CA0EV,SAAS,CACL,IAAI,CA2GA,WAAW,CAIP,WAAW,CAAC;EACR,OAAO,EAAE,YAAY;EACrB,KAAK,EAAE,GAAG;EACV,UAAU,EAAE,MAAM;EAClB,MAAM,EAAE,IAAI;EACZ,SAAS,EAAE,IAAI;EACf,OAAO,EAAE,GAAG;CACf",
"sources": [
"addaddresss.page.scss"
],
"names": [],
"file": "addaddresss.page.css"
}
\ No newline at end of file
.login_wrapper {
width: 80%;
margin: 0 auto;
padding-top: 30px;
}
.login_wrapper .logo_wrapper {
width: 100%;
text-align: center;
padding-top: 50px;
padding-bottom: 30px;
}
.login_wrapper .logo_wrapper img {
width: 180px;
}
.login_wrapper h6 {
color: #29285b;
margin: 0px;
}
.login_wrapper h6 span {
position: relative;
top: 2px;
}
.login_wrapper h6 a {
color: #29285b;
text-decoration: none;
font-weight: 900;
}
.login_wrapper h6 .styled-checkbox {
position: absolute;
opacity: 0;
}
.login_wrapper h6 .styled-checkbox + label {
position: relative;
cursor: pointer;
padding: 0;
}
.login_wrapper h6 .styled-checkbox + label:before {
content: '';
margin-right: 10px;
display: inline-block;
vertical-align: text-top;
width: 20px;
height: 20px;
border-radius: 10px;
background: white;
border: 1px solid #d7d5e4;
}
.login_wrapper h6 .styled-checkbox:checked + label:before {
background: #29285b;
}
.login_wrapper h6 .styled-checkbox:disabled + label {
color: #b8b8b8;
cursor: auto;
}
.login_wrapper h6 .styled-checkbox:disabled + label:before {
-webkit-box-shadow: none;
box-shadow: none;
background: #ddd;
}
.login_wrapper h6 .styled-checkbox:checked + label:after {
content: '';
position: absolute;
left: 6px;
top: 11px;
background: white;
width: 2px;
height: 2px;
-webkit-box-shadow: 2px 0 0 white, 4px 0 0 white, 4px -2px 0 white, 4px -4px 0 white, 4px -6px 0 white, 4px -8px 0 white;
box-shadow: 2px 0 0 white, 4px 0 0 white, 4px -2px 0 white, 4px -4px 0 white, 4px -6px 0 white, 4px -8px 0 white;
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
}
.login_wrapper .form_div .row {
margin-bottom: 20px;
}
.login_wrapper .form_div .row input {
border: 1px solid #d7d5e4;
background: transparent;
color: #d7d5e4;
width: 100%;
height: 45px;
text-align: left;
border-radius: 8px;
font-size: 16px;
padding-left: 15px;
padding-right: 15px;
text-align: center;
}
.login_wrapper .form_div .row .login_btn {
width: 100%;
background-color: #29285b;
color: #fff;
border-radius: 8px;
height: 45px;
font-size: 16px;
}
.login_wrapper .form_div .row hr {
border: 1px solid #d7d5e4;
border-bottom: none;
margin-top: 30px;
margin-bottom: 10px;
}
.login_wrapper .form_div .row P {
text-align: left;
color: #3b394d;
margin: 0px;
font-weight: 500;
padding-bottom: 10px;
}
.login_wrapper .form_div .row P span {
background-color: #fff;
padding: 10px;
font-size: 18px;
}
.login_wrapper .form_div .row h4 {
color: #3b394d;
text-align: center;
margin: 0px;
padding-top: 15px;
}
.login_wrapper .form_div .row h6 {
color: #29285b;
margin: 0px;
}
.login_wrapper .form_div .row h6 span {
position: relative;
top: 5px;
}
.login_wrapper .form_div .row h6 a {
color: #29285b;
text-decoration: none;
font-weight: 900;
}
.login_wrapper .form_div .row h6 .styled-checkbox {
position: absolute;
opacity: 0;
}
.login_wrapper .form_div .row h6 .styled-checkbox + label {
position: relative;
cursor: pointer;
padding: 0;
}
.login_wrapper .form_div .row h6 .styled-checkbox + label:before {
content: '';
margin-right: 10px;
display: inline-block;
vertical-align: text-top;
width: 20px;
height: 20px;
border-radius: 10px;
background: white;
border: 1px solid #d7d5e4;
}
.login_wrapper .form_div .row h6 .styled-checkbox:checked + label:before {
background: #29285b;
}
.login_wrapper .form_div .row h6 .styled-checkbox:disabled + label {
color: #b8b8b8;
cursor: auto;
}
.login_wrapper .form_div .row h6 .styled-checkbox:disabled + label:before {
-webkit-box-shadow: none;
box-shadow: none;
background: #ddd;
}
.login_wrapper .form_div .row h6 .styled-checkbox:checked + label:after {
content: '';
position: absolute;
left: 10px;
top: 15px;
background: white;
width: 2px;
height: 2px;
-webkit-box-shadow: 2px 0 0 white, 4px 0 0 white, 4px -2px 0 white, 4px -4px 0 white, 4px -6px 0 white, 4px -8px 0 white;
box-shadow: 2px 0 0 white, 4px 0 0 white, 4px -2px 0 white, 4px -4px 0 white, 4px -6px 0 white, 4px -8px 0 white;
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
}
.login_wrapper .form_div .row .social_div {
border: 1px solid #d7d5e4;
height: 45px;
border-radius: 20px;
}
.login_wrapper .form_div .row .social_div .social_btn {
display: inline-block;
width: 50%;
text-align: center;
height: 100%;
font-size: 18px;
padding: 9px;
}
/*# sourceMappingURL=addcard.page.css.map */
\ No newline at end of file
{
"version": 3,
"mappings": "AAAA,AAAA,cAAc,CAAC;EACX,KAAK,EAAE,GAAG;EACV,MAAM,EAAE,MAAM;EACd,WAAW,EAAE,IAAI;CAmMpB;;AAtMD,AAII,cAJU,CAIV,aAAa,CAAC;EACV,KAAK,EAAE,IAAI;EACX,UAAU,EAAE,MAAM;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UAAU,EAAE,KAAK;EACjB,KAAK,EAAE,GAAG;EACV,MAAM,EAAE,GAAG;EACX,UAAU,EAAE,oGAAoG;EAChH,SAAS,EAAE,aAAa;CAC3B;;AApLrB,AAuLY,cAvLE,CA0EV,SAAS,CACL,IAAI,CA4GA,WAAW,CAAC;EACR,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC,OAAsB;EACxC,MAAM,EAAE,IAAI;EACZ,aAAa,EAAE,IAAI;CAStB;;AAnMb,AA2LgB,cA3LF,CA0EV,SAAS,CACL,IAAI,CA4GA,WAAW,CAIP,WAAW,CAAC;EACR,OAAO,EAAE,YAAY;EACrB,KAAK,EAAE,GAAG;EACV,UAAU,EAAE,MAAM;EAClB,MAAM,EAAE,IAAI;EACZ,SAAS,EAAE,IAAI;EACf,OAAO,EAAE,GAAG;CACf",
"sources": [
"addcard.page.scss"
],
"names": [],
"file": "addcard.page.css"
}
\ No newline at end of file
@import url("https://fonts.googleapis.com/css?family=Abel&display=swap");
@import url(//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css);
* {
font-family: 'Abel', sans-serif;
-webkit-font-smoothing: antialiased;
}
.side_menu_wrapper {
background: #29285b;
width: 100%;
height: 100vh;
padding-left: 20px;
padding-top: 20px;
padding-right: 10px;
}
.side_menu_wrapper .top_banner .top_image {
width: 60px;
height: 60px;
float: left;
background-color: #fff;
border-radius: 50%;
}
.side_menu_wrapper .top_banner .top_image img {
width: 100%;
height: 100%;
-o-object-fit: cover;
object-fit: cover;
-o-object-position: center;
object-position: center;
border-radius: 50%;
}
.side_menu_wrapper .top_banner .top_detail {
width: calc(100% - 60px);
float: left;
padding: 7px;
padding-left: 15px;
}
.side_menu_wrapper .top_banner .top_detail h4 {
margin: 0px;
padding: 0px;
color: #fff;
}
.side_menu_wrapper .top_banner .top_detail p {
margin: 0px;
padding: 0px;
color: #fff;
color: #b0aec7;
}
.side_menu_wrapper .sidemenu_list {
padding-top: 30px;
}
.side_menu_wrapper .sidemenu_list ul {
margin: 0px;
padding: 0px;
}
.side_menu_wrapper .sidemenu_list ul li {
list-style: none;
color: #fff;
font-weight: 200;
font-size: 15px;
padding: 10px;
font-size: 16px;
}
.side_menu_wrapper .sidemenu_list ul li:focus {
background-color: #282458;
}
.side_menu_wrapper .sidemenu_list ul li:hover {
background-color: #282458;
}
.side_menu_wrapper .sidemenu_list ul li .version {
color: #b0aec7;
font-size: 14px;
}
.side_menu_wrapper .sidemenu_list ul .sub_menu {
padding-left: 25px;
margin-bottom: 40px;
padding-top: 10px;
}
.side_menu_wrapper .sidemenu_list ul .sub_menu ul {
margin: 0px;
padding: 0px;
}
.side_menu_wrapper .sidemenu_list ul .sub_menu ul li {
list-style: none;
color: #b0aec7;
}
.common_tab {
position: fixed;
bottom: 0px;
left: 0px;
right: 0px;
width: 100%;
height: 50px;
background-color: #fff;
-webkit-box-shadow: 0px 0px 5px 7px rgba(215, 213, 228, 0.5);
box-shadow: 0px 0px 5px 7px rgba(215, 213, 228, 0.5);
}
.common_tab ul {
margin: 0px;
padding: 0px;
width: 100%;
height: 100%;
}
.common_tab ul li {
list-style: none;
display: inline-block;
width: 20%;
height: 100%;
text-align: center;
background-repeat: no-repeat;
background-position: center;
background-size: 25px;
}
.common_tab ul .icon_sec {
width: 50px;
height: 50px;
background-image: url("../assets/icon_sprite.png");
margin: 0 auto;
background-repeat: no-repeat;
background-size: 450px;
}
.common_tab ul .m1_icon {
background-position: top -6px left -249px;
}
.common_tab ul .m1_icon_act {
background-image: url("../assets/icon_sprite_active.png") !important;
background-position: top -6px left -249px;
}
.common_tab ul .m2_icon {
background-position: top -3px left -88px;
}
.common_tab ul .m2_icon_act {
background-image: url("../assets/icon_sprite_active.png") !important;
background-position: top -3px left -88px;
}
.common_tab ul .m3_icon {
background-position: top -6px left -167px;
}
.common_tab ul .m3_icon_act {
background-image: url("../assets/icon_sprite_active.png") !important;
background-position: top -6px left -167px;
}
.common_tab ul .m4_icon {
background-position: top -6px left -5px;
}
.common_tab ul .m4_icon_act {
background-image: url("../assets/icon_sprite_active.png") !important;
background-position: top -6px left -5px;
}
.common_tab ul .m5_icon {
background-position: top -6px left -325px;
}
.common_tab ul .m5_icon_act {
background-image: url("../assets/icon_sprite_active.png") !important;
background-position: top -6px left -325px;
}
.common_tab ul .m6_icon {
background-position: top -6px left -398px;
}
.common_tab ul .m6_icon_act {
background-image: url("../assets/icon_sprite_active.png") !important;
background-position: top -6px left -398px;
}
/*# sourceMappingURL=app.component.css.map */
\ No newline at end of file
{
"version": 3,
"mappings": "AAAA,OAAO,CAAC,gEAAI;AACZ,OAAO,CAAC,sEAAI;AACZ,AAAA,CAAC,CAAC;EACA,WAAW,EAAE,kBAAkB;EAC/B,sBAAsB,EAAE,WAAW;CACpC;;AAED,AAAA,kBAAkB,CAAC;EACjB,UAAU,EAAE,OAAmB;EAC/B,KAAK,EAAE,IAAI;EACX,MAAM,EAAE,KAAK;EACb,YAAY,EAAE,IAAI;EAClB,WAAW,EAAE,IAAI;EACjB,aAAa,EAAE,IAAI;CAwEpB;;AA9ED,AAQI,kBARc,CAOhB,WAAW,CACT,UAAU,CAAC;EACT,KAAK,EAAE,IAAI;EACX,MAAM,EAAE,IAAI;EACZ,KAAK,EAAE,IAAI;EACX,gBAAgB,EAAE,IAAI;EACtB,aAAa,EAAE,GAAG;CAQnB;;AArBL,AAcM,kBAdY,CAOhB,WAAW,CACT,UAAU,CAMR,GAAG,CAAC;EACF,KAAK,EAAE,IAAI;EACX,MAAM,EAAE,IAAI;EACZ,UAAU,EAAE,KAAK;EACjB,eAAe,EAAE,MAAM;EACvB,aAAa,EAAE,GAAG;CACnB;;AApBP,AAsBI,kBAtBc,CAOhB,WAAW,CAeT,WAAW,CAAC;EACV,KAAK,EAAE,iBAAiB;EACxB,KAAK,EAAE,IAAI;EACX,OAAO,EAAE,GAAG;EACZ,YAAY,EAAE,IAAI;CAYnB;;AAtCL,AA2BM,kBA3BY,CAOhB,WAAW,CAeT,WAAW,CAKT,EAAE,CAAC;EAC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CAAC;EACX,gBAAgB,EAAE,uCAAuC,CAAC,UAAU;EACpE,mBAAmB,EAAE,oBAAoB;CAC1C",
"sources": [
"app.component.scss"
],
"names": [],
"file": "app.component.css"
}
\ No newline at end of file
......@@ -6,7 +6,10 @@
<ion-menu-toggle *ngIf="userData">
<div class="top_banner">
<div class="top_image">
<img [src]="userData.profilePhoto" />
<img
[src]="userData.profilePhoto"
onerror="this.src='./../assets/asset_avatar.png'"
/>
</div>
<div class="top_detail">
<h4>{{ userData.name }}</h4>
......
......@@ -38,6 +38,7 @@ export class AppComponent {
menuw: number;
userData: any;
tabData = true;
constructor(
private platform: Platform,
......@@ -52,7 +53,9 @@ export class AppComponent {
public subjectService: SubjectService,
private route: ActivatedRoute
) {
console.log(this.router.url);
this.state = true;
this.initializeApp();
this.subjectService.getLoginData().subscribe(loginData => {
this.state = loginData;
......@@ -67,13 +70,20 @@ export class AppComponent {
console.log(userData);
}
});
this.subjectService.getTabData().subscribe(tabData => {
console.log(tabData);
if (tabData !== null) {
this.tabData = tabData;
console.log(this.tabData);
}
});
}
initializeApp() {
this.platform.ready().then(() => {
this.statusBar.styleDefault();
this.statusBar.overlaysWebView(false);
this.statusBar.show();
this.statusBar.backgroundColorByHexString('#29285b');
});
}
......@@ -88,16 +98,22 @@ export class AppComponent {
fetchCase() {
const restrictedUrl = [
'',
'productdetail',
'cart',
'nearby',
'verification',
'orderplaced'
'orderplaced',
'landing',
'login',
'signup',
'address'
];
const currentUrl = this.router.url.split('/');
const index = restrictedUrl.findIndex(x => x === currentUrl[1]);
// console.log(currentUrl[1], index, this.state);
if (index > -1 || this.state === true) {
console.log(this.tabData);
if (index > -1 || this.tabData === false) {
return true;
} else {
return false;
......
......@@ -12,7 +12,6 @@ import { AddressList } from './../../config/services/address';
import { trigger, transition, animate, style } from '@angular/animations';
import { zip } from 'rxjs';
@Component({
selector: 'app-cart',
templateUrl: './cart.page.html',
......@@ -30,7 +29,6 @@ import { zip } from 'rxjs';
]
})
export class CartPage implements OnInit {
@ViewChild(IonSlides, { static: false }) slides: IonSlides;
currentIndex: any;
isShow = false;
......@@ -70,14 +68,17 @@ export class CartPage implements OnInit {
this.discountApplied = false;
this.discount = 0;
this.cartService.cartList();
const users = this.service.get('user').then((data) => {
this.loader = true;
const users = this.service.get('user').then(data => {
if (data) {
data = JSON.parse(data);
this.custId = data.uid;
this.addressService.addList(data.uid);
}
});
setTimeout(() => {
this.loader = false;
}, 1000);
}
ngOnInit() {
......@@ -85,10 +86,11 @@ export class CartPage implements OnInit {
this.setAddress();
}
setAddress() {
if (this.addressService.addressList.length > 0) {
let address = this.addressService.addressList.find(x => x.defaultVal === 1);
let address = this.addressService.addressList.find(
x => x.defaultVal === 1
);
if (!address) {
address = this.addressService.addressList[0];
}
......@@ -114,7 +116,7 @@ export class CartPage implements OnInit {
}
getTax(amount) {
return this.taxAmount = (amount * 10) / 100;
return (this.taxAmount = (amount * 10) / 100);
}
getwaypayk() {
......@@ -128,8 +130,6 @@ export class CartPage implements OnInit {
return await modal.present();
}
goToPage(path, data = null) {
this.router.navigateByUrl(path, { queryParams: data });
document.body.scrollTop = document.documentElement.scrollTop = 0;
......@@ -146,8 +146,6 @@ export class CartPage implements OnInit {
this.custAddress = this.addressService.addressList[index];
}
next(index: number = null) {
this.loader = true;
const This = this;
......@@ -158,14 +156,16 @@ export class CartPage implements OnInit {
if (index === 2) {
if (this.custAddress !== undefined) {
const otherCharges = {
deliveryCharge : this.deliveryCharge,
deliveryCharge: this.deliveryCharge,
taxAmount: this.taxAmount,
discount: this.discount,
discountApplied: this.discountApplied,
totalAmt: this.totalAmt,
custAddress: this.custAddress
};
const state = this.orderService.checkOut(this.cartService.carts, otherCharges).then((data) => {
const state = this.orderService
.checkOut(this.cartService.carts, otherCharges)
.then(data => {
console.log('ready for slide');
this.slides.slideNext();
});
......@@ -192,7 +192,6 @@ export class CartPage implements OnInit {
}
}
slideChanged() {
this.slides.getActiveIndex().then(index => {
this.currentIndex = index;
......@@ -210,14 +209,15 @@ export class CartPage implements OnInit {
}
getTotal(total) {
const actualTotal = (this.deliveryCharge + this.taxAmount + total) - this.discount;
const actualTotal =
this.deliveryCharge + this.taxAmount + total - this.discount;
this.totalAmt = actualTotal;
return actualTotal;
}
promoApply(code) {
console.log(code);
this.cartService.checkPromo(code).subscribe((value) => {
this.cartService.checkPromo(code).subscribe(value => {
if (value.length > 0) {
const promo = value[0];
this.discountApplied = true;
......@@ -239,7 +239,20 @@ export class CartPage implements OnInit {
formatDate() {
const date = new Date();
const months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'June', 'July', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
const months = [
'Jan',
'Feb',
'Mar',
'Apr',
'May',
'June',
'July',
'Aug',
'Sep',
'Oct',
'Nov',
'Dec'
];
let hours = date.getHours();
const minutes = date.getMinutes();
const ampm = hours >= 12 ? 'PM' : 'AM';
......@@ -247,7 +260,14 @@ export class CartPage implements OnInit {
hours = hours ? hours : 12; // the hour '0' should be '12'
const newminutes = minutes < 10 ? '0' + minutes : minutes;
const strTime = hours + ':' + newminutes + ' ' + ampm;
return months[date.getMonth()] + ' ' + date.getDate() + ',' + date.getFullYear() + ' ' + strTime;
return (
months[date.getMonth()] +
' ' +
date.getDate() +
',' +
date.getFullYear() +
' ' +
strTime
);
}
}
import { Component, OnInit } from "@angular/core";
import { Router } from "@angular/router";
import { Location } from "@angular/common";
import { ServiceService } from "./../../config/service.service";
import { ShoppersService } from "./../../config/shopper.service";
import { SearchService } from "../../config/search.service";
import { trigger, transition, animate, style } from "@angular/animations";
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { Location } from '@angular/common';
import { ServiceService } from './../../config/service.service';
import { ShoppersService } from './../../config/shopper.service';
import { SearchService } from '../../config/search.service';
import { trigger, transition, animate, style } from '@angular/animations';
import { ModalController } from '@ionic/angular';
import { SearchmodalPage } from '../searchmodal/searchmodal.page';
import { SubjectService } from './../../config/subject.service';
@Component({
selector: "app-catstorelist",
templateUrl: "./catstorelist.page.html",
styleUrls: ["./catstorelist.page.scss"],
selector: 'app-catstorelist',
templateUrl: './catstorelist.page.html',
styleUrls: ['./catstorelist.page.scss'],
animations: [
trigger("slideInOut", [
transition(":enter", [
style({ transform: "translateY(100%)" }),
animate("200ms ease-in", style({ transform: "translateY(0%)" }))
trigger('slideInOut', [
transition(':enter', [
style({ transform: 'translateY(100%)' }),
animate('200ms ease-in', style({ transform: 'translateY(0%)' }))
]),
transition(":leave", [
animate("200ms ease-out", style({ transform: "translateY(100%)" }))
transition(':leave', [
animate('200ms ease-out', style({ transform: 'translateY(100%)' }))
])
])
]
......@@ -34,17 +37,25 @@ export class CatStorelistPage implements OnInit {
public location: Location,
public service: ServiceService,
public shopperService: ShoppersService,
private searchService: SearchService
private searchService: SearchService,
private modalController: ModalController,
private subjectService: SubjectService
) {
this.service.get("params").then(val => {
this.service.get('params').then(val => {
this.data = val;
this.shopperService.shopperList(this.data.catId, "catId");
this.shopperService.shopperList(this.data.catId, 'catId');
});
}
clickSearch() {
this.searchShow = true;
this.searchService.searchList = [];
async clickSearch() {
this.subjectService.setTabData(false);
const modal = await this.modalController.create({
component: SearchmodalPage
});
modal.onDidDismiss().then(dataReturned => {
this.subjectService.setTabData(true);
});
return await modal.present();
}
searchClose() {
......@@ -53,7 +64,7 @@ export class CatStorelistPage implements OnInit {
ngOnInit() {}
goToPage(path, data = null) {
this.service.set("params", data);
this.service.set('params', data);
this.router.navigateByUrl(path, { queryParams: data });
document.body.scrollTop = document.documentElement.scrollTop = 0;
}
......
.login_wrapper {
width: 80%;
margin: 0 auto;
padding-top: 10px;
}
.login_wrapper .logo_wrapper {
width: 100%;
text-align: center;
padding-top: 50px;
padding-bottom: 30px;
}
.login_wrapper .logo_wrapper img {
width: 180px;
}
.login_wrapper .form_div .row {
margin-bottom: 20px;
}
.login_wrapper .form_div .row h6 {
color: #3b394d !important;
text-align: left;
font-weight: 900;
}
.login_wrapper .form_div .row input {
border: 1px solid #d7d5e4;
background: transparent;
color: #d7d5e4;
width: 100%;
height: 45px;
text-align: center;
border-radius: 8px;
font-size: 16px;
padding-left: 15px;
padding-right: 15px;
}
.login_wrapper .form_div .row .login_btn {
width: 100%;
background-color: #29285b;
color: #fff;
border-radius: 8px;
height: 45px;
font-size: 16px;
}
.login_wrapper .form_div .row hr {
border: 1px solid #d7d5e4;
border-bottom: none;
margin-top: 30px;
margin-bottom: 10px;
}
.login_wrapper .form_div .row P {
text-align: center;
color: #3b394d;
margin: 0px;
position: relative;
bottom: 20px;
}
.login_wrapper .form_div .row P span {
background-color: #fff;
padding: 10px;
font-size: 18px;
}
.login_wrapper .form_div .row h4 {
color: #3b394d;
text-align: center;
margin: 0px;
padding-top: 15px;
}
.login_wrapper .form_div .row h6 {
color: #29285b;
}
.login_wrapper .form_div .row h6 span {
position: relative;
top: 5px;
}
.login_wrapper .form_div .row h6 a {
color: #29285b;
text-decoration: none;
font-weight: 900;
}
.login_wrapper .form_div .row h6 .styled-checkbox {
position: absolute;
opacity: 0;
}
.login_wrapper .form_div .row h6 .styled-checkbox + label {
position: relative;
cursor: pointer;
padding: 0;
}
.login_wrapper .form_div .row h6 .styled-checkbox + label:before {
content: '';
margin-right: 10px;
display: inline-block;
vertical-align: text-top;
width: 30px;
height: 30px;
border-radius: 10px;
background: white;
border: 1px solid #d7d5e4;
}
.login_wrapper .form_div .row h6 .styled-checkbox:checked + label:before {
background: #29285b;
}
.login_wrapper .form_div .row h6 .styled-checkbox:disabled + label {
color: #b8b8b8;
cursor: auto;
}
.login_wrapper .form_div .row h6 .styled-checkbox:disabled + label:before {
-webkit-box-shadow: none;
box-shadow: none;
background: #ddd;
}
.login_wrapper .form_div .row h6 .styled-checkbox:checked + label:after {
content: '';
position: absolute;
left: 10px;
top: 15px;
background: white;
width: 2px;
height: 2px;
-webkit-box-shadow: 2px 0 0 white, 4px 0 0 white, 4px -2px 0 white, 4px -4px 0 white, 4px -6px 0 white, 4px -8px 0 white;
box-shadow: 2px 0 0 white, 4px 0 0 white, 4px -2px 0 white, 4px -4px 0 white, 4px -6px 0 white, 4px -8px 0 white;
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
}
.login_wrapper .form_div .row .social_div {
border: 1px solid #d7d5e4;
height: 45px;
border-radius: 20px;
}
.login_wrapper .form_div .row .social_div .social_btn {
display: inline-block;
width: 50%;
text-align: center;
height: 100%;
font-size: 18px;
padding: 9px;
}
/*# sourceMappingURL=changedetails.page.css.map */
\ No newline at end of file
{
"version": 3,
"mappings": "AAAA,AAAA,cAAc,CAAC;EACX,KAAK,EAAE,GAAG;EACV,MAAM,EAAE,MAAM;EACd,WAAW,EAAE,IAAI;CAyIpB;;AA5ID,AAII,cAJU,CAIV,aAAa,CAAC;EACV,KAAK,EAAE,IAAI;EACX,UAAU,EAAE,MAAM;EAClB,WAAW,EAAE,IAAI;EACjB,cAAc,EAAE,IAAI;CAIvB;;AAZL,AASQ,cATM,CAIV,aAAa,CAKT,GAAG,CAAC;EACA,KAAK,EAAE,KAAK;CACf;;AAXT,AAcQ,cAdM,CAaV,SAAS,CACL,IAAI,CAAC;EACD,aAAa,EAAE,IAAI;CA2HtB;;AA1IT,AAgBY,cAhBE,CAaV,SAAS,CACL,IAAI,CAEA,EAAE,CAAC;EACC,KAAK,EAAE,OAAmB,CAAC,UAAU;EACrC,UAAU,EAAE,IAAI;EAChB,WAAW,EAAE,GAAG;CACnB;;AApBb,AAqBY,cArBE,CAaV,SAAS,CACL,IAAI,CAOA,KAAK,CAAC;EACF,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC,OAAsB;EACxC,UAAU,EAAE,WAAW;EACvB,KAAK,EAAE,OAAsB;EAC7B,KAAK,EAAE,IAAI;EACX,MAAM,EAAE,IAAI;EACZ,UAAU,EAAE,MAAM;EAClB,aAAa,EAAE,GAAG;EAClB,SAAS,EAAE,IAAI;EACf,YAAY,EAAE,IAAI;EAClB,aAAa,EAAE,IAAI;CACtB;;AAhCb,AAiCY,cAjCE,CAaV,SAAS,CACL,IAA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A,EAAE,CAWE,gBAAgB,AAoCX,QAAQ,GAAC,KAAK,AAAA,MAAM,CAAC;EAClB,OAAO,EAAE,EAAE;EACX,QAAQ,EAAE,QAAQ;EAClB,IAAI,EAAE,IAAI;EACV,GAAG,EAAE,IAAI;EACT,UAAU,EAAE,KAAK;EACjB,KAAK,EAAE,GAAG;EACV,MAAM,EAAE,GAAG;EACX,UAAU,EAAE,oGAAoG;EAChH,SAAS,EAAE,aAAa;CAC3B;;AA1HrB,AA6HY,cA7HE,CAaV,SAAS,CACL,IAAI,CA+GA,WAAW,CAAC;EACR,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC,OAAsB;EACxC,MAAM,EAAE,IAAI;EACZ,aAAa,EAAE,IAAI;CAStB;;AAzIb,AAiIgB,cAjIF,CAaV,SAAS,CACL,IAAI,CA+GA,WAAW,CAIP,WAAW,CAAC;EACR,OAAO,EAAE,YAAY;EACrB,KAAK,EAAE,GAAG;EACV,UAAU,EAAE,MAAM;EAClB,MAAM,EAAE,IAAI;EACZ,SAAS,EAAE,IAAI;EACf,OAAO,EAAE,GAAG;CACf",
"sources": [
"changedetails.page.scss"
],
"names": [],
"file": "changedetails.page.css"
}
\ No newline at end of file
.verification_div {
width: 80%;
margin: 0 auto;
}
.verification_div .form_div {
padding-top: 60%;
}
.verification_div .form_div .row {
margin-bottom: 20px;
}
.verification_div .form_div .row input {
border: 1px solid #d7d5e4;
background: transparent;
color: #d7d5e4;
width: 100%;
height: 45px;
text-align: center;
border-radius: 8px;
font-size: 16px;
}
.verification_div .form_div .row .login_btn {
width: 100%;
background-color: #29285b;
color: #fff;
border-radius: 8px;
height: 45px;
font-size: 16px;
}
.verification_div .form_div .row .resend_btn {
width: 100%;
background-color: transparent;
color: #29285b;
border-radius: 8px;
height: 45px;
font-size: 16px;
font-weight: 900;
}
.verification_div .form_div .row hr {
border: 1px solid #d7d5e4;
border-bottom: none;
margin-top: 30px;
margin-bottom: 10px;
}
.verification_div .form_div .row P {
text-align: center;
color: #3b394d;
margin: 0px;
text-align: center;
}
.verification_div .form_div .row P span {
background-color: #fff;
padding: 10px;
font-size: 18px;
}
.verification_div .form_div .row h4 {
color: #3b394d;
text-align: center;
margin: 0px;
padding-top: 15px;
}
.verification_div .form_div .row h6 {
color: #29285b;
text-align: center;
font-weight: bold;
padding-bottom: 20%;
font-size: 25px;
}
.verification_div .form_div .row h6 .styled-checkbox {
position: absolute;
opacity: 0;
}
.verification_div .form_div .row h6 .styled-checkbox + label {
position: relative;
cursor: pointer;
padding: 0;
}
.verification_div .form_div .row h6 .styled-checkbox + label:before {
content: '';
margin-right: 10px;
display: inline-block;
vertical-align: text-top;
width: 30px;
height: 30px;
border-radius: 10px;
background: white;
border: 1px solid #d7d5e4;
}
.verification_div .form_div .row h6 .styled-checkbox:checked + label:before {
background: #29285b;
}
.verification_div .form_div .row h6 .styled-checkbox:disabled + label {
color: #b8b8b8;
cursor: auto;
}
.verification_div .form_div .row h6 .styled-checkbox:disabled + label:before {
-webkit-box-shadow: none;
box-shadow: none;
background: #ddd;
}
.verification_div .form_div .row h6 .styled-checkbox:checked + label:after {
content: '';
position: absolute;
left: 10px;
top: 15px;
background: white;
width: 2px;
height: 2px;
-webkit-box-shadow: 2px 0 0 white, 4px 0 0 white, 4px -2px 0 white, 4px -4px 0 white, 4px -6px 0 white, 4px -8px 0 white;
box-shadow: 2px 0 0 white, 4px 0 0 white, 4px -2px 0 white, 4px -4px 0 white, 4px -6px 0 white, 4px -8px 0 white;
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
}
.verification_div .form_div .row .social_div {
border: 1px solid #d7d5e4;
height: 45px;
border-radius: 20px;
}
.verification_div .form_div .row .social_div .social_btn {
display: inline-block;
width: 50%;
text-align: center;
height: 100%;
font-size: 18px;
padding: 9px;
}
/*# sourceMappingURL=changepass.page.css.map */
\ No newline at end of file
{
"version": 3,
"mappings": "AAAC,AAAA,iBAAiB,CAAC;EACd,KAAK,EAAE,GAAG;EACV,MAAM,EAAE,MAAM;CA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changepass.page.scss"
],
"names": [],
"file": "changepass.page.css"
}
\ No newline at end of file
.verification_div {
width: 80%;
margin: 0 auto;
}
.verification_div .form_div {
padding-top: 60%;
}
.verification_div .form_div .row {
margin-bottom: 20px;
}
.verification_div .form_div .row input {
border: 1px solid #d7d5e4;
background: transparent;
color: #d7d5e4;
width: 100%;
height: 45px;
text-align: center;
border-radius: 8px;
font-size: 16px;
}
.verification_div .form_div .row .login_btn {
width: 100%;
background-color: #29285b;
color: #fff;
border-radius: 8px;
height: 45px;
font-size: 16px;
}
.verification_div .form_div .row .resend_btn {
width: 100%;
background-color: transparent;
color: #29285b;
border-radius: 8px;
height: 45px;
font-size: 16px;
font-weight: 900;
}
.verification_div .form_div .row hr {
border: 1px solid #d7d5e4;
border-bottom: none;
margin-top: 30px;
margin-bottom: 10px;
}
.verification_div .form_div .row P {
text-align: center;
color: #3b394d;
margin: 0px;
text-align: center;
}
.verification_div .form_div .row P span {
background-color: #fff;
padding: 10px;
font-size: 18px;
}
.verification_div .form_div .row h4 {
color: #3b394d;
text-align: center;
margin: 0px;
padding-top: 15px;
}
.verification_div .form_div .row h6 {
color: #29285b;
text-align: center;
font-weight: bold;
padding-bottom: 20%;
font-size: 25px;
}
.verification_div .form_div .row h6 .styled-checkbox {
position: absolute;
opacity: 0;
}
.verification_div .form_div .row h6 .styled-checkbox + label {
position: relative;
cursor: pointer;
padding: 0;
}
.verification_div .form_div .row h6 .styled-checkbox + label:before {
content: '';
margin-right: 10px;
display: inline-block;
vertical-align: text-top;
width: 30px;
height: 30px;
border-radius: 10px;
background: white;
border: 1px solid #d7d5e4;
}
.verification_div .form_div .row h6 .styled-checkbox:checked + label:before {
background: #29285b;
}
.verification_div .form_div .row h6 .styled-checkbox:disabled + label {
color: #b8b8b8;
cursor: auto;
}
.verification_div .form_div .row h6 .styled-checkbox:disabled + label:before {
-webkit-box-shadow: none;
box-shadow: none;
background: #ddd;
}
.verification_div .form_div .row h6 .styled-checkbox:checked + label:after {
content: '';
position: absolute;
left: 10px;
top: 15px;
background: white;
width: 2px;
height: 2px;
-webkit-box-shadow: 2px 0 0 white, 4px 0 0 white, 4px -2px 0 white, 4px -4px 0 white, 4px -6px 0 white, 4px -8px 0 white;
box-shadow: 2px 0 0 white, 4px 0 0 white, 4px -2px 0 white, 4px -4px 0 white, 4px -6px 0 white, 4px -8px 0 white;
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
}
.verification_div .form_div .row .social_div {
border: 1px solid #d7d5e4;
height: 45px;
border-radius: 20px;
}
.verification_div .form_div .row .social_div .social_btn {
display: inline-block;
width: 50%;
text-align: center;
height: 100%;
font-size: 18px;
padding: 9px;
}
/*# sourceMappingURL=forgot.page.css.map */
\ No newline at end of file
{
"version": 3,
"mappings": "AAAC,AAAA,iBAAiB,CAAC;EACd,KAAK,EAAE,GAAG;EACV,MAAM,EAAE,MAAM;CA4HjB;;AA9HD,AAGI,iBAHa,CAGb,SAAS,CAAC;EACN,WAAW,EAAE,GAAG;CAyHnB;;AA7HL,AAKQ,iBALS,CAGb,SAAS,CAEL,IAAI,CAAC;EACD,aAAa,EAAE,IAAI;CAsHtB;;AA5HT,AAOY,iBAPK,CAGb,SAAS,CAEL,IAAI,CAEA,KAAK,CAAC;EACF,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC,OAAsB;EACxC,UAAU,EAAE,WAAW;EACvB,KAAK,EAAE,OAAsB;EAC7B,KAAK,EAAE,IAAI;EACX,MAAM,EAAE,IAAI;EACZ,UAAU,EAAE,MAAM;EAClB,aAAa,EAAE,GAAG;EAClB,SAAS,EAAE,IAAI;CAClB;;AAhBb,AAiBY,iBAjBK,CAGb,SAAS,CAEL,IAAI,CAYA,UAAU,CAAC;EACP,KAAK,EAAE,IAAI;EACX,gBAAgB,EAAE,OAAO;EACzB,KAAK,EAAE,IAAI;EACX,aAAa,EAAE,GAAG;EAClB,MAAM,EAAE,IAAI;EACZ,SAAS,EAAE,IAAI;CAClB;;AAxBb,AAyBY,iBAzBK,CAGb,S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AI;EACT,UAAU,EAAE,KAAK;EACjB,KAAK,EAAE,GAAG;EACV,MAAM,EAAE,GAAG;EACX,UAAU,EAAE,oGAAoG;EAChH,SAAS,EAAE,aAAa;CAC3B;;AA5GrB,AA+GY,iBA/GK,CAGb,SAAS,CAEL,IAAI,CA0GA,WAAW,CAAC;EACR,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC,OAAsB;EACxC,MAAM,EAAE,IAAI;EACZ,aAAa,EAAE,IAAI;CAStB;;AA3Hb,AAmHgB,iBAnHC,CAGb,SAAS,CAEL,IAAI,CA0GA,WAAW,CAIP,WAAW,CAAC;EACR,OAAO,EAAE,YAAY;EACrB,KAAK,EAAE,GAAG;EACV,UAAU,EAAE,MAAM;EAClB,MAAM,EAAE,IAAI;EACZ,SAAS,EAAE,IAAI;EACf,OAAO,EAAE,GAAG;CACf",
"sources": [
"forgot.page.scss"
],
"names": [],
"file": "forgot.page.css"
}
\ No newline at end of file
......@@ -8,6 +8,7 @@ import { CenterService } from './../../config/center.service';
import { ShoppersService } from './../../config/shopper.service';
import { CategoriesService } from './../../config/category.service';
import { ServiceService } from './../../config/service.service';
import { SubjectService } from './../../config/subject.service';
import { AddressService } from './../../config/address.service';
import { SearchService } from './../../config/search.service';
import { ProductsService } from './../../config/products.service';
......@@ -56,7 +57,8 @@ export class HomePage implements OnInit {
public modalController: ModalController,
private mapsAPILoader: MapsAPILoader,
private searchService: SearchService,
private productsService: ProductsService
private productsService: ProductsService,
private subjectService: SubjectService
) {}
ngOnInit() {
......@@ -135,6 +137,8 @@ export class HomePage implements OnInit {
istoggle() {
this.isShow = !this.isShow;
console.log(this.isShow);
this.subjectService.setTabData(!this.isShow);
}
viewPage(datas: any) {
......@@ -167,10 +171,13 @@ export class HomePage implements OnInit {
}
async searchModal() {
this.subjectService.setTabData(false);
const modal = await this.modalController.create({
component: SearchmodalPage
});
modal.onDidDismiss().then(dataReturned => {});
modal.onDidDismiss().then(dataReturned => {
this.subjectService.setTabData(true);
});
return await modal.present();
}
}
.start_wizard_wrapper {
padding-top: 30px;
}
.start_wizard_wrapper ion-slides .wizard_inner_wrapper {
width: 100%;
}
.start_wizard_wrapper ion-slides .wizard_inner_wrapper .wizard_textarea {
width: 100%;
padding: 15px;
padding-top: 0px;
padding-bottom: 30px;
}
.start_wizard_wrapper ion-slides .wizard_inner_wrapper .wizard_textarea h3 {
color: #3b394d;
font-size: 20px;
margin: 0px;
padding: 0px;
font-weight: 800;
padding-bottom: 10px;
}
.start_wizard_wrapper ion-slides .wizard_inner_wrapper .wizard_textarea p {
color: #4e4961;
margin: 0px;
padding: 0px;
font-size: 16px;
padding-bottom: 20px;
}
.start_wizard_wrapper ion-slides .swiper-pagination .swiper-pagination-bullet {
background: #282438 !important;
}
.start_wizard_wrapper .btn_row {
text-align: center;
padding: 10px;
}
.start_wizard_wrapper .btn_row .btn_bay {
display: inline-block;
border-radius: 20px;
}
.start_wizard_wrapper .btn_row .btn_bay .btn_next {
background-color: #29285b;
display: inline-block;
padding: 10px;
padding-left: 30px;
padding-right: 30px;
cursor: pointer;
border-radius: 8px;
color: #fff;
font-size: 18px;
letter-spacing: 2px;
}
.start_wizard_wrapper .btn_row .btn_bay .btn_getstarted {
width: 100%;
background-color: #29285b;
display: inline-block;
padding: 10px;
padding-left: 50px;
padding-right: 50px;
cursor: pointer;
border-radius: 8px;
color: #fff;
}
/*# sourceMappingURL=landing.page.css.map */
\ No newline at end of file
{
"version": 3,
"mappings": "AAAA,AAAA,qBAAqB,CAAC;EAClB,WAAW,EAAE,IAAI;CA+DpB;;AAhED,AAGQ,qBAHa,CAEjB,UAAU,CACN,qBAAqB,CAAC;EAClB,KAAK,EAAE,IAAI;CAsBd;;AA1BT,AAKY,qBALS,CAEjB,UAAU,CACN,qBAAqB,CAEjB,gBAAgB,CAAC;EACb,KAAK,EAAE,IAAI;EACX,OAAO,EAAE,IAAI;EACb,WAAW,EAAE,GAAG;EAChB,cAAc,EAAE,IAAI;CAgBvB;;AAzBb,AAUgB,q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IAAI;EACb,YAAY,EAAE,IAAI;EAClB,aAAa,EAAE,IAAI;EACnB,MAAM,EAAE,OAAO;EACf,aAAa,EAAE,GAAG;EAClB,KAAK,EAAE,IAAI;CACd",
"sources": [
"landing.page.scss"
],
"names": [],
"file": "landing.page.css"
}
\ No newline at end of file
<ion-content>
<div class="start_wizard_wrapper">
<ion-slides pager="true" [options]="landingOptions" (ionSlideDidChange)="slideChanged()">
<ion-slides
pager="true"
[options]="landingOptions"
(ionSlideDidChange)="slideChanged()"
>
<ion-slide>
<div class="wizard_inner_wrapper">
<img src="../assets/Group 229_2.png">
<img src="../assets/Group 229_2.png" />
<div class="wizard_textarea">
<h3>EASY PURCHASE</h3>
<p>
Purchase your products from your<br> favourite shops
Purchase your products from your<br />
favourite shops
</p>
</div>
</div>
</ion-slide>
<ion-slide>
<div class="wizard_inner_wrapper">
<img src="../assets/Group 230_2.png">
<img src="../assets/Group 230_2.png" />
<div class="wizard_textarea">
<h3>1 HOUR DELIVERY</h3>
<p>
The products will be delivered<br>within 1 hour
</p>
<p>The products will be delivered<br />within 1 hour</p>
</div>
</div>
</ion-slide>
<ion-slide>
<div class="wizard_inner_wrapper">
<img src="../assets/Group 231_2.png">
<img src="../assets/Group 231_2.png" />
<div class="wizard_textarea">
<h3>EASY PAYMENT</h3>
<p>
......@@ -49,4 +52,10 @@
</div>
</div>
</div>
<div class="loader" *ngIf="loader">
<div class="lds-ripple">
<div></div>
<div></div>
</div>
</div>
</ion-content>
import { Component, OnInit, ViewChild } from "@angular/core";
import { IonSlides } from "@ionic/angular";
import { Router, ActivatedRoute } from "@angular/router";
import { ServiceService } from "./../../config/service.service";
import { SubjectService } from "./../../config/subject.service";
import { Component, OnInit, ViewChild } from '@angular/core';
import { IonSlides } from '@ionic/angular';
import { Router, ActivatedRoute } from '@angular/router';
import { ServiceService } from './../../config/service.service';
import { SubjectService } from './../../config/subject.service';
@Component({
selector: "app-landing",
templateUrl: "./landing.page.html",
styleUrls: ["./landing.page.scss"]
selector: 'app-landing',
templateUrl: './landing.page.html',
styleUrls: ['./landing.page.scss']
})
export class LandingPage implements OnInit {
loader: boolean;
constructor(
private router: Router,
private route: ActivatedRoute,
private service: ServiceService,
public subjectService: SubjectService
) {
this.service.get("landing").then(data => {
this.loader = true;
this.service.get('landing').then(data => {
if (data === true) {
const user = JSON.parse(localStorage.getItem("user"));
const user = JSON.parse(localStorage.getItem('user'));
console.log(user);
if (user) {
this.subjectService.sendLoginData(false);
this.goToPage("home");
this.goToPage('home');
} else {
this.subjectService.sendLoginData(true);
this.goToPage("login");
this.goToPage('login');
}
}
this.loader = false;
});
}
......@@ -49,7 +52,7 @@ export class LandingPage implements OnInit {
ngOnInit() {}
goToPage(path, data = null) {
this.service.set("landing", true);
this.service.set('landing', true);
this.router.navigateByUrl(path, { queryParams: data });
document.body.scrollTop = document.documentElement.scrollTop = 0;
}
......
.login_wrapper {
width: 80%;
margin: 0 auto;
}
.login_wrapper .logo_wrapper {
width: 100%;
text-align: center;
padding-top: 50px;
padding-bottom: 30px;
}
.login_wrapper .logo_wrapper img {
width: 180px;
}
.login_wrapper .form_div .row {
margin-bottom: 20px;
}
.login_wrapper .form_div .row input {
border: 1px solid #d7d5e4;
background: transparent;
color: #d7d5e4;
width: 100%;
height: 45px;
text-align: center;
border-radius: 8px;
font-size: 16px;
}
.login_wrapper .form_div .row .login_btn {
width: 100%;
background-color: #29285b;
color: #fff;
border-radius: 8px;
height: 45px;
font-size: 16px;
}
.login_wrapper .form_div .row hr {
border: 1px solid #d7d5e4;
border-bottom: none;
margin-top: 30px;
margin-bottom: 10px;
}
.login_wrapper .form_div .row P {
text-align: center;
color: #3b394d;
margin: 0px;
position: relative;
bottom: 20px;
}
.login_wrapper .form_div .row P span {
background-color: #fff;
padding: 10px;
font-size: 18px;
}
.login_wrapper .form_div .row h4 {
color: #3b394d;
text-align: center;
margin: 0px;
padding-top: 15px;
}
.login_wrapper .form_div .row .social_div {
border: 1px solid #d7d5e4;
height: 45px;
border-radius: 20px;
}
.login_wrapper .form_div .row .social_div .social_btn {
display: inline-block;
width: 50%;
text-align: center;
height: 100%;
font-size: 18px;
padding: 9px;
}
/*# sourceMappingURL=login.page.css.map */
\ No newline at end of file
{
"version": 3,
"mappings": "AAAA,AAAA,cAAc,CAAC;EACX,KAAK,EAAE,GAAG;EACV,MAAM,EAAE,MAAM;CAsEjB;;AAxED,AAGI,cAHU,CAGV,aAAa,CAAC;EACV,KAAK,EAAE,IAAI;EACX,UAAU,EAAE,MAAM;EAClB,WAAW,EAAE,IAAI;EACjB,cAAc,EAAE,IAAI;CAIvB;;AAXL,AAQQ,cARM,CAGV,aAAa,CAKT,GAAG,CAAC;EACA,KAAK,EAAE,KAAK;CACf;;AAVT,AAaQ,cAbM,CAYV,SAAS,CACL,IAAI,CAAC;EACD,aAAa,EAAE,IAAI;CAwDtB;;AAtET,AAeY,cAfE,CAYV,SAAS,CACL,IAAI,CAEA,KAAK,CAAC;EACF,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC,OAAsB;EACxC,UAAU,EAAE,WAAW;EACvB,KAAK,EAAE,OAAsB;EAC7B,KAAK,EAAE,IAAI;EACX,MAAM,EAAE,IAAI;EACZ,UAAU,EAAE,MAAM;EAClB,aAAa,EAAE,GAAG;EAClB,SAAS,EAAE,IAAI;CAClB;;AAxBb,AAyBY,cAzBE,CAYV,SAAS,CACL,IAAI,CAYA,UAAU,CAAC;EACP,KAAK,EAAE,IAAI;EACX,gBAAgB,EAAE,OAAO;EACzB,KAAK,EAAE,IAAI;EACX,aAAa,EAAE,GAAG;EAClB,MAAM,EAAE,IAAI;EACZ,SAAS,EAAE,IAAI;CAClB;;AAhCb,AAiCY,cAjCE,CAYV,SAAS,CACL,IAAI,CAoBA,EAAE,CAAC;EACC,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC,OAAsB;EACxC,aAAa,EAAE,IAAI;EACnB,UAAU,EAAE,IAAI;EAChB,aAAa,EAAE,IAAI;CACtB;;AAtCb,AAuCY,cAvCE,CAYV,SAAS,CACL,IAAI,CA0BA,CAAC,CAAC;EACE,UAAU,EAAE,MAAM;EAClB,KAAK,EAAE,OAAmB;EAC1B,MAAM,EAAE,GAAG;EACX,QAAQ,EAAE,QAAQ;EAClB,MAAM,EAAE,IAAI;CAMf;;AAlDb,AA6CgB,cA7CF,CAYV,SAAS,CACL,IAAI,CA0BA,CAAC,CAMG,IAAI,CAAC;EACD,gBAAgB,EAAE,IAAI;EACtB,OAAO,EAAE,IAAI;EACb,SAAS,EAAE,IAAI;CAClB;;AAjDjB,AAmDY,cAnDE,CAYV,SAAS,CACL,IAAI,CAsCA,EAAE,CAAC;EACC,KAAK,EAAE,OAAmB;EAC1B,UAAU,EAAE,MAAM;EAClB,MAAM,EAAE,GAAG;EACX,WAAW,EAAE,IAAI;CACpB;;AAxDb,AAyDY,cAzDE,CAYV,SAAS,CACL,IAAI,CA4CA,WAAW,CAAC;EACR,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC,OAAsB;EACxC,MAAM,EAAE,IAAI;EACZ,aAAa,EAAE,IAAI;CAStB;;AArEb,AA6DgB,cA7DF,CAYV,SAAS,CACL,IAAI,CA4CA,WAAW,CAIP,WAAW,CAAC;EACR,OAAO,EAAE,YAAY;EACrB,KAAK,EAAE,GAAG;EACV,UAAU,EAAE,MAAM;EAClB,MAAM,EAAE,IAAI;EACZ,SAAS,EAAE,IAAI;EACf,OAAO,EAAE,GAAG;CACf",
"sources": [
"login.page.scss"
],
"names": [],
"file": "login.page.css"
}
\ No newline at end of file
<div class="nav_header">
<button class="nav_btn floatLeft">
</button>
<button class="nav_btn floatLeft"></button>
<div class="nav_title floatLeft">
<h4>LOGIN</h4>
</div>
<div class="clear"></div>
</div>
<ion-content>
<div class="login_wrapper">
<div class="logo_wrapper">
<img src="../assets/logo.png">
<img src="../assets/logo.png" />
</div>
<div class="form_div">
<div class="row">
<input class="" type="text" placeholder="User Name/ Email" #userName required>
<input
class=""
type="text"
placeholder="User Name/ Email"
#userName
required
/>
</div>
<div class="row">
<input class="" type="password" placeholder="Password" #userPassword required>
<input
class=""
type="password"
placeholder="Password"
#userPassword
required
/>
</div>
<div class="row">
<button class="login_btn" (click)="authService.SignIn(userName.value, userPassword.value)">LOGIN</button>
<button
class="login_btn"
(click)="authService.SignIn(userName.value, userPassword.value)"
>
LOGIN
</button>
</div>
<div class="row">
<hr>
<hr />
<p><span>OR</span></p>
</div>
<div class="row">
<div class="social_div">
<div class="social_btn" style="border-right:1px solid rgba(215, 213, 228, 1);" (click)="authService.facebook(1)">
<div
class="social_btn"
style="border-right:1px solid rgba(215, 213, 228, 1);"
(click)="authService.facebook(1)"
>
Facebook
</div>
<div class="social_btn" (click)="authService.google(1)">
......@@ -39,10 +58,18 @@
</div>
<div class="row">
<h4><strong (click)="goToPage('forgot')">FORGOT PASSWORD?</strong></h4>
<h4>Don't have an account? <strong (click)="goToPage('signup')">SIGNUP</strong></h4>
<h4>
Don't have an account?
<strong (click)="goToPage('signup')">SIGNUP</strong>
</h4>
</div>
<!-- <button (click)="goToPage('addaddresss')">Address</button> -->
</div>
</div>
<div class="loader" *ngIf="authService.loader">
<div class="lds-ripple">
<div></div>
<div></div>
</div>
</div>
</ion-content>
......@@ -4,23 +4,20 @@ import { AuthService } from './../../config/auth.service';
import { MenuController } from '@ionic/angular';
import { async } from 'q';
@Component({
selector: 'app-login',
templateUrl: './login.page.html',
styleUrls: ['./login.page.scss'],
styleUrls: ['./login.page.scss']
})
export class LoginPage implements OnInit {
constructor(
private router: Router,
private route: ActivatedRoute,
public authService: AuthService,
public menuCtrl: MenuController
) { }
) {}
ngOnInit() {
}
ngOnInit() {}
ionViewWillEnter() {
this.menuCtrl.enable(false);
......@@ -30,8 +27,4 @@ export class LoginPage implements OnInit {
this.router.navigateByUrl(path, { queryParams: data });
document.body.scrollTop = document.documentElement.scrollTop = 0;
}
}
.myorder_wrapper ul {
margin: 0px;
padding: 10px;
}
.myorder_wrapper ul li {
list-style: none;
padding: 10px;
padding-bottom: 15px;
}
.myorder_wrapper ul li .order_info {
padding-top: 10px;
padding-bottom: 10px;
}
.myorder_wrapper ul li .order_info h5 {
margin: 0px;
padding: 0px;
}
.myorder_wrapper ul li .order_info .order_track {
background-color: #35cbab;
color: #fff;
border-radius: 3px;
padding: 3px;
padding-left: 10px;
padding-right: 10px;
}
.myorder_wrapper ul li .order_image {
width: 90px;
height: 90px;
float: left;
border-radius: 8px;
background-color: #a8a8a8;
}
.myorder_wrapper ul li .order_image img {
width: 100%;
height: 100%;
-o-object-fit: cover;
object-fit: cover;
-o-object-position: center;
object-position: center;
}
.myorder_wrapper ul li .order_detail {
width: calc(100% - 190px);
float: left;
padding-left: 20px;
}
.myorder_wrapper ul li .order_detail h5 {
margin: 0px;
padding: 0px;
color: #b0aec7;
font-size: 16px;
padding-top: 3px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: 100%;
}
.myorder_wrapper ul li .order_detail h5 span {
color: #29285b;
}
.myorder_wrapper ul li .order_detail h6 {
margin: 0px;
padding: 0px;
color: #b0aec7;
font-size: 12px;
padding-top: 9px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.myorder_wrapper ul li .order_detail p {
margin: 0px;
padding: 0px;
color: #3b394d;
font-weight: 900;
padding-top: 10px;
font-size: 20px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.myorder_wrapper ul li .order_other {
width: 100px;
float: right;
}
.myorder_wrapper ul li .order_other h6 {
margin: 0px;
padding: 0px;
color: #b0aec7;
font-size: 12px;
padding-top: 9px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
padding-bottom: 10px;
}
.myorder_wrapper ul li .order_other h5 {
margin: 0px;
padding: 0px;
color: #ce994c;
font-size: 16px;
font-weight: bold;
}
.myorder_wrapper ul li .order_other .track_btn {
background: #29285b;
color: #FFF;
float: right;
padding: 12px;
font-size: 18px;
border-radius: 5px;
padding-left: 15px;
padding-right: 15px;
}
/*# sourceMappingURL=myorder.page.css.map */
\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AAC;EACC,MAAM,EAAE,GAAG;EACX,OAAO,EAAE,GAAG;EACZ,KAAK,EAAE,OAAsB;EAC7B,SAAS,EAAE,IAAI;EACf,WAAW,EAAE,GAAG;EAChB,WAAW,EAAE,MAAM;EACnB,QAAQ,EAAE,MAAM;EAChB,aAAa,EAAE,QAAQ;EACvB,cAAc,EAAE,IAAI;CACvB;;AA1FjB,AA2FgB,gBA3FA,CACZ,EAAE,CAGE,EAAE,CAyEE,YAAY,CAcR,EAAE,CAAC;EACC,MAAM,EAAE,GAAG;EACX,OAAO,EAAE,GAAG;EACZ,KAAK,EAAE,OAAqB;EAC5B,SAAS,EAAE,IAAI;EACf,WAAW,EAAE,IAAI;CACpB;;AAjGjB,AAkGgB,gBAlGA,CACZ,EAAE,CAGE,EAAE,CAyEE,YAAY,CAqBR,UAAU,CAAC;EACP,UAAU,EAAE,OAAO;EACnB,KAAK,EAAE,IAAI;EACX,KAAK,EAAE,KAAK;EACZ,OAAO,EAAE,IAAI;EACb,SAAS,EAAE,IAAI;EACf,aAAa,EAAE,GAAG;EAClB,YAAY,EAAE,IAAI;EAClB,aAAa,EAAE,IAAI;CACtB",
"sources": [
"myorder.page.scss"
],
"names": [],
"file": "myorder.page.css"
}
\ No newline at end of file
.nearby_map {
width: 100%;
height: 100vh;
}
.nearby_map .overlay {
position: absolute;
top: 0px;
left: 0px;
right: 0px;
bottom: 0px;
background: rgba(29, 27, 130, 0.2);
}
.nearby_map agm-map {
width: 100%;
height: 100%;
position: relative;
}
.nearby_map .click_marker {
min-width: 200px;
padding: 10px;
}
.nearby_map .click_marker h5 {
margin: 0px;
padding: 0px;
}
.nearby_map .click_marker p {
margin: 0px;
padding: 0px;
}
.add_address_wrapper {
position: fixed;
bottom: 0px;
left: 0px;
right: 0px;
padding: 20px;
border-top-left-radius: 15px;
border-top-right-radius: 15px;
background: #fff;
-webkit-box-shadow: 0px -2px 5px 0px rgba(0, 0, 0, 0.2);
box-shadow: 0px -2px 5px 0px rgba(0, 0, 0, 0.2);
}
.add_address_wrapper h5 {
color: #29285b;
margin: 0px;
padding: 0px;
font-weight: 800;
}
.add_address_wrapper input {
width: 100%;
height: 45px;
border: 1px solid #E1E0EB;
border-radius: 4px;
padding-left: 10px;
padding-right: 10px;
margin-bottom: 20px;
}
.add_address_wrapper .add_btn {
width: 100%;
height: 45px;
background-color: #29285B;
color: #fff;
border-radius: 4px;
}
.styled-checkbox {
position: absolute;
opacity: 0;
}
.styled-checkbox + label {
position: relative;
cursor: pointer;
padding: 0;
}
.styled-checkbox + label:before {
content: '';
margin-right: 10px;
display: inline-block;
vertical-align: text-top;
width: 20px;
height: 20px;
border-radius: 10px;
background: white;
border: 1px solid #d7d5e4;
}
.styled-checkbox:checked + label:before {
background: #29285b;
}
.styled-checkbox:disabled + label {
color: #b8b8b8;
cursor: auto;
}
.styled-checkbox:disabled + label:before {
-webkit-box-shadow: none;
box-shadow: none;
background: #ddd;
}
.styled-checkbox:checked + label:after {
content: '';
position: absolute;
left: 6px;
top: 11px;
background: white;
width: 2px;
height: 2px;
-webkit-box-shadow: 2px 0 0 white, 4px 0 0 white, 4px -2px 0 white, 4px -4px 0 white, 4px -6px 0 white, 4px -8px 0 white;
box-shadow: 2px 0 0 white, 4px 0 0 white, 4px -2px 0 white, 4px -4px 0 white, 4px -6px 0 white, 4px -8px 0 white;
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
}
/*# sourceMappingURL=nearby.page.css.map */
\ No newline at end of file
{
"version": 3,
"mappings": "AAAA,AAAA,WAAW,CAAC;EACR,KAAK,EAAE,IAAI;EACX,MAAM,EAAE,KAAK;CA0BhB;;AA5BD,AAGI,WAHO,CAGP,QAAQ,CAAC;EACL,QAAQ,EAAE,QAAQ;EAClB,GAAG,EAAE,GAAG;EACR,IAAI,EAAE,GAAG;EACT,KAAK,EAAE,GAAG;EACV,MAAM,EAAE,GAAG;EACX,UAAU,EAAE,sBAAsB;CACrC;;AAVL,AAWI,WAXO,CAWP,OAAO,CAAC;EACJ,K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EAAE,aAAa;CAC3B",
"sources": [
"nearby.page.scss"
],
"names": [],
"file": "nearby.page.css"
}
\ No newline at end of file
<div class="nav_header">
<button class="nav_btn nav_back floatLeft" (click)="goBack()" *ngIf="type === 0">
<img src="../assets/Group17_2.png">
<button
class="nav_btn nav_back floatLeft"
(click)="goBack()"
*ngIf="type === 0"
>
<img src="../assets/Group17_2.png" />
</button>
<div class="nav_title floatLeft">
<h4>NEAR BY STORES</h4>
......@@ -9,46 +13,128 @@
</div>
<ion-content>
<div class="nearby_map">
<agm-map [latitude]="latitude" [longitude]="longitude" [zoom]="8" [backgroundColor]="'rgba(29, 27, 130,0.2)'">
<agm-marker [latitude]="latitude" [longitude]="longitude" [markerDraggable]="true" (dragEnd)="markerDragEnd($event)"></agm-marker>
<agm-map
[latitude]="latitude"
[longitude]="longitude"
[zoom]="8"
[backgroundColor]="'rgba(29, 27, 130,0.2)'"
>
<agm-marker
[latitude]="latitude"
[longitude]="longitude"
[markerDraggable]="true"
(dragEnd)="markerDragEnd($event)"
></agm-marker>
</agm-map>
<form (ngSubmit)="onSubmit(addressForm.value); addressForm.reset()" #addressForm="ngForm" method="post" class="form-horizontal">
<form
(ngSubmit)="onSubmit(addressForm.value); addressForm.reset()"
#addressForm="ngForm"
method="post"
class="form-horizontal"
>
<div class="add_address_wrapper">
<h5>DELIVERY</h5>
<p>{{address}}</p>
<input [(ngModel)]="addressForm.building" name="building" #building="ngModel" name="building" required placeholder="House No./ Building No">
<div class="md-errors-spacer" [hidden]="building.valid || landmark.pristine" class="ion-padding-start">
<input
[(ngModel)]="addressForm.building"
name="building"
#building="ngModel"
name="building"
required
placeholder="House No./ Building No"
/>
<div
class="md-errors-spacer"
[hidden]="building.valid || landmark.pristine"
class="ion-padding-start"
>
Building Name is required
</div>
<input [(ngModel)]="addressForm.landmark" name="landmark" #landmark="ngModel" name="landmark" required placeholder="Landmark">
<div class="md-errors-spacer" [hidden]="landmark.valid || landmark.pristine" class="ion-padding-start">
<input
[(ngModel)]="addressForm.landmark"
name="landmark"
#landmark="ngModel"
name="landmark"
required
placeholder="Landmark"
/>
<div
class="md-errors-spacer"
[hidden]="landmark.valid || landmark.pristine"
class="ion-padding-start"
>
Landmark is required
</div>
<ion-grid>
<ion-row>
<ion-col>
<h6>
<input class="styled-checkbox" id="styled-check-1" type="radio" value="Home" [(ngModel)]="addressForm.addressType" name="addressType" #addressType="ngModel" required>
<label for="styled-check-1"><span>Home</span></label></h6>
<input
class="styled-checkbox"
id="styled-check-1"
type="radio"
value="Home"
[(ngModel)]="addressForm.addressType"
name="addressType"
#addressType="ngModel"
required
/>
<label for="styled-check-1"><span>Home</span></label>
</h6>
</ion-col>
<ion-col>
<h6>
<input class="styled-checkbox" id="styled-check-2" type="radio" value="Work" [(ngModel)]="addressForm.addressType" name="addressType" #addressType="ngModel" required>
<label for="styled-check-2"><span>Office</span></label></h6>
<input
class="styled-checkbox"
id="styled-check-2"
type="radio"
value="Work"
[(ngModel)]="addressForm.addressType"
name="addressType"
#addressType="ngModel"
required
/>
<label for="styled-check-2"><span>Office</span></label>
</h6>
</ion-col>
<ion-col>
<h6>
<input class="styled-checkbox" id="styled-check-3" type="radio" value="Other" [(ngModel)]="addressForm.addressType" name="addressType" #addressType="ngModel" required>
<label for="styled-check-3"><span>Others</span></label></h6>
<input
class="styled-checkbox"
id="styled-check-3"
type="radio"
value="Other"
[(ngModel)]="addressForm.addressType"
name="addressType"
#addressType="ngModel"
required
/>
<label for="styled-check-3"><span>Others</span></label>
</h6>
</ion-col>
</ion-row>
<div class="md-errors-spacer" [hidden]="addressType.valid || addressType.pristine" class="ion-padding-start">
<div
class="md-errors-spacer"
[hidden]="addressType.valid || addressType.pristine"
class="ion-padding-start"
>
Address Type is required
</div>
</ion-grid>
<button class="add_btn" type="submit" [disabled]="!addressForm.form.valid">ADD</button>
<button
class="add_btn"
type="submit"
[disabled]="!addressForm.form.valid"
>
ADD
</button>
</div>
</form>
</div>
<div class="loader" *ngIf="loader">
<div class="lds-ripple">
<div></div>
<div></div>
</div>
</div>
</ion-content>
import {Component, OnInit, ViewChild, ElementRef, NgZone} from '@angular/core';
import {
Component,
OnInit,
ViewChild,
ElementRef,
NgZone
} from '@angular/core';
import { Location } from '@angular/common';
import { Router, ActivatedRoute } from '@angular/router';
import { MapsAPILoader, MouseEvent } from '@agm/core';
......@@ -14,7 +20,6 @@ import * as firebase from 'firebase';
templateUrl: './nearby.page.html',
styleUrls: ['./nearby.page.scss']
})
export class NearbyPage implements OnInit {
latitude: number;
longitude: number;
......@@ -26,6 +31,7 @@ export class NearbyPage implements OnInit {
successState: boolean;
uid: string;
type: any;
loader: boolean;
public searchElementRef: ElementRef;
constructor(
......@@ -39,14 +45,14 @@ export class NearbyPage implements OnInit {
) {
this.successState = false;
this.type = 0;
const users = this.service.get('user').then((data) => {
const users = this.service.get('user').then(data => {
if (data) {
data = JSON.parse(data);
this.uid = data.uid;
}
});
this.service.get('type').then((data) => {
this.service.get('type').then(data => {
this.type = data;
});
}
......@@ -109,6 +115,7 @@ export class NearbyPage implements OnInit {
}
onSubmit(data: any) {
this.loader = true;
console.log(data);
const postData: Address = {
address: this.address,
......@@ -122,7 +129,9 @@ export class NearbyPage implements OnInit {
};
this.addressService.addressCreate(postData);
this.successState = true;
setTimeout(() => {
this.loader = false;
this.successState = false;
if (this.type === 1) {
this.service.set('type', 0);
......
/* No CSS *//*# sourceMappingURL=orderdelivered.page.css.map */
\ No newline at end of file
{
"version": 3,
"mappings": "",
"sources": [
"orderdelivered.page.scss"
],
"names": [],
"file": "orderdelivered.page.css"
}
\ No newline at end of file
......@@ -20,10 +20,7 @@
<div class="featured_badge" *ngIf="product.featured">Featured</div>
<ion-slides pager="true" [options]="bannerOptions" *ngIf="slideData">
<ion-slide *ngFor="let prodImg of slideData">
<img
[src]="prodImg"
onerror="this.src='../assets/[email protected]'"
/>
<img [src]="prodImg" onerror="this.src='../assets/[email protected]'" />
</ion-slide>
<!-- <ion-slide>
<img
......@@ -45,10 +42,13 @@
<h3>{{product.prodName}}</h3>
<p>
<strong
><span><img src="../assets/Path61_2.png"/></span>0</strong
><span><img src="../assets/Path61_2.png"/></span
>{{product.rating}}</strong
>&nbsp; {{product.category}}, {{product.subCate}}
<br />
<span *ngFor="let tag of product.tag">#{{tag}}&nbsp;</span>
<span *ngFor="let tag of product.tag"
><span *ngIf="tag !=='No-Tag'">#{{tag}}&nbsp;</span></span
>
</p>
</ion-col>
<ion-col size="4">
......@@ -265,6 +265,12 @@
</div>
</div>
</div>
<div class="loader" *ngIf="loader">
<div class="lds-ripple">
<div></div>
<div></div>
</div>
</div>
</ion-content>
<ion-footer>
<div class="footer_div">
......
......@@ -9,7 +9,7 @@
.fav_icon {
width: 30px;
height: 30px;
background-image: url("../../assets/Group32_2.png");
background-image: url('../../assets/Group32_2.png');
background-position: center;
background-repeat: no-repeat;
background-size: 24px;
......@@ -21,7 +21,7 @@
.fav_fill {
width: 30px;
height: 30px;
background-image: url("../../assets/fav_fill.png");
background-image: url('../../assets/fav_fill.png');
background-position: center;
background-repeat: no-repeat;
background-size: 24px;
......@@ -122,6 +122,9 @@
height: 100%;
outline: none;
font-size: 17px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
#custom_check_button p {
margin: 0px;
......@@ -147,7 +150,7 @@
top: 0px;
opacity: 0;
}
#custom_check_button input:checked+p {
#custom_check_button input:checked + p {
background-color: rgba(41, 40, 91, 1);
color: #fff;
border-radius: 10px !important;
......@@ -210,7 +213,7 @@
top: 0px;
opacity: 0;
}
#custom_check_button input:checked+p {
#custom_check_button input:checked + p {
border: 3px dashed #29285b;
color: transparent;
border-radius: 10px !important;
......@@ -309,7 +312,7 @@
font-size: 27px;
width: 30px;
height: 30px;
background-image: url("../../assets/Group32_2.png");
background-image: url('../../assets/Group32_2.png');
background-position: center;
background-repeat: no-repeat;
background-size: 24px;
......@@ -321,7 +324,7 @@
font-size: 27px;
width: 30px;
height: 30px;
background-image: url("../../assets/fav_fill.png");
background-image: url('../../assets/fav_fill.png');
background-position: center;
background-repeat: no-repeat;
background-size: 24px;
......@@ -354,7 +357,7 @@
span {
text-decoration: line-through;
margin-left: 10px;
color: rgba(215, 213, 228, 1)
color: rgba(215, 213, 228, 1);
}
.offer {
color: #fff;
......@@ -400,13 +403,13 @@
cursor: pointer;
}
.cart {
background-image: url("../../assets/cart_2.png");
background-image: url('../../assets/cart_2.png');
}
.fav {
background-image: url("../../assets/Group56_2.png");
background-image: url('../../assets/Group56_2.png');
}
.share {
background-image: url("../../assets/Group57_2.png");
background-image: url('../../assets/Group57_2.png');
}
}
.footer_btn {
......
......@@ -21,6 +21,7 @@ export class ProductdetailPage implements OnInit {
order: Order;
data: any;
slideData: any[];
loader: boolean;
bannerOptions = {
slidesPerView: 1,
......@@ -45,6 +46,7 @@ export class ProductdetailPage implements OnInit {
) {
const params = this.prodService.selItem;
this.service.state = true;
this.loader = true;
this.prodService.similarProd(
params.shopperId,
params.category,
......@@ -55,6 +57,9 @@ export class ProductdetailPage implements OnInit {
this.data = val;
});
this.cartService.cartList();
setTimeout(() => {
this.loader = false;
}, 1000);
// console.log(this.prodService.fav);
}
......@@ -87,6 +92,7 @@ export class ProductdetailPage implements OnInit {
image: params.image,
price: params.price,
qty: params.qty,
rating: params.rating,
shopper: params.shopper,
skuCode: params.skuCode,
status: params.status,
......
.product_list {
padding-bottom: 50px;
}
.product_list .product_title {
padding: 10px;
padding-bottom: 20px;
padding-top: 20px;
font-size: 24px;
font-weight: bold;
color: #29285b;
}
.product_list .product_taskbar {
border-bottom: 1px solid rgba(0, 0, 0, 0.16);
height: 45px;
width: calc(100% - 20px);
margin: 0 auto;
background-image: url("../../assets/Group109_2.png");
background-position: left;
background-repeat: no-repeat;
background-size: 12px;
}
.product_list .product_taskbar .filter {
width: 45px;
height: 45px;
cursor: pointer;
}
.product_list .product_taskbar .viewset {
width: 45px;
height: 45px;
cursor: pointer;
}
.product_list .product_taskbar .viewset .grid_view {
width: 50%;
height: 100%;
cursor: pointer;
background-position: center;
background-repeat: no-repeat;
background-size: 15px;
background-image: url("../../assets/Group111_2.png");
}
.product_list .product_taskbar .viewset .line_view {
background-image: url("../../assets/Group110_2.png");
cursor: pointer;
}
.product_list .grid_view li {
width: 100%;
-webkit-transition-timing-function: ease-in-out;
transition-timing-function: ease-in-out;
-webkit-transition: 1s;
transition: 1s;
-webkit-transform: translateX(0);
transform: translateX(0);
}
.product_list .grid_view li .product_image {
height: 390px;
}
.product_list ul {
padding: 10px;
padding-bottom: 0px;
padding-top: 0px;
margin: 0px;
}
.product_list ul li {
width: calc(100% - 50%);
display: inline-block;
border: 10px solid #fff;
border-top: none;
border-bottom: none;
margin-bottom: 20px;
-webkit-transition-timing-function: ease-in-out;
transition-timing-function: ease-in-out;
-webkit-transform: translateX(2%);
transform: translateX(2%);
-webkit-transition: 1s;
transition: 1s;
}
.product_list ul li .product_image {
height: 235px;
position: relative;
}
.product_list ul li .product_image .featured_badge {
position: absolute;
top: 20px;
left: 0px;
color: #fff;
background-color: #29285b;
padding: 2px;
padding-left: 10px;
padding-right: 10px;
font-size: 13px;
}
.product_list ul li .product_image .fav_icon {
position: absolute;
top: 10px;
right: 10px;
font-size: 27px;
width: 30px;
height: 30px;
background-image: url("../../assets/Group32_2.png");
background-position: center;
background-repeat: no-repeat;
background-size: 24px;
}
.product_list ul li .product_image .fav_fill {
position: absolute;
top: 10px;
right: 10px;
font-size: 27px;
width: 30px;
height: 30px;
background-image: url("../../assets/fav_fill.png");
background-position: center;
background-repeat: no-repeat;
background-size: 24px;
}
.product_list ul li .product_image img {
width: 100%;
height: 100%;
-o-object-fit: cover;
object-fit: cover;
-o-object-position: center;
object-position: center;
}
.product_list ul li h5 {
margin: 0px;
padding: 0px;
color: #3b394d;
padding-top: 5px;
padding-bottom: 5px;
}
.product_list ul li p {
margin: 0px;
padding: 0px;
color: #b0aec7;
}
.product_list ul li p span {
text-decoration: line-through;
margin-left: 10px;
color: #d7d5e4;
}
.product_list ul li p .offer {
color: #fff;
background-color: #29285b;
border-radius: 4px;
text-decoration: none;
padding: 3px;
font-size: 13px;
}
.product_list .ellipse {
white-space: nowrap;
width: 180px;
overflow: hidden;
text-overflow: ellipsis;
}
.sort_wrappper {
height: 100vh;
width: 100%;
position: fixed;
top: 0px;
left: 0px;
right: 0px;
bottom: 0px;
background: rgba(0, 0, 0, 0.6);
z-index: 99;
}
.sort_wrappper .sort_inner {
margin: 0 auto;
width: 280px;
padding: 10px;
padding-left: 15px;
padding-right: 15px;
padding-bottom: 15px;
background-color: #fff;
position: relative;
-webkit-box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.3);
box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.3);
top: 25%;
border-radius: 10px;
}
.sort_wrappper .sort_inner h4 {
text-align: center;
color: #3b394d;
margin: 0px;
font-weight: bold;
padding: 10px;
font-size: 18px;
border-bottom: 1px solid rgba(0, 0, 0, 0.16);
padding-bottom: 20px;
}
.sort_wrappper .sort_inner ul {
margin: 0px;
padding: 0px;
}
.sort_wrappper .sort_inner ul li {
list-style: none;
border-bottom: 1px solid rgba(0, 0, 0, 0.16);
padding-top: 10px;
padding-bottom: 10px;
}
.sort_wrappper .sort_inner ul li .styled-checkbox {
position: absolute;
opacity: 0;
}
.sort_wrappper .sort_inner ul li .styled-checkbox + label {
position: relative;
cursor: pointer;
padding: 0;
width: 100%;
}
.sort_wrappper .sort_inner ul li .styled-checkbox + label:before {
content: '';
margin-right: 10px;
display: inline-block;
vertical-align: text-top;
width: 20px;
height: 20px;
border-radius: 5px;
background: white;
border: 1px solid #d7d5e4;
}
.sort_wrappper .sort_inner ul li .styled-checkbox:checked + label:before {
background: #29285b;
}
.sort_wrappper .sort_inner ul li .styled-checkbox:disabled + label {
color: #b8b8b8;
cursor: auto;
}
.sort_wrappper .sort_inner ul li .styled-checkbox:disabled + label:before {
-webkit-box-shadow: none;
box-shadow: none;
background: #ddd;
}
.sort_wrappper .sort_inner ul li .styled-checkbox:checked + label:after {
content: '';
position: absolute;
left: 6px;
top: 10px;
background: white;
width: 2px;
height: 2px;
-webkit-box-shadow: 2px 0 0 white, 4px 0 0 white, 4px -2px 0 white, 4px -4px 0 white, 4px -6px 0 white, 4px -8px 0 white;
box-shadow: 2px 0 0 white, 4px 0 0 white, 4px -2px 0 white, 4px -4px 0 white, 4px -6px 0 white, 4px -8px 0 white;
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
}
.sort_wrappper .sort_inner .sort_footer {
padding-top: 10px;
}
.sort_wrappper .sort_inner .sort_footer button {
border-radius: 8px;
height: 40px;
width: 48%;
color: #fff;
font-size: 15px;
font-weight: lighter;
}
.sort_wrappper .sort_inner .sort_footer .submit {
background-color: #29285b;
}
.sort_wrappper .sort_inner .sort_footer .cancel {
background-color: #d7d5e4;
}
/*# sourceMappingURL=productlist.page.css.map */
\ No newline at end of file
{
"version": 3,
"mappings": "AAAA,AAAA,aAAa,CAAC;EACV,cAAc,EAAE,IAAI;CAkJvB;;AAnJD,AAEI,aAFS,CAET,cAAc,CAAC;EACX,OAAO,EAAE,IAAI;EACb,cAAc,EAAE,IAAI;EACpB,WAAW,EAAE,IAAI;EACjB,SAAS,EAAE,IAAI;EACf,WAAW,EAAE,IAAI;EACjB,KAAK,EAAE,OAAmB;CAC7B;;AATL,AAUI,aAVS,CAUT,gBAAgB,CAAC;EACb,aAAa,EAAE,GAAG,CAAC,KAAK,CAAC,mBAAmB;EAC5C,MAAM,EAAE,IAAI;EACZ,KAAK,EAAE,iBAAiB;EACxB,MAAM,EAAE,MAAM;EACd,gBAAgB,EAAE,kCAAkC;EACpD,mBAAmB,EAAE,IAAI;EACzB,iBAAiB,EAAE,SAAS;EAC5B,eAAe,EAAE,IAAI;CAwBxB;;AA1CL,AAmBQ,aAnBK,CAUT,gBAAgB,CASZ,OAAO,CAAC;EACJ,KAAK,EAAE,IAAI;EACX,MAAM,EAAE,IAAI;EACZ,MAAM,EAAE,OAAO;CAClB;;AAvBT,AAwBQ,aAxBK,CAUT,gBAAgB,CAcZ,QAA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;AAvFrB,AA2FQ,cA3FM,CAUV,WAAW,CAiFP,YAAY,CAAC;EACT,WAAW,EAAE,IAAI;CAepB;;AA3GT,AA6FY,cA7FE,CAUV,WAAW,CAiFP,YAAY,CAER,MAAM,CAAC;EACH,aAAa,EAAE,GAAG;EAClB,MAAM,EAAE,IAAI;EACZ,KAAK,EAAE,GAAG;EACV,KAAK,EAAE,IAAI;EACX,SAAS,EAAE,IAAI;EACf,WAAW,EAAE,OAAO;CACvB;;AApGb,AAqGY,cArGE,CAUV,WAAW,CAiFP,YAAY,CAUR,OAAO,CAAC;EACJ,gBAAgB,EAAE,OAAmB;CACxC;;AAvGb,AAwGY,cAxGE,CAUV,WAAW,CAiFP,YAAY,CAaR,OAAO,CAAC;EACJ,gBAAgB,EAAE,OAAsB;CAC3C",
"sources": [
"productlist.page.scss"
],
"names": [],
"file": "productlist.page.css"
}
\ No newline at end of file
......@@ -63,6 +63,11 @@
</p>
</li>
</ul>
<div class="no-result-wrapper" *ngIf="prodService.product.length === 0">
<img src="../../assets/basket.png" />
<h1>No result found</h1>
<button (click)="goToPage('home')">home</button>
</div>
</div>
<div class="sort_wrappper" *ngIf="isShow" [@slideInOut]>
<div class="sort_inner">
......@@ -112,6 +117,12 @@
</div>
</div>
</div>
<div class="loader" *ngIf="loader">
<div class="lds-ripple">
<div></div>
<div></div>
</div>
</div>
</ion-content>
<div class="search_item_list" *ngIf="searchShow" [@slideInOut]>
<ul *ngIf="searchService.searchList">
......
......@@ -13,7 +13,7 @@
height: 45px;
width: calc(100% - 20px);
margin: 0 auto;
background-image: url("../../assets/Group109_2.png");
background-image: url('../../assets/Group109_2.png');
background-position: left;
background-repeat: no-repeat;
background-size: 12px;
......@@ -33,10 +33,10 @@
background-position: center;
background-repeat: no-repeat;
background-size: 15px;
background-image: url("../../assets/Group111_2.png");
background-image: url('../../assets/Group111_2.png');
}
.line_view {
background-image: url("../../assets/Group110_2.png");
background-image: url('../../assets/Group110_2.png');
cursor: pointer;
}
}
......@@ -88,7 +88,7 @@
font-size: 27px;
width: 30px;
height: 30px;
background-image: url("../../assets/Group32_2.png");
background-image: url('../../assets/Group32_2.png');
background-position: center;
background-repeat: no-repeat;
background-size: 24px;
......@@ -100,7 +100,7 @@
font-size: 27px;
width: 30px;
height: 30px;
background-image: url("../../assets/fav_fill.png");
background-image: url('../../assets/fav_fill.png');
background-position: center;
background-repeat: no-repeat;
background-size: 24px;
......@@ -126,7 +126,7 @@
span {
text-decoration: line-through;
margin-left: 10px;
color: rgba(215, 213, 228, 1)
color: rgba(215, 213, 228, 1);
}
.offer {
color: #fff;
......@@ -192,14 +192,14 @@
.styled-checkbox {
position: absolute; // take it out of document flow
opacity: 0; // hide it
&+label {
& + label {
position: relative;
cursor: pointer;
padding: 0;
width: 100%;
}
// Box.
&+label:before {
& + label:before {
content: '';
margin-right: 10px;
display: inline-block;
......@@ -210,21 +210,21 @@
background: white;
border: 1px solid rgba(215, 213, 228, 1);
}
&:checked+label:before {
&:checked + label:before {
background: #29285b;
}
// Disabled state label.
&:disabled+label {
&:disabled + label {
color: #b8b8b8;
cursor: auto;
}
// Disabled box.
&:disabled+label:before {
&:disabled + label:before {
box-shadow: none;
background: #ddd;
}
// Checkmark. Could be replaced with an image
&:checked+label:after {
&:checked + label:after {
content: '';
position: absolute;
left: 6px;
......@@ -232,7 +232,8 @@
background: white;
width: 2px;
height: 2px;
box-shadow: 2px 0 0 white, 4px 0 0 white, 4px -2px 0 white, 4px -4px 0 white, 4px -6px 0 white, 4px -8px 0 white;
box-shadow: 2px 0 0 white, 4px 0 0 white, 4px -2px 0 white,
4px -4px 0 white, 4px -6px 0 white, 4px -8px 0 white;
transform: rotate(45deg);
}
}
......@@ -257,3 +258,28 @@
}
}
}
.no-result-wrapper {
text-align: center;
padding-top: 40%;
img {
width: 100px;
}
h1 {
font-size: 18px;
font-weight: bolder;
text-transform: uppercase;
color: #3b394d;
}
button {
background-color: #29285b;
border-radius: 8px;
height: 50px;
width: 48%;
color: #fff;
font-size: 18px;
font-weight: lighter;
text-transform: uppercase;
margin-top: 10px;
}
}
import { Component, OnInit } from "@angular/core";
import { Location } from "@angular/common";
import { trigger, transition, animate, style } from "@angular/animations";
import { Router, ActivatedRoute, NavigationExtras } from "@angular/router";
import { ProductsService } from "./../../config/products.service";
import { ServiceService } from "./../../config/service.service";
import { SearchService } from "./../../config/search.service";
import { Component, OnInit } from '@angular/core';
import { Location } from '@angular/common';
import { trigger, transition, animate, style } from '@angular/animations';
import { Router, ActivatedRoute, NavigationExtras } from '@angular/router';
import { ProductsService } from './../../config/products.service';
import { ServiceService } from './../../config/service.service';
import { SearchService } from './../../config/search.service';
import { ModalController } from '@ionic/angular';
import { SearchmodalPage } from '../searchmodal/searchmodal.page';
import { SubjectService } from './../../config/subject.service';
@Component({
selector: "app-productlist",
templateUrl: "./productlist.page.html",
styleUrls: ["./productlist.page.scss"],
selector: 'app-productlist',
templateUrl: './productlist.page.html',
styleUrls: ['./productlist.page.scss'],
animations: [
trigger("slideInOut", [
transition(":enter", [
style({ transform: "translateY(100%)" }),
animate("200ms ease-in", style({ transform: "translateY(0%)" }))
trigger('slideInOut', [
transition(':enter', [
style({ transform: 'translateY(100%)' }),
animate('200ms ease-in', style({ transform: 'translateY(0%)' }))
]),
transition(":leave", [
animate("200ms ease-out", style({ transform: "translateY(100%)" }))
transition(':leave', [
animate('200ms ease-out', style({ transform: 'translateY(100%)' }))
])
])
]
......@@ -28,6 +31,7 @@ export class ProductlistPage implements OnInit {
data: any;
searchShow = false;
sortValue: string;
loader: boolean;
constructor(
private router: Router,
......@@ -35,12 +39,18 @@ export class ProductlistPage implements OnInit {
private location: Location,
public prodService: ProductsService,
public service: ServiceService,
public searchService: SearchService
public searchService: SearchService,
private modalController: ModalController,
private subjectService: SubjectService
) {
this.service.get("params").then(val => {
this.loader = true;
this.service.get('params').then(val => {
this.data = val;
console.log(this.data);
this.prodService.prodList(this.data.uid);
setTimeout(() => {
this.loader = false;
}, 2000);
});
}
......@@ -64,9 +74,15 @@ export class ProductlistPage implements OnInit {
this.onGrid = !this.onGrid;
}
clickSearch() {
this.searchShow = true;
this.searchService.searchList = [];
async clickSearch() {
this.subjectService.setTabData(false);
const modal = await this.modalController.create({
component: SearchmodalPage
});
modal.onDidDismiss().then(dataReturned => {
this.subjectService.setTabData(true);
});
return await modal.present();
}
searchClose() {
......@@ -75,7 +91,7 @@ export class ProductlistPage implements OnInit {
prodDetails(index: number) {
this.prodService.setProd(this.prodService.product[index]);
this.router.navigateByUrl("productdetail");
this.router.navigateByUrl('productdetail');
document.body.scrollTop = document.documentElement.scrollTop = 0;
}
......@@ -85,10 +101,10 @@ export class ProductlistPage implements OnInit {
console.log(this.prodService.fav);
if (state > -1) {
this.prodService.fav.splice(state, 1);
this.prodService.changeFav(index, "yes");
this.prodService.changeFav(index, 'yes');
} else {
this.prodService.fav.push(index);
this.prodService.changeFav(index, "no");
this.prodService.changeFav(index, 'no');
}
return;
console.log(this.prodService.fav);
......@@ -106,7 +122,7 @@ export class ProductlistPage implements OnInit {
checkFavStatus(index) {
const state = this.prodService.fav.findIndex(x => x === index);
return state > -1 ? "fav_fill" : "fav_icon";
return state > -1 ? 'fav_fill' : 'fav_icon';
}
searchFun(data: string) {
......@@ -117,19 +133,19 @@ export class ProductlistPage implements OnInit {
console.log(datas);
let data;
let url;
if (datas.type === "shopper") {
if (datas.type === 'shopper') {
data = datas.data;
this.service.set("params", data);
url = "productlist";
} else if (datas.type === "category") {
this.service.set('params', data);
url = 'productlist';
} else if (datas.type === 'category') {
data = datas.data;
this.service.set("params", data);
url = "catstorelist";
this.service.set('params', data);
url = 'catstorelist';
} else {
data = datas.data;
data.size = this.service.splitSep(data.size);
data.tag = this.service.splitSep(data.tag);
(data.color = this.service.splitSep(data.color)), (url = "productdetail");
(data.color = this.service.splitSep(data.color)), (url = 'productdetail');
this.prodService.setProd(data);
}
this.searchClose();
......
.profile_wrapper .profile_banner {
width: 100%;
background-image: url("../../assets/profile_banner.png");
background-position: center;
background-repeat: no-repeat;
background-size: cover;
text-align: center;
padding-top: 40px;
}
.profile_wrapper .profile_banner .profile_circle {
width: 100px;
height: 100px;
background-color: #fff;
border-radius: 50%;
position: relative;
margin: 0 auto;
}
.profile_wrapper .profile_banner .profile_circle img {
width: 100%;
height: 100%;
-o-object-fit: cover;
object-fit: cover;
-o-object-position: center;
object-position: center;
border-radius: 50%;
}
.profile_wrapper .profile_banner .profile_circle .edit {
width: 30px;
height: 30px;
border-radius: 50%;
-o-object-fit: cover;
object-fit: cover;
-o-object-position: center;
object-position: center;
background-color: #000;
background-image: url("../../assets/edit_icon.png");
background-size: cover;
cursor: pointer;
position: absolute;
top: 0px;
right: 0px;
}
.profile_wrapper .profile_banner h5 {
text-align: center;
color: #fff;
margin: 0px;
padding-top: 15px;
font-weight: 600;
padding-bottom: 5px;
}
.profile_wrapper .profile_banner p {
color: #ce994c;
text-align: center;
margin: 0px;
padding-bottom: 20px;
font-weight: 700;
}
.profile_wrapper .account_wrapper {
width: calc(100% - 40px);
margin: 0 auto;
padding-top: 20px;
padding-bottom: 100px;
}
.profile_wrapper .account_wrapper .account_header {
padding-bottom: 15px;
}
.profile_wrapper .account_wrapper .account_header h5 {
margin: 0px;
padding: 0px;
color: #3b394d;
font-weight: 900;
}
.profile_wrapper .account_wrapper .account_header span {
color: #3b394d;
}
.profile_wrapper .account_wrapper .account_header span img {
width: 20px;
}
.profile_wrapper .account_wrapper p {
margin: 0px;
padding: 0px;
color: #b0aec7;
font-size: 18px;
}
.profile_wrapper .account_wrapper p span {
color: #ce994c;
margin-left: 10px;
}
.profile_wrapper .account_wrapper h6 {
margin: 0px;
padding: 0px;
color: #3b394d;
font-size: 18px;
}
.profile_wrapper .account_wrapper h6 ion-icon {
color: #b0aec7;
}
.profile_wrapper .account_wrapper .row {
padding-bottom: 20px;
}
.profile_wrapper .account_wrapper hr {
border-bottom: 1px solid rgba(176, 174, 199, 0.5);
height: 0px;
border-top: none;
margin-top: 15px;
margin-bottom: 15px;
}
/*# sourceMapp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K,EAAE,OAAmB;EAC1B,SAAS,EAAE,IAAI;CAIlB;;AA5FT,AAyFY,gBAzFI,CAsDZ,gBAAgB,CA8BZ,EAAE,CAKE,QAAQ,CAAC;EACL,KAAK,EAAE,OAAsB;CAChC;;AA3Fb,AA6FQ,gBA7FQ,CAsDZ,gBAAgB,CAuCZ,IAAI,CAAC;EACD,cAAc,EAAE,IAAI;CACvB;;AA/FT,AAgGQ,gBAhGQ,CAsDZ,gBAAgB,CA0CZ,EAAE,CAAC;EACC,aAAa,EAAE,GAAG,CAAC,KAAK,CAAC,wBAAuB;EAChD,MAAM,EAAE,GAAG;EACX,UAAU,EAAE,IAAI;EAChB,UAAU,EAAE,IAAI;EAChB,aAAa,EAAE,IAAI;CACtB",
"sources": [
"profile.page.scss"
],
"names": [],
"file": "profile.page.css"
}
\ No newline at end of file
......@@ -75,7 +75,7 @@
<p>Wishlist</p>
</ion-col>
<ion-col class="textRight p0" (click)="goToPage('wishlist')">
<h6>(3)</h6>
<h6>(0)</h6>
</ion-col>
</ion-row>
<hr />
......
/* No CSS *//*# sourceMappingURL=searchmodal.page.css.map */
\ No newline at end of file
{
"version": 3,
"mappings": "",
"sources": [
"searchmodal.page.scss"
],
"names": [],
"file": "searchmodal.page.css"
}
\ No newline at end of file
.login_wrapper {
width: 80%;
margin: 0 auto;
}
.login_wrapper .logo_wrapper {
width: 100%;
text-align: center;
padding-top: 50px;
padding-bottom: 30px;
}
.login_wrapper .logo_wrapper img {
width: 180px;
}
.login_wrapper .form_div .row {
margin-bottom: 20px;
}
.login_wrapper .form_div .row input {
border: 1px solid #d7d5e4;
background: transparent;
color: #d7d5e4;
width: 100%;
height: 45px;
text-align: center;
border-radius: 8px;
font-size: 16px;
}
.login_wrapper .form_div .row ion-datetime {
border: 1px solid #d7d5e4;
background: transparent;
color: #d7d5e4;
width: 100%;
height: 45px;
text-align: center;
border-radius: 8px;
font-size: 16px;
padding-left: 0px;
}
.login_wrapper .form_div .row .login_btn {
width: 100%;
background-color: #29285b;
color: #fff;
border-radius: 8px;
height: 45px;
font-size: 16px;
}
.login_wrapper .form_div .row hr {
border: 1px solid #d7d5e4;
border-bottom: none;
margin-top: 30px;
margin-bottom: 10px;
}
.login_wrapper .form_div .row P {
text-align: center;
color: #3b394d;
margin: 0px;
position: relative;
bottom: 20px;
}
.login_wrapper .form_div .row P span {
background-color: #fff;
padding: 10px;
font-size: 18px;
}
.login_wrapper .form_div .row h4 {
color: #3b394d;
text-align: center;
margin: 0px;
padding-top: 15px;
}
.login_wrapper .form_div .row h6 {
color: #29285b;
}
.login_wrapper .form_div .row h6 span {
position: relative;
top: 5px;
}
.login_wrapper .form_div .row h6 a {
color: #29285b;
text-decoration: none;
font-weight: 900;
}
.login_wrapper .form_div .row h6 .styled-checkbox {
position: absolute;
opacity: 0;
}
.login_wrapper .form_div .row h6 .styled-checkbox + label {
position: relative;
cursor: pointer;
padding: 0;
}
.login_wrapper .form_div .row h6 .styled-checkbox + label:before {
content: '';
margin-right: 10px;
display: inline-block;
vertical-align: text-top;
width: 30px;
height: 30px;
border-radius: 10px;
background: white;
border: 1px solid #d7d5e4;
}
.login_wrapper .form_div .row h6 .styled-checkbox:checked + label:before {
background: #29285b;
}
.login_wrapper .form_div .row h6 .styled-checkbox:disabled + label {
color: #b8b8b8;
cursor: auto;
}
.login_wrapper .form_div .row h6 .styled-checkbox:disabled + label:before {
-webkit-box-shadow: none;
box-shadow: none;
background: #ddd;
}
.login_wrapper .form_div .row h6 .styled-checkbox:checked + label:after {
content: '';
position: absolute;
left: 10px;
top: 15px;
background: white;
width: 2px;
height: 2px;
-webkit-box-shadow: 2px 0 0 white, 4px 0 0 white, 4px -2px 0 white, 4px -4px 0 white, 4px -6px 0 white, 4px -8px 0 white;
box-shadow: 2px 0 0 white, 4px 0 0 white, 4px -2px 0 white, 4px -4px 0 white, 4px -6px 0 white, 4px -8px 0 white;
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
}
.login_wrapper .form_div .row .social_div {
border: 1px solid #d7d5e4;
height: 45px;
border-radius: 20px;
}
.login_wrapper .form_div .row .social_div .social_btn {
display: inline-block;
width: 50%;
text-align: center;
height: 100%;
font-size: 18px;
padding: 9px;
}
.terms_wrapper {
background-color: rgba(41, 40, 91, 0.6);
color: #fff;
position: fixed;
top: 0px;
bottom: 0px;
left: 0px;
right: 0px;
z-index: 9999;
}
.terms_wrapper .terms_inner {
background-color: #fff;
border-radius: 10px;
width: calc(100% - 20px);
margin: 0 auto;
padding: 20px;
padding-top: 10px;
position: relative;
top: 50px;
}
.terms_wrapper .terms_inner h5 {
margin: 0px;
border-bottom: 1px solid #a8a8a8;
padding-top: 10px;
padding-bottom: 10px;
text-align: center;
color: #29285b;
}
.terms_wrapper .terms_inner p {
color: #a8a8a8;
text-align: justify;
padding-top: 10px;
padding-bottom: 10px;
height: 300px;
overflow: scroll;
}
.terms_wrapper .terms_inner .accept {
width: 100%;
height: 35px;
background-color: #29285b;
color: #fff;
text-align: center;
border-radius: 2px;
}
/*# sourceMappingURL=signup.page.css.map */
\ No newline at end of file
{
"version": 3,
"mappings": "AAAA,AAAA,cAAc,CAAC;EACX,KAAK,EAAE,GAAG;EACV,MAAM,EAAE,MAAM;CA6IjB;;AA/ID,AAGI,cAHU,CAGV,aAAa,CAAC;EACV,KAAK,EAAE,IAAI;EACX,UAAU,EAAE,MAAM;EAClB,WAAW,EAAE,IAAI;EACjB,cAAc,EAAE,IAAI;CAIvB;;AAXL,AAQQ,cARM,CAGV,aAAa,CAKT,GAAG,CAAC;EACA,KAAK,EAAE,KAAK;CACf;;AAVT,AAaQ,cAbM,CAYV,SAAS,CACL,IAAI,CAAC;EACD,aAAa,EAAE,IAAI;CA+HtB;;AA7IT,AAeY,cAfE,CAYV,SAAS,CACL,IAAI,CAEA,KAAK,CAAC;EACF,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC,OAAsB;EACxC,UAAU,EAAE,WAAW;EACvB,KAAK,EAAE,OAAsB;EAC7B,KAAK,EAAE,IAAI;EACX,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K;EACf,GAAG,EAAE,GAAG;EACR,MAAM,EAAE,GAAG;EACX,IAAI,EAAE,GAAG;EACT,KAAK,EAAE,GAAG;EACV,OAAO,EAAE,IAAI;CAmChB;;AA3CD,AASI,cATU,CASV,YAAY,CAAC;EACT,gBAAgB,EAAE,IAAI;EACtB,aAAa,EAAE,IAAI;EACnB,KAAK,EAAE,iBAAiB;EACxB,MAAM,EAAE,MAAM;EACd,OAAO,EAAE,IAAI;EACb,WAAW,EAAE,IAAI;EACjB,QAAQ,EAAE,QAAQ;EAClB,GAAG,EAAE,IAAI;CAyBZ;;AA1CL,AAkBQ,cAlBM,CASV,YAAY,CASR,EAAE,CAAC;EACC,MAAM,EAAE,GAAG;EACX,aAAa,EAAE,iBAAiB;EAChC,WAAW,EAAE,IAAI;EACjB,cAAc,EAAE,IAAI;EACpB,UAAU,EAAE,MAAM;EAClB,KAAK,EAAE,OAAmB;CAC7B;;AAzBT,AA0BQ,cA1BM,CASV,YAAY,CAiBR,CAAC,CAAC;EACE,KAAK,EAAE,OAAO;EACd,UAAU,EAAE,OAAO;EACnB,WAAW,EAAE,IAAI;EACjB,cAAc,EAAE,IAAI;EACpB,MAAM,EAAE,KAAK;EACb,QAAQ,EAAE,MAAM;CACnB;;AAjCT,AAkCQ,cAlCM,CASV,YAAY,CAyBR,OAAO,CAAC;EACJ,KAAK,EAAE,IAAI;EACX,MAAM,EAAE,IAAI;EACZ,gBAAgB,EAAE,OAAO;EACzB,KAAK,EAAE,IAAI;EACX,UAAU,EAAE,MAAM;EAClB,aAAa,EAAE,GAAG;CACrB",
"sources": [
"signup.page.scss"
],
"names": [],
"file": "signup.page.css"
}
\ No newline at end of file
......@@ -174,6 +174,12 @@
</div>
</div>
</div>
<div class="loader" *ngIf="register.loader">
<div class="lds-ripple">
<div></div>
<div></div>
</div>
</div>
</ion-content>
<div class="terms_wrapper" *ngIf="menuShow" [@slideInOut]>
<div class="terms_inner">
......
/* No CSS *//*# sourceMappingURL=sortby.page.css.map */
\ No newline at end of file
{
"version": 3,
"mappings": "",
"sources": [
"sortby.page.scss"
],
"names": [],
"file": "sortby.page.css"
}
\ No newline at end of file
......@@ -4,13 +4,13 @@
<input
class="search_bar"
placeholder="Search here.. eg:shirts, retailers etc..."
(click)="clickSearch()"
(click)="searchModal()"
/>
</div>
<button
class="nav_btn nav_search floatRight"
*ngIf="!searchShow"
(click)="clickSearch()"
(click)="searchModal()"
></button>
<button
class="nav_btn nav_close floatRight"
......@@ -78,6 +78,12 @@
</ul>
</div>
</div>
<div class="loader" *ngIf="loader">
<div class="lds-ripple">
<div></div>
<div></div>
</div>
</div>
</ion-content>
<div class="search_item_list" *ngIf="searchShow" [@slideInOut]>
......
import { Component, OnInit } from "@angular/core";
import { trigger, transition, animate, style } from "@angular/animations";
import { Router } from "@angular/router";
import { Location } from "@angular/common";
import { ServiceService } from "./../../config/service.service";
import { ShoppersService } from "./../../config/shopper.service";
import { SearchService } from "../../config/search.service";
import { Component, OnInit } from '@angular/core';
import { trigger, transition, animate, style } from '@angular/animations';
import { Router } from '@angular/router';
import { Location } from '@angular/common';
import { ServiceService } from './../../config/service.service';
import { ShoppersService } from './../../config/shopper.service';
import { SearchService } from '../../config/search.service';
import { ModalController } from '@ionic/angular';
import { SearchmodalPage } from '../searchmodal/searchmodal.page';
import { SubjectService } from './../../config/subject.service';
@Component({
selector: "app-storelist",
templateUrl: "./storelist.page.html",
styleUrls: ["./storelist.page.scss"],
selector: 'app-storelist',
templateUrl: './storelist.page.html',
styleUrls: ['./storelist.page.scss'],
animations: [
trigger("slideInOut", [
transition(":enter", [
style({ transform: "translateY(100%)" }),
animate("200ms ease-in", style({ transform: "translateY(0%)" }))
trigger('slideInOut', [
transition(':enter', [
style({ transform: 'translateY(100%)' }),
animate('200ms ease-in', style({ transform: 'translateY(0%)' }))
]),
transition(":leave", [
animate("200ms ease-out", style({ transform: "translateY(100%)" }))
transition(':leave', [
animate('200ms ease-out', style({ transform: 'translateY(100%)' }))
])
])
]
......@@ -27,24 +30,31 @@ export class StorelistPage implements OnInit {
slidesPerView: 1.5
};
data: any;
loader: boolean;
constructor(
public router: Router,
public location: Location,
public service: ServiceService,
public shopperService: ShoppersService,
private searchService: SearchService
private searchService: SearchService,
private modalController: ModalController,
private subjectService: SubjectService
) {
this.service.get("params").then(val => {
this.loader = true;
this.service.get('params').then(val => {
this.data = val;
this.shopperService.shopperList(this.data.cId, "centerId");
this.shopperService.shopperList(this.data.cId, 'centerId');
setTimeout(() => {
this.loader = false;
}, 2000);
});
}
ngOnInit() {}
goToPage(path, data = null) {
this.service.set("params", data);
this.service.set('params', data);
this.router.navigateByUrl(path, { queryParams: data });
document.body.scrollTop = document.documentElement.scrollTop = 0;
}
......@@ -58,6 +68,17 @@ export class StorelistPage implements OnInit {
this.searchService.searchList = [];
}
async searchModal() {
this.subjectService.setTabData(false);
const modal = await this.modalController.create({
component: SearchmodalPage
});
modal.onDidDismiss().then(dataReturned => {
this.subjectService.setTabData(true);
});
return await modal.present();
}
searchClose() {
this.searchShow = false;
}
......
.welcome-card img {
max-height: 35vh;
overflow: hidden;
}
/*# sourceMappingURL=tab1.page.css.map */
\ No newline at end of file
{
"version": 3,
"mappings": "AAAA,AAAA,aAAa,CAAC,GAAG,CAAC;EAChB,UAAU,EAAE,IAAI;EAChB,QAAQ,EAAE,MAAM;CACjB",
"sources": [
"tab1.page.scss"
],
"names": [],
"file": "tab1.page.css"
}
\ No newline at end of file
/* No CSS *//*# sourceMappingURL=tab2.page.css.map */
\ No newline at end of file
{
"version": 3,
"mappings": "",
"sources": [
"tab2.page.scss"
],
"names": [],
"file": "tab2.page.css"
}
\ No newline at end of file
/* No CSS *//*# sourceMappingURL=tab3.page.css.map */
\ No newline at end of file
{
"version": 3,
"mappings": "",
"sources": [
"tab3.page.scss"
],
"names": [],
"file": "tab3.page.css"
}
\ No newline at end of file
/* No CSS *//*# sourceMappingURL=tabs.page.css.map */
\ No newline at end of file
{
"version": 3,
"mappings": "",
"sources": [
"tabs.page.scss"
],
"names": [],
"file": "tabs.page.css"
}
\ No newline at end of file
.trackorder_div {
width: 100%;
height: 100vh;
position: relative;
}
.trackorder_div .overlay {
position: absolute;
top: 0px;
left: 0px;
right: 0px;
bottom: 0px;
background-color: rgba(68, 67, 151, 0.2);
}
.trackorder_div agm-map {
width: 100%;
height: 100%;
}
.rider_footer {
position: fixed;
bottom: 0px;
left: 0px;
padding: 15px;
right: 0px;
background-color: #fff;
-webkit-box-shadow: 0px -2px 5px 0px rgba(0, 0, 0, 0.2);
box-shadow: 0px -2px 5px 0px rgba(0, 0, 0, 0.2);
border-top-left-radius: 15px;
border-top-right-radius: 15px;
}
.rider_footer .rider_image {
width: 50px;
height: 50px;
border-radius: 50%;
float: left;
background-color: #a8a8a8;
}
.rider_footer .rider_image img {
width: 100%;
height: 100%;
-o-object-fit: cover;
object-fit: cover;
-o-object-position: center;
object-position: center;
border-radius: 50%;
}
.rider_footer .rider_detail {
float: left;
padding: 5px;
padding-left: 10px;
width: calc(100% - 265px);
}
.rider_footer .rider_detail h5 {
margin: 0px;
padding: 0px;
color: #3b394d;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.rider_footer .rider_detail p {
margin: 0px;
padding: 0px;
color: #b0aec7;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.rider_footer .rider_time {
float: left;
width: 110px;
font-size: 35px;
font-weight: 900;
color: #3b394d;
padding: 5px;
padding-left: 15px;
}
.rider_footer .rider_time span {
color: #b0aec7;
font-size: 16px;
padding-left: 5px;
font-weight: 400;
}
.rider_footer .rider_call {
background-color: #35cbab;
color: #fff;
float: right;
height: 50px;
padding: 14px;
font-size: 16px;
width: 100px;
border-radius: 5px;
font-weight: 700;
padding-left: 20px;
padding-right: 20px;
text-align: center;
}
/*# sourceMappingURL=trackorder.page.css.map */
\ No newline at end of file
{
"version": 3,
"mappings": "AAAA,AAAA,eAAe,CAAC;EACZ,KAAK,EAAE,IAAI;EACX,MAAM,EAAE,KAAK;EACb,QAAQ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auto;
}
.verification_div .form_div {
padding-top: 30%;
}
.verification_div .form_div .row {
margin-bottom: 20px;
}
.verification_div .form_div .row input {
border: 1px solid #d7d5e4;
background: transparent;
color: #d7d5e4;
width: 100%;
height: 45px;
text-align: center;
border-radius: 8px;
font-size: 16px;
}
.verification_div .form_div .row .login_btn {
width: 100%;
background-color: #29285b;
color: #fff;
border-radius: 8px;
height: 45px;
font-size: 16px;
}
.verification_div .form_div .row .resend_btn {
width: 100%;
background-color: transparent;
color: #29285b;
border-radius: 8px;
height: 45px;
font-size: 16px;
font-weight: 900;
}
.verification_div .form_div .row hr {
border: 1px solid #d7d5e4;
border-bottom: none;
margin-top: 30px;
margin-bottom: 10px;
}
.verification_div .form_div .row P {
text-align: center;
color: #3b394d;
margin: 0px;
text-align: center;
}
.verification_div .form_div .row P span {
background-color: #fff;
padding: 10px;
font-size: 18px;
}
.verification_div .form_div .row h4 {
color: #3b394d;
text-align: center;
margin: 0px;
padding-top: 15px;
}
.verification_div .form_div .row h6 {
color: #29285b;
text-align: center;
font-weight: bold;
padding-bottom: 20%;
font-size: 25px;
}
.verification_div .form_div .row h6 .styled-checkbox {
position: absolute;
opacity: 0;
}
.verification_div .form_div .row h6 .styled-checkbox + label {
position: relative;
cursor: pointer;
padding: 0;
}
.verification_div .form_div .row h6 .styled-checkbox + label:before {
content: '';
margin-right: 10px;
display: inline-block;
vertical-align: text-top;
width: 30px;
height: 30px;
border-radius: 10px;
background: white;
border: 1px solid #d7d5e4;
}
.verification_div .form_div .row h6 .styled-checkbox:checked + label:before {
background: #29285b;
}
.verification_div .form_div .row h6 .styled-checkbox:disabled + label {
color: #b8b8b8;
cursor: auto;
}
.verification_div .form_div .row h6 .styled-checkbox:disabled + label:before {
-webkit-box-shadow: none;
box-shadow: none;
background: #ddd;
}
.verification_div .form_div .row h6 .styled-checkbox:checked + label:after {
content: '';
position: absolute;
left: 10px;
top: 15px;
background: white;
width: 2px;
height: 2px;
-webkit-box-shadow: 2px 0 0 white, 4px 0 0 white, 4px -2px 0 white, 4px -4px 0 white, 4px -6px 0 white, 4px -8px 0 white;
box-shadow: 2px 0 0 white, 4px 0 0 white, 4px -2px 0 white, 4px -4px 0 white, 4px -6px 0 white, 4px -8px 0 white;
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
}
.verification_div .form_div .row .social_div {
border: 1px solid #d7d5e4;
height: 45px;
border-radius: 20px;
}
.verification_div .form_div .row .social_div .social_btn {
display: inline-block;
width: 50%;
text-align: center;
height: 100%;
font-size: 18px;
padding: 9px;
}
/*# sourceMappingURL=verification.page.css.map */
\ No newline at end of file
{
"version": 3,
"mappings": "AAAC,AAAA,iBAAiB,CAAC;EACd,KAAK,EAAE,GAAG;EACV,MAAM,EAAE,MAAM;CA2HjB;;AA7HD,AAGI,iBAHa,CAGb,SAAS,CAAC;EACN,WAAW,EAAE,GAAG;CAwHnB;;AA5HL,AAKQ,iBALS,CAGb,SAAS,CAEL,IAAI,CAAC;EACD,aAAa,EAAE,IAAI;CAqHtB;;AA3HT,AAOY,iBAPK,CAGb,SAAS,CAEL,IAAI,CAEA,KAAK,CAAC;EACF,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC,OAAsB;EACxC,UAAU,EAAE,WAAW;EACvB,KAAK,EAAE,OAAsB;EAC7B,KAAK,EAAE,IAAI;EACX,MAAM,EAAE,IAAI;EACZ,UAAU,EAAE,MAAM;EAClB,aAAa,EAAE,GAAG;EAClB,SAAS,EAAE,IAAI;CAClB;;AAhBb,AAiBY,iBAjBK,CAGb,SAAS,CAEL,IAAI,CAYA,UAAU,CAAC;EACP,KAAK,EAAE,IAAI;EACX,gBAAgB,EAAE,OAAO;EACzB,KAAK,EAAE,IAAI;EACX,aAAa,EAAE,GAAG;EAClB,MAAM,EAAE,IAAI;EACZ,SAAS,EAAE,IAAI;CAClB;;AAxBb,AAyBY,iBAzBK,CAGb,SAAS,CAEL,IAAI,CAoBA,WAAW,CAAC;EACR,KAAK,EAAE,IAAI;EACX,gBAAgB,EAAE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X,UAAU,EAAE,oGAAoG;EAChH,SAAS,EAAE,aAAa;CAC3B;;AA3GrB,AA8GY,iBA9GK,CAGb,SAAS,CAEL,IAAI,CAyGA,WAAW,CAAC;EACR,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC,OAAsB;EACxC,MAAM,EAAE,IAAI;EACZ,aAAa,EAAE,IAAI;CAStB;;AA1Hb,AAkHgB,iBAlHC,CAGb,SAAS,CAEL,IAAI,CAyGA,WAAW,CAIP,WAAW,CAAC;EACR,OAAO,EAAE,YAAY;EACrB,KAAK,EAAE,GAAG;EACV,UAAU,EAAE,MAAM;EAClB,MAAM,EAAE,IAAI;EACZ,SAAS,EAAE,IAAI;EACf,OAAO,EAAE,GAAG;CACf",
"sources": [
"verification.page.scss"
],
"names": [],
"file": "verification.page.css"
}
\ No newline at end of file
<div class="nav_header">
<button class="nav_btn nav_back floatLeft" (click)="goBack()">
<img src="../assets/Group17_2.png">
<img src="../assets/Group17_2.png" />
</button>
<div class="nav_title floatLeft">
<h4>VERIFICATION</h4>
......@@ -8,23 +8,39 @@
<div class="clear"></div>
</div>
<ion-content>
<div class="verification_div">
<div class="verification_div" *ngIf="authService.userPostData">
<div class="form_div">
<div class="row">
<p>We have sent and OTP to</p>
<h6>+01 {{authService.userPostData.phone}} </h6>
<h6>+01 {{authService.userPostData.phone}}</h6>
</div>
<div class="row">
<input class="" type="number" placeholder="Type OTP" maxlength="4" #otp required>
<input
class=""
type="number"
placeholder="Type OTP"
maxlength="4"
#otp
required
/>
</div>
<div class="row">
<button class="login_btn" (click)="authService.verify(otp.value)">SUBMIT</button>
<button class="login_btn" (click)="authService.verify(otp.value)">
SUBMIT
</button>
</div>
<div class="row">
<button class="resend_btn" (click)="authService.resend()">RESEND</button>
<button class="resend_btn" (click)="authService.resend()">
RESEND
</button>
</div>
<h6>OTP: {{authService.userPostData.otp}}</h6>
</div>
</div>
<div class="loader" *ngIf="authService.loader">
<div class="lds-ripple">
<div></div>
<div></div>
</div>
</div>
</ion-content>
/* No CSS *//*# sourceMappingURL=wishlist.page.css.map */
\ No newline at end of file
{
"version": 3,
"mappings": "",
"sources": [
"wishlist.page.scss"
],
"names": [],
"file": "wishlist.page.css"
}
\ No newline at end of file
<div class="nav_header">
<button class="nav_btn nav_back floatLeft" (click)="goBack()">
<img src="../assets/Group17_2.png">
<img src="../assets/Group17_2.png" />
</button>
<div class="nav_title floatLeft">
<h4>WISHLIST</h4>
......@@ -9,8 +9,7 @@
</div>
<ion-content>
<div class="wishlist-wrapper">
<!-- <div class="wishlist-wrapper">
<ul>
<li>
<div class="wishlist_image">
......@@ -39,17 +38,16 @@
<div class="clear"></div>
</li>
</ul>
</div>
</div> -->
<div class="empty-wishlist-wrapper">
<img src="../../assets/wishlist.png">
<img src="../../assets/wishlist.png" />
<h1>There is no products added</h1>
<button>shop now</button>
<button (click)="goToPage('home')">shop now</button>
</div>
<div class="footer-btns-wrapper">
<button class="btn-clear">Clear All</button>
<button class="btn-cart">add all to cart</button>
</div>
</ion-content>
import { Component, OnInit } from '@angular/core';
import { Location } from '@angular/common';
import { Router, ActivatedRoute } from '@angular/router';
@Component({
selector: 'app-wishlist',
......@@ -7,11 +8,16 @@ import { Location } from '@angular/common';
styleUrls: ['./wishlist.page.scss']
})
export class WishlistPage implements OnInit {
constructor(private location: Location) {}
constructor(private location: Location, private router: Router) {}
ngOnInit() {}
goBack() {
this.location.back();
}
goToPage(path, data = null) {
this.router.navigateByUrl(path, { queryParams: data });
document.body.scrollTop = document.documentElement.scrollTop = 0;
}
}
......@@ -18,6 +18,7 @@ import { from } from 'rxjs';
providedIn: 'root'
})
export class AuthService {
loader: boolean;
constructor(
public afs: AngularFirestore,
public afAuth: AngularFireAuth,
......@@ -26,20 +27,26 @@ export class AuthService {
private subjectService: SubjectService,
private googlePlus: GooglePlus
) {
this.loader = true;
this.type = 1;
this.afAuth.authState.subscribe(user => {
console.log('here');
console.log(user);
if (user) {
this.subjectService.sendLoginData(false);
this.userData = user;
console.log(this.userData);
this.service.set('user', JSON.stringify(this.userData));
this.SetUserData(user);
this.loader = false;
if (this.type === 1) {
this.router.navigateByUrl('home');
} else {
this.router.navigateByUrl('verification');
}
} else {
console.log('here too');
this.loader = false;
this.subjectService.sendLoginData(true);
this.service.set('user', null);
JSON.parse(localStorage.getItem('user'));
......@@ -59,6 +66,7 @@ export class AuthService {
public asyc;
public async SignIn(email: string, password: string) {
this.loader = true;
return this.afAuth.auth
.signInWithEmailAndPassword(email, password)
.then(result => {
......@@ -67,14 +75,13 @@ export class AuthService {
this.SetUserData(result.user);
})
.catch(error => {
this.loader = false;
window.alert(error.message);
});
}
public async verify(otp: string) {
console.log(this.userData.uid, otp);
// tslint:disable-next-line:radix
// const otpnew = parseInt(otp);
this.loader = true;
const custRef: AngularFirestoreCollection<any> = this.afs.collection(
'customers',
ref => ref.where('otp', '==', otp).where('uid', '==', this.userData.uid)
......@@ -89,8 +96,10 @@ export class AuthService {
.doc(this.userData.uid)
.update({ otp: '', phoneVerified: true });
this.service.set('type', 1);
this.loader = false;
this.router.navigateByUrl('nearby');
} else {
this.loader = false;
window.alert('Please input valid OTP');
}
});
......@@ -104,6 +113,7 @@ export class AuthService {
}
public async google(type: number) {
this.loader = true;
this.type = type;
// this.googlePlus.login({}).then(res => console.log(res)).catch(err => console.error(err));
this.afAuth.auth
......@@ -117,17 +127,34 @@ export class AuthService {
) {
this.socialSignUp(result);
}
})
.catch(err => {
this.loader = false;
});
}
public async facebook(type: number) {
console.log('here fab');
this.loader = true;
this.type = type;
const This = this;
setTimeout(() => {
This.loader = false;
}, 3000);
try {
this.afAuth.auth
.signInWithPopup(new auth.FacebookAuthProvider())
.then(result => {
this.loader = false;
console.log('success');
console.log(result);
})
.catch(err => {
alert(err.message);
});
} catch (error) {
This.loader = false;
}
}
SetUserData(user: any) {
......@@ -135,6 +162,7 @@ export class AuthService {
`customers/${user.uid}`
);
userRef.valueChanges().subscribe(value => {
console.log(value);
const userData: User = {
uid: value.uid,
emailId: value.emailId,
......@@ -156,9 +184,11 @@ export class AuthService {
}
public async SignOut() {
this.loader = true;
return this.afAuth.auth.signOut().then(() => {
this.subjectService.sendLoginData(true);
this.service.remove('user');
this.loader = false;
console.log('logout');
});
}
......@@ -198,6 +228,7 @@ export class AuthService {
}
signup(userData: Signup) {
this.loader = true;
this.type = 2;
console.log(userData);
const otp = Math.floor(1000 + Math.random() * 9000);
......@@ -234,8 +265,10 @@ export class AuthService {
.then(() => {
console.log('successs');
});
this.loader = false;
})
.catch(error => {
this.loader = false;
window.alert(error.message);
});
}
......@@ -243,7 +276,7 @@ export class AuthService {
createAddress(addressData: Address) {
console.log(addressData);
console.log(this.userData.uid);
this.loader = true;
this.afs
.collection('address')
.add({
......@@ -277,7 +310,11 @@ export class AuthService {
this.service.set('user', JSON.stringify(this.userData));
this.router.navigateByUrl('home');
document.body.scrollTop = document.documentElement.scrollTop = 0;
})
.catch(err => {
this.loader = false;
});
this.loader = false;
});
return false;
}
......
import { Injectable } from '@angular/core';
import { AngularFirestore, AngularFirestoreCollection, AngularFirestoreDocument } from '@angular/fire/firestore';
import {
AngularFirestore,
AngularFirestoreCollection,
AngularFirestoreDocument
} from '@angular/fire/firestore';
import { take } from 'rxjs/operators';
import { ServiceService } from './../config/service.service';
import { Products } from './services/product';
......@@ -30,7 +34,7 @@ export class ProductsService {
const state = true;
// firebase query
return new Promise (resolve => {
return new Promise(resolve => {
const prodRef: AngularFirestoreCollection<any> = this.afs.collection(
`product_gallery`,
ref => ref.where('skuId', '==', skuID)
......@@ -39,7 +43,7 @@ export class ProductsService {
this.prodSlideImg = [];
const res = value;
if (res.length > 0) {
res.forEach((item) => {
res.forEach(item => {
this.prodSlideImg.push(item.downloadURL);
});
resolve(this.prodSlideImg);
......@@ -83,6 +87,7 @@ export class ProductsService {
shopper: item.shopper,
skuCode: item.skuCode,
status: item.status,
rating: item.rating,
size: this.service.splitSep(item.size),
subCate: item.subCate,
tag: this.service.splitSep(item.tag)
......
......@@ -18,5 +18,6 @@ export interface Products {
skuCode: string;
status: boolean;
subCate: boolean;
rating: string;
tag: string[];
}
......@@ -8,6 +8,7 @@ import { BehaviorSubject } from 'rxjs/BehaviorSubject';
export class SubjectService {
private loginState = new BehaviorSubject<any>(null);
private DataState = new BehaviorSubject<any>(null);
private TabState = new BehaviorSubject<any>(null);
sendLoginData(state: any) {
this.loginState.next(state);
......@@ -24,4 +25,12 @@ export class SubjectService {
getUserData(): Observable<any> {
return this.DataState.asObservable();
}
setTabData(state: any) {
return this.TabState.next(state);
}
getTabData(): Observable<any> {
return this.TabState.asObservable();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment