incomeItem.vue 2.13 KB
<template>
  <div class="assets-record-container">
  <div class='assets-record-info-detail-view'>
    <div class='assets-record-left-view'>
      <div class='assets-record-middle-view'>
        <span class='assets-record-code-txt'>{{data.productName}}<span class="size">(尺码:{{data.sizeName}})</span></span>
        <span class='assets-record-time-txt'>{{data.time}}</span>
      </div>
    </div>
    <div class='assets-record-right-view'>
      <span class='assets-record-income-txt'>{{data.price}}</span>
      <!-- <span class='assets-record-income-tip-txt' v-if="!data.normalFlag">打款失败</span> -->
      <span class='assets-record-income-desc'>{{data.tradeTypeDesc}}</span>
    </div>
  </div>
  </div>
</template>

<script>

export default {
  name: 'income-item',
  props: {
      data: {
          type: Object,
          default: {}
      }
  },
  data() {
    return {
     
    };
  },
};
</script>

<style lang="scss" scoped>
  .assets-record-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: solid 1px #E0E0E0;
}

.assets-record-info-detail-view {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  padding-bottom: 30px;
}
.assets-record-left-view {
  display: flex;
  flex-direction: row;
  align-items: center;

}
.assets-record-middle-view {
  display: flex;
  flex-direction: column;
  margin-left: 20px;
}
.assets-record-right-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
}
.assets-record-image-style {
  width: 48px;
  height: 48px;
}
.assets-record-code-txt {
  font-family: PingFang-SC-Regular;
  font-size: 28px;
  color: #000000;
}
.size {
  display: inline-block;
}
.assets-record-time-txt {
  font-family: SFProText-Regular;
  font-size: 24px;
  color: #999999;
  margin-top: 12px;
}
.assets-record-income-txt {
  font-family: SFProText-Medium;
  font-weight: bold;
  font-size: 28px;
  color: #65AB85;
}
.assets-record-income-tip-txt {
  font-family: PingFang-SC-Regular;
  font-size: 20px;
  color: #D0021B;
}
.assets-record-income-desc {
  color: #999;
}
</style>