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
TaoHuang
6 years ago
Commit
90bce25f9e8eae07e0e3c1cc22d4632035c33fd5
1 parent
50b4e222
fix css
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
34 additions
and
29 deletions
apps/activity/models/feature.js
apps/activity/views/partial/feature/product-item-1.hbs
apps/activity/views/partial/feature/product-item-2.hbs
apps/activity/views/partial/feature/product-style-1.hbs
apps/activity/views/partial/feature/product-style-2.hbs
package.json
public/js/activity/feature.page.js
apps/activity/models/feature.js
View file @
90bce25
...
...
@@ -95,7 +95,8 @@ class featureModel extends global.yoho.BaseModel {
advanceBgImg
:
value
.
advanceBgImg
,
leftDownImg
:
value
.
leftDownImg
,
priceBgImage
:
value
.
priceBgImage
,
shopBgImage
:
value
.
shopBgImage
shopBgImage
:
value
.
shopBgImage
,
brandColor
:
value
.
brandColor
};
value
.
_defaultSkns
&&
value
.
_defaultSkns
.
forEach
(
val
=>
{
...
...
apps/activity/views/partial/feature/product-item-1.hbs
View file @
90bce25
...
...
@@ -2,15 +2,15 @@
<a
class=
"first-part product-detail"
href=
'
{{
producturl
}}
'
>
<div
class=
"product-detail-imgbox"
>
{{#if
conf
.
lefTopImg
}}
<img
class=
"leftopimg lazy"
data-original=
"
{{
image2
conf
.
lefTopImg
q
=
85
}}
"
>
<img
class=
"leftopimg lazy"
data-original=
"
{{
image2
conf
.
lefTopImg
q
=
85
}}
"
style=
"width: auto;"
>
{{/if}}
{{#if
conf
.
rigTopImg
}}
<img
class=
"rigtopimg lazy"
data-original=
"
{{
image2
conf
.
rigTopImg
q
=
85
}}
"
>
<img
class=
"rigtopimg lazy"
data-original=
"
{{
image2
conf
.
rigTopImg
q
=
85
}}
"
style=
"width: auto;"
>
{{/if}}
<img
class=
"product-detail-img product-detail-img-new lazy"
data-original=
"
{{
image2
productimg
q
=
85
}}
"
>
<a
class=
"new-brand-name
{{#
isEqualOr
conf
.
showBrandUrl
'1'
}}
product-brand
{{else}}
product-detail
{{/
isEqualOr
}}
"
style=
"
background-color: #EC5238;
"
href=
"
{{
brandurl
}}
"
>
style=
"
{{#if
conf
.
brandColor
}}
background-color:
{{
conf
.
brandColor
}}
;
{{/if}}
"
href=
"
{{
brandurl
}}
"
>
<span
class=
"brand-name"
{{#if
conf
.
fontColor
}}
style=
"color:
{{
conf
.
fontColor
}}
;"
{{/if}}
>
{{
brandname
}}
</span>
</a>
...
...
@@ -31,16 +31,16 @@
{{#if
conf
.
priceBgImage
}}
<a
class=
"second-part"
>
<div
class=
"new-brand-div"
>
<div
class=
"new-brand-div"
style=
"top: 0;"
>
{{#
isEqualOr
conf
.
showSalePrice
'1'
}}
<div
class=
"new-price"
style=
"
{{#if
conf
.
salePriceBgColor
}}
background:
{{
conf
.
salePriceBgColor
}}
;
{{/if}}{{#if
conf
.
priceFontColor
}}
color:
{{
conf
.
priceFontColor
}}
;
{{/if}}
; text-align: left;"
>
<span
class=
"sale-price"
{{#if
conf
.
priceFontColor
}}
style=
"color:
{{
conf
.
f
ontColor
}}
;"
{{/if}}
>
¥
{{
saleprice
}}
</span>
style=
"color:
{{
conf
.
priceF
ontColor
}}
;"
{{/if}}
>
¥
{{
saleprice
}}
</span>
{{#if
marketprice
}}
<span
class=
"market-price"
{{#if
conf
.
priceFontColor
}}
style=
"color:
{{
conf
.
f
ontColor
}}
;"
{{/if}}
>
¥
{{
marketprice
}}
</span>
style=
"color:
{{
conf
.
priceF
ontColor
}}
;"
{{/if}}
>
¥
{{
marketprice
}}
</span>
{{/if}}
</div>
{{/
isEqualOr
}}
...
...
apps/activity/views/partial/feature/product-item-2.hbs
View file @
90bce25
...
...
@@ -2,24 +2,24 @@
<a
class=
"first-part product-detail"
href=
'
{{
producturl
}}
'
>
<div
class=
"product-detail-imgbox"
>
{{#if
conf
.
lefTopImg
}}
<img
class=
"leftopimg lazy"
data-original=
"
{{
image2
conf
.
lefTopImg
q
=
85
}}
"
>
<img
class=
"leftopimg lazy"
data-original=
"
{{
image2
conf
.
lefTopImg
q
=
85
}}
"
style=
"width: auto;"
>
{{/if}}
{{#if
conf
.
rigTopImg
}}
<img
class=
"rigtopimg lazy"
data-original=
"
{{
image2
conf
.
rigTopImg
q
=
85
}}
"
>
<img
class=
"rigtopimg lazy"
data-original=
"
{{
image2
conf
.
rigTopImg
q
=
85
}}
"
style=
"width: auto;"
>
{{/if}}
<img
class=
"product-detail-img product-detail-img-new lazy"
data-original=
"
{{
image2
productimg
q
=
85
}}
"
>
{{#if
conf
.
priceBgImage
}}
<a
class=
"second-part"
style=
"position: absolute; bottom: 0; left: 0; right: 0;"
>
<div
class=
"new-brand-div"
>
<div
class=
"new-brand-div"
style=
"top: 0;"
>
{{#
isEqualOr
conf
.
showSalePrice
'1'
}}
<div
class=
"new-price"
style=
"
{{#if
conf
.
salePriceBgColor
}}
background:
{{
conf
.
salePriceBgColor
}}
;
{{/if}}{{#if
conf
.
priceFontColor
}}
color:
{{
conf
.
priceFontColor
}}
;
{{/if}}
; text-align: left;"
>
<span
class=
"sale-price"
{{#if
conf
.
priceFontColor
}}
style=
"color:
{{
conf
.
f
ontColor
}}
;"
{{/if}}
>
¥
{{
saleprice
}}
</span>
style=
"color:
{{
conf
.
priceF
ontColor
}}
;"
{{/if}}
>
¥
{{
saleprice
}}
</span>
{{#if
marketprice
}}
<span
class=
"market-price"
{{#if
conf
.
priceFontColor
}}
style=
"color:
{{
conf
.
f
ontColor
}}
;"
{{/if}}
>
¥
{{
marketprice
}}
</span>
style=
"color:
{{
conf
.
priceF
ontColor
}}
;"
{{/if}}
>
¥
{{
marketprice
}}
</span>
{{/if}}
</div>
{{/
isEqualOr
}}
...
...
@@ -44,9 +44,9 @@
<a
class=
"new-brand-name
{{#
isEqualOr
conf
.
showBrandUrl
'1'
}}
product-brand
{{else}}
product-detail
{{/
isEqualOr
}}
"
style=
"position: relative; background-color: unset;padding-bottom: 0;padding-top:0;"
href=
"
{{
brandurl
}}
"
>
style=
"position: relative; background-color: unset;padding-bottom: 0;padding-top:0;
display: flex;align-items: center;
"
href=
"
{{
brandurl
}}
"
>
<div
class=
"brand-name add-padding5"
{{#if
conf
.
fontColor
}}
style=
"position: absolute;color:
{{
conf
.
fontColor
}}
;"
{{/if}}
>
{{
brandname
}}
</div>
style=
"position: absolute;color:
{{
conf
.
fontColor
}}
;
padding-left: 0.3rem;
"
{{/if}}
>
{{
brandname
}}
</div>
<img
class=
"price-img"
src=
"
{{
image2
conf
.
shopBgImage
q
=
85
}}
"
>
...
...
apps/activity/views/partial/feature/product-style-1.hbs
View file @
90bce25
...
...
@@ -13,13 +13,13 @@
<a
class=
"first-part product-detail"
href=
"
{{
producturl
}}
"
>
<div
class=
"product-detail-imgbox"
>
{{#if
lefTopImg
}}
<img
class=
"leftopimg lazy"
data-original=
"
{{
image2
lefTopImg
q
=
85
}}
"
>
<img
class=
"leftopimg lazy"
data-original=
"
{{
image2
lefTopImg
q
=
85
}}
"
style=
"width: auto;"
>
{{/if}}
{{#if
rigTopImg
}}
<img
class=
"rigtopimg lazy"
data-original=
"
{{
image2
rigTopImg
q
=
85
}}
"
>
<img
class=
"rigtopimg lazy"
data-original=
"
{{
image2
rigTopImg
q
=
85
}}
"
style=
"width: auto;"
>
{{/if}}
<img
class=
"product-detail-img product-detail-img-new lazy"
src=
""
>
<a
class=
"new-brand-name
{{#
isEqualOr
showBrandUrl
'1'
}}
product-brand
{{else}}
product-detail
{{/
isEqualOr
}}
"
style=
"
background-color: #EC5238;
"
href=
""
>
<a
class=
"new-brand-name
{{#
isEqualOr
showBrandUrl
'1'
}}
product-brand
{{else}}
product-detail
{{/
isEqualOr
}}
"
style=
"
{{#if
brandColor
}}
background-color:
{{
brandColor
}}
;
{{/if}}
"
href=
""
>
<span
class=
"brand-name"
{{#if
fontColor
}}
style=
"color:
{{
fontColor
}}
;"
{{/if}}
></span>
</a>
<div
class=
"sales-imgs-new"
>
...
...
@@ -37,7 +37,7 @@
</a>
{{#if
priceBgImage
}}
<a
class=
"second-part"
>
<div
class=
"new-brand-div"
>
<div
class=
"new-brand-div"
style=
"top: 0;"
>
{{#
isEqualOr
showSalePrice
'1'
}}
<div
class=
"new-price"
style=
"text-align: left;"
>
<span
class=
"sale-price"
{{#if
priceFontColor
}}
style=
"color:
{{
priceFontColor
}}
;"
{{/if}}
></span>
...
...
apps/activity/views/partial/feature/product-style-2.hbs
View file @
90bce25
...
...
@@ -16,26 +16,26 @@
<a
class=
"first-part product-detail"
href=
"
{{
producturl
}}
"
>
<div
class=
"product-detail-imgbox"
>
{{#if
lefTopImg
}}
<img
class=
"leftopimg lazy"
data-original=
"
{{
image2
lefTopImg
q
=
85
}}
"
>
<img
class=
"leftopimg lazy"
data-original=
"
{{
image2
lefTopImg
q
=
85
}}
"
style=
"width: auto;"
>
{{/if}}
{{#if
rigTopImg
}}
<img
class=
"rigtopimg lazy"
data-original=
"
{{
image2
rigTopImg
q
=
85
}}
"
>
<img
class=
"rigtopimg lazy"
data-original=
"
{{
image2
rigTopImg
q
=
85
}}
"
style=
"width: auto;"
>
{{/if}}
<img
class=
"product-detail-img product-detail-img-new lazy"
src=
""
>
{{#if
priceBgImage
}}
<a
class=
"second-part"
style=
"position: absolute; bottom: 0; left: 0; right: 0;"
>
<div
class=
"new-brand-div"
>
<div
class=
"new-brand-div"
style=
"top: 0;"
>
{{#
isEqualOr
showSalePrice
'1'
}}
<div
class=
"new-price"
style=
"
{{#if
conf
.
salePriceBgColor
}}
background:
{{
conf
.
salePriceBgColor
}}
;
{{/if}}{{#if
conf
.
priceFontColor
}}
color:
{{
conf
.
priceFontColor
}}
;
{{/if}}
; text-align: left;"
>
style=
"
{{#if
salePriceBgColor
}}
background:
{{
salePriceBgColor
}}
;
{{/if}}
{{#if
priceFontColor
}}
color:
{{
priceFontColor
}}
;
{{/if}}
;text-align: left;"
>
<span
class=
"sale-price"
{{#if
priceFontColor
}}
style=
"color:
{{
conf
.
f
ontColor
}}
;"
{{/if}}
>
¥
{{
saleprice
}}
</span>
style=
"color:
{{
priceF
ontColor
}}
;"
{{/if}}
>
¥
{{
saleprice
}}
</span>
{{#if
marketprice
}}
<span
class=
"market-price"
{{#if
priceFontColor
}}
style=
"color:
{{
conf
.
f
ontColor
}}
;"
{{/if}}
>
¥
{{
marketprice
}}
</span>
style=
"color:
{{
priceF
ontColor
}}
;"
{{/if}}
>
¥
{{
marketprice
}}
</span>
{{/if}}
</div>
{{/
isEqualOr
}}
...
...
@@ -61,10 +61,10 @@
<a
class=
"new-brand-name
{{#
isEqualOr
showBrandUrl
'1'
}}
product-brand
{{else}}
product-detail
{{/
isEqualOr
}}
"
style=
"position: relative; background-color: unset;padding-bottom: 0;padding-top:0;"
style=
"position: relative; background-color: unset;padding-bottom: 0;padding-top:0;
display: flex;align-items: center;
"
href=
"
{{
brandurl
}}
"
>
<div
class=
"brand-name add-padding5"
{{#if
fontColor
}}
style=
"position: absolute;color:
{{
conf
.
fontColor
}}
;"
{{/if}}
>
{{
brandname
}}
</div>
style=
"position: absolute;color:
{{
conf
.
fontColor
}}
;
padding-left: 0.3rem;
"
{{/if}}
>
{{
brandname
}}
</div>
<img
class=
"price-img"
src=
"
{{
image2
shopBgImage
q
=
85
}}
"
>
...
...
package.json
View file @
90bce25
{
"name"
:
"yohobuywap-node"
,
"version"
:
"6.9.2-1
6
"
,
"version"
:
"6.9.2-1
7
"
,
"private"
:
true
,
"description"
:
"A New Yohobuy Project With Express"
,
"repository"
:
{
...
...
public/js/activity/feature.page.js
View file @
90bce25
...
...
@@ -252,6 +252,10 @@ function syncTabsStatus() {
var
tabname
=
$
(
this
).
attr
(
'tab'
);
var
isActive
=
$
(
this
).
hasClass
(
'active'
);
if
(
!
store
.
tab
.
cloneTabs
.
length
)
{
return
;
}
store
.
tab
.
cloneTabs
.
each
(
function
(
index
,
ele
)
{
var
$ele
=
$
(
ele
);
...
...
Please
register
or
login
to post a comment