Authored by dongjunjie

店铺新品上架+人气单品bug

1 -//exports.domain = require('../config/common.js').domain; 1 +exports.domain = require('../config/common.js').domain;
2 //exports.domain = 'http://localhost:30012'; 2 //exports.domain = 'http://localhost:30012';
3 -exports.domain = 'http://172.16.6.115:8080/platform'; 3 +//exports.domain = 'http://172.16.6.115:8080/platform';
4 4
5 exports.res = [ 5 exports.res = [
6 { 6 {
@@ -178,7 +178,11 @@ @@ -178,7 +178,11 @@
178 <!--新品上架--> 178 <!--新品上架-->
179 <div class="model-show"> 179 <div class="model-show">
180 <div class="model-showTitle"> 180 <div class="model-showTitle">
  181 + [[if resources.newProducts.data.length > 0]]
181 <div class="showName"><span>新品上架&nbsp;&nbsp;NEW</span></div> 182 <div class="showName"><span>新品上架&nbsp;&nbsp;NEW</span></div>
  183 + [[else]]
  184 + <div class="showName model-editor" data-toggle="editor-newProduct" data-title="新品上架商品编辑"><span>新品上架&nbsp;&nbsp;NEW</span></div>
  185 + [[/if]]
182 <div class="showTab model-editor" data-toggle="editor-newGoodTab" data-title="新品上架标签编辑"> 186 <div class="showTab model-editor" data-toggle="editor-newGoodTab" data-title="新品上架标签编辑">
183 <ul> 187 <ul>
184 [[each resources.goodsTabBar.data.new as item _index]] 188 [[each resources.goodsTabBar.data.new as item _index]]
@@ -207,7 +211,11 @@ @@ -207,7 +211,11 @@
207 <!--人气单品--> 211 <!--人气单品-->
208 <div class="model-show"> 212 <div class="model-show">
209 <div class="model-showTitle"> 213 <div class="model-showTitle">
  214 + [[if resources.hotProducts.data.length > 0]]
210 <div class="showName"><span>人气单品&nbsp;&nbsp;NEW</span></div> 215 <div class="showName"><span>人气单品&nbsp;&nbsp;NEW</span></div>
  216 + [[else]]
  217 + <div class="showName model-editor" data-toggle="editor-hotProduct" data-title="人气单品商品编辑"><span>人气单品&nbsp;&nbsp;NEW</span></div>
  218 + [[/if]]
211 <div class="showTab model-editor" data-toggle="editor-hotGoodTab" data-title="人气单品标签编辑"> 219 <div class="showTab model-editor" data-toggle="editor-hotGoodTab" data-title="人气单品标签编辑">
212 <ul> 220 <ul>
213 [[each resources.goodsTabBar.data.hot as item _index]] 221 [[each resources.goodsTabBar.data.hot as item _index]]