Commit 875c08bd authored by spc's avatar spc

center

parent c99e2715
......@@ -113,7 +113,7 @@
</view>
<!-- 抽奖成功弹窗 -->
<DrawSucModal :visible="showDrawSucModal" :award-name="currentAwardName" @close="handleDrawSucModalClose"
<DrawSucModal :visible="showDrawSucModal" :award-name="currentAwardName" :award-image-url="currentAwardImageUrl" @close="handleDrawSucModalClose"
@happy-get="handleHappyGet" />
</view>
......@@ -171,6 +171,7 @@ const loading = ref(true) // 加载状态
const showMask = ref(false);
const showDrawSucModal = ref(false);
const currentAwardName = ref('');
const currentAwardImageUrl = ref('');
const invitationCode = ref('');
const invitationText = ref('');
const invitationImageUrl = ref('');
......@@ -377,6 +378,7 @@ const showPrizeModal = () => {
const totalQuantity = unclaimedPrizes.value.reduce((sum, prize) => sum + (prize.quantity || 1), 0)
const firstPrize = unclaimedPrizes.value[0]
currentAwardName.value = `${firstPrize.prizeName} × ${totalQuantity}`
currentAwardImageUrl.value = firstPrize.prizeImageUrl
showDrawSucModal.value = true
}
}
......
......@@ -54,15 +54,18 @@
}
.drawsucmodalawardname {
width: 248rpx;
width: 348rpx;
height: 28rpx;
position: absolute;
top: 365rpx;
left: 151rpx;
left: 101rpx;
font-size: 29rpx;
line-height: 28rpx;
color: rgba(0, 0, 0, 1);
text-align: center;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.drawsucmodalhappygetbtn {
......
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