feat(抽奖活动页): 可提现金额不到10时不显示提取按钮
This commit is contained in:
parent
bd849ff724
commit
b149d58e27
@ -383,6 +383,7 @@
|
||||
<div
|
||||
style="display: flex; justify-content: space-between; align-items: center"
|
||||
@click="goToWithdraw"
|
||||
v-if="currentAmount.availableAmount >= 10"
|
||||
>
|
||||
<div>Go to withdraw</div>
|
||||
<img src="/src/assets/icon/arrowWhite.png" alt="" style="width: 1em; display: block" />
|
||||
@ -888,7 +889,7 @@ const ranking = ref([]) //奖品排名
|
||||
const activeIndex = ref(-1) // 当前高亮格子
|
||||
const isRolling = ref(false) // 抽奖状态
|
||||
const rollTimes = ref(0) // 拥有抽奖券量
|
||||
const currentAmount = ref(0) //可提现金额
|
||||
const currentAmount = ref({ availableAmount: 0 }) //可提现金额
|
||||
const result = ref([]) // 抽奖结果
|
||||
const resultShowIndex = ref(0)
|
||||
const myRecords = ref([]) // 抽奖结果
|
||||
@ -1396,8 +1397,6 @@ const getDrawableAmount = async () => {
|
||||
const resDrawableAmount = await withdrawableAmount(activityId.value)
|
||||
if (resDrawableAmount.status && resDrawableAmount.body) {
|
||||
currentAmount.value = resDrawableAmount.body
|
||||
} else {
|
||||
currentAmount.value = 0
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user