liufumingren e8605149c0 初始化
2026-08-06 17:04:35 +08:00

70 lines
2.0 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>微信授权</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
font-family: Arial, sans-serif;
text-align: center;
padding: 50px;
}
.container {
max-width: 600px;
margin: 0 auto;
padding: 20px;
border: 1px solid #ddd;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.btn {
display: inline-block;
padding: 15px 30px;
font-size: 18px;
color: white;
background-color: #07c160;
border: none;
border-radius: 5px;
text-decoration: none;
cursor: pointer;
margin: 20px 0;
}
.btn:hover {
background-color: #06ad56;
}
.info {
margin: 20px 0;
padding: 15px;
background-color: #f8f9fa;
border-radius: 5px;
}
</style>
</head>
<body>
<div class="container">
<h2>微信授权</h2>
<div class="info">
<p>应用ID:{$appid|default='新应用授权'}</p>
<p>授权类型:{$type == 3 ? '所有权限' : '部分权限'}</p>
</div>
<a href="{$authUrl}" class="btn">点击前往微信授权</a>
<div style="margin-top: 30px; color: #666; font-size: 14px;">
<p>授权说明:</p>
<p>1. 点击上方按钮跳转到微信授权页面</p>
<p>2. 在微信页面确认授权给第三方平台</p>
<p>3. 授权成功后会自动返回</p>
</div>
</div>
<script>
// 如果是微信内置浏览器,直接跳转
if (/MicroMessenger/i.test(navigator.userAgent)) {
window.location.href = '{$authUrl}';
}
</script>
</body>
</html>