From 9960795e11f6e70d6580e204e2b72dc66a2dd533 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E9=A3=9E=E6=B4=8B?= <15778543+xufeiyang6017@user.noreply.gitee.com> Date: Thu, 4 Dec 2025 11:09:14 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E4=B8=80=E6=89=80=E6=9C=89=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E7=9A=84=E6=8E=88=E6=9D=83=E7=99=BB=E5=BD=95=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/buyer/goods-detail.js | 0 pages/buyer/goods-detail.json | 0 pages/buyer/goods-detail.wxml | 0 pages/buyer/goods-detail.wxss | 0 pages/buyer/index.wxml | 36 ++++++++------------ pages/buyer/index.wxss | 63 +++++++++++++++++++++++++++++++++++ pages/index/index.wxml | 40 ++++++++-------------- pages/index/index.wxss | 50 ++++++++++++++++++--------- pages/seller/index.wxml | 12 ++----- pages/seller/index.wxss | 47 +++++++++++--------------- pages/settlement/index.js | 14 ++++++++ pages/settlement/index.wxml | 39 +++++++++++----------- pages/settlement/index.wxss | 63 +++++++++++++++++++++++++++-------- 13 files changed, 230 insertions(+), 134 deletions(-) create mode 100644 pages/buyer/goods-detail.js create mode 100644 pages/buyer/goods-detail.json create mode 100644 pages/buyer/goods-detail.wxml create mode 100644 pages/buyer/goods-detail.wxss diff --git a/pages/buyer/goods-detail.js b/pages/buyer/goods-detail.js new file mode 100644 index 0000000..e69de29 diff --git a/pages/buyer/goods-detail.json b/pages/buyer/goods-detail.json new file mode 100644 index 0000000..e69de29 diff --git a/pages/buyer/goods-detail.wxml b/pages/buyer/goods-detail.wxml new file mode 100644 index 0000000..e69de29 diff --git a/pages/buyer/goods-detail.wxss b/pages/buyer/goods-detail.wxss new file mode 100644 index 0000000..e69de29 diff --git a/pages/buyer/index.wxml b/pages/buyer/index.wxml index d9d22aa..74c404d 100644 --- a/pages/buyer/index.wxml +++ b/pages/buyer/index.wxml @@ -137,33 +137,25 @@ - - - - 提示 - - - 请先登录后再预约商品 - - - - + + + 提示 + 请先登录后再操作 + + + - - - - 授权登录 - - - 请授权获取您的手机号用于登录 - - - - + + + 授权登录 + 请授权获取您的手机号用于登录 + + + diff --git a/pages/buyer/index.wxss b/pages/buyer/index.wxss index f2a7f32..a4bd8c9 100644 --- a/pages/buyer/index.wxss +++ b/pages/buyer/index.wxss @@ -475,4 +475,67 @@ button:after { height: 32vh; width: 100%; box-sizing: border-box; +} + +/* 统一登录授权弹窗样式 */ +.auth-modal-overlay { + position: fixed; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-color: rgba(0, 0, 0, 0.5); + display: flex; + justify-content: center; + align-items: center; + z-index: 1002; +} + +.auth-modal-container { + background-color: #fff; + border-radius: 20rpx; + width: 80%; + max-width: 500rpx; + padding: 40rpx; + box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.15); +} + +.auth-modal-title { + font-size: 36rpx; + font-weight: bold; + color: #333; + text-align: center; + margin-bottom: 30rpx; +} + +.auth-modal-content { + font-size: 32rpx; + line-height: 1.5; + color: #666; + text-align: center; + margin-bottom: 40rpx; +} + +.auth-modal-buttons { + display: flex; + flex-direction: column; + gap: 20rpx; +} + +.auth-primary-button { + background-color: #1677ff; + color: #fff; + font-size: 32rpx; + line-height: 1.5; + border-radius: 8rpx; + padding: 20rpx 0; +} + +.auth-cancel-button { + background-color: #f5f5f5; + color: #666; + font-size: 32rpx; + line-height: 1.5; + border-radius: 8rpx; + padding: 20rpx 0; } \ No newline at end of file diff --git a/pages/index/index.wxml b/pages/index/index.wxml index 7466c01..a07ec97 100644 --- a/pages/index/index.wxml +++ b/pages/index/index.wxml @@ -19,37 +19,25 @@ - - - - 提示 - - - 您还没有授权登录 - - - - + + + 提示 + 请先登录后再操作 + + + - - - - 授权登录 - - - 请授权获取您的手机号用于登录 - - - - + + + 授权登录 + 请授权获取您的手机号用于登录 + + + diff --git a/pages/index/index.wxss b/pages/index/index.wxss index e792b37..8568058 100644 --- a/pages/index/index.wxss +++ b/pages/index/index.wxss @@ -109,7 +109,7 @@ page { } /* 弹窗样式 */ -.modal-overlay { +.auth-modal-overlay { position: fixed; top: 0; left: 0; @@ -119,38 +119,56 @@ page { display: flex; justify-content: center; align-items: center; - z-index: 999; + z-index: 1002; } -.modal-container { - background-color: white; - border-radius: 16rpx; +.auth-modal-container { + background-color: #fff; + border-radius: 20rpx; width: 80%; + max-width: 500rpx; padding: 40rpx; + box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.15); } -.modal-title { - text-align: center; - margin-bottom: 30rpx; -} - -.modal-title text { +.auth-modal-title { font-size: 36rpx; font-weight: bold; + color: #333; + text-align: center; + margin-bottom: 30rpx; } -.modal-content { +.auth-modal-content { + font-size: 32rpx; + line-height: 1.5; + color: #666; text-align: center; margin-bottom: 40rpx; - color: #666; } -.modal-content text { +.auth-modal-buttons { + display: flex; + flex-direction: column; + gap: 20rpx; +} + +.auth-primary-button { + background-color: #1677ff; + color: #fff; font-size: 32rpx; + line-height: 1.5; + border-radius: 8rpx; + padding: 20rpx 0; } -.modal-buttons { - text-align: center; +.auth-cancel-button { + background-color: #f5f5f5; + color: #666; + font-size: 32rpx; + line-height: 1.5; + border-radius: 8rpx; + padding: 20rpx 0; } .primary-button { diff --git a/pages/seller/index.wxml b/pages/seller/index.wxml index d7fa512..d81f1dc 100644 --- a/pages/seller/index.wxml +++ b/pages/seller/index.wxml @@ -803,16 +803,10 @@ - - 提示 - - - 您还没有授权登录 - + 提示 + 请先登录后再操作 - + diff --git a/pages/seller/index.wxss b/pages/seller/index.wxss index ddf5b6f..5daf727 100644 --- a/pages/seller/index.wxss +++ b/pages/seller/index.wxss @@ -529,38 +529,35 @@ button { left: 0; right: 0; bottom: 0; - background-color: rgba(0, 0, 0, 0.5); + background: rgba(0, 0, 0, 0.5); display: flex; justify-content: center; align-items: center; - z-index: 999; + z-index: 9999; } .auth-modal-container { - background-color: white; + background: white; + padding: 40rpx; border-radius: 16rpx; width: 80%; - padding: 40rpx; -} - -.auth-modal-title { + max-width: 500rpx; text-align: center; - margin-bottom: 30rpx; + box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.1); } -.auth-modal-title text { - font-size: 36rpx; +.auth-modal-title { + font-size: 32rpx; font-weight: bold; + margin-bottom: 30rpx; + color: #333; } .auth-modal-content { - text-align: center; - margin-bottom: 40rpx; + font-size: 28rpx; color: #666; -} - -.auth-modal-content text { - font-size: 32rpx; + margin-bottom: 40rpx; + line-height: 1.5; } .auth-modal-buttons { @@ -570,22 +567,18 @@ button { .auth-primary-button { background-color: #1677ff; color: white; - width: 100%; + font-size: 28rpx; + line-height: 80rpx; border-radius: 8rpx; margin-bottom: 20rpx; - border: none; - font-size: 32rpx; - font-weight: 600; - text-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.2); } .auth-cancel-button { - background: none; - color: #666; - border: none; - font-size: 32rpx; - font-weight: 600; - text-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.1); + background-color: #f5f5f5; + color: #333; + font-size: 28rpx; + line-height: 80rpx; + border-radius: 8rpx; } /* 头像选择样式 */ diff --git a/pages/settlement/index.js b/pages/settlement/index.js index 9bc1034..9d339db 100644 --- a/pages/settlement/index.js +++ b/pages/settlement/index.js @@ -37,6 +37,7 @@ Page({ // 登录弹窗相关 showAuthModal: false, + showOneKeyLoginModal: false, loginModalTitle: '请先登录', loginModalContent: '为了您的账户安全,请先完成手机号登录', showLoginButton: true @@ -825,6 +826,19 @@ Page({ }); }, + // 显示一键登录弹窗 + showOneKeyLogin() { + this.setData({ + showAuthModal: false, + showOneKeyLoginModal: true + }) + }, + + // 关闭一键登录弹窗 + closeOneKeyLoginModal() { + this.setData({ showOneKeyLoginModal: false }) + }, + // 处理手机号授权 async onGetPhoneNumber(e) { console.log('用户点击了手机号授权按钮', e.detail); diff --git a/pages/settlement/index.wxml b/pages/settlement/index.wxml index 46fc908..63e07e5 100644 --- a/pages/settlement/index.wxml +++ b/pages/settlement/index.wxml @@ -341,27 +341,26 @@ - - - - - 登录授权 - × + + + + 提示 + 请先登录后再操作 + + + - - 📱 - 为了提供更好的服务,需要获取您的手机号进行身份验证 - - - - - 授权后即可完成入驻申请 + + + + + + + 授权登录 + 请授权获取您的手机号用于登录 + + + \ No newline at end of file diff --git a/pages/settlement/index.wxss b/pages/settlement/index.wxss index 2eae155..5a46991 100644 --- a/pages/settlement/index.wxss +++ b/pages/settlement/index.wxss @@ -1552,28 +1552,63 @@ picker { } /* 登录授权弹窗 */ -.auth-modal { +/* 统一的授权登录弹窗样式 */ +.auth-modal-overlay { position: fixed; top: 0; left: 0; - width: 100%; - height: 100%; - background-color: rgba(0, 0, 0, 0.5); - z-index: 1002; + right: 0; + bottom: 0; + background: rgba(0, 0, 0, 0.5); display: flex; justify-content: center; align-items: center; + z-index: 9999; } -.auth-content { - background-color: white; - border-radius: 20rpx; - width: 85%; - max-width: 520rpx; - overflow: hidden; - display: flex; - flex-direction: column; - animation: modalSlideIn 0.3s ease-out; +.auth-modal-container { + background: white; + padding: 40rpx; + border-radius: 16rpx; + width: 80%; + max-width: 500rpx; + text-align: center; + box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.1); +} + +.auth-modal-title { + font-size: 32rpx; + font-weight: bold; + margin-bottom: 30rpx; + color: #333; +} + +.auth-modal-content { + font-size: 28rpx; + color: #666; + margin-bottom: 40rpx; + line-height: 1.5; +} + +.auth-modal-buttons { + text-align: center; +} + +.auth-primary-button { + background-color: #1677ff; + color: white; + font-size: 28rpx; + line-height: 80rpx; + border-radius: 8rpx; + margin-bottom: 20rpx; +} + +.auth-cancel-button { + background-color: #f5f5f5; + color: #333; + font-size: 28rpx; + line-height: 80rpx; + border-radius: 8rpx; } @keyframes modalSlideIn {