Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
王水玲
2016-10-19 20:51:44 +0800
Commit
b0a886a5b426292b29179d568db6190672cba708
1 parent
2a58693b
单品日
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
apps/activity/models/singleDay.js
public/template/activity/single-day/product-list.hbs
apps/activity/models/singleDay.js
View file @
b0a886a
...
...
@@ -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
)
=>
{
...
...
public/template/activity/single-day/product-list.hbs
View file @
b0a886a
{{#
each
data
}}
<li>
<li
>
<a
href=
"
{{
url
}}
"
>
<img
src=
"
{{
image
src
274
368
}}
"
/>
<img
src=
"
{{
image
productLink
274
368
}}
"
/>
<div
class=
"product-info"
>
<h3>
{{
t
itle
}}
</h3>
<h3>
{{
productT
itle
}}
</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>
...
...
Please
register
or
login
to post a comment