Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李俊赕
self-support
Commits
d8db33ca
Commit
d8db33ca
authored
May 13, 2021
by
Damon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
预览图片兼容性问题
parent
8cdd78d7
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
272 additions
and
264 deletions
+272
-264
preview.vue
src/components/photo/preview.vue
+11
-3
preview.vue
src/pages/photo/preview.vue
+261
-261
No files found.
src/components/photo/preview.vue
View file @
d8db33ca
<
template
>
<view>
<view
class=
"topView"
:style=
"
{'height':navHeight/2 + 'px'}">
</view>
<view
class=
"contentView"
>
<!--
<u-image
class=
"pic"
:src=
"files[0]"
bg-color=
"transparent"
@
click=
"showPreviewFn"
></u-image>
-->
<image
class=
"pic"
:src=
"files[0]"
v-lazy
mode=
"aspectFit"
@
click=
"showPreviewFn"
></image>
...
...
@@ -29,12 +30,13 @@
keys
:
[],
token
:
''
,
product
:
''
,
allImages
:
[]
allImages
:
[],
navHeight
:
130
}
},
created
(
e
)
{
// 获取照片选项对象
console
.
log
(
getApp
().
globalData
.
photo
.
currentItem
)
this
.
navHeight
=
getApp
().
globalData
.
navHeight
const
product
=
app
.
globalData
.
photo
.
product
this
.
product
=
`?brandId=
${
product
.
brandId
}
&brand=
${
product
.
brandName
}
&classifyId=
${
product
.
classifyId
}
&systemId=
${
product
.
systemId
}
`
if
(
app
.
globalData
.
photo
.
currentItem
)
{
...
...
@@ -146,6 +148,12 @@
</
script
>
<
style
lang=
"scss"
>
.topView
{
background
:
#000
;
width
:
100%
;
position
:
fixed
;
top
:
0
;
}
.contentView
{
background-color
:
#333333
;
/* padding-top: 120rpx; */
...
...
@@ -155,7 +163,7 @@
flex-direction
:
column
;
}
/
deep
/
.u-image
{
height
:
100
vh
!
important
;
height
:
100
%
!
important
;
}
/
deep
/
.u-image__loading
{
background-color
:
transparent
!
important
;
...
...
src/pages/photo/preview.vue
View file @
d8db33ca
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment