Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
scrm-wx-merchant-activity
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 33183695
authored
Sep 28, 2022
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复人数滚动不会动BUG
1 parent
096388a2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
9 deletions
src/components/MoveGroup.vue
src/views/crowdfunding/index.vue
src/components/MoveGroup.vue
View file @
3318369
<
template
>
<
template
>
<div
class=
"group-list"
ref=
"groupBox"
>
<div
class=
"group-list"
ref=
"groupBox"
>
<div
class=
"mask"
></div>
<div
class=
"mask"
></div>
<template
v-if=
"list.length"
>
<template
v-if=
"list.length"
>
<div
class=
"move"
ref=
"move"
>
<div
class=
"move"
ref=
"move"
>
<template
v-for=
"(i, index) in list"
>
<template
v-for=
"(i, index) in list"
>
<div
:class=
"['item flex',
{ 'group-item': index == 0 }]" :key="index">
<div
:class=
"['item flex',
{ 'group-item': index == 0 }]"
:key="index"
>
<img
:src=
"i.imageUrl"
/>
<img
:src=
"i.imageUrl"
/>
<div
class=
"text"
>
{{
i
.
name
}}
刚刚参加了活动
</div>
<div
class=
"text"
>
{{
i
.
name
}}
刚刚参加了活动
</div>
</div>
</div>
...
@@ -17,10 +26,20 @@
...
@@ -17,10 +26,20 @@
<
script
type=
"text/ecmascript-6"
>
<
script
type=
"text/ecmascript-6"
>
export
default
{
export
default
{
name
:
'MoveGroup'
,
name
:
'MoveGroup'
,
props
:
[
'groupInfo'
],
props
:
{
groupInfo
:
{
type
:
Object
,
default
:
()
=>
{
}
},
show
:
{
type
:
Boolean
,
default
:
false
}
},
watch
:
{
watch
:
{
'groupInfo'
(
n
)
{
'show'
(
n
)
{
if
(
n
&&
n
.
groupList
&&
n
.
groupList
.
length
)
this
.
setList
(
n
.
groupList
)
let
{
groupInfo
}
=
this
if
(
n
&&
groupInfo
.
groupList
&&
groupInfo
.
groupList
.
length
)
this
.
setList
(
groupInfo
.
groupList
)
}
}
},
},
data
()
{
data
()
{
...
@@ -30,11 +49,13 @@ export default {
...
@@ -30,11 +49,13 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
this
.
$refs
.
groupBox
.
style
.
display
=
'none'
},
},
methods
:
{
methods
:
{
setList
(
list
)
{
setList
(
list
)
{
this
.
list
=
list
this
.
list
=
list
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
$refs
.
groupBox
.
style
.
display
=
'block'
let
boxHeight
=
this
.
$refs
.
groupBox
.
offsetHeight
let
boxHeight
=
this
.
$refs
.
groupBox
.
offsetHeight
let
[
item
]
=
document
.
getElementsByClassName
(
'group-item'
)
let
[
item
]
=
document
.
getElementsByClassName
(
'group-item'
)
let
itemHeight
=
item
.
offsetHeight
/
7
+
item
.
offsetHeight
let
itemHeight
=
item
.
offsetHeight
/
7
+
item
.
offsetHeight
...
@@ -56,6 +77,7 @@ export default {
...
@@ -56,6 +77,7 @@ export default {
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
.group-list
{
.group-list
{
//
visibility
:
hidden
;
position
:
absolute
;
position
:
absolute
;
left
:
8px
;
left
:
8px
;
top
:
5%
;
top
:
5%
;
...
@@ -111,4 +133,7 @@ export default {
...
@@ -111,4 +133,7 @@ export default {
}
}
}
}
}
}
.show
{
visibility
:
visible
;
}
</
style
>
</
style
>
src/views/crowdfunding/index.vue
View file @
3318369
...
@@ -51,9 +51,7 @@
...
@@ -51,9 +51,7 @@
</div>
</div>
</template>
</template>
<!--👇 参团人数滚动显示 -->
<!--👇 参团人数滚动显示 -->
<
template
v-if=
"detail.activityStatus != 1"
>
<move-group
:show=
"detail.showAvatarNicknameFlag == 2"
:groupInfo=
"groupInfo"
/>
<move-group
v-show=
"detail.showAvatarNicknameFlag == 2"
:groupInfo=
"groupInfo"
/>
</
template
>
</div>
</div>
<
template
v-if=
"viewFlag"
>
<
template
v-if=
"viewFlag"
>
<div
class=
"activity"
>
<div
class=
"activity"
>
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment