抽奖修改
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 125 KiB After Width: | Height: | Size: 34 KiB |
@@ -13,7 +13,7 @@
|
||||
<div class="lottery-name" v-show="activePrizeData.prize_code !== 'NO'">{{ activePrizeData.name }}</div>
|
||||
<div class="lottery-btngroup" v-show="btngroupShow">
|
||||
<div class="btn-more" @click="handleBtnMore"></div>
|
||||
<div class="btn-kaixin" @click="handleLotteryAction"></div>
|
||||
<div class="btn-kaixin" @click="handleLotteryAction" v-if="activePrizeData.prize_code !== 'NO'"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -110,7 +110,7 @@ watch(() => props.show, async (newVal) => {
|
||||
let lottteryResult = null
|
||||
|
||||
if (props.type === 'draw') {
|
||||
// lottteryResult = await Request("lottery/draw", { pool: 'game', consume_type: 'points' })
|
||||
lottteryResult = await Request("lottery/draw", { pool: 'game', consume_type: 'points' })
|
||||
}
|
||||
// const userPicture = await getUserPicture()
|
||||
|
||||
@@ -130,16 +130,16 @@ watch(() => props.show, async (newVal) => {
|
||||
|
||||
// const lottteryResult = await Request("lottery/draw", { pool: 'game', consume_type: 'points' })
|
||||
// TODO: 测试数据
|
||||
lottteryResult = {
|
||||
res: { status: 200 },
|
||||
json: {
|
||||
id: 0,
|
||||
code: "LZ_ZQ_DZJ",
|
||||
prize_code: 'LZ_ZQ_DZJ',
|
||||
coupon_type: "scene",
|
||||
name: "泸州老窖的一瓶酒"
|
||||
}
|
||||
}
|
||||
// lottteryResult = {
|
||||
// res: { status: 200 },
|
||||
// json: {
|
||||
// id: 0,
|
||||
// code: "xxx",
|
||||
// prize_code: 'xxx',
|
||||
// coupon_type: "scene",
|
||||
// name: "泸州老窖的一瓶酒"
|
||||
// }
|
||||
// }
|
||||
|
||||
loading.hide()
|
||||
|
||||
@@ -239,6 +239,8 @@ onUnmounted(() => {
|
||||
}
|
||||
|
||||
.lottery-image.USER_NO {
|
||||
background-size: 60% auto;
|
||||
background-position: center center;
|
||||
background-image: url("../assets/images/USER_NO.webp");
|
||||
}
|
||||
|
||||
@@ -327,7 +329,7 @@ onUnmounted(() => {
|
||||
bottom: -24vw;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
justify-content: space-evenly;
|
||||
}
|
||||
|
||||
.btn-more {
|
||||
|
||||
Reference in New Issue
Block a user