fashion-detail.vue
3.32 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<template>
<Layout>
<LayoutHeader slot="header" title="潮物详情" :share="shareData"></LayoutHeader>
<div class="fashion-detail-page">
<div class="product-info">
<img src="//img12.static.yhbimg.com/goodsimg/2018/12/24/09/02ce4a371bd58b47e599f8e04c7c7bc250.jpg?imageMogr2/thumbnail/235x314/position/center/quality/60" alt="" class="product-img">
<div class="product-info-right">
<div class="product-title">Lee X-LINE系列男士宽松插画印花背带裤</div>
<div class="product-desc">一年到头,我们总喜欢给过去来个总结。要说今年最火的穿搭元素,我想离不开两个字——“老爹”。满大街的老爹鞋,从去年踩到今年,足以证明这股复古风潮的影响力。</div>
<div class="product-price">
<span class="sale-price">¥899</span>
<span class="market-price">¥1899</span>
</div>
</div>
</div>
<div class="follow">
<span class="follow-num">3998人已种草</span>
</div>
<div class="hot-comment out-box">
<div class="comment-title"></div>
</div>
<div class="you-like out-box">
<div class="yoho-like-title"></div>
</div>
</div>
</Layout>
</template>
<script>
export default {
name: 'fashionDetail',
data() {
return {
shareData: {}
}
}
}
</script>
<style scoped lang="scss">
.fashion-detail-page {
.product-info {
display: flex;
padding: 30px;
box-sizing: border-box;
.product-img {
width: 320px;
height: 424px;
}
.product-info-right {
width: 350px;
margin-left: 20px;
}
.product-title {
font-size: 30px;
color: #222;
line-height: 44px;
font-weight: bold;
}
.product-desc {
font-size: 26px;
color: #B0B0B0;
line-height: 36px;
margin-top: 18px;
height: 174px;
overflow: hidden;
word-break: break-all;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 5;
}
.product-price {
display: flex;
align-items: center;
margin-top: 84px;
}
.sale-price {
color: #D0021B;
font-size: 28px;
}
.market-price {
color: #B0B0B0;
font-size: 20px;
margin-left: 12px;
}
}
.follow {
margin-bottom: 30px;
}
.out-box {
border-top: 20px solid #F0F0F0;
padding: 30px;
}
.comment-title {
background: url(../../statics/image/fashion/jcrp_title@2x.png) no-repeat;
background-size: contain;
width: 310px;
height: 78px;
margin: 0 auto;
}
.yoho-like-title {
background: url(../../statics/image/fashion/cnxh_title@2x.png) no-repeat;
background-size: contain;
width: 250px;
height: 78px;
margin: 0 auto;
}
}
</style>