design fix
Showing
| <div class="nav_header"> | <div class="nav_header"> | ||
| <button class="nav_btn nav_back floatLeft" (click)="goBack()"> | <button class="nav_btn nav_back floatLeft" (click)="goBack()"> | ||
| <img src="../assets/Group17_2.png" /> | <img src="../assets/Group17_2.png" /> | ||
| </button> | </button> | ||
| <div class="nav_title floatLeft"></div> | <div class="nav_title floatLeft"></div> | ||
| <button class="nav_btn nav_cart floatRight" (click)="goToPage('cart')"> | <button class="nav_btn nav_cart floatRight" (click)="goToPage('cart')"> | ||
| <div class="not" *ngIf="cartService.carts"> | <div class="not" *ngIf="cartService.carts"> | ||
| {{cartService.carts.length}} | {{cartService.carts.length}} | ||
| </div> | </div> | ||
| </button> | </button> | ||
| <div class="clear"></div> | <div class="clear"></div> | ||
| </div> | </div> | ||
| <ion-content> | <ion-content> | ||
| <div class="product_detail_wrapper" *ngIf="product"> | <div class="product_detail_wrapper" *ngIf="product"> | ||
| <div class="product_banner"> | <div class="product_banner"> | ||
| <div | <div [ngClass]="checkFavStatus(product.prodId)" (click)="changeFav(product.prodId)"></div> | ||
| [ngClass]="checkFavStatus(product.prodId)" | <div class="featured_badge" *ngIf="product.featured">Featured</div> | ||
| (click)="changeFav(product.prodId)" | <ion-slides pager="true" [options]="bannerOptions" *ngIf="slideData"> | ||
| ></div> | <ion-slide *ngFor="let prodImg of slideData"> | ||
| <div class="featured_badge" *ngIf="product.featured">Featured</div> | <img [src]="prodImg" onerror="this.src='../assets/[email protected]'" /> | ||
| <ion-slides pager="true" [options]="bannerOptions" *ngIf="slideData"> | </ion-slide> | ||
| <ion-slide *ngFor="let prodImg of slideData"> | <!-- <ion-slide> | ||
| <img [src]="prodImg" onerror="this.src='../assets/[email protected]'" /> | |||
| </ion-slide> | |||
| <!-- <ion-slide> | |||
| <img | <img | ||
| [src]="product.image" | [src]="product.image" | ||
| onerror="this.src='../assets/[email protected]'" | onerror="this.src='../assets/[email protected]'" | ||
| ... | @@ -34,84 +31,66 @@ | ... | @@ -34,84 +31,66 @@ |
| onerror="this.src='../assets/[email protected]'" | onerror="this.src='../assets/[email protected]'" | ||
| /> | /> | ||
| </ion-slide> --> | </ion-slide> --> | ||
| </ion-slides> | </ion-slides> | ||
| </div> | </div> | ||
| <div class="product_header"> | <div class="product_header"> | ||
| <ion-row> | <ion-row> | ||
| <ion-col size="8"> | <ion-col size="8"> | ||
| <h3 [innerHTML]="product.prodName"></h3> | <h3>{{product.prodName}}</h3> | ||
| <p> | <p> | ||
| <strong | <strong><span><img src="../assets/Path61_2.png" /></span>{{product.rating}}</strong> | ||
| ><span><img src="../assets/Path61_2.png"/></span | {{product.category}}, {{product.subCate}} | ||
| >{{product.rating}}</strong | <br /> | ||
| > {{product.category}}, {{product.subCate}} | <span *ngFor="let tag of product.tag"><span *ngIf="tag !=='No-Tag'">#{{tag}} </span></span> | ||
| <br /> | </p> | ||
| <span *ngFor="let tag of product.tag" | </ion-col> | ||
| ><span *ngIf="tag !=='No-Tag'">#{{tag}} </span></span | <ion-col size="4"> | ||
| > | <h5>A$ {{product.price}}</h5> | ||
| </p> | <p> | ||
| </ion-col> | <span class="offer" *ngIf="product.discount > 0">-{{product.discount}}%</span> | ||
| <ion-col size="4"> | </p> | ||
| <h5>A$ {{product.price}}</h5> | </ion-col> | ||
| <p> | </ion-row> | ||
| <span class="offer" *ngIf="product.discount > 0" | </div> | ||
| >-{{product.discount}}%</span | |||
| > | |||
| </p> | |||
| </ion-col> | |||
| </ion-row> | |||
| </div> | |||
| <div class="product_div_content"> | <div class="product_div_content"> | ||
| <h5 *ngIf="product.color && product.color[0] !=='No-Color'">Color</h5> | <h5 *ngIf="product.color && product.color[0] !=='No-Color'">Color</h5> | ||
| <div class="size_div"> | <div class="size_div"> | ||
| <ul *ngIf="product.size"> | <ul *ngIf="product.size"> | ||
| <ion-slides pager="false" [options]="slideOpts"> | <ion-slides pager="false" [options]="slideOpts"> | ||
| <ion-slide *ngFor="let color of product.color; let i = index"> | <ion-slide *ngFor="let color of product.color; let i = index"> | ||
| <li *ngIf="color !=='No-Color'"> | <li *ngIf="color !=='No-Color'"> | ||
| <button id="custom_check_button"> | <button id="custom_check_button"> | ||
| <label> | <label> | ||
| <input | <input id="{{color}}" type="radio" name="color" value="{{color}}" | ||
| id="{{color}}" | (click)="cartService.choose_color(color)" [checked]="i==0" /> | ||
| type="radio" | <p>{{color}}</p> | ||
| name="color" | </label> | ||
| value="{{color}}" | </button> | ||
| (click)="cartService.choose_color(color)" | </li> | ||
| [checked]="i==0" | </ion-slide> | ||
| /> | </ion-slides> | ||
| <p>{{color}}</p> | </ul> | ||
| </label> | </div> | ||
| </button> | <h5 *ngIf="product.size && product.size[0] !=='Any-Size'">Size</h5> | ||
| </li> | <div class="size_div"> | ||
| </ion-slide> | <ul *ngIf="product.size"> | ||
| </ion-slides> | <ion-slides pager="false" [options]="slideOpts"> | ||
| </ul> | <ion-slide *ngFor="let size of product.size; let i = index"> | ||
| </div> | <li *ngIf="size !=='Any-Size'"> | ||
| <h5 *ngIf="product.size && product.size[0] !=='Any-Size'">Size</h5> | <button id="custom_check_button"> | ||
| <div class="size_div"> | <label> | ||
| <ul *ngIf="product.size"> | <input id="{{size}}" type="radio" name="services" value="{{size}}" | ||
| <ion-slides pager="false" [options]="slideOpts"> | (click)="cartService.choose_size(size)" [checked]="i==0" /> | ||
| <ion-slide *ngFor="let size of product.size; let i = index"> | <p>{{size}}</p> | ||
| <li *ngIf="size !=='Any-Size'"> | </label> | ||
| <button id="custom_check_button"> | </button> | ||
| <label> | </li> | ||
| <input | </ion-slide> | ||
| id="{{size}}" | </ion-slides> | ||
| type="radio" | </ul> | ||
| name="services" | </div> | ||
| value="{{size}}" | <!-- <h5>Color</h5> | ||
| (click)="cartService.choose_size(size)" | |||
| [checked]="i==0" | |||
| /> | |||
| <p>{{size}}</p> | |||
| </label> | |||
| </button> | |||
| </li> | |||
| </ion-slide> | |||
| </ion-slides> | |||
| </ul> | |||
| </div> | |||
| <!-- <h5>Color</h5> | |||
| <div class="color_div"> | <div class="color_div"> | ||
| <ul> | <ul> | ||
| <ion-slides pager="false" [options]="slideOpts"> | <ion-slides pager="false" [options]="slideOpts"> | ||
| ... | @@ -168,9 +147,9 @@ | ... | @@ -168,9 +147,9 @@ |
| </ion-slides> | </ion-slides> | ||
| </ul> | </ul> | ||
| </div> --> | </div> --> | ||
| <h5>Description</h5> | <h5>Description</h5> | ||
| <p [innerHTML]="product.prodDesc"></p> | <p>{{product.prodDesc}}</p> | ||
| <!--<h5> | <!--<h5> | ||
| <span class="floatLeft">Reviews</span><span class="floatRight" (click)="goToPage('reviewlist')">MORE</span> | <span class="floatLeft">Reviews</span><span class="floatRight" (click)="goToPage('reviewlist')">MORE</span> | ||
| <div class="clear"></div> | <div class="clear"></div> | ||
| </h5> | </h5> | ||
| ... | @@ -234,61 +213,45 @@ | ... | @@ -234,61 +213,45 @@ |
| </li> | </li> | ||
| </ul> | </ul> | ||
| </div> --> | </div> --> | ||
| <h5 *ngIf="product.similar && product.similar.length > 0"> | <h5 *ngIf="product.similar && product.similar.length > 0"> | ||
| <span class="floatLeft">Related Products</span | <span class="floatLeft">Related Products</span><span class="floatRight" | ||
| ><span class="floatRight" (click)="goToPage('productlist', data)" | (click)="goToPage('productlist', data)">MORE</span> | ||
| >MORE</span | <div class="clear"></div> | ||
| > | </h5> | ||
| <div class="clear"></div> | <div class="related_product_slider"> | ||
| </h5> | <ul *ngIf="product.similar && product.similar.length > 0"> | ||
| <div class="related_product_slider"> | <ion-slides pager="false" [options]="relatedProd"> | ||
| <ul *ngIf="product.similar && product.similar.length > 0"> | <ion-slide *ngFor="let similar of product.similar"> | ||
| <ion-slides pager="false" [options]="relatedProd"> | <li (click)="viewProd(similar)"> | ||
| <ion-slide *ngFor="let similar of product.similar"> | <div class="product_image"> | ||
| <li (click)="viewProd(similar)"> | <img [src]="similar.image" onerror="this.src='../assets/[email protected]'" /> | ||
| <div class="product_image"> | <div [ngClass]="checkFavStatus(similar.prodId)" (click)="changeFav(similar.prodId)"> | ||
| <img | </div> | ||
| [src]="similar.image" | </div> | ||
| onerror="this.src='../assets/[email protected]'" | <h5>{{similar.prodName}}</h5> | ||
| /> | <p>{{similar.price}}</p> | ||
| <div | </li> | ||
| [ngClass]="checkFavStatus(similar.prodId)" | </ion-slide> | ||
| (click)="changeFav(similar.prodId)" | </ion-slides> | ||
| ></div> | </ul> | ||
| </div> | </div> | ||
| <h5 [innerHTML]="similar.prodName"></h5> | </div> | ||
| <p>{{similar.price}}</p> | |||
| </li> | |||
| </ion-slide> | |||
| </ion-slides> | |||
| </ul> | |||
| </div> | |||
| </div> | </div> | ||
| </div> | <div class="loader" *ngIf="loader"> | ||
| <div class="loader" *ngIf="loader"> | <div class="lds-ripple"> | ||
| <div class="lds-ripple"> | <div></div> | ||
| <div></div> | <div></div> | ||
| <div></div> | </div> | ||
| </div> | </div> | ||
| </div> | |||
| </ion-content> | </ion-content> | ||
| <ion-footer *ngIf="product"> | <ion-footer *ngIf="product"> | ||
| <div class="footer_div"> | <div class="footer_div"> | ||
| <div class="footer_options"> | <div class="footer_options"> | ||
| <button | <button class="share" | ||
| class="share" | (click)="socialShare(product.prodName, product.category, product.subCate, product.price, product.image)"></button> | ||
| (click)="socialShare(product.prodName, product.category, product.subCate, product.price, product.image)" | <button [ngClass]="checkFavStatus(product.prodId)" (click)="changeFav(product.prodId)"></button> | ||
| ></button> | <button class="cart" [disabled]="!disCart" (click)="buyNow(product,0)"></button> | ||
| <button | </div> | ||
| [ngClass]="checkFavStatus(product.prodId)" | <div class="footer_btn" (click)="buyNow(product,1)">BUY NOW</div> | ||
| (click)="changeFav(product.prodId)" | |||
| ></button> | |||
| <button | |||
| class="cart" | |||
| [disabled]="!disCart" | |||
| (click)="buyNow(product,0)" | |||
| ></button> | |||
| </div> | </div> | ||
| <div class="footer_btn" (click)="buyNow(product,1)">BUY NOW</div> | </ion-footer> | ||
| </div> | \ No newline at end of file | ||
| </ion-footer> |
Please
register
or
sign in
to comment