抽奖次数

This commit is contained in:
liuye
2023-02-06 15:50:19 +08:00
parent 4a4ac40ecb
commit b929e0b2a6
2 changed files with 20 additions and 5 deletions

View File

@@ -71,6 +71,7 @@
</view> </view>
<img src="./img/pointer.png" alt="" class="point-img"> <img src="./img/pointer.png" alt="" class="point-img">
<div class="turntable-btn" @click="raffle">立即抽奖</div> <div class="turntable-btn" @click="raffle">立即抽奖</div>
<p class="turntable-count">剩余<span> {{activeInfo.allowRaffle ? 1 : 0}} </span>次抽奖机会</p>
</div> </div>
<div class="lucky-list" v-if="awardedList.length"> <div class="lucky-list" v-if="awardedList.length">
<u-notice-bar mode="vertical" :is-circular="false" :list="luckyList" :volume-icon="false" bg-color="#FFDEAC" padding="0rpx 0rpx" border-radius="60rpx"></u-notice-bar> <u-notice-bar mode="vertical" :is-circular="false" :list="luckyList" :volume-icon="false" bg-color="#FFDEAC" padding="0rpx 0rpx" border-radius="60rpx"></u-notice-bar>
@@ -182,9 +183,9 @@ export default {
duration: this.duration, duration: this.duration,
timingFunction: "ease-in-out", //旋转模式 timingFunction: "ease-in-out", //旋转模式
}); });
this.activityId = option.activityId // this.activityId = option.activityId
this.friendId = option.friendId || '' // this.friendId = option.friendId || ''
// this.activityId = '75a4c4493de54f9fb63868817079c89c' this.activityId = '75a4c4493de54f9fb63868817079c89c'
this.getDetail() this.getDetail()
this.getAwardedList() this.getAwardedList()
}, },
@@ -565,7 +566,7 @@ export default {
} }
.turntable-content { .turntable-content {
width: 700px; width: 700px;
height: 960px; height: 1020px;
background-image: url('./img/turntable-bg.png'); background-image: url('./img/turntable-bg.png');
background-size: 100% 100%; background-size: 100% 100%;
background-repeat: no-repeat; background-repeat: no-repeat;
@@ -584,11 +585,25 @@ export default {
font-size: 40px; font-size: 40px;
color: #DC0000; color: #DC0000;
position: absolute; position: absolute;
bottom: 164px; bottom: 228px;
left: 50%; left: 50%;
margin-left: -148px; margin-left: -148px;
cursor: pointer; cursor: pointer;
} }
.turntable-count {
position: absolute;
bottom: 182px;
left: 50%;
margin-left: -148px;
width: 296px;
text-align: center;
color: rgba(255, 246, 240, 1);
font-size: 28px;
font-weight: 400;
span {
color: #43FFE7;
}
}
.turntable-btn:active{ .turntable-btn:active{
transform: scale(0.95); transform: scale(0.95);
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 230 KiB

After

Width:  |  Height:  |  Size: 119 KiB