Authored by 王水玲

单品日

... ... @@ -27,7 +27,7 @@ const getResourceData = () => {
const getProductData = (tabName) => {
return api.get('', {
method: '',
method: 'app.product.singleDay',
tab_name: tabName
}, {
cache: true
... ... @@ -41,9 +41,11 @@ const getProductData = (tabName) => {
});
};
// 获取活动tab标签
const getTabData = () => {
return api.get('', {
method: ''
method: 'app.product.singleDayTabNameList'
}, {
cache: true
}).then((result) => {
... ...
{{#each data}}
<li>
<li >
<a href="{{url}}">
<img src="{{image src 274 368}}"/>
<img src="{{image productLink 274 368}}"/>
<div class="product-info">
<h3>{{title}}</h3>
<h3>{{productTitle}}</h3>
{{#intro}}<p class="prompt-info">{{intro}}</p>{{/intro}}
<p class="price"><span class="sale-price {{^marketPrice}}no-price{{/marketPrice}}">¥{{salePrice}}</span><span class="market-price">¥{{marketPrice}}</span></p>
<p class="info-txt">#{{cont}}#</p>
<p class="info-txt">{{productDesc}}</p>
</div>
</a>
</li>
... ...