This commit is contained in:
yanran200730
2023-05-22 16:38:42 +08:00
parent 291d068c66
commit a8ac7b14d4
6 changed files with 76 additions and 30 deletions

View File

@@ -68,12 +68,11 @@
width="350">
<template v-slot="{ row }">
<div class="goods">
<ai-uploader
:disabled="true"
:instance="instance"
:value="[{url: row.goodsPicUrl}]"
:limit="1">
</ai-uploader>
<div class="img-content">
<img :src="row.goodsPicUrl" alt="" v-viewer>
<span class="type type0" v-if="row.goodsType === '0'">免费兑</span>
<span class="type type1" v-else>京东低价商品</span>
</div>
<p>{{ row.goodsTitle }}</p>
</div>
</template>
@@ -219,5 +218,30 @@
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;
font-size: 12px;
width: 120px;
text-align: center;
color: #fff;
z-index: 999;
}
.type1 {
background-color: #E64E39;
}
.type0 {
background-color: #FF6900;
}
}
</style>

View File

@@ -68,15 +68,10 @@
width="350">
<template v-slot="{ row }">
<div class="goods">
<!-- <ai-uploader
:disabled="true"
:instance="instance"
:value="[{url: row.goodsPicUrl}]"
:limit="1">
</ai-uploader> -->
<div class="img-content">
<img :src="row.goodsPicUrl" alt="" v-viewer>
<span class="type" :class="`type`+row.goodsType">{{$dict.getLabel('integralSGType', row.goodsType)}}</span>
<span class="type type0" v-if="row.goodsType === '0'">免费兑</span>
<span class="type type1" v-else>京东低价商品</span>
</div>
<p>{{ row.goodsTitle }}</p>
</div>
@@ -241,6 +236,7 @@
position: absolute;
top: 0;
left: 0;
font-size: 12px;
width: 120px;
text-align: center;
color: #fff;

View File

@@ -54,9 +54,10 @@
</ai-uploader> -->
<div class="img-content">
<img :src="row.picUrl" alt="" v-viewer>
<span class="type" :class="`type`+row.type">{{$dict.getLabel('integralSGType', row.type)}}</span>
<span class="type type0" v-if="row.type === '0'">免费兑</span>
<span class="type type1" v-else>京东低价商品</span>
</div>
<p>{{ row.title }}</p>
</div>
</template>
@@ -203,6 +204,7 @@
text-align: center;
color: #fff;
z-index: 999;
font-size: 12px;
}
.type1 {
background-color: #E64E39;