<!DOCTYPE html>
<html>
<head>
	<title>微信跳转代码</title>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<!-- 引入第三方样式 -->
	<link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/font-awesome/5.15.3/css/all.min.css">
	<!-- 引入第三方jQuery库 -->
	<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
	<style>
		.container {
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: center;
			height: 100vh;
		}
		.icon {
			font-size: 80px;
			margin-bottom: 20px;
		}
		.btn {
			padding: 10px 20px;
			background-color: #00C100;
			color: #fff;
			border: none;
			border-radius: 5px;
			cursor: pointer;
			font-size: 18px;
			transition: all 0.3s ease;
		}
		.btn:hover {
			background-color: #009C00;
		}
	</style>
</head>
<body>
	<div class="container">
		<i class="icon fab fa-weixin"></i>
		<button class="btn" id="btn">点击领取</button>
	</div>
	<script>
		$(document).ready(function() {
			$('#btn').click(function() {
				window.location.href = 'weixin://dl/officialaccounts/?appid=xiaoqiwenan_1';
			});
		});
	</script>
</body>
</html>
微信跳转代码:修复打不开微信的BUG,兼容手机样式

原文地址: https://www.cveoy.top/t/topic/jE0y 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录