Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
07f861b0
Commit
07f861b0
authored
Oct 07, 2021
by
linlinjava
Browse files
chore[litemall-admin]: 图片点击放大
parent
13554254
Changes
4
Hide whitespace changes
Inline
Side-by-side
litemall-admin/src/views/goods/list.vue
View file @
07f861b0
...
...
@@ -21,7 +21,7 @@
<span>
{{
props
.
row
.
goodsSn
}}
</span>
</el-form-item>
<el-form-item
label=
"宣传画廊"
>
<
img
v-for=
"pic in props.row.gallery"
:key=
"pic"
:src=
"pic"
class=
"gallery"
>
<
el-image
v-for=
"pic in props.row.gallery"
:key=
"pic"
:src=
"pic"
class=
"gallery"
:preview-src-list=
"props.row.gallery"
style=
"width: 40px; height: 40px"
/
>
</el-form-item>
<el-form-item
label=
"商品介绍"
>
<span>
{{
props
.
row
.
brief
}}
</span>
...
...
@@ -110,6 +110,7 @@
<
style
>
.table-expand
{
font-size
:
0
;
padding-left
:
60px
;
}
.table-expand
label
{
width
:
100px
;
...
...
litemall-admin/src/views/mall/category.vue
View file @
07f861b0
...
...
@@ -21,7 +21,7 @@
<el-table-column
align=
"center"
property=
"picUrl"
label=
"类目图片"
>
<
template
slot-scope=
"scope"
>
<
img
v-if=
"
scope.row.picUrl"
:
src=
"
scope.row.picUrl"
width=
"80"
>
<
el-image
:src=
"thumbnail(
scope.row.picUrl
)
"
:
preview-src-list=
"toPreview(scope.row,
scope.row.picUrl
)
"
style=
"width: 80px; height: 40px"
/
>
</
template
>
</el-table-column>
...
...
@@ -134,11 +134,14 @@
import
{
listCategory
,
listCatL1
,
createCategory
,
updateCategory
,
deleteCategory
}
from
'
@/api/category
'
import
{
uploadPath
}
from
'
@/api/storage
'
import
{
getToken
}
from
'
@/utils/auth
'
import
{
thumbnail
,
toPreview
}
from
'
@/utils/index
'
export
default
{
name
:
'
Category
'
,
data
()
{
return
{
thumbnail
,
toPreview
,
uploadPath
,
list
:
[],
listLoading
:
true
,
...
...
litemall-admin/src/views/promotion/ad.vue
View file @
07f861b0
...
...
@@ -21,7 +21,7 @@
<el-table-column
align=
"center"
label=
"广告图片"
prop=
"url"
>
<template
slot-scope=
"scope"
>
<
img
v-if=
"
scope.row.url"
:
src=
"
scope.row.url"
width=
"80"
>
<
el-image
:src=
"thumbnail(
scope.row.url
)
"
:
preview-src-list=
"toPreview(scope.row,
scope.row.url
)
"
style=
"width: 80px; height: 40px"
/
>
</
template
>
</el-table-column>
...
...
@@ -125,12 +125,15 @@ import { listAd, createAd, updateAd, deleteAd } from '@/api/ad'
import
{
uploadPath
}
from
'
@/api/storage
'
import
{
getToken
}
from
'
@/utils/auth
'
import
Pagination
from
'
@/components/Pagination
'
// Secondary package based on el-pagination
import
{
thumbnail
,
toPreview
}
from
'
@/utils/index
'
export
default
{
name
:
'
Ad
'
,
components
:
{
Pagination
},
data
()
{
return
{
thumbnail
,
toPreview
,
uploadPath
,
list
:
[],
total
:
0
,
...
...
litemall-admin/src/views/user/user.vue
View file @
07f861b0
...
...
@@ -60,9 +60,6 @@
<el-form-item
label=
"用户昵称"
prop=
"nickname"
>
<el-input
v-model=
"userDetail.nickname"
/>
</el-form-item>
<el-form-item
label=
"用户密码"
prop=
"mobile"
>
<el-input
v-model=
"userDetail.password"
/>
</el-form-item>
<el-form-item
label=
"用户手机"
prop=
"mobile"
>
<el-input
v-model=
"userDetail.mobile"
/>
</el-form-item>
...
...
Write
Preview
Supports
Markdown
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