Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
X
XiTianSenMall
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
leiqingsong
XiTianSenMall
Commits
726f9bff
Commit
726f9bff
authored
Mar 25, 2021
by
leiqingsong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决空投池弹窗不出来的问题
parent
2e1ce854
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
12 deletions
+27
-12
main.js
H5/src/main.js
+2
-2
airDropPool.vue
H5/src/views/airDropPool.vue
+25
-10
No files found.
H5/src/main.js
View file @
726f9bff
...
...
@@ -7,13 +7,13 @@ import "minirefresh/dist/debug/minirefresh.css";
import
"amfe-flexible"
;
import
"@/plugins/vant-ui.js"
;
import
"@/plugins/echarts-plugins.js"
;
import
Vconsole
from
"vconsole"
;
//
import Vconsole from "vconsole";
import
bridgeToAppFun
from
"@/utils/bridgeToAppFun"
;
Vue
.
prototype
.
$bridgeToAppFun
=
new
bridgeToAppFun
();
/*生产环境请注释掉 */
Vue
.
prototype
.
$vConsole
=
new
Vconsole
();
//
Vue.prototype.$vConsole = new Vconsole();
Vue
.
use
(
MiniRefreshTools
);
Vue
.
config
.
productionTip
=
false
;
...
...
H5/src/views/airDropPool.vue
View file @
726f9bff
...
...
@@ -21,10 +21,19 @@
<p
v-for=
"(item, index) in userPoolVos"
:key=
"index"
@
tap
=
"openUserInfo(item)"
@
click
=
"openUserInfo(item)"
>
用户
{{
item
.
userId
}}
进入空投池
</p>
<template
v-if=
"userPoolVos.length > 3 && userPoolVos.length
<
15
"
>
<p
v-for=
"(item, index) in userPoolVos"
:key=
"index + 'down'"
@
click=
"openUserInfo(item)"
>
用户
{{
item
.
userId
}}
进入空投池
</p>
</
template
>
</div>
</div>
</div>
...
...
@@ -107,11 +116,11 @@ export default {
this
.
canScroll
=
true
;
this
.
animationDuration
=
_this
.
userPoolVos
.
length
*
3
;
}
_this
.
$nextTick
(()
=>
{
if
(
_this
.
canScroll
)
{
_this
.
scroll
();
}
});
//
_this.$nextTick(() => {
//
if (_this.canScroll) {
//
_this.scroll();
//
}
//
});
}
else
{
_this
.
$toast
(
res
.
msg
);
}
...
...
@@ -119,9 +128,9 @@ export default {
},
scroll
()
{
// this.timer = setInterval(this.autoScrollLine, 100);
const
marquee
=
document
.
querySelector
(
".user-id-list"
);
const
contents
=
marquee
.
innerHTML
;
marquee
.
innerHTML
=
contents
+
contents
;
//
const marquee = document.querySelector(".user-id-list");
//
const contents = marquee.innerHTML;
//
marquee.innerHTML = contents + contents;
}
// autoScrollLine() {
// let box = document.getElementById("scroll-box");
...
...
@@ -241,7 +250,7 @@ $white: #ffffff;
left
:
81px
;
}
&
:
:
before
{
top
:
0
;
top
:
-15px
;
z-index
:
1
;
}
&
:
:
after
{
...
...
@@ -257,6 +266,12 @@ $white: #ffffff;
.user-id-list
{
display
:
flex
;
flex-direction
:
column
;
&
:hover
{
animation-play-state
:
paused
;
}
p
{
pointer-events
:
auto
;
}
}
.scroll
{
...
...
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