Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop
Showing
6 changed files
with
25 additions
and
15 deletions
@@ -5,9 +5,8 @@ | @@ -5,9 +5,8 @@ | ||
5 | * @date: 2015/10/19 | 5 | * @date: 2015/10/19 |
6 | */ | 6 | */ |
7 | 7 | ||
8 | -var $ = require('jquery'); | ||
9 | - | ||
10 | -// Hammer = require('yoho.hammer'); | 8 | +var $ = require('jquery'), |
9 | + Hammer = require('yoho.hammer'); | ||
11 | 10 | ||
12 | var $filter; | 11 | var $filter; |
13 | 12 | ||
@@ -113,8 +112,7 @@ function subClassifyTapEvt($this) { | @@ -113,8 +112,7 @@ function subClassifyTapEvt($this) { | ||
113 | 112 | ||
114 | //初始化筛选 | 113 | //初始化筛选 |
115 | function initFilter(opt) { | 114 | function initFilter(opt) { |
116 | - | ||
117 | - // var filterHammer; | 115 | + var filterHammer; |
118 | 116 | ||
119 | //注册回调 | 117 | //注册回调 |
120 | fCbFn = opt.fCbFn; | 118 | fCbFn = opt.fCbFn; |
@@ -127,8 +125,8 @@ function initFilter(opt) { | @@ -127,8 +125,8 @@ function initFilter(opt) { | ||
127 | 125 | ||
128 | $filter = $('.filter-mask'); | 126 | $filter = $('.filter-mask'); |
129 | 127 | ||
130 | - // filterHammer = new Hammer($filter[0]); | ||
131 | - $filter.on('touchend', function(e) { | 128 | + filterHammer = new Hammer($filter[0]); |
129 | + filterHammer.on('tap', function(e) { | ||
132 | var $this = $(e.target), | 130 | var $this = $(e.target), |
133 | $cur; | 131 | $cur; |
134 | 132 | ||
@@ -147,7 +145,7 @@ function initFilter(opt) { | @@ -147,7 +145,7 @@ function initFilter(opt) { | ||
147 | //tap classify | 145 | //tap classify |
148 | $cur = $this.closest('.classify-item'); | 146 | $cur = $this.closest('.classify-item'); |
149 | 147 | ||
150 | - e.stopPropagation(); | 148 | + e.srcEvent.stopPropagation(); |
151 | 149 | ||
152 | classifyTapEvt($cur); | 150 | classifyTapEvt($cur); |
153 | } | 151 | } |
@@ -114,6 +114,10 @@ $basicBtnC:#eb0313; | @@ -114,6 +114,10 @@ $basicBtnC:#eb0313; | ||
114 | background-color: #000; | 114 | background-color: #000; |
115 | color: #fff; | 115 | color: #fff; |
116 | } | 116 | } |
117 | + .yohood-tag { | ||
118 | + background-color: #000; | ||
119 | + color: #fff; | ||
120 | + } | ||
117 | .limit-tag { | 121 | .limit-tag { |
118 | border: 1px solid #000; | 122 | border: 1px solid #000; |
119 | background-color: #fff; | 123 | background-color: #fff; |
@@ -131,7 +135,7 @@ $basicBtnC:#eb0313; | @@ -131,7 +135,7 @@ $basicBtnC:#eb0313; | ||
131 | // overflow: hidden; | 135 | // overflow: hidden; |
132 | } | 136 | } |
133 | .banner-top-single{ | 137 | .banner-top-single{ |
134 | - height:pxToRem(600px); | 138 | + |
135 | width: pxToRem(448px); | 139 | width: pxToRem(448px); |
136 | margin:pxToRem(30px) pxToRem(72px); | 140 | margin:pxToRem(30px) pxToRem(72px); |
137 | overflow: hidden; | 141 | overflow: hidden; |
@@ -130,9 +130,10 @@ | @@ -130,9 +130,10 @@ | ||
130 | div { | 130 | div { |
131 | text-align: center; | 131 | text-align: center; |
132 | &.cell { | 132 | &.cell { |
133 | + line-height: pxToRem(53px); | ||
133 | font-size: pxToRem(24px); | 134 | font-size: pxToRem(24px); |
134 | background-color: $tableCellC; | 135 | background-color: $tableCellC; |
135 | - padding: pxToRem(15px) pxToRem(40px); | 136 | + padding: 0 pxToRem(40px); |
136 | border: 1px solid #fff; | 137 | border: 1px solid #fff; |
137 | } | 138 | } |
138 | } | 139 | } |
@@ -143,14 +144,15 @@ | @@ -143,14 +144,15 @@ | ||
143 | #reference-swiper-container { | 144 | #reference-swiper-container { |
144 | .first-group { | 145 | .first-group { |
145 | width: pxToRem(70px); | 146 | width: pxToRem(70px); |
146 | - margin-top: pxToRem(66px); | 147 | + margin-top: pxToRem(55px); |
148 | + div{ | ||
149 | + height: pxToRem(55px); | ||
147 | .avatar { | 150 | .avatar { |
148 | - // line-height: pxToRem(40px); | ||
149 | display: inline-block; | 151 | display: inline-block; |
150 | width: pxToRem(40px); | 152 | width: pxToRem(40px); |
151 | border-radius: 50%; | 153 | border-radius: 50%; |
152 | - height: pxToRem(40px); | ||
153 | - margin: pxToRem(12px) 0; | 154 | + margin-top:pxToRem(7px); |
155 | + } | ||
154 | } | 156 | } |
155 | } | 157 | } |
156 | } | 158 | } |
@@ -13,7 +13,7 @@ | @@ -13,7 +13,7 @@ | ||
13 | <p class="good-tag sale-tag">SALE</p> | 13 | <p class="good-tag sale-tag">SALE</p> |
14 | {{/ is_discount}} | 14 | {{/ is_discount}} |
15 | {{# is_yohoood}} | 15 | {{# is_yohoood}} |
16 | - <div class="good-tag yohood-tag"></div> | 16 | + <div class="good-tag yohood-tag">新品节</div> |
17 | {{/ is_yohoood}} | 17 | {{/ is_yohoood}} |
18 | {{# is_limited}} | 18 | {{# is_limited}} |
19 | <p class="good-tag limit-tag">限量商品</p> | 19 | <p class="good-tag limit-tag">限量商品</p> |
@@ -113,6 +113,7 @@ | @@ -113,6 +113,7 @@ | ||
113 | {{/ enterStore}} | 113 | {{/ enterStore}} |
114 | 114 | ||
115 | <div id="productDesc"> </div> | 115 | <div id="productDesc"> </div> |
116 | + <!-- {{> product/product-description}} --> | ||
116 | {{> product/recommend-for-you}} | 117 | {{> product/recommend-for-you}} |
117 | 118 | ||
118 | {{#cartInfo}} | 119 | {{#cartInfo}} |
@@ -72,7 +72,9 @@ | @@ -72,7 +72,9 @@ | ||
72 | {{#params}} | 72 | {{#params}} |
73 | {{#if @first}} | 73 | {{#if @first}} |
74 | {{else}} | 74 | {{else}} |
75 | + <div> | ||
75 | <img class="avatar lazy" data-original="{{param}}" alt=""> | 76 | <img class="avatar lazy" data-original="{{param}}" alt=""> |
77 | + </div> | ||
76 | {{/if}} | 78 | {{/if}} |
77 | {{/params}} | 79 | {{/params}} |
78 | </div> | 80 | </div> |
-
Please register or login to post a comment