Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into develop
Showing
7 changed files
with
19 additions
and
18 deletions
@@ -131,6 +131,7 @@ $addressListPage.find('.address').each(function(i, elem) { | @@ -131,6 +131,7 @@ $addressListPage.find('.address').each(function(i, elem) { | ||
131 | $this.siblings().hide(); | 131 | $this.siblings().hide(); |
132 | $this.children('ul').show().children('li').show(); | 132 | $this.children('ul').show().children('li').show(); |
133 | 133 | ||
134 | + $(this).removeClass('highlight'); | ||
134 | e.srcEvent.preventDefault(); | 135 | e.srcEvent.preventDefault(); |
135 | e.srcEvent.stopPropagation(); | 136 | e.srcEvent.stopPropagation(); |
136 | }); | 137 | }); |
@@ -129,7 +129,7 @@ orderHammer.on('tap', function(e) { | @@ -129,7 +129,7 @@ orderHammer.on('tap', function(e) { | ||
129 | if (data.code === 200) { | 129 | if (data.code === 200) { |
130 | 130 | ||
131 | //删除订单页面刷新 | 131 | //删除订单页面刷新 |
132 | - location.href = location.href; | 132 | + history.go(0); |
133 | } | 133 | } |
134 | } | 134 | } |
135 | }); | 135 | }); |
@@ -154,7 +154,7 @@ orderHammer.on('tap', function(e) { | @@ -154,7 +154,7 @@ orderHammer.on('tap', function(e) { | ||
154 | if (data.code === 200) { | 154 | if (data.code === 200) { |
155 | 155 | ||
156 | //取消订单页面刷新 | 156 | //取消订单页面刷新 |
157 | - location.href = location.href; | 157 | + history.go(0); |
158 | } | 158 | } |
159 | } | 159 | } |
160 | }); | 160 | }); |
@@ -37,6 +37,12 @@ likeHammer.on('tap', function(e) { | @@ -37,6 +37,12 @@ likeHammer.on('tap', function(e) { | ||
37 | success: function(data) { | 37 | success: function(data) { |
38 | if (data.code === 200) { | 38 | if (data.code === 200) { |
39 | $this.toggleClass('liked'); | 39 | $this.toggleClass('liked'); |
40 | + | ||
41 | + if ('cancel' === opt) { | ||
42 | + tip.show('取消收藏成功'); | ||
43 | + } else if ('ok' === opt) { | ||
44 | + tip.show('收藏成功'); | ||
45 | + } | ||
40 | } else if (data.code === 400) { | 46 | } else if (data.code === 400) { |
41 | location.href = data.data;//未登录跳转登录页 | 47 | location.href = data.data;//未登录跳转登录页 |
42 | } else { | 48 | } else { |
@@ -23,7 +23,7 @@ | @@ -23,7 +23,7 @@ | ||
23 | display: inline-block; | 23 | display: inline-block; |
24 | max-width: pxToRem(380px); | 24 | max-width: pxToRem(380px); |
25 | overflow: hidden; | 25 | overflow: hidden; |
26 | - text-overflow: ellipsis; | 26 | + text-overflow: ellipsis; |
27 | white-space: nowrap; | 27 | white-space: nowrap; |
28 | } | 28 | } |
29 | 29 | ||
@@ -40,7 +40,7 @@ | @@ -40,7 +40,7 @@ | ||
40 | font-size: pxToRem(40px); | 40 | font-size: pxToRem(40px); |
41 | line-height: pxToRem(60px); | 41 | line-height: pxToRem(60px); |
42 | text-align: right; | 42 | text-align: right; |
43 | - | 43 | + |
44 | .edit, | 44 | .edit, |
45 | .del { | 45 | .del { |
46 | display: inline-block; | 46 | display: inline-block; |
@@ -48,6 +48,10 @@ | @@ -48,6 +48,10 @@ | ||
48 | width: pxToRem(60px); | 48 | width: pxToRem(60px); |
49 | height: pxToRem(60px); | 49 | height: pxToRem(60px); |
50 | color: #999; | 50 | color: #999; |
51 | + | ||
52 | + &:hover { | ||
53 | + color: #666; | ||
54 | + } | ||
51 | } | 55 | } |
52 | 56 | ||
53 | .edit { | 57 | .edit { |
@@ -212,7 +216,7 @@ | @@ -212,7 +216,7 @@ | ||
212 | float: right; | 216 | float: right; |
213 | color: #d0d0d0; | 217 | color: #d0d0d0; |
214 | } | 218 | } |
215 | - | 219 | + |
216 | &.highlight { | 220 | &.highlight { |
217 | background: #eee; | 221 | background: #eee; |
218 | } | 222 | } |
@@ -45,9 +45,6 @@ $basicBtnC:#eb0313; | @@ -45,9 +45,6 @@ $basicBtnC:#eb0313; | ||
45 | font-size: pxToRem(24px); | 45 | font-size: pxToRem(24px); |
46 | background-color: $tableCellC; | 46 | background-color: $tableCellC; |
47 | float: left; | 47 | float: left; |
48 | - &:last-child { | ||
49 | - border-bottom: none; | ||
50 | - } | ||
51 | &:nth-child(even) { | 48 | &:nth-child(even) { |
52 | border-right: none; | 49 | border-right: none; |
53 | } | 50 | } |
@@ -66,12 +66,6 @@ | @@ -66,12 +66,6 @@ | ||
66 | } | 66 | } |
67 | } | 67 | } |
68 | } | 68 | } |
69 | - // .material-type { | ||
70 | - // width: pxToRem(581px); | ||
71 | - // height: pxToRem(99px); | ||
72 | - // border-top: 1px solid $borderC; | ||
73 | - // padding: pxToRem(17px) 0; | ||
74 | - // } | ||
75 | } | 69 | } |
76 | .wash-tips{ | 70 | .wash-tips{ |
77 | padding-top:pxToRem(18px); | 71 | padding-top:pxToRem(18px); |
@@ -113,8 +113,8 @@ | @@ -113,8 +113,8 @@ | ||
113 | </div> | 113 | </div> |
114 | {{/ enterStore}} | 114 | {{/ enterStore}} |
115 | 115 | ||
116 | - <div id="productDesc"></div> | ||
117 | - <!-- {{> product/product-description}} --> | 116 | + <!-- <div id="productDesc"></div> --> |
117 | + {{> product/product-description}} | ||
118 | {{> product/recommend-for-you}} | 118 | {{> product/recommend-for-you}} |
119 | 119 | ||
120 | {{#cartInfo}} | 120 | {{#cartInfo}} |
@@ -139,5 +139,4 @@ | @@ -139,5 +139,4 @@ | ||
139 | {{/if}} | 139 | {{/if}} |
140 | 140 | ||
141 | </div> | 141 | </div> |
142 | -{{> layout/footer}} | ||
143 | -<div class="bottom-blank"></div> | ||
142 | +{{> layout/footer}} |
-
Please register or login to post a comment