giftGivingItem.vue
2.17 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<template>
<div v-if="giftGivingItem && giftGivingItem.length > 0">
<div
class="giftItem_box"
v-for="(item, index) in giftGivingItem"
:key="index"
>
<!--用户信息-->
<div class="user_info">
<div class="name">{{ item.create_time }}(赠礼)</div>
<div class="gift_active">{{ item.status }}</div>
</div>
<!--商品信息-->
<div class="item_info">
<img v-lazy="item.goods.simg" />
<div class="box">
<div class="name">{{ item.goods.title }}</div>
<div class="pirce">
<div class="title">
<span>¥</span>{{ item.goods.price }}
</div>
<div class="btn">
总数:{{ parseInt(item.goods.num) }}
</div>
</div>
</div>
</div>
<!-- 显示文字 -->
<div class="text_tip">
<span v-show="item.total_num">可分享<num>{{item.total_num}}</num>人,</span>
<span v-show="item.give_num">已领 <num>{{item.give_num}}</num> 人,</span>
<span v-show="item.no_address_num"><num>{{item.no_address_num}}</num> 人未填写地址,</span>
<span v-show="item.refund_num"><num>{{item.refund_num}}</num>人退款中</span>
</div>
<!-- 按钮 -->
<div class="btn_list">
<div class="box">
<div class="btn">取消支付</div>
<div class="active">立即支付</div>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
name: "name",
data() {
return {};
},
props: ["giftGivingItem"],
created() {},
methods: {
giftInReturn(item) {
this.$emit("giftInReturn", item);
}
}
};
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style rel="stylesheet/less" lang="less" scoped>
@import "giftGivingItem";
</style>