Blame view

apps/pages/fashion/fashion-detail.vue 9.51 KB
王水玲 authored
1 2 3 4 5 6 7 8 9 10 11 12 13 14
<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>
王水玲 authored
15 16 17
            </div>

            <div class="follow">
王水玲 authored
18
                <WidgetAvatarGroup :avatars="avatars" :option="{srcKey: 'src', maxDisplayNum: 10}"></WidgetAvatarGroup>
王水玲 authored
19 20 21 22 23
                <span class="follow-num">3998人已种草</span>
            </div>

            <div class="hot-comment out-box">
                <div class="comment-title"></div>
王水玲 authored
24 25 26 27
                <div class="comment-list">
                    <CommentList v-for="(comment, index) in commentInfos" v-bind="comment" :columnType="1003" :key="index"></CommentList>
                </div>
                <span class="more">查看更多</span>
王水玲 authored
28 29 30 31
            </div>

            <div class="you-like out-box">
                <div class="yoho-like-title"></div>
王水玲 authored
32 33 34 35 36 37 38
                <ProductList></ProductList>
            </div>

            <div class="fashion-footer">
                <div class="grass-btn"><span class="iconfont icon-grass-fill"></span><em>种草</em></div>
                <div class="comment-btn"><span class="iconfont icon-msg-blod"></span><em>评论</em></div>
                <button class="go-buy">立即购买</button>
王水玲 authored
39 40 41 42 43 44 45
            </div>
        </div>
    </Layout>
</template>

<script>
export default {
yyq authored
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 125 126 127 128 129 130 131
  name: 'fashionDetail',
  data() {
    return {
      shareData: {},
      avatars: [{src: '//img10.static.yhbimg.com/author/2018/11/26/15/01fbe6e21e3b9120685834e1f6173e31c5.jpg?imageView2/2/interlace/1/q/75'},
        {src: '//img10.static.yhbimg.com/author/2018/11/26/15/01fbe6e21e3b9120685834e1f6173e31c5.jpg?imageView2/2/interlace/1/q/75'},
        {src: '//img10.static.yhbimg.com/author/2018/11/26/15/01fbe6e21e3b9120685834e1f6173e31c5.jpg?imageView2/2/interlace/1/q/75'},
        {src: '//img10.static.yhbimg.com/author/2018/11/26/15/01fbe6e21e3b9120685834e1f6173e31c5.jpg?imageView2/2/interlace/1/q/75'},
        {src: '//img10.static.yhbimg.com/author/2018/11/26/15/01fbe6e21e3b9120685834e1f6173e31c5.jpg?imageView2/2/interlace/1/q/75'},
        {src: '//img10.static.yhbimg.com/author/2018/11/26/15/01fbe6e21e3b9120685834e1f6173e31c5.jpg?imageView2/2/interlace/1/q/75'},
        {src: '//img10.static.yhbimg.com/author/2018/11/26/15/01fbe6e21e3b9120685834e1f6173e31c5.jpg?imageView2/2/interlace/1/q/75'},
        {src: '//img10.static.yhbimg.com/author/2018/11/26/15/01fbe6e21e3b9120685834e1f6173e31c5.jpg?imageView2/2/interlace/1/q/75'},
        {src: '//img10.static.yhbimg.com/author/2018/11/26/15/01fbe6e21e3b9120685834e1f6173e31c5.jpg?imageView2/2/interlace/1/q/75'},
        {src: '//img10.static.yhbimg.com/author/2018/11/26/15/01fbe6e21e3b9120685834e1f6173e31c5.jpg?imageView2/2/interlace/1/q/75'}
      ],
      commentInfos: [{
        childrenComments: [
          {
            content: 'fdsfdsfsdf对方水电费第三方',
            id: 68,
            isPraise: 'Y',
            parentId: 66,
            parentUid: 500030381,
            praiseTotal: '12',
            rootId: 66,
            status: 1,
            uid: 600033622,
            columnType: 1000,
            destId: 600033622,
            createTime: 111,
            userName: '三只松鼠',
            headIco: '//img10.static.yhbimg.com/author/2018/11/26/15/01fbe6e21e3b9120685834e1f6173e31c5.jpg?imageView2/2/interlace/1/q/75',
            parentUserName: '',
            articleType: 1
          },
          {
            content: 'fdsfdsfsdf对方水电费第三方',
            id: 68,
            isPraise: 'Y',
            parentId: 66,
            parentUid: 500030381,
            praiseTotal: '12',
            rootId: 66,
            status: 1,
            uid: 600033622,
            columnType: 1000,
            destId: 600033622,
            createTime: 111,
            userName: '三只松鼠',
            headIco: '//img10.static.yhbimg.com/author/2018/11/26/15/01fbe6e21e3b9120685834e1f6173e31c5.jpg?imageView2/2/interlace/1/q/75',
            parentUserName: '大松鼠',
            articleType: 1
          },
          {
            content: 'fdsfdsfsdf对方水电费第三方',
            id: 68,
            isPraise: 'Y',
            parentId: 66,
            parentUid: 500030381,
            praiseTotal: '12',
            rootId: 66,
            status: 1,
            uid: 600033622,
            columnType: 1000,
            destId: 600033622,
            createTime: 111,
            userName: '三只松鼠',
            headIco: '//img10.static.yhbimg.com/author/2018/11/26/15/01fbe6e21e3b9120685834e1f6173e31c5.jpg?imageView2/2/interlace/1/q/75',
            parentUserName: '大松鼠',
            articleType: 1
          }
        ],
        parentComment: {
          articleType: 1,
          content: 'fsefs第三方',
          createTime: 23213,
          id: 66,
          isPraise: 'Y',
          praiseTotal: '11',
          status: 0,
          uid: 500030381,
          columnType: 1000,
          destId: 600033622,
          articleId: 123,
          userName: '大松鼠',
          headIco: '//img13.static.yhbimg.com/author/2018/12/10/10/02143c5a70e288801cda4ac4f3fa8b9d7b.jpg?imageView2/2/interlace/1/q/75',
王水玲 authored
132
        }
yyq authored
133 134 135 136
      }],
    };
  }
};
王水玲 authored
137 138
</script>
王水玲 authored
139
<style scoped lang="scss">
王水玲 authored
140 141 142
.fashion-detail-page {
    .product-info {
        display: flex;
王水玲 authored
143 144
        padding: 30px;
        box-sizing: border-box;
王水玲 authored
145 146

        .product-img {
王水玲 authored
147 148
            width: 320px;
            height: 424px;
王水玲 authored
149
        }
王水玲 authored
150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196

        .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;
王水玲 authored
197 198 199 200 201 202
        padding: 0 30px;
        clear: both;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: space-between;
王水玲 authored
203 204 205 206 207 208 209
    }

    .out-box {
        border-top: 20px solid #F0F0F0;
        padding: 30px;
    }
王水玲 authored
210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248
    .hot-comment {
		display: flex;
		width: 100%;
		flex-direction: column;

        .comment-title {
            background: url(../../statics/image/fashion/jcrp_title@2x.png) no-repeat;
            background-size: contain;
            width: 310px;
            height: 78px;
            margin: 0 auto 60px;
        }

		.more {
			font-size: 24px;
			color: #B0B0B0;
			margin: 60px auto 30px;
			display: flex;
			align-items: center;

			&:before{
				content: "";
				background: #B0B0B0;
				width: 40px;
				height: 2px;
				margin-right: 20px;
				display: inline-block;
			}

			&:after{
				content: "";
				background: #B0B0B0;
				width: 40px;
				height: 2px;
				margin-left: 20px;
				display: inline-block;
			}
		}
	}
王水玲 authored
249 250 251 252 253 254 255

    .yoho-like-title {
        background: url(../../statics/image/fashion/cnxh_title@2x.png) no-repeat;
        background-size: contain;
        width:  250px;
        height: 78px;
        margin: 0 auto;
王水玲 authored
256
    }
王水玲 authored
257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306

    .fashion-footer {
        height: 120px;
        width: 100%;
        background: #fff ;
        border-top: 1px solid #D8D8D8 ;
        position: fixed;
        bottom: 0;
        display: flex;
        justify-content: space-around;
        align-items: center;
        box-sizing: border-box;

        .go-buy {
            background: #D0021B;
            color: #fff;
            text-align: center;
            width: 260px;
            height: 88px;
            border: none;
            outline: none;
            border-radius: 6px;
            margin: 0 30px;
        }

        .comment-btn,
        .grass-btn {
            flex: 1;
            display: flex;
            flex-direction: column;
            text-align: center;
            font-size: 18px;
            color: #444;

            span {
                font-size: 52px;
            }

            em {
                font-style: normal;
                margin-top: -6px;
            }
        }

        .comment-btn {
            span {
                color: #b0b0b0;
            }
        }
    }
王水玲 authored
307 308
}
</style>