Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop
Showing
5 changed files
with
25 additions
and
14 deletions
@@ -82,22 +82,22 @@ headerNavHammer.on('tap', function(e) { | @@ -82,22 +82,22 @@ headerNavHammer.on('tap', function(e) { | ||
82 | } | 82 | } |
83 | }); | 83 | }); |
84 | 84 | ||
85 | -formHammer = new Hammer(document.getElementById('img-form')); | 85 | +if (document.getElementById('img-form') !== null) { |
86 | + formHammer = new Hammer(document.getElementById('img-form')); | ||
86 | 87 | ||
87 | -formHammer.on('tap', function(e) { | ||
88 | - if ($(e.target).hasClass('upload-img-remove')) { | ||
89 | - $uploadImgList.html(''); | ||
90 | - imgStr = ''; | ||
91 | - setTimeout(function() { | ||
92 | - $imgAdd.show(); | ||
93 | - }, 50); | 88 | + formHammer.on('tap', function(e) { |
89 | + if ($(e.target).hasClass('upload-img-remove')) { | ||
90 | + $uploadImgList.html(''); | ||
91 | + imgStr = ''; | ||
92 | + setTimeout(function() { | ||
93 | + $imgAdd.show(); | ||
94 | + }, 50); | ||
94 | 95 | ||
95 | - } | ||
96 | -}); | 96 | + } |
97 | + }); | ||
98 | +} | ||
97 | 99 | ||
98 | // 点赞与取消点赞 | 100 | // 点赞与取消点赞 |
99 | -// suggestContentHammer = new Hammer(document.getElementById('suggest-content')); | ||
100 | - | ||
101 | $likeBtn.bind('click', function() { | 101 | $likeBtn.bind('click', function() { |
102 | var id = $(this).closest('.suggest-item').attr('data-id'), | 102 | var id = $(this).closest('.suggest-item').attr('data-id'), |
103 | $that = $(this); | 103 | $that = $(this); |
@@ -110,7 +110,7 @@ $suggest: sprite-map("me/suggest/*.png",$spacing: 5px); | @@ -110,7 +110,7 @@ $suggest: sprite-map("me/suggest/*.png",$spacing: 5px); | ||
110 | 110 | ||
111 | //发表意见 | 111 | //发表意见 |
112 | .create-new-suggest { | 112 | .create-new-suggest { |
113 | - display: block; | 113 | + display: inline-block; |
114 | color: #444; | 114 | color: #444; |
115 | width: 100%; | 115 | width: 100%; |
116 | height: pxToRem(88px); | 116 | height: pxToRem(88px); |
@@ -69,6 +69,10 @@ $basicBtnC:#eb0313; | @@ -69,6 +69,10 @@ $basicBtnC:#eb0313; | ||
69 | border: 1px solid #000; | 69 | border: 1px solid #000; |
70 | color: #000; | 70 | color: #000; |
71 | } | 71 | } |
72 | + .soonSoldOut-tag{ | ||
73 | + background-color:#ffac5b; | ||
74 | + color:#fff; | ||
75 | + } | ||
72 | } | 76 | } |
73 | .good-detail-page { | 77 | .good-detail-page { |
74 | overflow: hidden; | 78 | overflow: hidden; |
@@ -2,6 +2,7 @@ | @@ -2,6 +2,7 @@ | ||
2 | <div class="good-detail-page yoho-page"> | 2 | <div class="good-detail-page yoho-page"> |
3 | <div class="banner-container"> | 3 | <div class="banner-container"> |
4 | <div class="tag-container"> | 4 | <div class="tag-container"> |
5 | + <p class="good-tag soonSoldOut-tag">即将售罄</p> | ||
5 | {{# tags}} | 6 | {{# tags}} |
6 | {{# is_new}} | 7 | {{# is_new}} |
7 | <p class="good-tag new-tag">NEW</p> | 8 | <p class="good-tag new-tag">NEW</p> |
@@ -18,6 +19,9 @@ | @@ -18,6 +19,9 @@ | ||
18 | {{# is_limited}} | 19 | {{# is_limited}} |
19 | <p class="good-tag limit-tag">限量商品</p> | 20 | <p class="good-tag limit-tag">限量商品</p> |
20 | {{/ is_limited}} | 21 | {{/ is_limited}} |
22 | + {{# is_soon_sold_out}} | ||
23 | + <p class="good-tag soonSoldOut-tag">即将售罄</p> | ||
24 | + {{/ is_soon_sold_out}} | ||
21 | {{/ tags}} | 25 | {{/ tags}} |
22 | </div> | 26 | </div> |
23 | {{# bannerTop}} | 27 | {{# bannerTop}} |
@@ -102,7 +106,7 @@ | @@ -102,7 +106,7 @@ | ||
102 | 106 | ||
103 | <div id="productDesc"></div> | 107 | <div id="productDesc"></div> |
104 | {{> product/recommend-for-you}} | 108 | {{> product/recommend-for-you}} |
105 | - | 109 | + |
106 | {{#cartInfo}} | 110 | {{#cartInfo}} |
107 | <div class="cart-bar"> | 111 | <div class="cart-bar"> |
108 | {{#if numInCart}} | 112 | {{#if numInCart}} |
-
Please register or login to post a comment