From 0e174f220bf20a92ec4a8899fd7d2a83e6794eeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=96=B9=E6=88=90?= Date: Sun, 21 Dec 2025 23:45:11 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E6=89=AB=E9=9B=B7?= =?UTF-8?q?=E6=B8=B8=E6=88=8F=E5=8A=9F=E8=83=BD=E5=B9=B6=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增扫雷游戏页面和组件 - 更新首页游戏入口为扫雷挑战 - 添加测试登录按钮用于开发环境 - 修改请求基础URL为本地开发环境 - 在订单详情页添加抽奖凭证展示 --- components/MatchingGame.vue | 248 ++++++++++++++++++++++++++ pages.json | 8 + pages/activity/pata/index.vue | 324 +++++++--------------------------- pages/game/webview.vue | 58 ++++++ pages/index/index.vue | 8 +- pages/login/index.vue | 13 ++ pages/orders/detail.vue | 89 +++++++++- utils/request.js | 2 +- 8 files changed, 487 insertions(+), 263 deletions(-) create mode 100644 components/MatchingGame.vue create mode 100644 pages/game/webview.vue diff --git a/components/MatchingGame.vue b/components/MatchingGame.vue new file mode 100644 index 0000000..82d23e8 --- /dev/null +++ b/components/MatchingGame.vue @@ -0,0 +1,248 @@ + + + + + diff --git a/pages.json b/pages.json index 2cc619d..048a7e5 100644 --- a/pages.json +++ b/pages.json @@ -114,6 +114,14 @@ "navigationBarTitleText": "爬塔" } }, + { + "path": "pages/game/webview", + "style": { + "navigationBarTitleText": "游戏挑战", + "navigationBarBackgroundColor": "#000000", + "navigationBarTextStyle": "white" + } + }, { "path": "pages/register/register", "style": { diff --git a/pages/activity/pata/index.vue b/pages/activity/pata/index.vue index 2084ac2..7f25c2f 100644 --- a/pages/activity/pata/index.vue +++ b/pages/activity/pata/index.vue @@ -9,8 +9,8 @@ - {{ detail.name || detail.title || '爬塔挑战' }} - 层层突围 赢取大奖 + 扫雷挑战 + 福利放送 智勇通关 规则 @@ -20,225 +20,101 @@ 当前挑战 - {{ currentIssueTitle || '第1层' }} + 扫雷福利局 进行中 - - - - - - {{ r.title }} - 概率 {{ r.percent }}% - - + + + 剩余挑战次数 + {{ remainingTimes }} - - ¥ - {{ (Number(detail.price_draw || 0) / 100).toFixed(2) }} - /次 - - - - - - - - - - - - - diff --git a/pages/index/index.vue b/pages/index/index.vue index df7f20f..2b2440c 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -77,10 +77,10 @@ - - 爬塔 - 层层挑战 - + + 扫雷 + 福利挑战 + diff --git a/pages/login/index.vue b/pages/login/index.vue index 32626e2..3530895 100644 --- a/pages/login/index.vue +++ b/pages/login/index.vue @@ -58,6 +58,11 @@ + + + 没有账号?立即注册 @@ -389,6 +394,14 @@ function onGetPhoneNumber(e) { margin-bottom: $spacing-xl; border: none; } + +.test-login-btn { + background: #555; + color: #fff; + margin-bottom: $spacing-xl; + border: none; + font-size: 28rpx; +} .btn-shine { position: absolute; top: 0; left: -100%; diff --git a/pages/orders/detail.vue b/pages/orders/detail.vue index 84efc1c..8f65b4a 100644 --- a/pages/orders/detail.vue +++ b/pages/orders/detail.vue @@ -118,6 +118,54 @@ + + + + + 抽奖凭证 + ? + + + + 算法版本 + {{ receipt.algo_version }} + + + 服务端种子哈希 + + {{ receipt.server_seed_hash }} + 复制 + + + + 子种子 + + {{ receipt.server_sub_seed }} + 复制 + + + + 客户端种子 + {{ receipt.client_seed }} + + + 抽奖ID + {{ receipt.draw_id }} + + + 时间戳 + {{ receipt.timestamp }} + + + 期次ID + {{ receipt.round_id }} + + + + 🔒 + 以上数据可用于验证抽奖结果的公正性 + + @@ -295,6 +343,14 @@ function getSourceTypeText(type) { if (type === 3) return '发奖记录' return '其他' } + +function showProofHelp() { + uni.showModal({ + title: '抽奖凭证说明', + content: '该凭证包含本次抽奖的随机种子和参数,可用于验证抽奖的公平性。您可以复制相关数据,自行进行核验。', + showCancel: false + }) +} diff --git a/utils/request.js b/utils/request.js index c19f415..0475d30 100644 --- a/utils/request.js +++ b/utils/request.js @@ -1,4 +1,4 @@ -const BASE_URL = 'https://mini-chat.1024tool.vip' +const BASE_URL = 'http://localhost:9991' let authModalShown = false