homePage.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. <template>
  2. <view>
  3. <view class="container">
  4. <!-- 头部 -->
  5. <view class="header">
  6. <view class="main">
  7. <view class="title">
  8. <view class="name">
  9. <view class="text">
  10. 你好,孙斌!
  11. </view>
  12. <view class="icon">
  13. <u-icon name='arrow-down' color="#fff" size="28"></u-icon>
  14. </view>
  15. </view>
  16. </view>
  17. <!-- 公告 -->
  18. <view class="notice">
  19. <u-icon name="volume-up-fill" size="40" color="#fff"></u-icon>
  20. <text>库存PDA设备将于2023年4月1日升级维护</text>
  21. </view>
  22. </view>
  23. </view>
  24. <!-- 宫格 -->
  25. <view class="gird-scoll">
  26. <view class="gird">
  27. <view class="item">
  28. <view class="title">
  29. 出库申请
  30. </view>
  31. <view class="hint">
  32. 提交出库申请单据
  33. </view>
  34. <view class="img">
  35. <img src="../../../assets/img/projectGird1.png" alt="">
  36. </view>
  37. </view>
  38. <view class="item">
  39. <view class="title">
  40. 出库审核
  41. </view>
  42. <view class="hint">
  43. 审批出库申请单据
  44. </view>
  45. <view class="img">
  46. <img src="../../../assets/img/projectGird2.png" alt="">
  47. </view>
  48. </view>
  49. <view class="item">
  50. <view class="title">
  51. 设备归还
  52. </view>
  53. <view class="hint">
  54. 提交设备归还单据
  55. </view>
  56. <view class="img">
  57. <img src="../../../assets/img/projectGird3.png" alt="">
  58. </view>
  59. </view>
  60. <view class="item">
  61. <view class="title">
  62. 设备检索
  63. </view>
  64. <view class="hint">
  65. 库存物品信息检索
  66. </view>
  67. <view class="img">
  68. <img src="../../../assets/img/projectGird4.png" alt="">
  69. </view>
  70. </view>
  71. </view>
  72. </view>
  73. </view>
  74. </view>
  75. </template>
  76. <script>
  77. export default {
  78. data() {
  79. return {
  80. }
  81. },
  82. methods: {
  83. }
  84. }
  85. </script>
  86. <style lang="scss" scoped>
  87. page {
  88. background-color: rgba(1, 122, 255, 1);
  89. padding-bottom: 100rpx;
  90. overflow-y: hidden;
  91. }
  92. .container {
  93. overflow-y: hidden;
  94. text-align: center;
  95. position: relative;
  96. min-height: 600px;
  97. }
  98. // 头部
  99. .header {
  100. width: 100%;
  101. height: 219px;
  102. background: linear-gradient(180deg, rgba(0, 45, 194, 1) 0%, rgba(0, 59, 254, 1) 49%, rgba(1, 122, 255, 1) 100%);
  103. padding: 0 40rpx;
  104. .main {
  105. width: 100%;
  106. height: 100%;
  107. background: url(../../../assets/img/projecIndexCover.png) no-repeat;
  108. background-position: top -70rpx right -50rpx;
  109. position: relative;
  110. }
  111. .title {
  112. display: flex;
  113. justify-content: space-between;
  114. align-items: center;
  115. color: rgba(255, 255, 255, 1);
  116. line-height: 88rpx;
  117. .name {
  118. display: flex;
  119. font-size: 40rpx;
  120. }
  121. }
  122. // 公告
  123. .notice {
  124. display: flex;
  125. align-items: center;
  126. background-color: rgba(255, 255, 255, 0.35);
  127. color: rgba(255, 255, 255, 1);
  128. font-weight: bold;
  129. border-radius: 8px;
  130. height: 80rpx;
  131. line-height: 80rpx;
  132. padding: 0 24rpx;
  133. position: absolute;
  134. bottom: 30rpx;
  135. left: 0;
  136. right: 0;
  137. text {
  138. font-size: 28rpx;
  139. width: 542px;
  140. margin-left: 16rpx;
  141. white-space: nowrap;
  142. overflow: hidden;
  143. text-overflow: ellipsis;
  144. }
  145. }
  146. }
  147. // 宫格
  148. .gird-scoll {
  149. height: 600px;
  150. overflow-y: auto;
  151. position: absolute;
  152. }
  153. .gird {
  154. padding: 0 40rpx;
  155. display: flex;
  156. justify-content: space-between;
  157. align-content: flex-start;
  158. flex-wrap: wrap;
  159. height: 700px;
  160. .item {
  161. width: 320rpx;
  162. height: 320rpx;
  163. background-color: rgba(255, 255, 255, 1);
  164. border-radius: 8px;
  165. padding: 32rpx 24rpx;
  166. position: relative;
  167. margin-bottom: 30rpx;
  168. .title {
  169. color: rgba(16, 16, 16, 1);
  170. font-size: 36rpx;
  171. margin-bottom: 8rpx;
  172. font-family: 'Alibaba-PuHuiTi-Regular';
  173. }
  174. .hint {
  175. color: rgba(106, 121, 142, 1);
  176. font-size: 24rpx;
  177. margin-bottom: 44rpx;
  178. }
  179. .img {
  180. width: 128rpx;
  181. height: 128rpx;
  182. position: absolute;
  183. right: 24rpx;
  184. bottom: 24rpx;
  185. img {
  186. width: 100%;
  187. height: 100%;
  188. }
  189. }
  190. }
  191. }
  192. </style>