Commit db843110 authored by leiqingsong's avatar leiqingsong

Merge branch 'dev_lqs' into 'master'

Dev lqs

See merge request !140
parents c343d81a 92e9b9d4
...@@ -18,6 +18,7 @@ class bridgeToAppFun { ...@@ -18,6 +18,7 @@ class bridgeToAppFun {
} }
// 获取Token // 获取Token
getAuthToken() { getAuthToken() {
console.log('系统:', this.userAgent);
if (this.userAgent === "android") { if (this.userAgent === "android") {
// android // android
let token = null; let token = null;
...@@ -37,6 +38,7 @@ class bridgeToAppFun { ...@@ -37,6 +38,7 @@ class bridgeToAppFun {
} else if (this.userAgent === "ios") { } else if (this.userAgent === "ios") {
// ios // ios
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
console.log('调ios的方法');
jsBridge.callhandler("getAuthToken", null, data => { jsBridge.callhandler("getAuthToken", null, data => {
localStorage.setItem("token", data); localStorage.setItem("token", data);
if (data) { if (data) {
...@@ -71,7 +73,7 @@ class bridgeToAppFun { ...@@ -71,7 +73,7 @@ class bridgeToAppFun {
console.log("返回调用失败,都不行"); console.log("返回调用失败,都不行");
} }
} else { } else {
console.log('去调用ios返回'); console.log("去调用ios返回");
jsBridge.callhandler("navigateBack"); jsBridge.callhandler("navigateBack");
} }
} }
......
...@@ -3,10 +3,10 @@ ...@@ -3,10 +3,10 @@
<div class="content"> <div class="content">
<p class="paragraph"> <p class="paragraph">
<span class="special"> <span class="special">
日本西田森制药株式会社坐落在東京都千代田区東神田2丁目6番7号608,以'传递希望,传播爱'为企业理念 日本西田森制药株式会社坐落在東京都千代田区東神田2丁目6番7号608,以"传递希望,传播爱"为企业理念
,让健康的"希望之光洒向世界每一寸森田"为愿景,开展企业经营活动。其核心业务包括【食品、医药品、保健品、化妆品等研发事业】 ,让健康的"希望之光洒向世界每一寸森田"为愿景,开展企业经营活动。其核心业务包括【食品、医药品、保健品、化妆品等研发事业】
与【医疗健康消费者商品研发事业】研发并生产有助于人类健康的创新产品。 与【医疗健康消费者商品研发事业】研发并生产有助于人类健康的创新产品。
西田森将始终保持高度的伦理观,以健康产品为基点,创造新的价值为目标不断发展,从而成为"全球性的价值创造企业" 西田森将始终保持高度的伦理观,以健康产品为基点,创造新的价值为目标不断发展,从而成为"全球性的价值创造企业"
</span> </span>
</p> </p>
</div> </div>
......
...@@ -14,7 +14,22 @@ ...@@ -14,7 +14,22 @@
<div class="notice-bar"> <div class="notice-bar">
<img src="@/assets/images/icon-notice.png" alt="" /> <img src="@/assets/images/icon-notice.png" alt="" />
<div class="notice-bar-show" id="scroll-box"> <div class="notice-bar-show" id="scroll-box">
<div class="user-id-list"> <div
:class="['user-id-list', canScroll && 'scroll']"
:style="canScroll && `animation-duration: ${animationDuration}s`"
>
<p
v-for="(item, index) in userPoolVos"
:key="index"
@click="openUserInfo(item)"
>
用户{{ item.userId }}进入空投池
</p>
</div>
<div
:class="['user-id-list', canScroll && 'scroll']"
:style="canScroll && `animation-duration: ${animationDuration}s`"
>
<p <p
v-for="(item, index) in userPoolVos" v-for="(item, index) in userPoolVos"
:key="index" :key="index"
...@@ -59,6 +74,8 @@ export default { ...@@ -59,6 +74,8 @@ export default {
name: "AirDrop", name: "AirDrop",
data() { data() {
return { return {
animationDuration: 10,
canScroll: false,
currentUser: {}, currentUser: {},
userInfoDialog: false, userInfoDialog: false,
total: 0, total: 0,
...@@ -74,6 +91,7 @@ export default { ...@@ -74,6 +91,7 @@ export default {
this.userInfoDialog = false; this.userInfoDialog = false;
}, },
openUserInfo(item) { openUserInfo(item) {
console.log(123);
this.userInfoDialog = true; this.userInfoDialog = true;
this.currentUser = item; this.currentUser = item;
this.currentUser.avatar = process.env.VUE_APP_BASE_URL + item.headImage; this.currentUser.avatar = process.env.VUE_APP_BASE_URL + item.headImage;
...@@ -97,34 +115,43 @@ export default { ...@@ -97,34 +115,43 @@ export default {
item.userId.substring(0, 3) + "****" + item.userId.substring(7); item.userId.substring(0, 3) + "****" + item.userId.substring(7);
return temp; return temp;
}); });
_this.$nextTick(() => { if (_this.userPoolVos.length > 3) {
_this.scroll(); this.canScroll = true;
}); this.animationDuration = _this.userPoolVos.length * 3;
}
// _this.$nextTick(() => {
// if (_this.canScroll) {
// _this.scroll();
// }
// });
} else { } else {
_this.$toast(res.msg); _this.$toast(res.msg);
} }
}); });
}, },
scroll() { scroll() {
this.timer = setInterval(this.autoScrollLine, 100); // this.timer = setInterval(this.autoScrollLine, 100);
}, // const marquee = document.querySelector(".user-id-list");
autoScrollLine() { // const contents = marquee.innerHTML;
let box = document.getElementById("scroll-box"); // marquee.innerHTML = contents + contents;
let parent = document.getElementsByClassName("user-id-list")[0]; }
const _this = this; // autoScrollLine() {
if (box) { // let box = document.getElementById("scroll-box");
if (box.scrollTop != null && box.scrollTop >= parent.offsetHeight) { // let parent = document.getElementsByClassName("user-id-list")[0];
box.scrollTop = 0; // const _this = this;
} else { // if (box) {
box.scrollTop += 1; // if (box.scrollTop != null && box.scrollTop >= parent.offsetHeight) {
} // box.scrollTop = 0;
if (box.scrollTop % box.offsetHeight == 0) { // } else {
clearInterval(_this.timer); // box.scrollTop += 1;
box.scrollTop = 0; // }
_this.timer = setInterval(_this.autoScrollLine, 300); // if (box.scrollTop % box.offsetHeight < 1) {
} // clearInterval(_this.timer);
} // box.scrollTop = 0;
} // _this.timer = setInterval(_this.autoScrollLine, 200);
// }
// }
// }
} }
}; };
</script> </script>
...@@ -226,7 +253,8 @@ $white: #ffffff; ...@@ -226,7 +253,8 @@ $white: #ffffff;
left: 81px; left: 81px;
} }
&::before { &::before {
top: 0; top: -15px;
z-index: 1;
} }
&::after { &::after {
top: 66.66%; top: 66.66%;
...@@ -236,8 +264,33 @@ $white: #ffffff; ...@@ -236,8 +264,33 @@ $white: #ffffff;
margin-right: 15px; margin-right: 15px;
} }
.notice-bar-show { .notice-bar-show {
width: 100%;
height: 100%; height: 100%;
overflow: scroll; .user-id-list {
display: flex;
flex-direction: column;
&:hover {
animation-play-state: paused;
}
p {
pointer-events: auto;
}
}
.scroll {
animation-name: marquee;
animation-timing-function: linear;
animation-iteration-count: infinite;
}
@keyframes marquee {
0% {
transform: translateY(0%);
}
100% {
transform: translateY(-100%);
}
}
p { p {
font-size: 16px; font-size: 16px;
......
...@@ -251,7 +251,7 @@ export default { ...@@ -251,7 +251,7 @@ export default {
cashOut(params) cashOut(params)
.then(res => { .then(res => {
this.resultDialog = true; this.resultDialog = true;
if (res.code === 0) { if (res.code == 0) {
this.resultDialogTitle = "提现成功"; this.resultDialogTitle = "提现成功";
this.resultDialogTip = "提现成功,请及时查收"; this.resultDialogTip = "提现成功,请及时查收";
this.resultDialogImg = require("@/assets/images/成功.png"); this.resultDialogImg = require("@/assets/images/成功.png");
......
...@@ -116,14 +116,16 @@ export default { ...@@ -116,14 +116,16 @@ export default {
getstatus() { getstatus() {
const userId = JSON.parse(localStorage.getItem("user")).userId; const userId = JSON.parse(localStorage.getItem("user")).userId;
const _this = this; const _this = this;
getForestStatus(userId).then(res => { getForestStatus(userId)
.then(res => {
if (res.code === 0) { if (res.code === 0) {
let resData = res.data; let resData = res.data;
_this.handleData(resData); _this.handleData(resData);
} else { } else {
_this.$toast.fail(res.msg); _this.$toast.fail(res.msg);
} }
}).catch(err => { })
.catch(err => {
console.log(err); console.log(err);
}); });
}, },
......
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
<div class="baseInfo"> <div class="baseInfo">
<img class="avatar" src="@/assets/images/avatar.png" alt="用户头像" /> <img class="avatar" src="@/assets/images/avatar.png" alt="用户头像" />
<span class="userName">{{ inviteeItem.userId }}</span> <span class="userName">{{ inviteeItem.userId }}</span>
<span style="font-size: 12px;color:#666666">西天森合伙人</span>
</div> </div>
<div class="detail"> <div class="detail">
<p> <p>
......
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