新增小程序原生订阅消息授权页,在用户点击后请求生成结果通知授权。 拼图 compile_puzzle_draft 前等待授权页返回或跳过后再发起生成 action。 移除 web-view message 订阅授权路径,改用 storage/hash 回写订阅结果。 补充订阅授权测试、文档和团队踩坑记录。
59 lines
1006 B
Plaintext
59 lines
1006 B
Plaintext
.subscribe-screen {
|
|
min-height: 100vh;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 48rpx;
|
|
background: #0b0f14;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.subscribe-card {
|
|
width: 100%;
|
|
max-width: 560rpx;
|
|
padding: 36rpx;
|
|
border: 1rpx solid rgba(255, 255, 255, 0.14);
|
|
border-radius: 12rpx;
|
|
background: rgba(255, 255, 255, 0.06);
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.subscribe-title {
|
|
font-size: 34rpx;
|
|
font-weight: 600;
|
|
line-height: 1.35;
|
|
color: #f5f7fb;
|
|
}
|
|
|
|
.subscribe-text {
|
|
margin-top: 16rpx;
|
|
font-size: 26rpx;
|
|
line-height: 1.55;
|
|
color: rgba(245, 247, 251, 0.72);
|
|
}
|
|
|
|
.subscribe-text--danger {
|
|
color: #ffb4a9;
|
|
}
|
|
|
|
.primary-button,
|
|
.ghost-button {
|
|
margin-top: 28rpx;
|
|
width: 100%;
|
|
border-radius: 8rpx;
|
|
font-size: 26rpx;
|
|
line-height: 2.6;
|
|
}
|
|
|
|
.primary-button {
|
|
background: #f5f7fb;
|
|
color: #0b0f14;
|
|
}
|
|
|
|
.ghost-button {
|
|
margin-top: 20rpx;
|
|
border: 1rpx solid rgba(255, 255, 255, 0.24);
|
|
background: transparent;
|
|
color: rgba(245, 247, 251, 0.86);
|
|
}
|