Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_admin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_admin
Commits
84dc521b
Commit
84dc521b
authored
Jul 26, 2023
by
yaya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:修改图片展示
parent
dc39ffc7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
src/views/goods/edit.vue
src/views/goods/edit.vue
+3
-0
src/views/goods/infoSet.vue
src/views/goods/infoSet.vue
+8
-4
No files found.
src/views/goods/edit.vue
View file @
84dc521b
...
@@ -249,6 +249,9 @@ export default {
...
@@ -249,6 +249,9 @@ export default {
url
=
file
.
response
.
data
.
url
url
=
file
.
response
.
data
.
url
}
}
if
(
url
===
this
.
goods
.
topImage
)
{
this
.
goods
.
topImage
=
''
}
if
(
this
.
goods
.
images
[
i
]
===
url
)
{
if
(
this
.
goods
.
images
[
i
]
===
url
)
{
this
.
goods
.
images
.
splice
(
i
,
1
)
this
.
goods
.
images
.
splice
(
i
,
1
)
}
}
...
...
src/views/goods/infoSet.vue
View file @
84dc521b
...
@@ -319,7 +319,7 @@ export default {
...
@@ -319,7 +319,7 @@ export default {
handleScroll
()
{
handleScroll
()
{
const
scrollTop
=
window
.
pageYOffset
||
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
const
scrollTop
=
window
.
pageYOffset
||
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
const
testEle
=
this
.
$refs
.
top
const
testEle
=
this
.
$refs
.
top
if
(
scrollTop
>
testEle
.
offsetTop
)
{
if
(
scrollTop
>
(
testEle
&&
testEle
.
offsetTop
)
)
{
this
.
isFixed
=
true
this
.
isFixed
=
true
}
else
{
}
else
{
this
.
isFixed
=
false
this
.
isFixed
=
false
...
@@ -372,12 +372,16 @@ export default {
...
@@ -372,12 +372,16 @@ export default {
if
(
this
.
goodsParams
.
categoryIds
)
{
if
(
this
.
goodsParams
.
categoryIds
)
{
this
.
categoryIds
=
this
.
goodsParams
.
categoryIds
||
[]
this
.
categoryIds
=
this
.
goodsParams
.
categoryIds
||
[]
}
}
if
(
response
.
data
.
data
.
images
)
{
if
(
response
.
data
.
data
.
images
&&
response
.
data
.
data
.
images
.
length
>
0
)
{
this
.
goodsParams
.
images
=
response
.
data
.
data
.
images
.
split
(
'
;
'
)
||
[]
this
.
goodsParams
.
images
=
response
.
data
.
data
.
images
.
split
(
'
;
'
)
||
[]
}
}
if
(
this
.
goodsParams
.
topImage
)
{
if
(
this
.
goodsParams
.
topImage
&&
this
.
goodsParams
.
topImage
.
length
>
0
)
{
const
list
=
[
this
.
goodsParams
.
topImage
]
const
list
=
[
this
.
goodsParams
.
topImage
]
this
.
goodsParams
.
images
=
list
.
concat
(
this
.
goodsParams
.
images
)
if
(
this
.
goodsParams
.
images
&&
this
.
goodsParams
.
images
.
length
>
0
)
{
this
.
goodsParams
.
images
=
list
.
concat
(
this
.
goodsParams
.
images
)
}
else
{
this
.
goodsParams
.
images
=
list
}
}
}
})
})
},
},
...
...
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