diff --git a/frontend/src/components-mobile/bet/BetListMobile.vue b/frontend/src/components-mobile/bet/BetListMobile.vue new file mode 100644 index 0000000..347ea80 --- /dev/null +++ b/frontend/src/components-mobile/bet/BetListMobile.vue @@ -0,0 +1,410 @@ + + + + + + + + + + + + 加载中... + + + + + + {{ currentBet.status === 'open' ? '下注中' : currentBet.status === 'closed' ? '待结算' : '已结算' }} + + 范围 {{ currentBet.minStake }}-{{ currentBet.maxStake }} 积分 + + + {{ currentBet.description }} + + + + + {{ opt.content }} + 🏆 胜出 + + + {{ optionEntryCount(opt.id) }} 注 + {{ optionTotalStake(opt.id) }} 积分 + + + + + + + + {{ myEntry()?.won ? `🎉 你赢了!` : '本次未中奖' }} + + + + + + + 关闭下注 + + + 结算 + + + + + + + + + + 发起竞猜 + + + + + + + + + + + + + {{ bet.status === 'open' ? '下注中' : bet.status === 'closed' ? '待结算' : '已结算' }} + + {{ bet.minStake }}-{{ bet.maxStake }} 积分 + + {{ bet.title }} + + + + + + + + + + + {{ stakeAmount }} + 积分 + + + + + 确认下注 + + + + + + + + + 发起竞猜 + + + + + + + + + + + + + + + 创建 + + + + + + + + + + {{ opt.content }} + + + 确认结算 + + + + + + + diff --git a/frontend/src/components-mobile/poll/PollListMobile.vue b/frontend/src/components-mobile/poll/PollListMobile.vue new file mode 100644 index 0000000..377bab9 --- /dev/null +++ b/frontend/src/components-mobile/poll/PollListMobile.vue @@ -0,0 +1,463 @@ + + + + + + + + + + + + 加载中... + + + + + + {{ currentPoll.status === 'settled' ? '已结算' : '进行中' }} + + {{ votes.length }} 人参与 · {{ timeAgo(currentPoll.created) }} + + + + + + + + + {{ opt.content }} + {{ optionVoteCount(opt.id) }} 票 + + + + + + + 结算投票 + + + + + + + + + + 发起投票 + + + + + + + + + + + + + {{ poll.status === 'settled' ? '已结算' : '进行中' }} + + {{ timeAgo(poll.created) }} + + {{ poll.title }} + + + + + + + + + + 发起投票 + + + + + + 选项投票 + 点名 + + + + + + + + + + + + + + 创建 + + + + + + + + diff --git a/frontend/src/views-mobile/GroupViewMobile.vue b/frontend/src/views-mobile/GroupViewMobile.vue index 6a4b147..6ecbe66 100644 --- a/frontend/src/views-mobile/GroupViewMobile.vue +++ b/frontend/src/views-mobile/GroupViewMobile.vue @@ -8,6 +8,8 @@ import { useGroupStore } from '@/stores/group' import { pb } from '@/api/pocketbase' import ActivityFeedMobile from '@/components-mobile/group/ActivityFeedMobile.vue' import MemberListMobile from '@/components-mobile/group/MemberListMobile.vue' +import PollListMobile from '@/components-mobile/poll/PollListMobile.vue' +import BetListMobile from '@/components-mobile/bet/BetListMobile.vue' import Placeholder from '@/views-mobile/Placeholder.vue' import { Wallet, Box, Warning } from '@element-plus/icons-vue' @@ -123,7 +125,10 @@ function goBlacklist() { - + + + +
{{ currentBet.description }}