Authored by 陶雨

Merge branch 'release/qqtest' of http://git.dev.yoho.cn/platform/yohobuy-portal-…

…fe into release/qqtest
@@ -239,12 +239,19 @@ var g = new common.grid({ @@ -239,12 +239,19 @@ var g = new common.grid({
239 { 239 {
240 display: "年龄层/性别", 240 display: "年龄层/性别",
241 render: function(item) { 241 render: function(item) {
242 - var html = [];  
243 - var ageLevel = AgeLevelEnum.level[item.ageLevel];  
244 - var gender = GenderEnum.gender[item.gender];  
245 - html.push("<p>" + ageLevel + " / " + gender + "</p>"); 242 + var html = '';
  243 +
  244 + if (AgeLevelEnum.level[item.ageLevel]) {
  245 + html += AgeLevelEnum.level[item.ageLevel];
  246 + if (item.gender) {
  247 + html += '/';
  248 + }
  249 + }
  250 + if (GenderEnum.gender[item.gender]) {
  251 + html += GenderEnum.gender[item.gender]
  252 + }
  253 + return html;
246 254
247 - return html.join('');  
248 } 255 }
249 }, 256 },
250 257
@@ -137,7 +137,7 @@ pc端店铺模板css @@ -137,7 +137,7 @@ pc端店铺模板css
137 display: block; 137 display: block;
138 float: right; 138 float: right;
139 height: 50px; 139 height: 50px;
140 - width: 40%; 140 + width: 50px;
141 } 141 }
142 142
143 /*------------------------热销推荐--------------------------*/ 143 /*------------------------热销推荐--------------------------*/
@@ -196,7 +196,6 @@ @@ -196,7 +196,6 @@
196 </div> 196 </div>
197 </div> 197 </div>
198 <div class="form-group"> 198 <div class="form-group">
199 - <!-- 【年龄层】默认 成人 ,成人和大童小童互斥,如果是童装,年龄层必填,并且大童小童可以复选。 -->  
200 <label class="col-sm-2 control-label">年龄层<span class="red">*</span></label> 199 <label class="col-sm-2 control-label">年龄层<span class="red">*</span></label>
201 <div class="col-sm-2"> 200 <div class="col-sm-2">
202 <label class="radio-inline"> 201 <label class="radio-inline">
@@ -227,7 +226,6 @@ @@ -227,7 +226,6 @@
227 <input type="radio" name="grade" value="0"></label> 226 <input type="radio" name="grade" value="0"></label>
228 </div> 227 </div>
229 <input type="hidden" id="grade" value="[[grade||'0']]" for="radio" required/> 228 <input type="hidden" id="grade" value="[[grade||'0']]" for="radio" required/>
230 -  
231 <label class="col-sm-1 control-label">适销季<span class="red">*</span></label> 229 <label class="col-sm-1 control-label">适销季<span class="red">*</span></label>
232 <div class="col-sm-2"> 230 <div class="col-sm-2">
233 <label class="radio-inline"> 231 <label class="radio-inline">
@@ -238,10 +236,6 @@ @@ -238,10 +236,6 @@
238 <input type="checkbox" name="seasons" value="seasons">四季</label> 236 <input type="checkbox" name="seasons" value="seasons">四季</label>
239 <input type="hidden" id="seasons" name="seasons" value="[[seasons||'seasons']]" for="checkbox" placeholder="年龄层" /> 237 <input type="hidden" id="seasons" name="seasons" value="[[seasons||'seasons']]" for="checkbox" placeholder="年龄层" />
240 </div> 238 </div>
241 - [[/if]]  
242 -  
243 -  
244 -  
245 239
246 </div> 240 </div>
247 241