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
邱骏
6 years ago
Commit
a5ee5e4f429a86b833c409094a64f1f45a55d359
1 parent
d60a30cd
修复楼层背景错位
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
1 deletions
apps/activity/models/feature.js
apps/activity/views/partial/feature/product-old-style.hbs
public/js/activity/feature.page.js
apps/activity/models/feature.js
View file @
a5ee5e4
...
...
@@ -352,6 +352,14 @@ class featureModel extends global.yoho.BaseModel {
}
// 对背景图做特殊处理
if
(
f
.
component
&&
f
.
component
[
0
]
&&
f
.
component
[
0
].
type
===
'productGroup'
)
{
if
(
f
.
param
.
bgimg
)
{
// 对背景图做特殊处理
f
.
param
.
_bgimgFill
=
f
.
param
.
bgimg
;
f
.
param
.
bgimg
=
''
;
}
}
// 新增店铺组
if
(
componentType
===
'shopGroup'
)
{
shopGroups
.
push
(
self
.
_getShopGroup
(
f
.
component
[
0
]));
...
...
@@ -376,6 +384,11 @@ class featureModel extends global.yoho.BaseModel {
}
else
if
(
shop
.
defaultSkn
)
{
componentArr
.
push
(
shop
);
}
if
(
f
.
param
.
bgimg
)
{
// 对背景图做特殊处理
f
.
param
.
_bgimgFill
=
f
.
param
.
bgimg
;
f
.
param
.
bgimg
=
''
;
}
}
if
(
_
.
get
(
f
,
'type'
)
===
'bottombar'
)
{
...
...
apps/activity/views/partial/feature/product-old-style.hbs
View file @
a5ee5e4
<div
class=
"product-container item
{{
numOfOneRow
}}
{{#if
isStyle2
}}
is-style-2
{{/if}}
"
{{#if
proBgImg
}}
style=
"background:url(
{{
image2
proBgImg
q
=
85
}}
) repeat;background-size:100%;"
{{/if}}
>
<div
class=
"product-source"
condition=
'
{{
stringify
searchCondition
}}
'
fp=
"
{{
getAnalysis
..
/
this
@index
}}
"
data-rownum=
"
{{
numOfOneRow
}}
"
{{#
unless
defaultPros
.
length
}}
...
...
public/js/activity/feature.page.js
View file @
a5ee5e4
...
...
@@ -954,7 +954,7 @@ $(function() {
// 定时计划
activityPlan
();
setTimeout
(
changeShopAndProductHeight
,
3
00
);
setTimeout
(
changeShopAndProductHeight
,
4
00
);
// 小程序相关处理
if
(
!
window
.
WeixinJSBridge
||
!
window
.
WeixinJSBridge
.
invoke
)
{
...
...
Please
register
or
login
to post a comment