index.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <template>
  2. <view class="picking-task-page">
  3. <u-navbar height="40px" title="拣货任务" bgColor="#F0F6FB" autoBack placeholder>
  4. <view class="u-nav-slot btn-right" slot="right">
  5. <view class="cang-name">{{cangName}}</view>
  6. <u-icon name="arrow-down-fill" color="#999999" size="12"></u-icon>
  7. </view>
  8. </u-navbar>
  9. <view class="container_main">
  10. <u-sticky :offsetTop="offsetTop" bgColor="#F0F6FB">
  11. <view class="search-box">
  12. <u-search placeholder="请输入单据编号" bgColor="#fff" shape="square" v-model="searchKey" :showAction="false"></u-search>
  13. <view class="flex_box">
  14. <view class="scan-text">扫描单据二维码</view>
  15. <view class="scan-icon">
  16. <image src="@/static/image/scan-icon.png" mode=""></image>
  17. </view>
  18. </view>
  19. </view>
  20. <view class="type-box flex_box">
  21. <view class="type-item">
  22. <view class="type-val">{{type1}}</view>
  23. <u-icon name="arrow-down-fill" color="#999999" size="12"></u-icon>
  24. </view>
  25. <view class="type-item">
  26. <view class="type-val">{{type2}}</view>
  27. <u-icon name="arrow-down-fill" color="#999999" size="12"></u-icon>
  28. </view>
  29. </view>
  30. </u-sticky>
  31. <view class="task-cont">
  32. <block v-for="item in 10" :key="">
  33. <task-item></task-item>
  34. </block>
  35. </view>
  36. </view>
  37. </view>
  38. </template>
  39. <script>
  40. import taskItem from '@/components/task-item/task-item.vue'
  41. export default{
  42. components:{
  43. taskItem
  44. },
  45. data() {
  46. return {
  47. offsetTop:0,
  48. cangName:'鹏越中心仓',
  49. searchKey:'',
  50. type1:'全部',
  51. type2:'月份'
  52. }
  53. },
  54. onLoad() {
  55. let systemInfo = uni.getSystemInfoSync();
  56. let statusBarHeight = systemInfo.statusBarHeight;
  57. this.offsetTop = statusBarHeight + 40
  58. console.log('状态栏的高度是:' + statusBarHeight + 'px');
  59. }
  60. }
  61. </script>
  62. <style lang="scss" scoped>
  63. .btn-right {
  64. display: flex;
  65. align-items: center;
  66. .cang-name {
  67. color: #0256FF;
  68. text-align: center;
  69. font-family: "PingFang SC";
  70. font-size: 28rpx;
  71. font-weight: 600;
  72. margin-right: 10rpx;
  73. }
  74. }
  75. .picking-task-page {
  76. min-height: 100vh;
  77. background: #F0F6FB;
  78. .container_main {
  79. .search-box {
  80. display: flex;
  81. align-items: center;
  82. padding: 0 32rpx;
  83. .scan-text {
  84. color: #333;
  85. font-family: "PingFang SC";
  86. font-size: 24rpx;
  87. font-weight: 400;
  88. margin-right: 20rpx;
  89. margin-left: 30rpx;
  90. }
  91. .scan-icon {
  92. width: 36rpx;
  93. height: 36rpx;
  94. background-color: #fff;
  95. border-radius: 50%;
  96. display: flex;
  97. align-items: center;
  98. justify-content: center;
  99. image {
  100. width: 24rpx;
  101. height: 24rpx;
  102. }
  103. }
  104. }
  105. .type-box {
  106. .type-item {
  107. width: 50%;
  108. height: 88rpx;
  109. display: flex;
  110. align-items: center;
  111. justify-content: center;
  112. .type-val {
  113. color: #000;
  114. font-family: "PingFang SC";
  115. font-size: 28rpx;
  116. font-weight: 400;
  117. margin-right: 10rpx;
  118. }
  119. }
  120. }
  121. .task-cont {
  122. padding: 0 24rpx;
  123. }
  124. }
  125. }
  126. </style>