From 4d0896eae7fe6ea2b762a4142415e47596f69a29 Mon Sep 17 00:00:00 2001
From: peng <peng.com>
Date: 星期二, 11 十一月 2025 11:38:25 +0800
Subject: [PATCH] 解决图片不显示问题和奖品数量问题
---
manager/src/views/activity-prize/index.vue | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/manager/src/views/activity-prize/index.vue b/manager/src/views/activity-prize/index.vue
index a712db6..52a324e 100644
--- a/manager/src/views/activity-prize/index.vue
+++ b/manager/src/views/activity-prize/index.vue
@@ -382,9 +382,9 @@
ref="table"
class="prize-table"
>
- <template slot-scope="{ row }" slot="prizeCoverUrl">
+ <template slot-scope="{ row }" slot="prizeImgUrl">
<img
- :src="row.prizeCoverUrl"
+ :src="row.prizeImgUrl"
alt="濂栧搧灏侀潰"
class="thumbnail"
>
@@ -427,8 +427,8 @@
:loading="choiceLoading"
>
<!-- 濂栧搧鍥剧墖 slot -->
- <template slot-scope="{ row }" slot="prizeCoverUrl">
- <img :src="row.prizeCoverUrl" alt="濂栧搧灏侀潰" style="width: 50px; height: 50px; object-fit: cover;">
+ <template slot-scope="{ row }" slot="prizeImgUrl">
+ <img :src="row.prizeImgUrl" alt="濂栧搧灏侀潰" style="width: 50px; height: 50px; object-fit: cover;">
</template>
<!-- 鏁伴噺 slot -->
<template slot-scope="{ row, index }" slot="maxPreDay">
@@ -516,7 +516,7 @@
choiceColumns:[
{
title: '濂栧搧鍥剧墖',
- slot: 'prizeCoverUrl',
+ slot: 'prizeImgUrl',
width: 80,
align: 'center'
},
@@ -566,8 +566,8 @@
prizeColumns:[
{
title: '濂栧搧灏侀潰',
- key: 'prizeCoverUrl',
- slot:'prizeCoverUrl',
+ key: 'prizeImgUrl',
+ slot:'prizeImgUrl',
align: 'center',
minWidth: 100,
},
@@ -843,10 +843,10 @@
},
choicePrize(row){
//鍒ゆ柇鏁扮粍闀垮害
- if(this.choiceData.length >= 5){
- this.$Message.warning("鏈�澶氭坊鍔�5涓鍝�")
- return;
- }
+ // if(this.choiceData.length >= 5){
+ // this.$Message.warning("鏈�澶氭坊鍔�5涓鍝�")
+ // return;
+ // }
console.log(row.prizeId)
if (this.isPrizeChosen(row.id)){
@@ -856,7 +856,7 @@
this.choiceLoading = true;
const prizeToAdd = {
- prizeCoverUrl:row.prizeCoverUrl,
+ prizeImgUrl:row.prizeImgUrl,
prizeType: row.prizeType,
prizeName: row.prizeName,
prizeNum: 1, // 榛樿鏁伴噺涓�1
--
Gitblit v1.8.0