homePage.vue 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. <template>
  2. <view>
  3. <u-navbar title="首页" v-show="false"></u-navbar>
  4. <!-- 头部 -->
  5. <view class="header">
  6. <view class="main">
  7. <view class="title">
  8. <view class="name" @click="changeShow()">
  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 class="options" v-if="this.show==true" >
  17. <view @click="changeShow()">切换身份</view>
  18. <view @click="changeShow()">退出账号</view>
  19. </view>
  20. <view class="qr-code">
  21. <img src="../../../assets/img/riLine-qr-scan-line@1x.png" alt="">
  22. </view>
  23. </view>
  24. </view>
  25. </view>
  26. <!-- 宫格 -->
  27. <view class="gird">
  28. <!-- 公告 -->
  29. <view class="notice" >
  30. <u-notice-bar mode="horizontal"
  31. bg-color="#6290f7" color="#fff"
  32. :list="['库存PDA设备将于2023年4月1日升级维护']"></u-notice-bar>
  33. <!-- <u-icon name="volume-up-fill" size="40" color="#fff"></u-icon>
  34. <text></text> -->
  35. </view>
  36. <view class="item" @click="gotoUrl('pages/storeManagement/equipmentDelivery/equipmentDelivery')">
  37. <view class="title">
  38. 设备出库
  39. </view>
  40. <view class="hint">
  41. 申请物品登记核准出库
  42. </view>
  43. <view class="img">
  44. <img src="../../../assets/img/girdH1.png" alt="">
  45. </view>
  46. </view>
  47. <view class="item" @click="gotoUrl('pages/storeManagement/equipmentEnter/equipmentEnter')">
  48. <view class="title">
  49. 设备入库
  50. </view>
  51. <view class="hint">
  52. 申购采购收货入库登记
  53. </view>
  54. <view class="img">
  55. <img src="../../../assets/img/girdH2.png" alt="">
  56. </view>
  57. </view>
  58. <view class="item" @click="gotoUrl('pages/storeManagement/equipmentInspection/equipmentInspection')" >
  59. <view class="title">
  60. 设备巡检
  61. </view>
  62. <view class="hint">
  63. 当前物品计量库存盘点
  64. </view>
  65. <view class="img">
  66. <img src="../../../assets/img/girdH3.png" alt="">
  67. </view>
  68. </view>
  69. <view class="item" @click="gotoUrl('pages/storeManagement/equipmentRetrieval/equipmentRetrieval')" >
  70. <view class="title">
  71. 设备检索
  72. </view>
  73. <view class="hint">
  74. 库存物品信息检索
  75. </view>
  76. <view class="img">
  77. <img src="../../../assets/img/girdH4.png" alt="">
  78. </view>
  79. </view>
  80. </view>
  81. <!-- 其他功能 -->
  82. <view class="other-functions">
  83. <view class="title">
  84. 其他功能
  85. </view>
  86. <view class="function-gird">
  87. <view class="item">
  88. <img src="../../../assets/img/riLine-file-add-line@1x.png" alt="">
  89. <text>新增巡检</text>
  90. </view>
  91. <view class="item">
  92. <img src="../../../assets/img/riLine-printer-line@1x.png" alt="">
  93. <text>打印标签</text>
  94. </view>
  95. <view class="item">
  96. <img src="../../../assets/img/riLine-spam-line@1x.png" alt="">
  97. <text>故障申报</text>
  98. </view>
  99. <view class="item">
  100. <img src="../../../assets/img/riLine-arrow-left-right-line@1x.png" alt="">
  101. <text>设备移交</text>
  102. </view>
  103. </view>
  104. </view>
  105. </view>
  106. </template>
  107. <script>
  108. export default {
  109. data() {
  110. return {
  111. show:false,
  112. }
  113. },
  114. methods: {
  115. changeShow(){
  116. this.show=!this.show
  117. }
  118. }
  119. }
  120. </script>
  121. <style lang="scss" scoped>
  122. .options{
  123. width: 260rpx;
  124. line-height: 60rpx;
  125. //text-align: center;
  126. padding:8rpx 0px 8rpx 16rpx;
  127. background-color: #fff;
  128. color: rgba(65, 80, 88, 1);
  129. font-family: Microsoft Yahei;
  130. position: absolute;
  131. top: 88rpx;
  132. border-radius: 1px;
  133. //right: 24rpx;
  134. box-shadow:5px 5px 10px gray;
  135. }
  136. page{
  137. background-color: rgba(1,122,255,1);
  138. padding-bottom: 100rpx;
  139. }
  140. // 头部
  141. .header{
  142. width: 100%;
  143. height: 289px;
  144. background:linear-gradient(180deg, rgba(0,45,194,1) 0%,rgba(0,59,254,1) 49%,rgba(1,122,255,1) 100%);
  145. padding: 0 40rpx;
  146. .main{
  147. width: 100%;
  148. height: 100%;
  149. background: url(../../../assets/img/background.png) no-repeat;
  150. background-position: top -70rpx right -50rpx;
  151. position: relative;
  152. }
  153. .title{
  154. display: flex;
  155. justify-content: space-between;
  156. align-items: center;
  157. color: rgba(255, 255, 255, 1);
  158. line-height: 88rpx;
  159. .name{
  160. display: flex;
  161. font-size: 40rpx;
  162. }
  163. .qr-code{
  164. display: flex;
  165. }
  166. }
  167. }
  168. // 宫格
  169. .gird{
  170. // 公告
  171. .notice{
  172. overflow: hidden;
  173. display: flex;
  174. align-items: center;
  175. background-color: #6290f7;
  176. color: rgba(255, 255, 255, 1);
  177. font-weight: bold;
  178. border-radius: 8px;
  179. height: 80rpx;
  180. line-height: 80rpx;
  181. padding: 0 24rpx;
  182. // position: absolute;
  183. bottom: 260rpx;
  184. left: 0;
  185. right: 0;
  186. margin-bottom: 40rpx;
  187. text{
  188. font-size: 28rpx;
  189. width: 542px;
  190. margin-left: 16rpx;
  191. white-space: nowrap;
  192. overflow: hidden;
  193. text-overflow: ellipsis;
  194. }
  195. }
  196. padding: 0 40rpx;
  197. display: flex;
  198. justify-content: space-between;
  199. flex-wrap: wrap;
  200. margin-top: -216rpx;
  201. .item{
  202. width: 320rpx;
  203. height: 320rpx;
  204. background-color: rgba(255, 255, 255, 1);
  205. border-radius: 8px;
  206. padding: 32rpx 24rpx;
  207. position: relative;
  208. margin-bottom: 30rpx;
  209. .title{
  210. color: rgba(16, 16, 16, 1);
  211. font-size: 36rpx;
  212. margin-bottom: 8rpx;
  213. font-family: 'Alibaba-PuHuiTi-Regular';
  214. }
  215. .hint{
  216. color: rgba(106, 121, 142, 1);
  217. font-size: 24rpx;
  218. margin-bottom: 44rpx;
  219. }
  220. .img{
  221. width: 128rpx;
  222. height: 128rpx;
  223. position: absolute;
  224. right: 24rpx;
  225. bottom: 24rpx;
  226. img{
  227. width: 100%;
  228. height: 100%;
  229. }
  230. }
  231. }
  232. }
  233. // 其他功能
  234. .other-functions{
  235. padding: 0 40rpx;
  236. .title{
  237. color: rgba(255, 255, 255, 1);
  238. font-size: 36rpx;
  239. margin-bottom: 16rpx;
  240. }
  241. .function-gird{
  242. display: flex;
  243. flex-wrap: wrap;
  244. justify-content: space-between;
  245. .item{
  246. display: flex;
  247. align-items: center;
  248. justify-content: center;
  249. width: 320rpx;
  250. height: 80rpx;
  251. line-height: 80rpx;
  252. margin-bottom: 24rpx;
  253. color: rgba(255, 255, 255, 1);
  254. border-radius: 8px;
  255. background-color: rgba(255, 255, 255, 0.25);
  256. text-align: center;
  257. border: 1px solid rgba(255, 255, 255, 0.35);
  258. img{
  259. width: 32rpx;
  260. height: 32rpx;
  261. margin-right: 8rpx;
  262. }
  263. }
  264. }
  265. }
  266. </style>