Commit 07f861b0 authored by linlinjava's avatar linlinjava
Browse files

chore[litemall-admin]: 图片点击放大

parent 13554254
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<span>{{ props.row.goodsSn }}</span> <span>{{ props.row.goodsSn }}</span>
</el-form-item> </el-form-item>
<el-form-item label="宣传画廊"> <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>
<el-form-item label="商品介绍"> <el-form-item label="商品介绍">
<span>{{ props.row.brief }}</span> <span>{{ props.row.brief }}</span>
...@@ -110,6 +110,7 @@ ...@@ -110,6 +110,7 @@
<style> <style>
.table-expand { .table-expand {
font-size: 0; font-size: 0;
padding-left: 60px;
} }
.table-expand label { .table-expand label {
width: 100px; width: 100px;
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<el-table-column align="center" property="picUrl" label="类目图片"> <el-table-column align="center" property="picUrl" label="类目图片">
<template slot-scope="scope"> <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> </template>
</el-table-column> </el-table-column>
...@@ -134,11 +134,14 @@ ...@@ -134,11 +134,14 @@
import { listCategory, listCatL1, createCategory, updateCategory, deleteCategory } from '@/api/category' import { listCategory, listCatL1, createCategory, updateCategory, deleteCategory } from '@/api/category'
import { uploadPath } from '@/api/storage' import { uploadPath } from '@/api/storage'
import { getToken } from '@/utils/auth' import { getToken } from '@/utils/auth'
import { thumbnail, toPreview } from '@/utils/index'
export default { export default {
name: 'Category', name: 'Category',
data() { data() {
return { return {
thumbnail,
toPreview,
uploadPath, uploadPath,
list: [], list: [],
listLoading: true, listLoading: true,
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<el-table-column align="center" label="广告图片" prop="url"> <el-table-column align="center" label="广告图片" prop="url">
<template slot-scope="scope"> <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> </template>
</el-table-column> </el-table-column>
...@@ -125,12 +125,15 @@ import { listAd, createAd, updateAd, deleteAd } from '@/api/ad' ...@@ -125,12 +125,15 @@ import { listAd, createAd, updateAd, deleteAd } from '@/api/ad'
import { uploadPath } from '@/api/storage' import { uploadPath } from '@/api/storage'
import { getToken } from '@/utils/auth' import { getToken } from '@/utils/auth'
import Pagination from '@/components/Pagination' // Secondary package based on el-pagination import Pagination from '@/components/Pagination' // Secondary package based on el-pagination
import { thumbnail, toPreview } from '@/utils/index'
export default { export default {
name: 'Ad', name: 'Ad',
components: { Pagination }, components: { Pagination },
data() { data() {
return { return {
thumbnail,
toPreview,
uploadPath, uploadPath,
list: [], list: [],
total: 0, total: 0,
......
...@@ -60,9 +60,6 @@ ...@@ -60,9 +60,6 @@
<el-form-item label="用户昵称" prop="nickname"> <el-form-item label="用户昵称" prop="nickname">
<el-input v-model="userDetail.nickname" /> <el-input v-model="userDetail.nickname" />
</el-form-item> </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-form-item label="用户手机" prop="mobile">
<el-input v-model="userDetail.mobile" /> <el-input v-model="userDetail.mobile" />
</el-form-item> </el-form-item>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment