coupon.vue 944 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <template>
  2. <view class="container">
  3. <wd-tabs v-model="tab" auto-line-width custom-class="custom_class_tab">
  4. <block v-for="item in tabs" :key="item">
  5. <wd-tab :title="`${item}`" :name="item">
  6. <view class="content">
  7. <view class="status_tip">
  8. <wd-status-tip image="content" tip="暂无内容" />
  9. </view>
  10. </view>
  11. </wd-tab>
  12. </block>
  13. </wd-tabs>
  14. </view>
  15. </template>
  16. <script setup>
  17. import { ref } from 'vue'
  18. const tab = ref(0)
  19. const tabs = ref(['待使用', '已使用', '已过期'])
  20. </script>
  21. <style lang="scss" scoped>
  22. .container {
  23. box-sizing: border-box;
  24. padding: 0 30rpx;
  25. height: 100%;
  26. color: #001713;
  27. background-color: #fffdfb;
  28. :deep(.custom_class_tab .wd-tabs__line) {
  29. background-color: #ff8205;
  30. }
  31. .content {
  32. box-sizing: border-box;
  33. padding: 30rpx 0;
  34. height: calc(100vh - 84rpx);
  35. color: #001713;
  36. overflow-y: auto;
  37. .status_tip {
  38. margin-top: 100rpx;
  39. }
  40. }
  41. }
  42. </style>