my-coupon.vue 929 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <template>
  2. <v-header
  3. title="优惠券"
  4. backgroundColor="#fff"
  5. >
  6. <view class="screen_all">
  7. <tab
  8. :tabs="tabsData"
  9. @change="change"
  10. :value="value"
  11. :first="true"
  12. color="#028748"
  13. >
  14. <layout-coupon-list
  15. v-for="(item,index) in tabsData"
  16. :key="index"
  17. v-if="loadings[index]"
  18. :status="item.status"
  19. :slot="'tab-'+index"
  20. ></layout-coupon-list>
  21. </tab>
  22. </view>
  23. </v-header>
  24. </template>
  25. <script>
  26. import vHeader from '@/components/v-header/main';
  27. import tab from '@/components/tab/main';
  28. import layoutCouponList from '@/layout/layout-coupon-list/layout-coupon-list';
  29. import mixins from './mixins';
  30. export default {
  31. name: "my-coupon",
  32. mixins,
  33. components:{
  34. vHeader,
  35. tab,
  36. layoutCouponList
  37. }
  38. }
  39. </script>
  40. <style scoped lang="scss" src="./style.scss">
  41. </style>