diff --git a/src/assets/images/Lottery/backGift.png b/src/assets/images/Lottery/backGift.png new file mode 100644 index 0000000..3c99fc9 Binary files /dev/null and b/src/assets/images/Lottery/backGift.png differ diff --git a/src/assets/images/Lottery/bg.png b/src/assets/images/Lottery/bg.png new file mode 100644 index 0000000..4670531 Binary files /dev/null and b/src/assets/images/Lottery/bg.png differ diff --git a/src/assets/images/Lottery/cashBt.png b/src/assets/images/Lottery/cashBt.png new file mode 100644 index 0000000..2d3e06d Binary files /dev/null and b/src/assets/images/Lottery/cashBt.png differ diff --git a/src/assets/images/Lottery/cashBtActive.png b/src/assets/images/Lottery/cashBtActive.png new file mode 100644 index 0000000..a374a5d Binary files /dev/null and b/src/assets/images/Lottery/cashBtActive.png differ diff --git a/src/assets/images/Lottery/done.png b/src/assets/images/Lottery/done.png new file mode 100644 index 0000000..7fa36e4 Binary files /dev/null and b/src/assets/images/Lottery/done.png differ diff --git a/src/assets/images/Lottery/gift.png b/src/assets/images/Lottery/gift.png new file mode 100644 index 0000000..939e2b3 Binary files /dev/null and b/src/assets/images/Lottery/gift.png differ diff --git a/src/assets/images/Lottery/giftLeft.png b/src/assets/images/Lottery/giftLeft.png new file mode 100644 index 0000000..1af046e Binary files /dev/null and b/src/assets/images/Lottery/giftLeft.png differ diff --git a/src/assets/images/Lottery/giftRight.png b/src/assets/images/Lottery/giftRight.png new file mode 100644 index 0000000..56562ab Binary files /dev/null and b/src/assets/images/Lottery/giftRight.png differ diff --git a/src/assets/images/Lottery/goToTask.png b/src/assets/images/Lottery/goToTask.png new file mode 100644 index 0000000..7009cac Binary files /dev/null and b/src/assets/images/Lottery/goToTask.png differ diff --git a/src/assets/images/Lottery/invite.png b/src/assets/images/Lottery/invite.png new file mode 100644 index 0000000..aaa6888 Binary files /dev/null and b/src/assets/images/Lottery/invite.png differ diff --git a/src/assets/images/Lottery/lotteryBt.png b/src/assets/images/Lottery/lotteryBt.png new file mode 100644 index 0000000..38e8863 Binary files /dev/null and b/src/assets/images/Lottery/lotteryBt.png differ diff --git a/src/assets/images/Lottery/lotteryBtActive.png b/src/assets/images/Lottery/lotteryBtActive.png new file mode 100644 index 0000000..7edb705 Binary files /dev/null and b/src/assets/images/Lottery/lotteryBtActive.png differ diff --git a/src/assets/images/Lottery/nextGift.png b/src/assets/images/Lottery/nextGift.png new file mode 100644 index 0000000..2645041 Binary files /dev/null and b/src/assets/images/Lottery/nextGift.png differ diff --git a/src/assets/images/Lottery/pageTitle.png b/src/assets/images/Lottery/pageTitle.png new file mode 100644 index 0000000..d1b3864 Binary files /dev/null and b/src/assets/images/Lottery/pageTitle.png differ diff --git a/src/assets/images/Lottery/rankingBt.png b/src/assets/images/Lottery/rankingBt.png new file mode 100644 index 0000000..41dd84f Binary files /dev/null and b/src/assets/images/Lottery/rankingBt.png differ diff --git a/src/assets/images/Lottery/rankingBtActive.png b/src/assets/images/Lottery/rankingBtActive.png new file mode 100644 index 0000000..8faade1 Binary files /dev/null and b/src/assets/images/Lottery/rankingBtActive.png differ diff --git a/src/assets/images/Lottery/receive.png b/src/assets/images/Lottery/receive.png new file mode 100644 index 0000000..49fbacc Binary files /dev/null and b/src/assets/images/Lottery/receive.png differ diff --git a/src/assets/images/Lottery/rewardBg.png b/src/assets/images/Lottery/rewardBg.png new file mode 100644 index 0000000..fba9d81 Binary files /dev/null and b/src/assets/images/Lottery/rewardBg.png differ diff --git a/src/assets/images/Lottery/rewardConfirm.png b/src/assets/images/Lottery/rewardConfirm.png new file mode 100644 index 0000000..900ffe2 Binary files /dev/null and b/src/assets/images/Lottery/rewardConfirm.png differ diff --git a/src/assets/images/Lottery/spin1.png b/src/assets/images/Lottery/spin1.png new file mode 100644 index 0000000..8adeaf6 Binary files /dev/null and b/src/assets/images/Lottery/spin1.png differ diff --git a/src/assets/images/Lottery/spin10.png b/src/assets/images/Lottery/spin10.png new file mode 100644 index 0000000..e4f6b54 Binary files /dev/null and b/src/assets/images/Lottery/spin10.png differ diff --git a/src/assets/images/Lottery/talking.png b/src/assets/images/Lottery/talking.png new file mode 100644 index 0000000..2442310 Binary files /dev/null and b/src/assets/images/Lottery/talking.png differ diff --git a/src/assets/images/Lottery/ticket.png b/src/assets/images/Lottery/ticket.png new file mode 100644 index 0000000..d2887ea Binary files /dev/null and b/src/assets/images/Lottery/ticket.png differ diff --git a/src/assets/images/Lottery/turnTable.png b/src/assets/images/Lottery/turnTable.png new file mode 100644 index 0000000..7be797e Binary files /dev/null and b/src/assets/images/Lottery/turnTable.png differ diff --git a/src/router/index.js b/src/router/index.js index 9886621..0767ab5 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -245,6 +245,12 @@ const router = createRouter({ component: () => import('../views/Invitation/InvitationToRegister.vue'), meta: { requiresAuth: true }, }, + { + path: '/lottery', + name: 'lottery', + component: () => import('../views/Activities/Lottery/Lottery.vue'), + meta: { requiresAuth: true }, + }, ], }) diff --git a/src/utils/permissionManager.js b/src/utils/permissionManager.js index 9dcf56d..d93df98 100644 --- a/src/utils/permissionManager.js +++ b/src/utils/permissionManager.js @@ -119,6 +119,7 @@ export const ROLE_PERMISSIONS = { '/halloween', //万圣节活动页面 '/recharge-agency-recruit', //充值代理介绍页面 '/invitation-to-register', //邀请新用户注册页面 + '/lottery', // 抽奖活动页面 ], // 加载页面 diff --git a/src/utils/routeGuard.js b/src/utils/routeGuard.js index 8aff5ee..c39b01e 100644 --- a/src/utils/routeGuard.js +++ b/src/utils/routeGuard.js @@ -410,6 +410,7 @@ class RouteGuard { '/halloween', //万圣节活动页面 '/recharge-agency-recruit', //充值代理介绍页面 '/invitation-to-register', //邀请新用户注册页面 + '/lottery', // 抽奖活动页面 ] return publicPages.includes(path) } diff --git a/src/views/Activities/Lottery/Lottery.vue b/src/views/Activities/Lottery/Lottery.vue new file mode 100644 index 0000000..ddd4921 --- /dev/null +++ b/src/views/Activities/Lottery/Lottery.vue @@ -0,0 +1,946 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + Ranking + + + 999 + + + asdfadsfasfasfda + + + + + + 99999 + + + + + + + + + + + + + Nanfangjianasdfasdfasdfasdf + + Current amount:$1 + + + Only $9 left to withdraw $10.00 + + + + + + + Transfer to others + + + + + + + + + + + + + + + + {{ selectedPayee.name || '' }} + + + ID: {{ selectedPayee.account || '' }} + + + + + Change + + + + + + + + + + + + + Search + + + + + + + + ${{ coin.price }} + + + + + + + Transfer + + + + + + + + + + + + + + {{ prize.value }} + + + + + + + + + + + + + + + + + + + + + Current raffle tickets:{{ rollTimes }} + History + + + + + Task for Spins + + + + + + + + + + {{ task.title }} + + + *1 + + + + + + + + + + + + + + + + + 999 + + + asdfadsfasfasfda + + + + + + 99999 + + + + + + + + + + + + + + + + + + + + + + + + You Get {{ result[resultShowIndex]?.value }} + + {{ resultShowIndex + 1 }} / {{ result.length }} + + + + + + + + + + + + +