order.vue 1.3 KB

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