index.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <template>
  2. <view class="container_box">
  3. <u-navbar height="80rpx" title=" " bgColor="transparent">
  4. <view class="u-nav-slot btn-left" slot="left" @click="meunClick">
  5. <image src="@/static/image/home/bulletpoint.png" mode=""></image>
  6. </view>
  7. <view class="u-nav-slot btn-right" slot="right">
  8. <image src="@/static/image/home/notice-icon.png" mode=""></image>
  9. </view>
  10. </u-navbar>
  11. <view class="container_main">
  12. <view class="header-box">
  13. <image src="@/static/image/home/home-top-img.png" mode=""></image>
  14. </view>
  15. <view class="container_cont">
  16. <view class="operate-item" v-for="(item,i) in operateList" :key="i" @click="operateClick(item)">
  17. <view class="operate-img">
  18. <image :src="item.src" mode=""></image>
  19. <u-badge type="error" absolute max="99" :value="item.num" :offset="[-5,-5]"></u-badge>
  20. </view>
  21. <view class="operate-text">{{item.text}}</view>
  22. </view>
  23. </view>
  24. </view>
  25. </view>
  26. </template>
  27. <script>
  28. const Base64 = require('js-base64').Base64
  29. import {
  30. bannerList
  31. } from '@/common/request/apis/index'
  32. import {
  33. mapGetters
  34. } from 'vuex'
  35. export default {
  36. data() {
  37. return {
  38. operateList:[
  39. {
  40. src:require('@/static/image/home/icon-jhrw.png'),
  41. text:'拣货任务',
  42. num:5,
  43. url:'/pages/picking-task/index'
  44. },
  45. {
  46. src:require('@/static/image/home/icon-cgrk.png'),
  47. text:'采购入库',
  48. num:5,
  49. url:''
  50. },
  51. {
  52. src:require('@/static/image/home/icon-chcx.png'),
  53. text:'存货查询',
  54. num:0,
  55. url:''
  56. },
  57. {
  58. src:require('@/static/image/home/icon-pdrw.png'),
  59. text:'盘点任务',
  60. num:0,
  61. url:''
  62. }
  63. ]
  64. }
  65. },
  66. onLoad() {
  67. // JSON.parse(Base64.decode(that.$Route.query.classData))
  68. },
  69. onShow() {
  70. },
  71. computed: {
  72. // ...mapGetters(['isLogin'])
  73. },
  74. methods: {
  75. meunClick() {
  76. console.log('菜单')
  77. },
  78. operateClick(item) {
  79. uni.navigateTo({
  80. url:item.url
  81. })
  82. }
  83. }
  84. }
  85. </script>
  86. <style lang="scss" scoped>
  87. .btn-left {
  88. image {
  89. width: 48rpx;
  90. height: 48rpx;
  91. }
  92. }
  93. .btn-right {
  94. image {
  95. width: 40rpx;
  96. height: 44rpx;
  97. }
  98. }
  99. .container_box {
  100. .container_main {
  101. .header-box {
  102. image {
  103. width: 100%;
  104. height: 375rpx;
  105. }
  106. }
  107. }
  108. .container_cont {
  109. padding: 32rpx;
  110. display: flex;
  111. align-items: center;
  112. justify-content: space-between;
  113. flex-wrap: wrap;
  114. .operate-item {
  115. width: 326rpx;
  116. height: 262rpx;
  117. border-radius: 16rpx;
  118. background: #FFF;
  119. display: flex;
  120. flex-direction: column;
  121. align-items: center;
  122. justify-content: center;
  123. margin-bottom: 32rpx;
  124. .operate-img {
  125. position: relative;
  126. image {
  127. width: 128rpx;
  128. height: 128rpx;
  129. }
  130. }
  131. .operate-text {
  132. color: #333;
  133. font-family: "PingFang SC";
  134. font-size: 32rpx;
  135. font-weight: 500;
  136. margin-top: 20rpx;
  137. }
  138. }
  139. }
  140. }
  141. </style>