app.php 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5. <meta name="viewport"
  6. content="width=device-width, height=device-height, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
  7. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  8. <title>中花汇APP下载中心</title>
  9. <style>
  10. * {
  11. margin: 0;
  12. padding: 0;
  13. box-sizing: border-box;
  14. }
  15. body {
  16. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  17. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  18. min-height: 100vh;
  19. display: flex;
  20. align-items: center;
  21. justify-content: center;
  22. padding: 20px;
  23. }
  24. .container {
  25. background: white;
  26. border-radius: 20px;
  27. padding: 40px 30px;
  28. box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  29. max-width: 500px;
  30. width: 100%;
  31. text-align: center;
  32. }
  33. .header {
  34. margin-bottom: 40px;
  35. }
  36. .header h1 {
  37. color: #333;
  38. font-size: 28px;
  39. font-weight: 600;
  40. margin-bottom: 10px;
  41. }
  42. .header p {
  43. color: #666;
  44. font-size: 16px;
  45. line-height: 1.5;
  46. }
  47. .app-grid {
  48. display: grid;
  49. grid-template-columns: 1fr 1fr;
  50. gap: 20px;
  51. margin-bottom: 30px;
  52. }
  53. .app-item {
  54. background: #f8f9fa;
  55. border-radius: 15px;
  56. padding: 25px 15px;
  57. transition: all 0.3s ease;
  58. border: 2px solid transparent;
  59. }
  60. .app-item:hover {
  61. transform: translateY(-5px);
  62. box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  63. border-color: #3385FF;
  64. }
  65. .app-icon {
  66. width: 50px;
  67. height: 50px;
  68. background: #3385FF;
  69. border-radius: 12px;
  70. margin: 0 auto 15px;
  71. display: flex;
  72. align-items: center;
  73. justify-content: center;
  74. color: white;
  75. font-size: 24px;
  76. font-weight: bold;
  77. }
  78. .app-name {
  79. font-size: 16px;
  80. font-weight: 600;
  81. color: #333;
  82. margin-bottom: 8px;
  83. }
  84. .app-desc {
  85. font-size: 12px;
  86. color: #666;
  87. margin-bottom: 15px;
  88. }
  89. .download-btn {
  90. display: inline-block;
  91. background: #3385FF;
  92. color: white;
  93. text-decoration: none;
  94. padding: 10px 20px;
  95. border-radius: 25px;
  96. font-size: 14px;
  97. font-weight: 500;
  98. transition: all 0.3s ease;
  99. border: none;
  100. cursor: pointer;
  101. width: 100%;
  102. }
  103. .download-btn:hover {
  104. background: #2a6bcc;
  105. transform: translateY(-2px);
  106. }
  107. .download-btn:active {
  108. transform: translateY(0);
  109. }
  110. .footer {
  111. margin-top: 30px;
  112. padding-top: 20px;
  113. border-top: 1px solid #eee;
  114. }
  115. .footer p {
  116. color: #999;
  117. font-size: 14px;
  118. }
  119. @media (max-width: 480px) {
  120. .container {
  121. padding: 30px 20px;
  122. margin: 10px;
  123. }
  124. .app-grid {
  125. grid-template-columns: 1fr;
  126. gap: 15px;
  127. }
  128. .header h1 {
  129. font-size: 24px;
  130. }
  131. }
  132. </style>
  133. </head>
  134. <body>
  135. <div class="container">
  136. <div class="header">
  137. <h1>中花汇APP下载中心</h1>
  138. <p>选择适合您的应用,开启经营之旅</p>
  139. </div>
  140. <div class="app-grid">
  141. <div class="app-item">
  142. <div class="app-icon">🌸</div>
  143. <div class="app-name">销花宝APP</div>
  144. <div class="app-desc">批发店系统</div>
  145. <a href="#" class="download-btn" onclick="downloadApp('xiaohuabao')">立即下载</a>
  146. </div>
  147. <div class="app-item">
  148. <div class="app-icon">🌸</div>
  149. <div class="app-name">花掌柜APP</div>
  150. <div class="app-desc">零售花店系统</div>
  151. <a href="#" class="download-btn" onclick="downloadApp('huazhanggui')">立即下载</a>
  152. </div>
  153. <div class="app-item">
  154. <div class="app-icon">💰</div>
  155. <div class="app-name">花掌柜收银</div>
  156. <div class="app-desc">花店收银管理</div>
  157. <a href="#" class="download-btn" onclick="downloadApp('huazhanggui_cashier')">立即下载</a>
  158. </div>
  159. <div class="app-item">
  160. <div class="app-icon">💰</div>
  161. <div class="app-name">销花宝收银</div>
  162. <div class="app-desc">批发收银管理</div>
  163. <a href="#" class="download-btn" onclick="downloadApp('xiaohuabao_cashier')">立即下载</a>
  164. </div>
  165. </div>
  166. <div class="footer">
  167. <p>如有问题,请联系客服:15280215347</p>
  168. </div>
  169. </div>
  170. <script>
  171. // 检测是否在微信浏览器中
  172. function isWeChatBrowser() {
  173. const ua = navigator.userAgent.toLowerCase();
  174. return ua.indexOf('micromessenger') !== -1;
  175. }
  176. // 显示微信提示
  177. function showWeChatTip() {
  178. const tipHtml = `
  179. <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;">
  180. <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);">
  181. <div style="font-size: 48px; margin-bottom: 25px;">📱</div>
  182. <h3 style="color: #333; margin-bottom: 25px; font-size: 24px; font-weight: 600;">请在浏览器中打开</h3>
  183. <p style="color: #666; line-height: 1.6; margin-bottom: 30px; font-size: 18px;">
  184. 由于微信限制,无法直接下载APP<br>
  185. 请点击右上角 <span style="color: #3385FF; font-size: 20px; font-weight: bold;">⋯</span> 按钮<br>
  186. 选择"在浏览器中打开"
  187. </p>
  188. <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;">
  189. 我知道了
  190. </button>
  191. </div>
  192. </div>
  193. `;
  194. document.body.insertAdjacentHTML('beforeend', tipHtml);
  195. }
  196. // 关闭微信提示
  197. function closeWeChatTip() {
  198. const tip = document.querySelector('[style*="position: fixed"]');
  199. if (tip) {
  200. tip.remove();
  201. }
  202. }
  203. function downloadApp(appType) {
  204. // 检测是否在微信浏览器中
  205. if (isWeChatBrowser()) {
  206. showWeChatTip();
  207. return;
  208. }
  209. // 这里可以根据appType跳转到对应的下载链接
  210. const downloadUrls = {
  211. 'xiaohuabao': 'https://api.shop.hzghd.com/1320.apk', // 销花宝APP下载链接
  212. 'huazhanggui': 'https://api.shop.hzghd.com/246.apk', // 花掌柜APP下载链接
  213. 'huazhanggui_cashier': 'https://api.shop.hzghd.com/220.apk', // 花掌柜收银下载链接
  214. 'xiaohuabao_cashier': 'https://api.shop.hzghd.com/178.apk' // 销花宝收银下载链接
  215. };
  216. const url = downloadUrls[appType];
  217. if (url && url !== '#') {
  218. window.open(url, '_blank');
  219. } else {
  220. alert('下载链接暂未配置,请联系管理员');
  221. }
  222. }
  223. // 检测设备类型,提供相应的下载建议
  224. function detectDevice() {
  225. const userAgent = navigator.userAgent;
  226. const isIOS = /iPad|iPhone|iPod/.test(userAgent);
  227. const isAndroid = /Android/.test(userAgent);
  228. if (isIOS) {
  229. console.log('检测到iOS设备,建议从App Store下载');
  230. } else if (isAndroid) {
  231. console.log('检测到Android设备,建议从应用商店或官网下载');
  232. }
  233. }
  234. // 页面加载完成后执行
  235. document.addEventListener('DOMContentLoaded', function() {
  236. detectDevice();
  237. });
  238. </script>
  239. </body>
  240. </html>