Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-js-sdk
·
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
Plain Diff
Browse Files
Authored by
黄涛
2020-03-06 15:50:10 +0800
Commit
6bd16f621d0cc70cf3db656aeb517d5caa849d86
2 parents
e193150e
a294635e
Merge branch 'feature/tagPrice' into 'master'
add sale price class See merge request
!22
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
src/js/individuation.js
src/js/individuation.js
View file @
6bd16f6
...
...
@@ -39,6 +39,10 @@ let _replaceData = function(el, cond, data, wh, fp, lastSoldTpl) {
el
.
find
(
'.sale-price'
).
html
(
`¥
$
{
data
.
sales_price
}
`
);
el
.
data
(
'skn'
,
data
.
product_skn
);
if
(
data
.
salesPriceClass
)
{
el
.
find
(
'.sale-price'
).
addClass
(
data
.
salesPriceClass
);
}
if
(
lastSoldTpl
&&
data
.
total_sales_num
)
{
el
.
find
(
'.sold-num-text'
).
html
(
lastSoldTpl
.
replace
(
'{{soldNum}}'
,
data
.
total_sales_num
));
}
else
{
...
...
Please
register
or
login
to post a comment