Files
miniwx/components/qrcode-modal/qrcode-modal.wxss
T
ws 0c6b7fcace feat: 实现微信小程序码生成功能
- 新增 pages/scan/result/ 扫码结果页,展示预约详情
- 实现微信小程序码生成(wxacode.getUnlimited)
- 添加环境版本自动检测(release/trial/develop)
- 优化 qrcode-modal 组件,使用 Base64 图片替代本地生成
- 统一 API 接口抽离到 api.js 和 config.js
- 优化代码结构,提升可读性和维护性

主要变更:
1. utils/api.js: 新增 getWxacode() 接口,支持生成小程序码
2. components/qrcode-modal: 改用 API 生成小程序码,移除本地 QRCode 依赖
3. pages/scan/result: 新增扫码结果展示页,解析 scene 参数
4. utils/config.js: 新增 WXACODE 配置项
2026-04-27 18:36:04 +08:00

91 lines
1.5 KiB
Plaintext

.qrcode-modal {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(44, 62, 80, 0.4);
display: flex;
align-items: center;
justify-content: center;
z-index: 100;
}
.qrcode-container {
background: #ffffff;
border-radius: 32rpx;
padding: 48rpx 64rpx;
display: flex;
flex-direction: column;
align-items: center;
box-shadow: 0 16rpx 48rpx rgba(91, 155, 213, 0.2);
}
.qrcode-title {
font-size: 34rpx;
font-weight: 600;
color: #2c3e50;
margin-bottom: 32rpx;
letter-spacing: 4rpx;
}
.qrcode-image-wrap {
position: relative;
width: 400rpx;
height: 400rpx;
border: 1rpx solid #e8eef5;
border-radius: 16rpx;
overflow: hidden;
background: #ffffff;
display: flex;
align-items: center;
justify-content: center;
}
.qrcode-image {
width: 400rpx;
height: 400rpx;
}
.qrcode-loading {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: flex;
align-items: center;
justify-content: center;
background: #ffffff;
}
.qrcode-spinner {
width: 48rpx;
height: 48rpx;
border: 4rpx solid #dbeafe;
border-top: 4rpx solid #5b9bd5;
border-radius: 50%;
animation: qrcode-spin 0.8s linear infinite;
}
@keyframes qrcode-spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
.qrcode-id {
font-size: 22rpx;
color: #7f8fa6;
margin-top: 24rpx;
word-break: break-all;
text-align: center;
letter-spacing: 1rpx;
}
.qrcode-tip {
font-size: 22rpx;
color: #b8c9db;
margin-top: 12rpx;
letter-spacing: 1rpx;
}