Authored by weiqingting

Merge branch 'hotfix/4.3.2' into release/pre

@@ -492,4 +492,11 @@ li.sortable-placeholder { @@ -492,4 +492,11 @@ li.sortable-placeholder {
492 .input-form{ 492 .input-form{
493 display:inline-block; 493 display:inline-block;
494 width: 200px; 494 width: 200px;
  495 +}
  496 +
  497 +.hotCategory-info{
  498 + height: 158px;
  499 + width:100%;
  500 + background: url(../assets/images/hotCategory.png) no-repeat;
  501 + background-size: cover;
495 } 502 }
@@ -58,23 +58,7 @@ module.exports = function(proxyRoute) { @@ -58,23 +58,7 @@ module.exports = function(proxyRoute) {
58 delete options.form; 58 delete options.form;
59 } 59 }
60 logger.log('info','grayroute: request options: %j',options,{}); 60 logger.log('info','grayroute: request options: %j',options,{});
61 -  
62 - //发起代理请求  
63 - if(req.headers['accept'].indexOf('text/html')>-1||req.xhr) {  
64 - request(options,function(err,res,body) {  
65 - if(err) {  
66 - logger.log('error','grayroute: request error:',err);  
67 - ress.status(500).send('');  
68 - } else if(res&&res.statusCode === 302) {  
69 - //跳转  
70 - ress.redirect(res.caseless.get('location'));  
71 - }else {  
72 - request(options).pipe(ress);  
73 - }  
74 - });  
75 - } else {  
76 - request(options).pipe(ress);//如果是静态资源,直接管道传递结果  
77 - } 61 + request(options).pipe(ress);
78 } else { 62 } else {
79 63
80 //当不是老系统的URL,需要访问老系统保持session 64 //当不是老系统的URL,需要访问老系统保持session
@@ -980,15 +980,26 @@ @@ -980,15 +980,26 @@
980 [[/each]] 980 [[/each]]
981 </ul> 981 </ul>
982 [[/if]] 982 [[/if]]
983 - <p>添加左下导航:</p> 983 + <div class="form-group">
  984 + <label>添加左下导航:</label>
  985 + </div>
984 [[each contentData.data.list as item index]] 986 [[each contentData.data.list as item index]]
985 - <p>  
986 - 导航名称:<input type="text" placeholder="导航名称" class="observe" value="[[item.name]]" data-field="list.[[index]].name">  
987 - <select name="goTo" class="observe" value="[[item.url.action]]" data-field="list.[[index]].url.action"> 987 + <div class="form-group">
  988 + <div class="col-sm-2">
  989 + <label>导航名称:</label>
  990 + </div>
  991 + <div class="col-sm-3">
  992 + <input type="text" placeholder="导航名称" class="observe form-control" value="[[item.name]]" data-field="list.[[index]].name">
  993 + </div>
  994 + <div class="col-sm-3">
  995 + <select name="goTo" class="observe form-control" value="[[item.url.action]]" data-field="list.[[index]].url.action">
988 [[layout action_template]] 996 [[layout action_template]]
989 </select> 997 </select>
990 - <input type="text" placeholder="url" value="[[item.url.url]]" class="observe" required="required" data-field="list.[[index]].url.url"/>  
991 - </p> 998 + </div>
  999 + <div class="col-sm-4">
  1000 + <input type="text" placeholder="url" value="[[item.url.url]]" class="observe form-control" required="required" data-field="list.[[index]].url.url"/>
  1001 + </div>
  1002 + </div>
992 [[/each]] 1003 [[/each]]
993 <p> 1004 <p>
994 <input type="button" name="select-pic" class="btn btn-info btn-xs addBtn" value="添加右侧图片" style="margin:10px;" data-event="hotCategory.imgs"> 1005 <input type="button" name="select-pic" class="btn btn-info btn-xs addBtn" value="添加右侧图片" style="margin:10px;" data-event="hotCategory.imgs">
@@ -213,8 +213,7 @@ @@ -213,8 +213,7 @@
213 </div> 213 </div>
214 [[else if module.contentData.template_name=='hotCategory']] 214 [[else if module.contentData.template_name=='hotCategory']]
215 <div class="hotCategory"> 215 <div class="hotCategory">
216 - <div class="wordText">  
217 - <span>热门品类</span> 216 + <div class="hotCategory-info">
218 </div> 217 </div>
219 </div> 218 </div>
220 [[else if module.contentData.template_name=='debrisSlider']] 219 [[else if module.contentData.template_name=='debrisSlider']]