order-margin.vue
1.31 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
66
67
68
<template>
<div>
<div class="tip" v-if="!superSell">需支付保证金:<span class="red">{{data.earnestMoneyStr || '¥0'}}</span><i v-if="!hiddenIcon"
class="iconfont iconquestion icon-class"
@click="onClick"></i></div>
<div class="tip2">所有商品必须为国内现货,且承诺36小时内发货,交易成功后将自动退还保证金</div>
</div>
</template>
<script>
export default {
name: 'OrderFee',
props: {
data: {
type: Object,
default() {
return {};
}
},
hiddenIcon: {
type: Boolean,
default() {
return false;
}
},
superSell: {
type: Boolean,
default() {
return false;
}
},
url: {
type: String,
default: ''
}
},
methods: {
onClick() {
if (this.url) {
this.$xianyu.goXianyuNewPage({url: this.url});
}
}
}
};
</script>
<style lang="scss" scoped>
.tip {
font-size: 28px;
color: black;
margin-bottom: 10px;
}
.red {
color: #d0021b;
}
.tip2 {
font-size: 24px;
color: #999;
}
.icon-class {
color: #d8d8d8;
font-size: 26px;
margin-left: 20px;
}
</style>