| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- <template>
- <!-- 聊天卡片核心内容 -->
- <div class="login-card">
- <h3 class="card-title">请完成身份登录</h3>
- <p class="card-desc">为保障你的使用安全,需要验证身份后才能继续使用服务</p>
- <!-- 点击跳转登录页,替换 href 为你的登录链接即可 -->
- <a href="javascript:alert('跳转到登录页面');" class="login-btn">立即登录</a>
- </div>
- </template>
- <script>
- export default {
- methods: {
- handleLogin() {
- alert('跳转到登录页面')
- }
- }
- }
- </script>
- <style scoped>
- /* 基础样式 - 适配聊天卡片,无多余边距 */
- * {
- margin: 0;
- padding: 0;
- box-sizing: border-box;
- font-family:
- -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
- }
- /* 聊天卡片主体容器 */
- .login-card {
- width: 100%;
- max-width: 320px; /* 聊天界面标准宽度 */
- background: #ffffff;
- border-radius: 12px;
- padding: 20px;
- box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
- border: 1px solid #f0f0f0;
- }
- /* 标题样式 */
- .card-title {
- font-size: 16px;
- font-weight: 600;
- color: #333333;
- margin-bottom: 8px;
- text-align: center;
- }
- /* 提示文字 */
- .card-desc {
- font-size: 14px;
- color: #666666;
- text-align: center;
- line-height: 1.5;
- margin-bottom: 20px;
- }
- /* 登录按钮 */
- .login-btn {
- display: block;
- width: 100%;
- height: 42px;
- line-height: 42px;
- background: #007aff; /* 主流聊天工具主色调 */
- color: #ffffff;
- text-align: center;
- border-radius: 8px;
- font-size: 15px;
- font-weight: 500;
- text-decoration: none;
- transition: background 0.2s ease;
- border: none;
- cursor: pointer;
- }
- .login-btn:hover {
- background: #0066cc;
- }
- </style>
|