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

126 lines
2.9 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="#1833F2" @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 16" :key="index" @click="$url('/pages/supply/order/detail')">
  11. <view class="lf-row-between upper">
  12. <view class="lf-font-28 lf-color-333">订单状态</view>
  13. <view class="order-btn quoted-price">已报价等待审核</view>
  14. </view>
  15. <view class="lf-row-between lower">
  16. <view>报价单号 327684287343874</view>
  17. <view>2021-7-6 23:24:46</view>
  18. </view>
  19. </view>
  20. <view class="loading-more">
  21. <text :class="{'loading-more-text': tabItem.loading_class}">{{ tabItem.loading_text }}</text>
  22. <!-- <lf-nocontent></lf-nocontent> -->
  23. </view>
  24. </scroll-view>
  25. </swiper-item>
  26. </swiper>
  27. </view>
  28. </template>
  29. <script>
  30. export default {
  31. data(){
  32. return {
  33. current: 0,
  34. tab_list: [{
  35. name: '全部',
  36. loading_class: true,
  37. loading_text: '正在加载中...',
  38. page: 1,
  39. isPage: true,
  40. list: []
  41. },{
  42. name: '审核中',
  43. loading_class: true,
  44. loading_text: '正在加载中...',
  45. page: 1,
  46. isPage: true,
  47. list: []
  48. },{
  49. name: '已完成',
  50. loading_class: true,
  51. loading_text: '正在加载中...',
  52. page: 1,
  53. isPage: true,
  54. list: []
  55. }],
  56. page_size: 10,
  57. windowHeight: 0
  58. }
  59. },
  60. onLoad(){
  61. this.windowHeight = uni.getSystemInfoSync().windowHeight;
  62. },
  63. methods: {
  64. tabsChange(current){
  65. this.current = current;
  66. },
  67. swiperChange(event){
  68. this.current = event.detail.current;
  69. }
  70. }
  71. }
  72. </script>
  73. <style>
  74. page{
  75. background-color: #f6f6f6;
  76. }
  77. </style>
  78. <style lang="scss" scoped="scoped">
  79. .card{
  80. width: 100%;
  81. height: max-content;
  82. background-color: #FFFFFF;
  83. border-radius: 20rpx;
  84. padding: 0 20rpx;
  85. box-sizing: border-box;
  86. margin-bottom: 30rpx;
  87. .upper{
  88. width: 100%;
  89. padding: 20rpx 0;
  90. border-bottom: 1rpx solid #e5e5e5;
  91. box-sizing: border-box;
  92. .order-btn{
  93. width: max-content;
  94. height: 62rpx;
  95. border-radius: 32rpx;
  96. // border: 2rpx solid #777777;
  97. // padding: 0 20rpx;
  98. line-height: 60rpx;
  99. font-size: 28rpx;
  100. }
  101. // 已报价,等待审核
  102. .quoted-price{
  103. color: #777777;
  104. }
  105. // 等待报价
  106. .wait{
  107. color: #1833F2;
  108. }
  109. // 已通过审核
  110. .passed{
  111. color: #0BCE5F;
  112. }
  113. // 报价被拒绝
  114. .refuse{
  115. color: #FF0000;
  116. }
  117. }
  118. .lower{
  119. padding: 20rpx 0;
  120. font-size: 24rpx;
  121. color: #777777;
  122. }
  123. }
  124. </style>