order.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <template>
  2. <view class="">
  3. <u-tabs name="cate_name" count="cate_count" bar-width="150" bar-height="3" :list="list" :is-scroll="false"
  4. :current="current" @change="change">
  5. </u-tabs>
  6. <view v-if="current==0">
  7. <u-empty text="您暂时没有订单" mode="order" class="flexd"></u-empty>
  8. </view>
  9. <view v-if="current==1">
  10. <u-empty text="您暂时没有订单" mode="order" class="flexd"></u-empty>
  11. </view>
  12. <view v-if="current==2">
  13. <u-empty text="您暂时没有订单" mode="order" class="flexd"></u-empty>
  14. </view>
  15. <view v-if="current==3">
  16. <u-empty text="您暂时没有订单" mode="order" class="flexd"></u-empty>
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. export default {
  22. data() {
  23. return {
  24. list: [{
  25. cate_name: '处理中'
  26. }, {
  27. cate_name: '已成功'
  28. }, {
  29. cate_name: '已撤销'
  30. }, {
  31. cate_name: '全部',
  32. }],
  33. current: 0
  34. }
  35. },
  36. onLoad() {
  37. },
  38. methods: {
  39. change(index) {
  40. this.current = index;
  41. }
  42. }
  43. }
  44. </script>
  45. <style>
  46. page {
  47. background-color: #F3F4F8;
  48. }
  49. .flexd {
  50. position: fixed;
  51. top: 0;
  52. bottom: 0;
  53. left: 0;
  54. right: 0;
  55. z-index: -1;
  56. }
  57. </style>