Commit 726f9bff authored by leiqingsong's avatar leiqingsong

解决空投池弹窗不出来的问题

parent 2e1ce854
...@@ -7,13 +7,13 @@ import "minirefresh/dist/debug/minirefresh.css"; ...@@ -7,13 +7,13 @@ import "minirefresh/dist/debug/minirefresh.css";
import "amfe-flexible"; import "amfe-flexible";
import "@/plugins/vant-ui.js"; import "@/plugins/vant-ui.js";
import "@/plugins/echarts-plugins.js"; import "@/plugins/echarts-plugins.js";
import Vconsole from "vconsole"; // import Vconsole from "vconsole";
import bridgeToAppFun from "@/utils/bridgeToAppFun"; import bridgeToAppFun from "@/utils/bridgeToAppFun";
Vue.prototype.$bridgeToAppFun = new bridgeToAppFun(); Vue.prototype.$bridgeToAppFun = new bridgeToAppFun();
/*生产环境请注释掉 */ /*生产环境请注释掉 */
Vue.prototype.$vConsole = new Vconsole(); // Vue.prototype.$vConsole = new Vconsole();
Vue.use(MiniRefreshTools); Vue.use(MiniRefreshTools);
Vue.config.productionTip = false; Vue.config.productionTip = false;
......
...@@ -21,10 +21,19 @@ ...@@ -21,10 +21,19 @@
<p <p
v-for="(item, index) in userPoolVos" v-for="(item, index) in userPoolVos"
:key="index" :key="index"
@tap="openUserInfo(item)" @click="openUserInfo(item)"
> >
用户{{ item.userId }}进入空投池 用户{{ item.userId }}进入空投池
</p> </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> </div>
</div> </div>
...@@ -107,11 +116,11 @@ export default { ...@@ -107,11 +116,11 @@ export default {
this.canScroll = true; this.canScroll = true;
this.animationDuration = _this.userPoolVos.length * 3; this.animationDuration = _this.userPoolVos.length * 3;
} }
_this.$nextTick(() => { // _this.$nextTick(() => {
if (_this.canScroll) { // if (_this.canScroll) {
_this.scroll(); // _this.scroll();
} // }
}); // });
} else { } else {
_this.$toast(res.msg); _this.$toast(res.msg);
} }
...@@ -119,9 +128,9 @@ export default { ...@@ -119,9 +128,9 @@ export default {
}, },
scroll() { scroll() {
// this.timer = setInterval(this.autoScrollLine, 100); // this.timer = setInterval(this.autoScrollLine, 100);
const marquee = document.querySelector(".user-id-list"); // const marquee = document.querySelector(".user-id-list");
const contents = marquee.innerHTML; // const contents = marquee.innerHTML;
marquee.innerHTML = contents + contents; // marquee.innerHTML = contents + contents;
} }
// autoScrollLine() { // autoScrollLine() {
// let box = document.getElementById("scroll-box"); // let box = document.getElementById("scroll-box");
...@@ -241,7 +250,7 @@ $white: #ffffff; ...@@ -241,7 +250,7 @@ $white: #ffffff;
left: 81px; left: 81px;
} }
&::before { &::before {
top: 0; top: -15px;
z-index: 1; z-index: 1;
} }
&::after { &::after {
...@@ -257,6 +266,12 @@ $white: #ffffff; ...@@ -257,6 +266,12 @@ $white: #ffffff;
.user-id-list { .user-id-list {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
&:hover {
animation-play-state: paused;
}
p {
pointer-events: auto;
}
} }
.scroll { .scroll {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment