Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit be017d0c
authored
Sep 19, 2024
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
三级详情添加loadding
1 parent
e04599eb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
1 deletions
assets/images/boutique/loadding.gif
pages/boutique/components/Picture.vue
assets/images/boutique/loadding.gif
0 → 100644
View file @
be017d0
5.23 KB
pages/boutique/components/Picture.vue
View file @
be017d0
...
...
@@ -3,10 +3,20 @@
class=
"picture"
v-show=
"!!detailUrl"
>
<template
v-if=
"isLoading"
>
<div
class=
"loadding"
>
<image
class=
"gif"
src=
"../../../assets/images/boutique/loadding.gif"
/>
资源加载中
</div>
</
template
>
<image
class=
"detail-img"
:src=
"detailUrl"
mode=
"widthFix"
@
load=
"load"
/>
</view>
</template>
...
...
@@ -22,15 +32,20 @@ export default {
},
data
()
{
return
{
detailUrl
:
''
detailUrl
:
''
,
isLoading
:
true
}
},
watch
:
{
imgUrl
(
val
)
{
this
.
detailUrl
=
val
this
.
isLoading
=
true
}
},
methods
:
{
load
(
e
)
{
this
.
isLoading
=
false
}
},
}
</
script
>
...
...
@@ -71,4 +86,20 @@ export default {
height
:
auto
;
object-fit
:
cover
;
}
.loadding
{
font-size
:
12px
;
color
:
#999
;
width
:
100vw
;
height
:
100vh
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
flex-direction
:
column
;
overflow
:
hidden
;
.gif
{
width
:
64
rpx
;
height
:
64
rpx
;
margin-bottom
:
32
rpx
;
}
}
</
style
>
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
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 post a comment