Skip to content

Commit

Permalink
Fix ads
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangao authored and zhangao committed Aug 25, 2023
1 parent baf7ffd commit d45a2e0
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 14 deletions.
Binary file added public/images/sales1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 8 additions & 5 deletions src/pan/PanRight.vue
Original file line number Diff line number Diff line change
Expand Up @@ -265,11 +265,14 @@ onMounted(() => {
}).catch((error: any) => {
console.log(error)
})
setTimeout(() => {
AliHttp.isVip(useUserStore().GetUserToken.phone).then((res: any) => {
vip.value = res
})
}, 5000)
const intervalId = setInterval(() => {
if (useUserStore().userLogined && useUserStore().GetUserToken.phone != '') {
AliHttp.isVip(useUserStore().GetUserToken.phone).then((res: any) => {
vip.value = res
})
clearInterval(intervalId)
}
}, 1000)
resizeObserver.observe(document.getElementById('panfilelist')!)
})
Expand Down
13 changes: 8 additions & 5 deletions src/resPan/ResPanRight.vue
Original file line number Diff line number Diff line change
Expand Up @@ -268,11 +268,14 @@ onMounted(() => {
}).catch((error: any) => {
console.log(error)
})
setTimeout(() => {
AliHttp.isVip(useUserStore().GetUserToken.phone).then((res: any) => {
vip.value = res
})
}, 5000)
const intervalId = setInterval(() => {
if (useUserStore().userLogined && useUserStore().GetUserToken.phone != '') {
AliHttp.isVip(useUserStore().GetUserToken.phone).then((res: any) => {
vip.value = res
})
clearInterval(intervalId)
}
}, 1000)
resizeObserver.observe(document.getElementById('panfilelist')!)
})
Expand Down
13 changes: 9 additions & 4 deletions src/resource/alist.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div>
<div class="fullscroll" style="padding-left: 12px; padding-right: 16px; overflow-x: hidden">
<iframe class="custom-webview" :src="iframeSrc" ref="iframeRef"></iframe>
</div>
</template>
Expand All @@ -15,7 +15,7 @@ export default {
onMounted(() => {
// setTimeout(() => {
// iframeSrc.value = 'http://127.0.0.1:5244/'
// iframeSrc.value = 'http://127.0.0.1:5244/'d
// }, 3000)
const iframe = iframeRef.value
Expand Down Expand Up @@ -57,7 +57,12 @@ export default {

<style scoped>
.custom-webview {
width: 100%;
height: 800px;
width: 100%;
height: 1000px;
}
.fullscroll {
width: 100%;
height: 100%;
overflow: auto;
}
</style>

0 comments on commit d45a2e0

Please sign in to comment.