学员端小程序
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.

117 lines
2.4 KiB

1 year ago
1 year ago
1 year ago
  1. <template>
  2. <view class="pageBgImg">
  3. <topNavbar title="我的订单"></topNavbar>
  4. <view class="pad">
  5. <view class="searcBox">
  6. <searchRow placeholder="搜索"/>
  7. </view>
  8. <view class="tabs">
  9. <view class="tab" v-for="(item,index) in tabList" :key="index" :class="{active: currentTab==item.id}" @click="changeTab(item)">{{ item.text }}</view>
  10. </view>
  11. <view class="navs">
  12. <view class="nav" v-for="(item,index) in navList" :key="index" :class="{active: currentNav==item.id}" @click="changeNav(item)">{{ item.text }}</view>
  13. </view>
  14. <view class="recordTotal">100条记录</view>
  15. <view class="tabCon">
  16. <view class="card" v-for="(item,index) in 10" :key="index" @click="$goPage('/pages/mineEntry/myOrder/detail/detail')">
  17. <opera></opera>
  18. </view>
  19. </view>
  20. </view>
  21. </view>
  22. </template>
  23. <script>
  24. import opera from './comp/opera'
  25. export default {
  26. components: { opera },
  27. data() {
  28. return {
  29. tabList: [
  30. {text: '已付',id: 1},
  31. {text: '待付',id: 2},
  32. {text: '退款',id: 3},
  33. ],
  34. navList: [
  35. {text: '全部', id: 0},
  36. {text: '学费', id: 1},
  37. {text: '考场模拟费', id: 2}
  38. ],
  39. currentTab: 1,
  40. currentNav: 0,
  41. }
  42. },
  43. methods: {
  44. changeTab(item) {
  45. this.currentTab = item.id
  46. },
  47. changeNav(item) {
  48. this.currentNav = item.id
  49. },
  50. }
  51. }
  52. </script>
  53. <style lang="scss" scoped>
  54. .searcBox {
  55. margin: 0 0 20rpx 0;
  56. }
  57. .card {
  58. padding: 0 24rpx;
  59. margin-bottom: 20rpx;
  60. }
  61. .tabs {
  62. display: flex;
  63. width: 100%;
  64. height: 72rpx;
  65. background: #FFFFFF;
  66. border-radius: 16rpx;
  67. margin-top: 20rpx;
  68. .tab {
  69. flex: 1;
  70. text-align: center;
  71. line-height: 72rpx;
  72. color: #ADADAD;
  73. &.active {
  74. background: rgba(25,137,250,0.1);
  75. border-radius: 16rpx;
  76. border: 2rpx solid #1989FA;
  77. color: $themC;
  78. font-weight: 600;
  79. }
  80. }
  81. }
  82. .navs {
  83. display: flex;
  84. justify-content: space-between;
  85. color: #fff;
  86. font-size: 28rpx;
  87. padding: 24rpx 30rpx 40rpx 30rpx;
  88. color: $themC;
  89. .nav {
  90. &.active {
  91. font-weight: 500;
  92. position: relative;
  93. &::before {
  94. position: absolute;
  95. left: 50%;
  96. transform: translateX(-50%);
  97. bottom: -20rpx;
  98. content: '';
  99. width: 56rpx;
  100. height: 6rpx;
  101. background: $themC;
  102. border-radius: 3rpx;
  103. }
  104. }
  105. }
  106. }
  107. .recordTotal {
  108. font-size: 24rpx;
  109. padding: 0rpx 0 28rpx 0;
  110. text-align: right;
  111. }
  112. </style>