Authored by 王水玲

单品日

@@ -27,7 +27,7 @@ const getResourceData = () => { @@ -27,7 +27,7 @@ const getResourceData = () => {
27 27
28 const getProductData = (tabName) => { 28 const getProductData = (tabName) => {
29 return api.get('', { 29 return api.get('', {
30 - method: '', 30 + method: 'app.product.singleDay',
31 tab_name: tabName 31 tab_name: tabName
32 }, { 32 }, {
33 cache: true 33 cache: true
@@ -41,9 +41,11 @@ const getProductData = (tabName) => { @@ -41,9 +41,11 @@ const getProductData = (tabName) => {
41 }); 41 });
42 }; 42 };
43 43
  44 +
  45 +// 获取活动tab标签
44 const getTabData = () => { 46 const getTabData = () => {
45 return api.get('', { 47 return api.get('', {
46 - method: '' 48 + method: 'app.product.singleDayTabNameList'
47 }, { 49 }, {
48 cache: true 50 cache: true
49 }).then((result) => { 51 }).then((result) => {
1 {{#each data}} 1 {{#each data}}
2 - <li> 2 + <li >
3 <a href="{{url}}"> 3 <a href="{{url}}">
4 - <img src="{{image src 274 368}}"/> 4 + <img src="{{image productLink 274 368}}"/>
5 <div class="product-info"> 5 <div class="product-info">
6 - <h3>{{title}}</h3> 6 + <h3>{{productTitle}}</h3>
7 {{#intro}}<p class="prompt-info">{{intro}}</p>{{/intro}} 7 {{#intro}}<p class="prompt-info">{{intro}}</p>{{/intro}}
8 <p class="price"><span class="sale-price {{^marketPrice}}no-price{{/marketPrice}}">¥{{salePrice}}</span><span class="market-price">¥{{marketPrice}}</span></p> 8 <p class="price"><span class="sale-price {{^marketPrice}}no-price{{/marketPrice}}">¥{{salePrice}}</span><span class="market-price">¥{{marketPrice}}</span></p>
9 - <p class="info-txt">#{{cont}}#</p> 9 + <p class="info-txt">{{productDesc}}</p>
10 </div> 10 </div>
11 </a> 11 </a>
12 </li> 12 </li>