dcc
2024-06-13 3616db170333df7d668c97323344335b52c4153c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<template>
  <div>
    <order-list-item
      @openOrder="openOrder(item)"
      v-for="(item, index) in orderList"
      :key="index"
      :item="item"
    />
  </div>
</template>
 
<script>
import { mapState } from "pinia";
import OrderListItem from "./OrderListItem.vue";
export default {
  name: "OrderList",
  props: ["orderList"],
  components: {
    OrderListItem,
  },
  methods: {
    openOrder(item) {
      this.$router.push(
        "/c2c/orderSuccess?id=" +
          item.order_no +
          "&isBuy=" +
          (item.direction == "buy" ? 1 : 2)
      );
    },
  },
};
</script>
 
<style scoped></style>