Skip to content
This repository has been archived by the owner on Aug 19, 2023. It is now read-only.

Commit

Permalink
登录bug修复
Browse files Browse the repository at this point in the history
  • Loading branch information
gozaoo committed May 1, 2023
1 parent a2167ab commit 42dd872
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 16 deletions.
30 changes: 18 additions & 12 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1149,17 +1149,23 @@ import { transform } from '@vue/compiler-core'
},
lyricFoundStr(info,time,i){
let strNowIndex = info.findIndex((v,index,obj)=>{
if(v.t > time+0.35){
return true
} else {
return false
let strNowIndex
// if(info[this.data.player.musicCache[this.id].lyric.yrc[i].index].t > time+0.35){
// strNowIndex = this.data.player.musicCache[this.id].lyric.yrc[i].index
// } else {
strNowIndex = info.findIndex((v,index,obj)=>{
if(v.t > time+0.35){
return true
} else {
return false
}
}) - 1
if(strNowIndex == -2) {
strNowIndex = info.length - 1
}
}) - 1
if(strNowIndex == -2) {
strNowIndex = info.length - 1
}
this.data.player.musicCache[this.id].lyric.yrc[i].index = strNowIndex
this.data.player.musicCache[this.id].lyric.yrc[i].index = strNowIndex
// }
// console.log(strNowIndex);
if(this.data.player.musicCache[this.id].lyric.yrc[i]){
Expand Down Expand Up @@ -1336,8 +1342,8 @@ import { transform } from '@vue/compiler-core'
.audio.loop != true)
this.transitionNextMusic()
this.lyricSet()
// setTimeout(() => this.getCurr(), 60)
window.requestAnimationFrame(()=>this.getCurr())
setTimeout(() => this.getCurr(), 41)
// window.requestAnimationFrame(()=>this.getCurr())
},
async transitionNextMusic(times) {
Expand Down
4 changes: 2 additions & 2 deletions src/components/login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@
}
},
checkLogin() {
if (this.$parent.$parent.data.user.profile == null) {
this.$parent.$parent.loginInfor();
if (app.data.user.profile == null) {
app.loginInfor();
this.close()
setTimeout(() => this.checkLogin(), 1000);
}
Expand Down
4 changes: 3 additions & 1 deletion src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1419,7 +1419,7 @@ li div.Padding {
/* color: #0000; */
background-origin: content-box;
background-clip: text;
--background-transition-linear-gradient-progress-width: .75em;
--background-transition-linear-gradient-progress-width: 1em;
background: linear-gradient(90deg,rgb(0,0,0,.6) 0%,rgb(0,0,0,.6) calc(50% - calc(var(--background-transition-linear-gradient-progress-width)/2)), rgba(0,0,0,.2) calc(50% + calc(var(--background-transition-linear-gradient-progress-width)/2)),rgba(0,0,0,.2) 100%);
background-size: calc(200% + var(--background-transition-linear-gradient-progress-width)) 100%;
background-position: 100% 0%;
Expand All @@ -1443,6 +1443,8 @@ li div.Padding {
/* background-position: 0% 0%; */
/* animation: toright var(--dur) linear ; */
background-position: calc(100% - var(--progress) ) 0%;
/* background-position: 0% 0%; */

}
#lyric ul li h1 a>div{
position: absolute;
Expand Down
2 changes: 1 addition & 1 deletion util/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"anonymous_token": "bf8bfeabb1aa84f9c8c3906c04a04fb864322804c83f5d607e91a04eae463c9436bd1a17ec353cf760e56432a4e89f7dbe4b711ddf674f20993166e004087dd3463531c66b18cb053543ba0ab5396a6f6fc7c3df09ff8c448b114540caa07eb4807e650dd04abd3fb8130b7ae43fcc5b",
"anonymous_token": "bf8bfeabb1aa84f9c8c3906c04a04fb864322804c83f5d607e91a04eae463c9436bd1a17ec353cf7c3f34e89b2f143b70a2f3a2dff379f97993166e004087dd3cb1d0b9eaaf1259fc63d03f82d3117356fc7c3df09ff8c448b114540caa07eb4807e650dd04abd3fb8130b7ae43fcc5b",
"resourceTypeMap": {
"0": "R_SO_4_",
"1": "R_MV_5_",
Expand Down

0 comments on commit 42dd872

Please sign in to comment.