@@ -13,17 +13,6 @@ block body
13
13
shop-product-carousel
14
14
==================================================
15
15
#carousel-shop-product .carousel ( data-ride ='carousel' )
16
- //- ol.carousel-indicators.carousel-indicators-v
17
- //- li.active(data-target='#carousel-shop-product', data-slide-to='0')
18
- //- li(data-target='#carousel-shop-product', data-slide-to='1')
19
- //- // /carousel-indicators
20
- //- .carousel-inner.carousel-inner-v(role='listbox')
21
- //- .item.active
22
- //- img.img-full(src='images/demo/JC1121-set-My-Mug-blue-2.jpg', alt='First slide image', href='#carousel-shop-product', data-slide='next')
23
- //- // /item
24
- //- .item
25
- //- img.img-full(src='images/demo/JC1121-set-My-Mug-blue-22.jpg', alt='Second slide image', href='#carousel-shop-product', data-slide='next')
26
- //- // /item
27
16
- if (coverPhotos && coverPhotos .length > 0 )
28
17
ol.carousel-indicators.carousel-indicators-v.ac.active
29
18
each photo, index in coverPhotos
@@ -126,12 +115,15 @@ block body
126
115
// /input-group
127
116
// /col-sm-4
128
117
.col-sm-8
129
- - var disabled = (product .stockQuantity == 0 ) ? ' disabled' : ' ' ;
130
118
- var productName = (product .name ) ? " (" + product .name + " )" : " " ;
131
- a.btn.btn-black.border-radius-circle.btn-block.btn-lg.add-to-cart ( class ='#{disabled} ' ,
132
- data-productGmId =productGm .id ,, data-productId =product .id , data-photos =product .photos ,
133
- data-brand =productGm .name , data-name ="#{product .ProductGm .name }#{productName} " , data-brandname =_ .find (brands, {id: product .ProductGm .BrandId }).name ,
134
- data-price =product .price ) 加入購物車
119
+ - if (product .stockQuantity != 0 )
120
+ a.btn.btn-black.border-radius-circle.btn-block.btn-lg.add-to-cart (
121
+ data-productGmId =productGm .id ,, data-productId =product .id , data-photos =product .photos ,
122
+ data-brand =productGm .name , data-name ="#{product .ProductGm .name }#{productName} " , data-brandname =_ .find (brands, {id: product .ProductGm .BrandId }).name ,
123
+ data-price =product .price ) 加入購物車
124
+ - else
125
+ a.btn.btn-gray.border-radius-circle.btn-block.btn-lg.notice-to-buy ( data-productId =product .id
126
+ ) 缺貨中 - 我要貨到通知
135
127
// /col-sm-8
136
128
// /row
137
129
0 commit comments