index.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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. searchKey:'',
  40. offsetTop:0,
  41. tabList: [{
  42. index: 0,
  43. name: '全部任务'
  44. },
  45. {
  46. index: 1,
  47. name: '待盘点'
  48. },
  49. {
  50. index: 2,
  51. name: '盘点中'
  52. },
  53. {
  54. index: 3,
  55. name: '已盘点'
  56. },
  57. {
  58. index: 4,
  59. name: '已取消'
  60. }
  61. ],
  62. }
  63. },
  64. onLoad() {
  65. let systemInfo = uni.getSystemInfoSync();
  66. let statusBarHeight = systemInfo.statusBarHeight;
  67. this.offsetTop = statusBarHeight + 40
  68. },
  69. methods:{
  70. tabClick() {
  71. }
  72. }
  73. }
  74. </script>
  75. <style lang="scss" scoped>
  76. .check-page {
  77. min-height: 100vh;
  78. background-color: #F0F6FB;
  79. .container_main {
  80. .search-box {
  81. background-color: rgba(191, 200, 219, 0.2);
  82. margin: 0 32rpx;
  83. display: flex;
  84. align-items: center;
  85. justify-content: space-between;
  86. border-radius: 8rpx;
  87. ::v-deep .u-search__content {
  88. background-color: transparent !important;
  89. .u-search__content__input {
  90. background-color: transparent !important;
  91. }
  92. }
  93. .scan-icon {
  94. width: 100rpx;
  95. height: 100%;
  96. image {
  97. width: 40rpx;
  98. height: 40rpx;
  99. }
  100. }
  101. }
  102. .content-box {
  103. padding: 24rpx;
  104. &-val {
  105. border-radius: 16rpx 16rpx 0 0;
  106. overflow: hidden;
  107. }
  108. }
  109. }
  110. }
  111. </style>