recordItem.vue 1.49 KB
Newer Older
1 2
<template>
  <div class="record-item">
leiqingsong's avatar
leiqingsong committed
3
    <img src="@/assets/images/消费.png" />
4 5
    <div class="item" style="flex:2;margin-left:10px">
      <span style="font-size:14px;color:#333333">提现</span>
leiqingsong's avatar
leiqingsong committed
6 7 8
      <span style="font-size:12px;color:#999999">{{
        recordItem.moneyTime
      }}</span>
9 10
    </div>
    <div class="item" style="flex:1">
leiqingsong's avatar
leiqingsong committed
11 12 13 14 15 16
      <span style="font-size:16px;font-weight:bold;#333333;"
        >{{ recordItem.money }}</span
      >
      <span :class="`status-process`" style="font-size:12px">{{
        recordItem.status | cashOutStatus
      }}</span>
17 18 19 20
    </div>
  </div>
</template>

leiqingsong's avatar
leiqingsong committed
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
<script>
export default {
  name: "RecordItem",
  props: {
    recordItem: {
      type: Object,
      default: () => {}
    }
  },
  filters: {
    cashOutStatus(val) {
      let statusStr = "";
      switch (val) {
        case 2:
          statusStr = "银行处理中";
          break;
        case 3:
          statusStr = "提现成功";
          break;
        default:
          statusStr = "";
          break;
      }
      return statusStr;
    }
  }
};
</script>

50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
<style lang="scss" scoped>
.record-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 0 15px;
  width: 100%;
  height: 44px;
  img {
    width: 34px;
    height: 34px;
  }
  .item {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 100%;
  }
  .status-process {
    // 银行处理中
    color: #88c678;
  }
  .status-success {
    color: #999999;
  }
}
</style>