| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270 |
- <!DOCTYPE html>
- <html lang="zh-CN">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <meta name="viewport"
- content="width=device-width, height=device-height, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
- <title>中花汇APP下载中心</title>
- <style>
- * {
- margin: 0;
- padding: 0;
- box-sizing: border-box;
- }
-
- body {
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
- min-height: 100vh;
- display: flex;
- align-items: center;
- justify-content: center;
- padding: 20px;
- }
-
- .container {
- background: white;
- border-radius: 20px;
- padding: 40px 30px;
- box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
- max-width: 500px;
- width: 100%;
- text-align: center;
- }
-
- .header {
- margin-bottom: 40px;
- }
-
- .header h1 {
- color: #333;
- font-size: 28px;
- font-weight: 600;
- margin-bottom: 10px;
- }
-
- .header p {
- color: #666;
- font-size: 16px;
- line-height: 1.5;
- }
-
- .app-grid {
- display: grid;
- grid-template-columns: 1fr 1fr;
- gap: 20px;
- margin-bottom: 30px;
- }
-
- .app-item {
- background: #f8f9fa;
- border-radius: 15px;
- padding: 25px 15px;
- transition: all 0.3s ease;
- border: 2px solid transparent;
- }
-
- .app-item:hover {
- transform: translateY(-5px);
- box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
- border-color: #3385FF;
- }
-
- .app-icon {
- width: 50px;
- height: 50px;
- background: #3385FF;
- border-radius: 12px;
- margin: 0 auto 15px;
- display: flex;
- align-items: center;
- justify-content: center;
- color: white;
- font-size: 24px;
- font-weight: bold;
- }
-
- .app-name {
- font-size: 16px;
- font-weight: 600;
- color: #333;
- margin-bottom: 8px;
- }
-
- .app-desc {
- font-size: 12px;
- color: #666;
- margin-bottom: 15px;
- }
-
- .download-btn {
- display: inline-block;
- background: #3385FF;
- color: white;
- text-decoration: none;
- padding: 10px 20px;
- border-radius: 25px;
- font-size: 14px;
- font-weight: 500;
- transition: all 0.3s ease;
- border: none;
- cursor: pointer;
- width: 100%;
- }
-
- .download-btn:hover {
- background: #2a6bcc;
- transform: translateY(-2px);
- }
-
- .download-btn:active {
- transform: translateY(0);
- }
-
- .footer {
- margin-top: 30px;
- padding-top: 20px;
- border-top: 1px solid #eee;
- }
-
- .footer p {
- color: #999;
- font-size: 14px;
- }
-
- @media (max-width: 480px) {
- .container {
- padding: 30px 20px;
- margin: 10px;
- }
-
- .app-grid {
- grid-template-columns: 1fr;
- gap: 15px;
- }
-
- .header h1 {
- font-size: 24px;
- }
- }
- </style>
- </head>
- <body>
- <div class="container">
- <div class="header">
- <h1>中花汇APP下载中心</h1>
- <p>选择适合您的应用,开启经营之旅</p>
- </div>
-
- <div class="app-grid">
- <div class="app-item">
- <div class="app-icon">🌸</div>
- <div class="app-name">销花宝APP</div>
- <div class="app-desc">批发店系统</div>
- <a href="#" class="download-btn" onclick="downloadApp('xiaohuabao')">立即下载</a>
- </div>
-
- <div class="app-item">
- <div class="app-icon">🌸</div>
- <div class="app-name">花掌柜APP</div>
- <div class="app-desc">零售花店系统</div>
- <a href="#" class="download-btn" onclick="downloadApp('huazhanggui')">立即下载</a>
- </div>
-
- <div class="app-item">
- <div class="app-icon">💰</div>
- <div class="app-name">花掌柜收银</div>
- <div class="app-desc">花店收银管理</div>
- <a href="#" class="download-btn" onclick="downloadApp('huazhanggui_cashier')">立即下载</a>
- </div>
-
- <div class="app-item">
- <div class="app-icon">💰</div>
- <div class="app-name">销花宝收银</div>
- <div class="app-desc">批发收银管理</div>
- <a href="#" class="download-btn" onclick="downloadApp('xiaohuabao_cashier')">立即下载</a>
- </div>
- </div>
-
- <div class="footer">
- <p>如有问题,请联系客服:15280215347</p>
- </div>
- </div>
-
- <script>
- // 检测是否在微信浏览器中
- function isWeChatBrowser() {
- const ua = navigator.userAgent.toLowerCase();
- return ua.indexOf('micromessenger') !== -1;
- }
-
- // 显示微信提示
- function showWeChatTip() {
- const tipHtml = `
- <div style="position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 9999; display: flex; align-items: center; justify-content: center;">
- <div style="background: white; border-radius: 20px; padding: 50px 40px; margin: 20px; max-width: 400px; text-align: center; box-shadow: 0 20px 40px rgba(0,0,0,0.3);">
- <div style="font-size: 48px; margin-bottom: 25px;">📱</div>
- <h3 style="color: #333; margin-bottom: 25px; font-size: 24px; font-weight: 600;">请在浏览器中打开</h3>
- <p style="color: #666; line-height: 1.6; margin-bottom: 30px; font-size: 18px;">
- 由于微信限制,无法直接下载APP<br>
- 请点击右上角 <span style="color: #3385FF; font-size: 20px; font-weight: bold;">⋯</span> 按钮<br>
- 选择"在浏览器中打开"
- </p>
- <button onclick="closeWeChatTip()" style="background: #3385FF; color: white; border: none; padding: 15px 30px; border-radius: 25px; font-size: 16px; cursor: pointer; font-weight: 500; transition: all 0.3s ease;">
- 我知道了
- </button>
- </div>
- </div>
- `;
- document.body.insertAdjacentHTML('beforeend', tipHtml);
- }
-
- // 关闭微信提示
- function closeWeChatTip() {
- const tip = document.querySelector('[style*="position: fixed"]');
- if (tip) {
- tip.remove();
- }
- }
- function downloadApp(appType) {
- // 检测是否在微信浏览器中
- if (isWeChatBrowser()) {
- showWeChatTip();
- return;
- }
- // 这里可以根据appType跳转到对应的下载链接
- const downloadUrls = {
- 'xiaohuabao': 'https://api.shop.hzghd.com/1312.apk', // 销花宝APP下载链接
- 'huazhanggui': 'https://api.shop.hzghd.com/246.apk', // 花掌柜APP下载链接
- 'huazhanggui_cashier': 'https://api.shop.hzghd.com/220.apk', // 花掌柜收银下载链接
- 'xiaohuabao_cashier': 'https://api.shop.hzghd.com/178.apk' // 销花宝收银下载链接
- };
- const url = downloadUrls[appType];
- if (url && url !== '#') {
- window.open(url, '_blank');
- } else {
- alert('下载链接暂未配置,请联系管理员');
- }
- }
-
- // 检测设备类型,提供相应的下载建议
- function detectDevice() {
- const userAgent = navigator.userAgent;
- const isIOS = /iPad|iPhone|iPod/.test(userAgent);
- const isAndroid = /Android/.test(userAgent);
-
- if (isIOS) {
- console.log('检测到iOS设备,建议从App Store下载');
- } else if (isAndroid) {
- console.log('检测到Android设备,建议从应用商店或官网下载');
- }
- }
-
- // 页面加载完成后执行
- document.addEventListener('DOMContentLoaded', function() {
- detectDevice();
- });
- </script>
- </body>
- </html>
|