index.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <route lang="json">
  2. { "style": { "navigationBarTitleText": "优惠券包", "navigationBarBackgroundColor": "#fff" } }
  3. </route>
  4. <script setup lang="ts">
  5. import Card from '@/components/card.vue'
  6. const tab = ref()
  7. const tabs = ref([{ label: '商品优惠券' }, { label: '销售积分券' }])
  8. const data = ref([{}])
  9. </script>
  10. <template>
  11. <div class="flex-grow flex flex-col gap-4">
  12. <wd-tabs v-model="tab">
  13. <block v-for="({ label }, i) in tabs" :key="i">
  14. <wd-tab :title="label"></wd-tab>
  15. </block>
  16. </wd-tabs>
  17. <template v-for="(it, i) of data" :key="i">
  18. <Card custom-class="mx-3.5">
  19. <div class="flex gap-3">
  20. <div class="w-[94px] h-[94px] bg-[#f6f6f6] rounded-[10px]"></div>
  21. <div class="flex flex-col justify-around">
  22. <div class="text-black text-sm font-normal font-['PingFang SC'] leading-normal">
  23. GELATO咖啡兑换券
  24. </div>
  25. <div
  26. class="text-center text-black/40 text-xs font-normal font-['PingFang SC'] leading-normal"
  27. >
  28. 有效期:2024/04/01-2024/05/30
  29. </div>
  30. <div class="text-black/40 text-xs font-normal font-['PingFang SC'] leading-normal">
  31. 使用说明
  32. </div>
  33. </div>
  34. </div>
  35. </Card>
  36. </template>
  37. </div>
  38. </template>