order.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <template>
  2. <view>
  3. <navbar :config="config" backColor="#666"></navbar>
  4. <view class="Body">
  5. <view class="tabBox">
  6. <view :class="{active:selTabIndex==0}" @click="switchTab(0)">商城订单</view>
  7. <view :class="{active:selTabIndex==1}" @click="switchTab(1)">集采订单</view>
  8. <view :class="{active:selTabIndex==2}" @click="switchTab(2)">加盟订单</view>
  9. </view>
  10. <view class="minTabBox">
  11. <view :class="{active:selMinTabIndex==0}" @click="switchMinTab(0)">全部订单</view>
  12. <view :class="{active:selMinTabIndex==1}" @click="switchMinTab(1)">已付款</view>
  13. <view :class="{active:selMinTabIndex==2}" @click="switchMinTab(2)">已完成</view>
  14. <view :class="{active:selMinTabIndex==3}" @click="switchMinTab(3)">已结算</view>
  15. </view>
  16. <view class="noDataCls">
  17. <image src="/static/operationCenter/noData.png" mode=""></image>
  18. <view>暂无数据!</view>
  19. </view>
  20. </view>
  21. </view>
  22. </template>
  23. <script>
  24. export default {
  25. data() {
  26. return {
  27. config: {
  28. back: true,
  29. title: '推广订单',
  30. color: '#1A1A1A',
  31. backgroundColor: [1, "#ffffff"],
  32. statusBarFontColor: 'black',
  33. },
  34. selTabIndex: 0,
  35. selMinTabIndex: 0
  36. }
  37. },
  38. methods: {
  39. switchTab(index) {
  40. this.selTabIndex = index
  41. },
  42. switchMinTab(index) {
  43. this.selMinTabIndex = index
  44. }
  45. }
  46. }
  47. </script>
  48. <style lang="scss" scoped>
  49. .Body {
  50. .tabBox {
  51. display: flex;
  52. justify-content: space-between;
  53. padding: 0 30rpx;
  54. border-bottom: 1rpx solid #E6E6E6;
  55. >view {
  56. font-size: 30rpx;
  57. padding: 22rpx 0;
  58. color: #1A1A1A;
  59. position: relative;
  60. font-weight: 700;
  61. }
  62. >.active {
  63. color: #22A834;
  64. &::after {
  65. display: block;
  66. width: 100%;
  67. height: 4rpx;
  68. content: "";
  69. background: #22A834;
  70. position: absolute;
  71. bottom: 0;
  72. left: 0;
  73. border-radius: 2rpx;
  74. }
  75. }
  76. }
  77. .minTabBox {
  78. display: flex;
  79. justify-content: space-between;
  80. padding: 0 20rpx;
  81. margin-top: 22rpx;
  82. >view {
  83. width: 140rpx;
  84. display: flex;
  85. justify-content: center;
  86. align-items: center;
  87. padding: 14rpx 0;
  88. color: #333333;
  89. background: #F2F2F2;
  90. border-radius: 30rpx;
  91. font-size: 26rpx;
  92. position: relative;
  93. }
  94. >.active {
  95. color: #FFFFFF;
  96. background: #22A834;
  97. }
  98. }
  99. }
  100. .noDataCls{
  101. text-align: center;
  102. font-size: 28rpx;
  103. color: #333333;
  104. margin-top: 200rpx;
  105. image{
  106. width: 300rpx;
  107. height: 224rpx;
  108. margin-bottom: 32rpx;
  109. }
  110. }
  111. </style>