Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
broadcast_cloud
/
web-live
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
2
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
eb70ad1a
authored
Apr 14, 2021
by
陈英杰
Browse files
Options
Browse Files
Download
Plain Diff
合并分支 'test' 到 'dev'
取消关闭后的打赏面板回到0位置 查看合并请求
!159
parents
ab362b62
c266c8fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
components/suspension/reward/rewardNew.vue
+7
-7
No files found.
components/suspension/reward/rewardNew.vue
View file @
eb70ad1a
...
@@ -4,12 +4,12 @@
...
@@ -4,12 +4,12 @@
<div
style=
"width:100%;height: auto;border-radius: 15px 15px 0 0;overflow: hidden;"
>
<div
style=
"width:100%;height: auto;border-radius: 15px 15px 0 0;overflow: hidden;"
>
<div
style=
"background: rgba(0, 0, 0, 0.9); width:100%;height: auto"
@
click
.
stop
>
<div
style=
"background: rgba(0, 0, 0, 0.9); width:100%;height: auto"
@
click
.
stop
>
<div
class=
"top-box"
>
<div
class=
"top-box"
>
<div
class=
"tab-box"
>
<div
class=
"tab-box"
v-show=
"swiper"
>
<div
:class=
"
{ 'z-active': list[tabIndex].nameKey === 'gift' }" @click.stop="_tabSwitch(
0
)"
<div
:class=
"
{ 'z-active': list[tabIndex].nameKey === 'gift' }" @click.stop="_tabSwitch(
'0'
)"
v-if="list.some(item => item.nameKey === 'gift')">
v-if="list.some(item => item.nameKey === 'gift')">
礼物
礼物
</div>
</div>
<div
:class=
"
{ 'z-active': list[tabIndex].nameKey === 'cash' }" @click.stop="_tabSwitch(
1
)"
<div
:class=
"
{ 'z-active': list[tabIndex].nameKey === 'cash' }" @click.stop="_tabSwitch(
'1'
)"
v-if="list.some(item => item.nameKey === 'cash')">
v-if="list.some(item => item.nameKey === 'cash')">
现金打赏
现金打赏
</div>
</div>
...
@@ -86,11 +86,9 @@ export default {
...
@@ -86,11 +86,9 @@ export default {
methods
:
{
methods
:
{
close
()
{
close
()
{
this
.
$emit
(
'input'
,
false
)
this
.
$emit
(
'input'
,
false
)
this
.
tabIndex
=
0
this
.
swiper
.
slideTo
(
'0'
)
},
},
_tabSwitch
(
index
)
{
_tabSwitch
(
index
)
{
this
.
swiper
&&
this
.
swiper
.
slideTo
(
index
+
''
||
this
.
tabIndex
+
''
);
this
.
swiper
.
slideTo
(
index
+
''
||
this
.
tabIndex
+
''
);
},
},
_initSwiper
()
{
_initSwiper
()
{
const
self
=
this
;
const
self
=
this
;
...
@@ -108,9 +106,11 @@ export default {
...
@@ -108,9 +106,11 @@ export default {
watch
:
{
watch
:
{
value
(
newVal
)
{
value
(
newVal
)
{
if
(
newVal
){
if
(
newVal
){
this
.
tabIndex
=
0
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
_initSwiper
();
this
.
_initSwiper
();
this
.
$nextTick
(()
=>
{
this
.
swiper
.
slideTo
(
this
.
tabIndex
)
})
});
});
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment