自主项目,食堂系统,前端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.

124 lines
3.0 KiB

  1. <template>
  2. <view>
  3. <view class="tabs">
  4. <u-tabs :list="tab_list" :is-scroll="false" :current="current" bg-color="#f6f6f6" active-color="#11D189" @change="tabsChange"></u-tabs>
  5. </view>
  6. <swiper :style="{height: 'calc('+ windowHeight +'px - 110rpx)', width: '750rpx'}"
  7. :current="current" @change="swiperChange">
  8. <swiper-item v-for="(tabItem, tabIndex) in tab_list" :key="tabIndex">
  9. <scroll-view class="lf-w-100 lf-h-100 lf-p-l-32 lf-p-r-32 lf-border-box" :scroll-y="true">
  10. <view class="card" v-for="(item, index) in 10" :key="index" @click="$url('/pages/canteen/delivery/detail')">
  11. <view class="lf-row-between item">
  12. <view class="lf-color-gray">申请人</view>
  13. <view class="lf-color-black">李清玉</view>
  14. </view>
  15. <view class="lf-row-between item">
  16. <view class="lf-color-gray">申请时间</view>
  17. <view class="lf-color-black">2021-07-23 17:24:23</view>
  18. </view>
  19. <view class="lf-row-between item">
  20. <view class="lf-color-gray">商品种类</view>
  21. <view class="lf-color-black">8</view>
  22. </view>
  23. <view class="lf-row-between item">
  24. <view class="lf-color-gray">订单状态</view>
  25. <view class="quoted-price">等待审核</view>
  26. </view>
  27. </view>
  28. <view class="loading-more">
  29. <text :class="{'loading-more-text': tabItem.loading_class}">{{ tabItem.loading_text }}</text>
  30. <!-- <lf-nocontent></lf-nocontent> -->
  31. </view>
  32. </scroll-view>
  33. </swiper-item>
  34. </swiper>
  35. </view>
  36. </template>
  37. <script>
  38. export default {
  39. data(){
  40. return {
  41. current: 0,
  42. tab_list: [{
  43. name: '全部',
  44. loading_class: true,
  45. loading_text: '正在加载中...',
  46. page: 1,
  47. isPage: true,
  48. list: []
  49. },{
  50. name: '申请中',
  51. loading_class: true,
  52. loading_text: '正在加载中...',
  53. page: 1,
  54. isPage: true,
  55. list: []
  56. },{
  57. name: '已出库',
  58. loading_class: true,
  59. loading_text: '正在加载中...',
  60. page: 1,
  61. isPage: true,
  62. list: []
  63. }],
  64. page_size: 10,
  65. windowHeight: 0
  66. }
  67. },
  68. onLoad(){
  69. this.windowHeight = uni.getSystemInfoSync().windowHeight;
  70. },
  71. methods: {
  72. tabsChange(current){
  73. this.current = current;
  74. },
  75. swiperChange(event){
  76. this.current = event.detail.current;
  77. }
  78. }
  79. }
  80. </script>
  81. <style>
  82. page{
  83. background-color: #f6f6f6;
  84. }
  85. </style>
  86. <style lang="scss" scoped="scoped">
  87. .card{
  88. width: 100%;
  89. height: max-content;
  90. background-color: #FFFFFF;
  91. border-radius: 20rpx;
  92. padding: 0 20rpx;
  93. box-sizing: border-box;
  94. margin-bottom: 30rpx;
  95. .item{
  96. padding: 20rpx 0;
  97. box-sizing: border-box;
  98. width: 100%;
  99. border-bottom: 1rpx solid #E5E5E5;
  100. font-size: 28rpx;
  101. &:last-child{
  102. border-bottom: none;
  103. }
  104. }
  105. // 已报价,等待审核
  106. .quoted-price{
  107. color: #777777;
  108. }
  109. // 等待报价
  110. .wait{
  111. color: #1833F2;
  112. }
  113. // 已通过审核
  114. .passed{
  115. color: #0BCE5F;
  116. }
  117. // 报价被拒绝
  118. .refuse{
  119. color: #FF0000;
  120. }
  121. }
  122. </style>