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
70bb0dbe
Commit
70bb0dbe
authored
Jul 24, 2023
by
yaya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:UI优化
parent
334e469b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
4 deletions
+23
-4
src/views/goods/infoSet.vue
src/views/goods/infoSet.vue
+23
-4
No files found.
src/views/goods/infoSet.vue
View file @
70bb0dbe
<
template
>
<
template
>
<div
class=
"app-container"
>
<div
class=
"app-container"
>
<div
class=
"op-container"
style=
"margin-bottom: 20px"
>
<div
ref=
"top"
:class=
"
{fixed: isFixed}"
class="op-container" style="margin-bottom: 20px">
<el-button
round
@
click=
"handleCancel"
>
取消
</el-button>
<el-button
round
@
click=
"handleCancel"
>
取消
</el-button>
<el-button
type=
"primary"
style=
"margin-right: 20px"
round
@
click=
"handlePublish"
>
发布
</el-button>
<el-button
type=
"primary"
style=
"margin-right: 20px"
round
@
click=
"handlePublish"
>
发布
</el-button>
<el-button-group>
<el-button-group>
...
@@ -254,7 +254,8 @@ export default {
...
@@ -254,7 +254,8 @@ export default {
goodIdList
:
[],
goodIdList
:
[],
currentIndex
:
0
,
currentIndex
:
0
,
showLargeDialog
:
false
,
showLargeDialog
:
false
,
imageUrl
:
''
imageUrl
:
''
,
isFixed
:
false
}
}
}
,
}
,
...
@@ -288,10 +289,18 @@ export default {
...
@@ -288,10 +289,18 @@ export default {
this
.
initContent
()
this
.
initContent
()
}
,
}
,
mounted
()
{
mounted
()
{
// this.pictureCut = this.$refs['pictureCut']
window
.
addEventListener
(
'
scroll
'
,
this
.
handleScroll
)
// this.utils = createUtils(this.pictureCut)
}
,
}
,
methods
:
{
methods
:
{
handleScroll
()
{
const
scrollTop
=
window
.
pageYOffset
||
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
const
testEle
=
this
.
$refs
.
top
if
(
scrollTop
>
testEle
.
offsetTop
)
{
this
.
isFixed
=
true
}
else
{
this
.
isFixed
=
false
}
}
,
// 初始化内容
// 初始化内容
initContent
()
{
initContent
()
{
if
(
this
.
$route
.
query
.
id
==
null
)
{
if
(
this
.
$route
.
query
.
id
==
null
)
{
...
@@ -586,6 +595,16 @@ export default {
...
@@ -586,6 +595,16 @@ export default {
.
op
-
container
{
.
op
-
container
{
text
-
align
:
right
;
text
-
align
:
right
;
background
:
white
;
}
.
fixed
{
position
:
fixed
;
background
:
white
;
top
:
20
px
;
left
:
0
;
right
:
20
px
;
z
-
index
:
99
;
}
}
.
box
-
card
{
.
box
-
card
{
...
...
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