88 lines
1.7 KiB
Vue
88 lines
1.7 KiB
Vue
<template>
|
|
<div class="user-merit border-bottom" v-if="data && data.user_info">
|
|
<img
|
|
:src="data.user_info.avatar"
|
|
alt=""
|
|
/>
|
|
<div class="profile">
|
|
<div>
|
|
<div class="name">
|
|
<span>{{data.user_info.nickname}}</span>
|
|
<!-- <span>{{data.user_info.region}}</span>-->
|
|
</div>
|
|
<p class="goods_name">{{data.goods_name}}</p>
|
|
</div>
|
|
</div>
|
|
<div class="result">
|
|
<p class="money">{{data.order_amount || data.sum_money}}元</p>
|
|
<span class="date">{{data.paid_at}}</span>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: "user-merit",
|
|
props: ['data']
|
|
};
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.user-merit {
|
|
display: flex;
|
|
padding: .27rem 0.4rem;
|
|
img {
|
|
width: 1.17rem;
|
|
height: 1.17rem;
|
|
border-radius: 1.17rem;
|
|
margin-right: 0.4rem;
|
|
}
|
|
.profile {
|
|
flex: 1;
|
|
padding-top: .13rem;
|
|
.name {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
margin-bottom: .27rem;
|
|
span:first-child {
|
|
font-size: 0.4rem;
|
|
color: #222;
|
|
vertical-align: top;
|
|
display: inline-block;
|
|
margin-right: .4rem;
|
|
}
|
|
span:last-child {
|
|
font-size: 0.32rem;
|
|
color: #666;
|
|
vertical-align: text-bottom;
|
|
display: inline-block;
|
|
}
|
|
}
|
|
p.goods_name{
|
|
font-size: 0.32rem;
|
|
max-width: 4rem;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
}
|
|
.result {
|
|
font-size: 0.32rem;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
flex-direction: column;
|
|
padding: .13rem 0;
|
|
text-align: right;
|
|
.money {
|
|
font-size: 0.37rem;
|
|
color: $primary-color;
|
|
font-weight: bold;
|
|
}
|
|
.date {
|
|
font-size: 0.3rem;
|
|
color: #888;
|
|
}
|
|
}
|
|
}
|
|
</style>
|