exchange-record.vue 910 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <template>
  2. <view>
  3. <headContent>&#xe642;
  4. <template #left>
  5. <reverse-back />
  6. </template>
  7. <template #content>
  8. <view class="haed-title">
  9. 兑换记录
  10. </view>
  11. </template>
  12. </headContent>
  13. <gap />
  14. <view class="page-content">
  15. <block v-for="(item , index) in recordList" :key="`record_${index}`">
  16. <view class="">
  17. {{ item.l_currency }} - {{ item.r_currency }} - {{ item.num }}
  18. </view>
  19. </block>
  20. </view>
  21. </view>
  22. </template>
  23. <script>
  24. import { Api_getFlashRecord } from "@/api/index.js"
  25. export default {
  26. name:'exchange-record',
  27. data() {
  28. return {
  29. recordList:[]
  30. };
  31. },
  32. onLoad() {
  33. this.getFlashRecord()
  34. },
  35. mounted() {
  36. },
  37. methods:{
  38. getFlashRecord(){
  39. Api_getFlashRecord().then(res => {
  40. this.recordList = res.data
  41. })
  42. }
  43. }
  44. }
  45. </script>
  46. <style lang="scss" scoped>
  47. .page-content{
  48. padding: 0 $pages-padding;
  49. }
  50. </style>