This commit is contained in:
liuye
2023-04-24 10:07:38 +08:00
parent 5a4c1f9a61
commit f5a65e98be

View File

@@ -68,12 +68,16 @@
width="350">
<template v-slot="{ row }">
<div class="goods">
<ai-uploader
<!-- <ai-uploader
:disabled="true"
:instance="instance"
:value="[{url: row.goodsPicUrl}]"
:limit="1">
</ai-uploader>
</ai-uploader> -->
<div class="img-content">
<img :src="row.goodsPicUrl" alt="" v-viewer>
<span class="type" :class="`type`+row.type">{{$dict.getLabel('integralSGType', row.type)}}</span>
</div>
<p>{{ row.goodsTitle }}</p>
</div>
</template>
@@ -106,6 +110,9 @@
</template>
<script>
import Viewer from 'v-viewer'
import Vue from 'vue'
Vue.use(Viewer)
export default {
name: 'ResidentList',
@@ -221,5 +228,29 @@
display: flex;
align-items: center;
}
.img-content {
position: relative;
margin-right: 8px;
img {
width: 120px;
height: 120px;
cursor: pointer;
}
}
.type {
position: absolute;
top: 0;
left: 0;
width: 120px;
text-align: center;
color: #fff;
z-index: 999;
}
.type1 {
background-color: #E64E39;
}
.type0 {
background-color: #FF6900;
}
}
</style>