add.vue 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <template>
  2. <view class="content-box">
  3. <uni-nav-bar fixed="true" statusBar="true" left-icon="back" title="领料" background-color="#F7F9FA"
  4. color="#404446" @clickLeft="back">
  5. <block slot="right">
  6. <button @click="openSearch" class="search_btn">搜索</button>
  7. </block>
  8. </uni-nav-bar>
  9. <view class="list_box">
  10. <u-list @scrolltolower="scrolltolower">
  11. <view v-for="(item,index) in 100" :key='index'>
  12. {{item}}
  13. </view>
  14. </u-list>
  15. </view>
  16. <view class="bottom-wrapper">
  17. <view class="btn_box"></view>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. export default {
  23. data() {
  24. return {
  25. show: false,
  26. searchFrom: {
  27. keyWord: ''
  28. }
  29. }
  30. },
  31. methods: {
  32. scrolltolower() {},
  33. openSearch() {},
  34. }
  35. }
  36. </script>
  37. <style lang="scss" scoped>
  38. .content-box {
  39. height: 100vh;
  40. overflow: hidden;
  41. display: flex;
  42. flex-direction: column;
  43. background-color: $page-bg;
  44. }
  45. .search_btn {
  46. width: 120rpx;
  47. height: 70rpx;
  48. line-height: 70rpx;
  49. padding: 0 24rpx;
  50. background: $theme-color;
  51. font-size: 32rpx;
  52. color: #fff;
  53. margin: 0;
  54. }
  55. .list_box {
  56. flex: 1;
  57. overflow: hidden;
  58. padding: 4rpx 0;
  59. .u-list {
  60. height: 100% !important;
  61. }
  62. }
  63. .btn_box {
  64. width: 750rpx;
  65. height: 112rpx;
  66. background: #fff;
  67. }
  68. </style>