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
baoss
5 years ago
Commit
9a317957a6e94e750cf61cdaae73bd6f6ea6fb64
1 parent
b1af3cc6
UI调整 review by bevishuang
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
49 additions
and
18 deletions
apps/activity/models/group-service.js
apps/activity/views/action/group/newIndex.hbs
apps/activity/views/partial/group/resources/focus.hbs
apps/activity/views/partial/group/resources/split-image.hbs
package.json
public/js/activity/feature/resource-show-yas-rpter.js
public/scss/activity/group/floor/banner-top.scss
public/scss/activity/group/floor/guess-like.scss
public/scss/activity/group/floor/split-image.scss
public/scss/activity/group/group.page.scss
public/scss/activity/group/new-filter-list.scss
yarn.lock
apps/activity/models/group-service.js
View file @
9a31795
...
...
@@ -225,6 +225,16 @@ class GroupService extends global.yoho.BaseModel {
let
code
=
indexFilter
.
resources_code
;
result
.
floors
=
code
&&
await
this
.
newIndex
(
code
);
result
.
floors
.
map
(
item
=>
{
if
(
item
.
template_name
===
'collageBuyPrdList'
)
{
item
.
data
.
data
.
prdList
.
map
(
listItem
=>
{
// eslint-disable-next-line max-len
listItem
.
collagedPersonNum
=
listItem
.
collagedPersonNum
>
10000
?
(
listItem
.
collagedPersonNum
/
10000
).
toFixed
(
1
)
+
'万'
:
listItem
.
collagedPersonNum
;
return
listItem
;
});
}
return
item
;
});
result
.
filterGroupList
=
await
this
.
filterGroupList
({
...
query
});
...
...
apps/activity/views/action/group/newIndex.hbs
View file @
9a31795
...
...
@@ -21,7 +21,7 @@
{{/if}}
{{> group/resources/filter-tab}}
</div> --}}
<div
class=
"goods-list-title"
>
猜你喜欢
</div>
{{!-- <div class="goods-list-title">猜你喜欢</div> --}}
<div
id=
"goodsContainer"
class=
"goods-container"
>
{{#if
filterList
.
length
}}
<div
class=
"new-goods-list"
>
...
...
apps/activity/views/partial/group/resources/focus.hbs
View file @
9a31795
<div
class=
"banner-top templates
"
data-f-name=
"
{{
template_name
}}
"
data-f-id=
"
{{
template_id
}}
"
data-id=
"
{{
@index
}}
"
{{#
ifcond
is_extend
'!=='
'1'
}}
style=
"margin: 0 15px"
{{/
ifcond
}}
>
<div
class=
"banner-top templates
{{#
ifcond
is_extend
'!=='
'1'
}}
pad
{{/
ifcond
}}
"
data-f-name=
"
{{
template_name
}}
"
data-f-id=
"
{{
template_id
}}
"
data-id=
"
{{
@index
}}
"
>
<div
class=
"banner-swiper swiper-container"
>
<ul
class=
"swiper-wrapper"
>
{{#
each
data
}}
...
...
apps/activity/views/partial/group/resources/split-image.hbs
View file @
9a31795
{{#
data
}}
<div
class=
"split-image templates
"
data-id=
"
{{
@index
}}
"
data-f-name=
"
{{
..
/
template_name
}}
"
data-f-id=
"
{{
..
/
template_id
}}
"
{{#
ifcond
..
/
is_extend
'!=='
'1'
}}
style=
"margin: 0 15px"
{{/
ifcond
}}
>
<div
class=
"split-image templates
{{#
ifcond
..
/
is_extend
'!=='
'1'
}}
pad
{{/
ifcond
}}
"
data-id=
"
{{
@index
}}
"
data-f-name=
"
{{
..
/
template_name
}}
"
data-f-id=
"
{{
..
/
template_id
}}
"
>
<img
src=
"
{{
image2
src
w
=
..
/
image_width
h
=
..
/
image_height
q
=
60
mode
=
3
}}
"
></img>
<div
class=
'url-content'
>
{{#
each
urls
}}
...
...
package.json
View file @
9a31795
...
...
@@ -88,6 +88,7 @@
"uglifyjs-webpack-plugin"
:
"^2.1.3"
,
"urlencode"
:
"^1.1.0"
,
"uuid"
:
"^3.2.1"
,
"vue-loader"
:
"^15.8.1"
,
"xml2js"
:
"^0.4.19"
,
"yoho-express-session"
:
"^2.0.0"
,
"yoho-md5"
:
"^2.0.0"
,
...
...
public/js/activity/feature/resource-show-yas-rpter.js
View file @
9a31795
/* eslint-disable max-len */
import
qs
from
'yoho-qs'
;
const
yoho
=
require
(
'js/yoho-app'
);
...
...
@@ -69,9 +70,9 @@ class ResourceShowYasRpter {
let
cacheTheShowSkns
=
[];
// 暂存此次上报的楼层,上报后复制给 lastReportSkns
let
tabParams
=
{};
tabParams
.
TAB_NAME
=
$
(
'.guess-like-tab-active'
).
parent
().
data
(
'tab-name'
);
tabParams
.
TAB_ID
=
$
(
'.guess-like-tab-active'
).
parent
().
data
(
'item-idx'
)
+
1
;
tabParams
.
P_PARAM
=
$
(
'.guess-like-tab-active'
).
parent
().
data
(
'code'
);
tabParams
.
TAB_NAME
=
$
(
'.guess-like-tab-active'
).
parent
().
data
(
'tab-name'
)
||
$
(
'.guess-tab-active'
).
parent
().
data
(
'tab-name'
);
tabParams
.
TAB_ID
=
$
(
'.guess-like-tab-active'
).
parent
().
data
(
'item-idx'
)
+
1
||
$
(
'.guess-tab-active'
).
parent
().
data
(
'item-idx'
)
+
1
;
tabParams
.
P_PARAM
=
$
(
'.guess-like-tab-active'
).
parent
().
data
(
'code'
)
||
$
(
'.guess-tab-active'
).
parent
().
data
(
'code'
);
$
(
'.templates'
).
each
((
floorIndex
,
theFloor
)
=>
{
let
$theFloor
=
$
(
theFloor
);
...
...
@@ -102,6 +103,7 @@ class ResourceShowYasRpter {
}
});
// console.log('ssss', floorsRawArr)
$theFloor
.
find
(
'.split-item'
).
each
((
aIndex
,
theA
)
=>
{
let
$theA
=
$
(
theA
);
let
href
=
$theA
.
data
(
'href'
);
...
...
@@ -140,6 +142,8 @@ class ResourceShowYasRpter {
F_NAME
});
}
// console.log('prd', floorsRawArr)
});
}
...
...
@@ -162,6 +166,7 @@ class ResourceShowYasRpter {
newParams
.
ACTION_URL
=
goodsRawObj
.
href
;
}
this
.
reportParams
.
DATA
.
push
(
newParams
);
console
.
log
(
this
.
reportParams
.
DATA
);
}
}
});
...
...
@@ -214,6 +219,7 @@ class ResourceShowYasRpter {
};
this
.
reportParams
.
DATA
.
push
(
newParams
);
console
.
log
(
this
.
reportParams
.
DATA
);
}
cacheTheShowSkns
.
push
(
goodsRawObj
.
PRD_SKN
);
...
...
public/scss/activity/group/floor/banner-top.scss
View file @
9a31795
...
...
@@ -38,6 +38,10 @@
}
}
.pad
{
margin
:
0
20px
;
}
.banner-swiper
{
position
:
static
;
max-height
:
312px
;
...
...
public/scss/activity/group/floor/guess-like.scss
View file @
9a31795
...
...
@@ -43,15 +43,16 @@
}
.guess-like-tab
{
width
:
1
6
0px
;
width
:
1
4
0px
;
line-height
:
88px
;
text-align
:
center
;
font-size
:
28px
;
font-weight
:
600
;
color
:
#b0b0b0
;
}
.guess-like-tab-active
{
font-size
:
3
2
px
;
font-size
:
3
4
px
;
font-weight
:
bold
;
color
:
#222
;
}
...
...
public/scss/activity/group/floor/split-image.scss
View file @
9a31795
...
...
@@ -27,3 +27,7 @@
}
}
}
.pad
{
margin
:
0
20px
;
}
...
...
public/scss/activity/group/group.page.scss
View file @
9a31795
...
...
@@ -18,7 +18,7 @@
}
.tab-content
{
padding-top
:
8
0
px
;
padding-top
:
8
8
px
;
}
.bottom
{
...
...
public/scss/activity/group/new-filter-list.scss
View file @
9a31795
...
...
@@ -57,7 +57,7 @@
font-family
:
PingFang-SC-Regular
,
sans-serif
;
color
:
#222
;
letter-spacing
:
0
;
line-height
:
30px
;
line-height
:
1
.6
;
font-size
:
28px
;
display
:
-
webkit-box
;
overflow
:
hidden
;
...
...
@@ -71,13 +71,13 @@
.new-group-invite
,
.new-group-free-post1
{
padding
:
0
10px
;
height
:
3
0
px
;
height
:
3
2
px
;
font-size
:
18px
;
color
:
#fff
;
background-color
:
#ff575c
;
text-align
:
center
;
line-height
:
30px
;
border-radius
:
30px
;
line-height
:
32px
;
border-radius
:
32px
;
margin-right
:
10px
;
}
...
...
@@ -102,6 +102,7 @@
background
:
url("img/activity/group/group/go-group@3x.png")
no-repeat
;
background-size
:
contain
;
left
:
-5px
;
margin-bottom
:
10px
;
}
.group-free-number
{
...
...
@@ -114,8 +115,8 @@
font-family
:
PingFang-SC-Regular
,
sans-serif
;
letter-spacing
:
0
;
box-sizing
:
border-box
;
height
:
30px
;
line-height
:
30px
;
height
:
32px
;
line-height
:
32px
;
padding-left
:
10px
;
padding-right
:
10px
;
border-radius
:
15px
;
...
...
@@ -126,7 +127,7 @@
.forcefontsize10
{
display
:
inline-block
;
font-size
:
18px
;
font-weight
:
1000
;
//
font-weight: 1000;
}
.new-group-prict-bg
{
...
...
@@ -151,9 +152,13 @@
margin-bottom
:
4px
;
}
.new-group-people-numer
{
font-size
:
24px
;
}
.new-group-price-collage
{
margin-left
:
10px
;
font-size
:
3
0
px
;
font-size
:
3
6
px
;
font-weight
:
bold
;
font-family
:
BrownStd-Bold
,
sans-serif
;
}
...
...
@@ -166,7 +171,7 @@
.new-group-price-market
{
font-family
:
PingFang-SC-Regular
,
sans-serif
;
font-size
:
2
2
px
;
font-size
:
2
4
px
;
color
:
#b0b0b0
;
}
...
...
yarn.lock
deleted
100644 → 0
View file @
b1af3cc
This diff could not be displayed because it is too large.
Please
register
or
login
to post a comment