自主项目,食堂系统,前端uniapp
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

119 lines
2.6 KiB

  1. <template>
  2. <view>
  3. <view class="head">
  4. <uni-search-bar @confirm="search" placeholder="搜索供应商" radius="90" bgColor="#f6f6f6" ></uni-search-bar>
  5. </view>
  6. <view class="lf-flex content">
  7. <scroll-view :scroll-y="true" class="scroll-left"
  8. :style="{height: 'calc('+ windowHeight +'px - 222rpx)'}">
  9. <view class="tab-item" :class="{'activa': index == 0}" v-for="(item, index) in 3" :key="index">{{ '分类'+ (item + 1) }}</view>
  10. </scroll-view>
  11. <scroll-view :scroll-y="true" class="scroll-right"
  12. :style="{height: 'calc('+ windowHeight +'px - 222rpx)'}">
  13. <view class="supplier-item" v-for="(item, index) in 20" :key="index">
  14. <label class="lf-row-between">
  15. <view>供应商</view>
  16. <u-icon name="checkmark-circle-fill" size="40" color="#11D189"></u-icon>
  17. </label>
  18. </view>
  19. <view class="loading-more">
  20. <text class="loading-more-text">正在加载中...</text>
  21. </view>
  22. </scroll-view>
  23. </view>
  24. <!-- 操作按钮 -->
  25. <view class="fixed-bottom">
  26. <button class="btn btn1">取消</button>
  27. <button class="btn btn2">确定</button>
  28. </view>
  29. </view>
  30. </template>
  31. <script>
  32. export default {
  33. data(){
  34. return {
  35. windowHeight: 0
  36. }
  37. },
  38. onLoad(){
  39. this.windowHeight = uni.getSystemInfoSync().windowHeight;
  40. },
  41. methods: {
  42. search(event){
  43. console.log("search.event", event);
  44. }
  45. }
  46. }
  47. </script>
  48. <style lang="scss" scoped="scoped">
  49. /deep/.uni-searchbar__box{
  50. border: none;
  51. }
  52. .head{
  53. padding: 14rpx 16rpx;
  54. }
  55. .scroll-left{
  56. width: 200rpx;
  57. background-color: #F6F6F6;
  58. .tab-item{
  59. height: 90rpx;
  60. width: 100%;
  61. text-align: center;
  62. line-height: 90rpx;
  63. font-size: 28rpx;
  64. color: #555555;
  65. }
  66. .activa{
  67. color: #11D189;
  68. }
  69. }
  70. .scroll-right{
  71. width: 550rpx;
  72. background-color: #FFFFFF;
  73. .supplier-item{
  74. padding: 30rpx 32rpx 30rpx 30rpx;
  75. width: 100%;
  76. height: max-content;
  77. box-sizing: border-box;
  78. border-bottom: 1rpx solid #e5e5e5;
  79. font-size: 28rpx;
  80. color: #222222;
  81. }
  82. }
  83. .fixed-bottom{
  84. position: fixed;
  85. bottom: 0rpx;
  86. left: 0rpx;
  87. z-index: 99;
  88. width: 750rpx;
  89. height: 98rpx;
  90. display: flex;
  91. justify-content: space-between;
  92. align-items: center;
  93. border-top: 1rpx solid #E5E5E5;
  94. background-color: #FFFFFF;
  95. box-sizing: border-box;
  96. padding: 0 32rpx;
  97. .btn{
  98. width: 320rpx;
  99. height: 82rpx;
  100. border-radius: 41rpx;
  101. margin: 0;
  102. padding: 0;
  103. font-size: 32rpx;
  104. display: flex;
  105. justify-content: center;
  106. align-items: center;
  107. }
  108. .btn1{
  109. border: 2rpx solid #555555;
  110. opacity: .5;
  111. }
  112. .btn2{
  113. background: #11D189;
  114. color: #FFFFFF;
  115. }
  116. }
  117. </style>