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
d8d832a7
Commit
d8d832a7
authored
Jul 24, 2023
by
yaya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:bugfix
parent
93b70673
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
13 deletions
+28
-13
src/views/goods/infoSet.vue
src/views/goods/infoSet.vue
+26
-11
src/views/goods/list.vue
src/views/goods/list.vue
+2
-2
No files found.
src/views/goods/infoSet.vue
View file @
d8d832a7
...
...
@@ -137,9 +137,10 @@
<
div
style
=
"
text-align: end; margin-right: 20px;font-weight: bold; width: 100%
"
>
预览
<
/div
>
<
div
class
=
"
content_preview--image
"
>
<
a
v
-
if
=
"
compositeImageSrc
"
:
href
=
"
compositeImageSrc
"
:
style
=
"
{'background-image': `url(${compositeImageSrc
}
)`
}
"
class
=
"
image
"
/>
class
=
"
image
"
/>
<
/div
>
<
/div
>
...
...
@@ -383,10 +384,10 @@ export default {
this
.
$message
.
error
(
'
请先删除已裁剪图片
'
)
return
}
/*
if (!this.goodsParams.images || this.goodsParams.images.length === 0) {
if
(
!
this
.
goodsParams
.
images
||
this
.
goodsParams
.
images
.
length
===
0
)
{
this
.
$message
.
error
(
'
无线上图片选择
'
)
return
}
*/
}
this
.
dialogVisible
=
true
this
.
selectDialogType
=
type
}
,
...
...
@@ -408,9 +409,22 @@ export default {
cutCancel
()
{
this
.
src
=
''
}
,
// 删除裁剪后图片
deleteCutImage
(
type
)
{
event
.
preventDefault
()
if
(
type
===
1
&&
!
this
.
blob
)
{
// 正面
return
}
if
(
type
===
2
&&
!
this
.
blobSecond
)
{
return
}
this
.
$confirm
(
'
你确定删除吗?
'
,
'
提示
'
,
{
confirmButtonText
:
'
确定
'
,
cancelButtonText
:
'
取消
'
,
type
:
'
warning
'
}
).
then
(()
=>
{
if
(
type
===
1
)
{
// 正面
this
.
blob
=
''
this
.
base64
=
''
...
...
@@ -419,6 +433,7 @@ export default {
this
.
base64Second
=
''
}
this
.
compositeImageSrc
=
''
}
)
}
,
// 选择线上图片后的图片链接
...
...
src/views/goods/list.vue
View file @
d8d832a7
...
...
@@ -16,7 +16,7 @@
<template
slot-scope=
"props"
>
<el-form
label-position=
"left"
class=
"table-expand"
>
<el-form-item
label=
"钱币图片"
>
<img
v-for=
"pic in props.row.images"
:key=
"pic"
:src=
"pic
"
class=
"gallery"
>
<img
:src=
"props.row.topImage
"
class=
"gallery"
>
</el-form-item>
<el-form-item
label=
"钱币价格"
>
<span>
{{
props
.
row
.
price
}}
</span>
...
...
@@ -34,7 +34,7 @@
<el-table-column
align=
"center"
property=
"iconUrl"
label=
"图片"
>
<
template
slot-scope=
"scope"
>
<img
:src=
"scope.row.
images[0]
"
width=
"100%"
>
<img
:src=
"scope.row.
topImage
"
width=
"100%"
>
</
template
>
</el-table-column>
...
...
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