feat(邀请注册页面): 奖励简介展示
This commit is contained in:
parent
8ba48e01ee
commit
dd601fef29
@ -311,11 +311,13 @@
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
"
|
||||
>
|
||||
<img :src="award.cover" alt="" width="50%" />
|
||||
<div>{{ showAwardText(award) }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -505,6 +507,12 @@ const copyCode = (text) => {
|
||||
}, 2000)
|
||||
}
|
||||
|
||||
// 展示奖品信息
|
||||
const showAwardText = (award) => {
|
||||
if (award.type == 'GOLD') return award.quantity
|
||||
return award.quantity + 'Days'
|
||||
}
|
||||
|
||||
// 更改邀请码
|
||||
const confirmInvitationCode = () => {
|
||||
if (!invitationCode.value.trim()) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user