Menu.html 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <title>功能菜单</title>
  6. <meta
  7. name="viewport"
  8. content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no"
  9. />
  10. <meta name="apple-mobile-web-app-capable" content="yes" />
  11. <meta name="apple-mobile-web-app-status-bar-style" content="black" />
  12. <link rel="stylesheet" href="../../js/vant@2.12/index.css" />
  13. <!-- 预加载共享资源 -->
  14. <link rel="preload" href="../../js/vant@2.12/vue.js" as="script" />
  15. <link rel="preload" href="../../js/vant@2.12/vant.js" as="script" />
  16. <link rel="preload" href="../../js/jquery-2.2.0.min.js" as="script" />
  17. <link rel="preload" href="../../js/promise.min.js" as="script" />
  18. <link rel="preload" href="../../js/common.js" as="script" />
  19. <link rel="preload" href="../../js/IndexDbFactory.js" as="script" />
  20. <link rel="preload" href="../../js/RfidMiddlewareApi.js" as="script" />
  21. <script src="../../js/vant@2.12/vue.js"></script>
  22. <script src="../../js/vant@2.12/vant.js"></script>
  23. <style>
  24. /* 防止Vue模板闪烁 */
  25. [v-cloak] {
  26. display: none !important;
  27. }
  28. /* 页面加载动画 */
  29. .page-loading {
  30. position: fixed;
  31. top: 0;
  32. left: 0;
  33. right: 0;
  34. bottom: 0;
  35. background: white;
  36. display: flex;
  37. align-items: center;
  38. justify-content: center;
  39. z-index: 9999;
  40. }
  41. body {
  42. /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
  43. margin: 0;
  44. padding: 0;
  45. }
  46. .main-container {
  47. min-height: calc(100vh -22px);
  48. padding: 20px 16px;
  49. }
  50. .welcome-section {
  51. text-align: center;
  52. padding: 40px 0 30px;
  53. color: white;
  54. }
  55. .welcome-title {
  56. font-size: 28px;
  57. font-weight: 700;
  58. margin-bottom: 8px;
  59. text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  60. }
  61. .welcome-subtitle {
  62. font-size: 14px;
  63. opacity: 0.9;
  64. }
  65. .menu-grid {
  66. display: grid;
  67. gap: 16px;
  68. margin-top: 20px;
  69. }
  70. .menu-item {
  71. background: white;
  72. border-radius: 16px;
  73. padding: 24px 20px;
  74. display: flex;
  75. align-items: center;
  76. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  77. transition: all 0.3s ease;
  78. cursor: pointer;
  79. position: relative;
  80. overflow: hidden;
  81. }
  82. .menu-item::before {
  83. content: "";
  84. position: absolute;
  85. top: 0;
  86. left: 0;
  87. right: 0;
  88. bottom: 0;
  89. background: linear-gradient(
  90. 135deg,
  91. transparent 0%,
  92. rgba(102, 126, 234, 0.05) 100%
  93. );
  94. opacity: 0;
  95. transition: opacity 0.3s ease;
  96. }
  97. .menu-item:active {
  98. transform: scale(0.98);
  99. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  100. }
  101. .menu-item:active::before {
  102. opacity: 1;
  103. }
  104. .menu-icon-wrapper {
  105. width: 56px;
  106. height: 56px;
  107. border-radius: 12px;
  108. display: flex;
  109. align-items: center;
  110. justify-content: center;
  111. margin-right: 16px;
  112. flex-shrink: 0;
  113. position: relative;
  114. z-index: 1;
  115. }
  116. .menu-item.sync .menu-icon-wrapper {
  117. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  118. box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  119. }
  120. .menu-item.inventory .menu-icon-wrapper {
  121. background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  122. box-shadow: 0 4px 12px rgba(245, 87, 108, 0.3);
  123. }
  124. .menu-icon {
  125. font-size: 28px;
  126. color: white;
  127. }
  128. .menu-content {
  129. flex: 1;
  130. position: relative;
  131. z-index: 1;
  132. }
  133. .menu-title {
  134. font-size: 18px;
  135. font-weight: 600;
  136. color: #333;
  137. margin-bottom: 6px;
  138. }
  139. .menu-desc {
  140. font-size: 13px;
  141. color: #999;
  142. line-height: 1.4;
  143. }
  144. .menu-arrow {
  145. color: #ddd;
  146. font-size: 20px;
  147. margin-left: 12px;
  148. flex-shrink: 0;
  149. position: relative;
  150. z-index: 1;
  151. }
  152. .footer-info {
  153. text-align: center;
  154. padding: 30px 0 20px;
  155. color: white;
  156. opacity: 0.8;
  157. font-size: 12px;
  158. }
  159. /* 动画效果 */
  160. @keyframes fadeInUp {
  161. from {
  162. opacity: 0;
  163. transform: translateY(20px);
  164. }
  165. to {
  166. opacity: 1;
  167. transform: translateY(0);
  168. }
  169. }
  170. .menu-item {
  171. animation: fadeInUp 0.5s ease;
  172. }
  173. .menu-item:nth-child(1) {
  174. animation-delay: 0.1s;
  175. }
  176. .menu-item:nth-child(2) {
  177. animation-delay: 0.2s;
  178. }
  179. </style>
  180. </head>
  181. <body>
  182. <div id="app" v-cloak>
  183. <!-- 顶部导航栏 -->
  184. <van-nav-bar title="资产盘点" @click-left="goBack" :fixed="true">
  185. </van-nav-bar>
  186. <!-- 主内容区域 -->
  187. <div class="main-container" style="margin-top: 22px">
  188. <!-- 欢迎区域 -->
  189. <!-- <div class="welcome-section">
  190. <div class="welcome-title">资产管理系统</div>
  191. <div class="welcome-subtitle">Asset Management System</div>
  192. </div> -->
  193. <!-- 菜单网格 -->
  194. <div class="menu-grid">
  195. <!-- 数据同步 -->
  196. <div class="menu-item sync" @click="goToSync">
  197. <div class="menu-icon-wrapper">
  198. <van-icon name="replay" class="menu-icon" />
  199. </div>
  200. <div class="menu-content">
  201. <div class="menu-title">数据同步</div>
  202. <div class="menu-desc">上传盘点数据,下载基础资料</div>
  203. </div>
  204. <van-icon name="arrow" class="menu-arrow" />
  205. </div>
  206. <!-- 离线盘点 -->
  207. <div class="menu-item inventory" @click="goToInventory">
  208. <div class="menu-icon-wrapper">
  209. <van-icon name="records" class="menu-icon" />
  210. </div>
  211. <div class="menu-content">
  212. <div class="menu-title">离线盘点</div>
  213. <div class="menu-desc">选择盘点单,开始资产盘点</div>
  214. </div>
  215. <van-icon name="arrow" class="menu-arrow" />
  216. </div>
  217. </div>
  218. <!-- 底部信息 -->
  219. <!-- <div class="footer-info">
  220. <div>EAM离线应用 v1.0.0</div>
  221. </div> -->
  222. </div>
  223. </div>
  224. <script type="text/javascript" src="../../js/UrlApi.js"></script>
  225. <script
  226. src="../../js/jquery-2.2.0.min.js"
  227. type="text/javascript"
  228. charset="utf-8"
  229. ></script>
  230. <script
  231. src="../../js/promise.min.js"
  232. type="text/javascript"
  233. charset="utf-8"
  234. ></script>
  235. <script
  236. src="../../js/common.js"
  237. type="text/javascript"
  238. charset="utf-8"
  239. ></script>
  240. <script src="./Menu.js" type="text/javascript" charset="utf-8"></script>
  241. </body>
  242. </html>