Commit 14e13b7d authored by xiaoman's avatar xiaoman

钱币列表-图片展示方式

parent 681fbe3f
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<el-table-column align="center" label="ID" prop="id"/> <el-table-column align="center" label="ID" prop="id"/>
<el-table-column align="center" label="商品图片" width="120px"> <el-table-column align="center" label="商品图片" width="120px">
<template slot-scope="scope"> <template slot-scope="scope">
<img v-if="scope.row.images.length>0" :src="scope.row.images[0]" class="row-img" @click="handlePictureCardPreview({url:scope.row.images[0]})"> <el-image v-if="scope.row.images.length>0" :src="scope.row.images[0]" fit="cover" class="row-img" @click="handlePictureCardPreview({url:scope.row.images[0]})" />
<!-- <img v-for="(item,index) in scope.row.images" :src="item" :key="index" class="row-img"> --> <!-- <img v-for="(item,index) in scope.row.images" :src="item" :key="index" class="row-img"> -->
</template> </template>
</el-table-column> </el-table-column>
......
Markdown is supported
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