index.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <template>
  2. <view class="check-page">
  3. <u-navbar height="40px" title="盘点" bgColor="#fff" autoBack placeholder>
  4. </u-navbar>
  5. <view class="container_main">
  6. <u-sticky :offsetTop="offsetTop" bgColor="#fff">
  7. <view class="search-box">
  8. <u-search placeholder="请输入单据编号或名称" shape="square" v-model="searchKey" :showAction="false"></u-search>
  9. </view>
  10. <view class="type-box">
  11. <u-tabs
  12. :list="tabList"
  13. :inactiveStyle="{color:'#000',fontSize:'24rpx'}"
  14. :activeStyle="{color:'#000',fontSize:'24rpx'}"
  15. lineColor="#0256FF"
  16. lineWidth="66rpx"
  17. :scrollable="false"
  18. @click="tabClick"
  19. >
  20. </u-tabs>
  21. </view>
  22. </u-sticky>
  23. <view class="content-box">
  24. <view class="content-box-val">
  25. <check-item v-for="item in 6" :key="item"></check-item>
  26. </view>
  27. </view>
  28. </view>
  29. </view>
  30. </template>
  31. <script>
  32. import checkItem from './components/check-item.vue'
  33. export default{
  34. components:{
  35. checkItem
  36. },
  37. data() {
  38. return {
  39. offsetTop:0,
  40. tabList: [{
  41. index: 0,
  42. name: '全部任务'
  43. },
  44. {
  45. index: 1,
  46. name: '待盘点'
  47. },
  48. {
  49. index: 2,
  50. name: '盘点中'
  51. },
  52. {
  53. index: 3,
  54. name: '已盘点'
  55. },
  56. {
  57. index: 4,
  58. name: '已取消'
  59. }
  60. ],
  61. }
  62. },
  63. onLoad() {
  64. let systemInfo = uni.getSystemInfoSync();
  65. let statusBarHeight = systemInfo.statusBarHeight;
  66. this.offsetTop = statusBarHeight + 40
  67. }
  68. }
  69. </script>
  70. <style lang="scss" scoped>
  71. .check-page {
  72. min-height: 100vh;
  73. background-color: #F0F6FB;
  74. .container_main {
  75. .search-box {
  76. background-color: rgba(191, 200, 219, 0.2);
  77. margin: 0 32rpx;
  78. display: flex;
  79. align-items: center;
  80. justify-content: space-between;
  81. border-radius: 8rpx;
  82. ::v-deep .u-search__content {
  83. background-color: transparent !important;
  84. .u-search__content__input {
  85. background-color: transparent !important;
  86. }
  87. }
  88. .scan-icon {
  89. width: 100rpx;
  90. height: 100%;
  91. image {
  92. width: 40rpx;
  93. height: 40rpx;
  94. }
  95. }
  96. }
  97. .content-box {
  98. padding: 24rpx;
  99. &-val {
  100. border-radius: 16rpx 16rpx 0 0;
  101. overflow: hidden;
  102. }
  103. }
  104. }
  105. }
  106. </style>