Commit 15a3f9828fc4504ad7ae092e308c0c1e3b15fc2c
1 parent
9ac51066
视听专区样式优化
Showing
2 changed files
with
107 additions
and
0 deletions
src/components/videoArea/videoArea.less
0 → 100644
| 1 | +.item_box{ | ||
| 2 | + img{ | ||
| 3 | + width: 100%; | ||
| 4 | + height: 380px; | ||
| 5 | + display: block; | ||
| 6 | + } | ||
| 7 | + .title{ | ||
| 8 | + margin: 20px 0 0 20px; | ||
| 9 | + height:42px; | ||
| 10 | + font-size:30px; | ||
| 11 | + font-weight:500; | ||
| 12 | + color:rgba(102,102,102,1); | ||
| 13 | + line-height:42px; | ||
| 14 | + } | ||
| 15 | + .desc{ | ||
| 16 | + margin: 4px 20px 0 20px; | ||
| 17 | + height:40px; | ||
| 18 | + font-size:28px; | ||
| 19 | + font-weight:400; | ||
| 20 | + color:rgba(156,156,156,1); | ||
| 21 | + line-height:40px; | ||
| 22 | + padding-bottom: 20px; | ||
| 23 | + border-bottom: solid 1px #F2F2F2; | ||
| 24 | + } | ||
| 25 | + .pic_box{ | ||
| 26 | + display: flex; | ||
| 27 | + justify-content: space-between; | ||
| 28 | + align-items: center; | ||
| 29 | + margin: 20px; | ||
| 30 | + .pice{ | ||
| 31 | + display: flex; | ||
| 32 | + .now{ | ||
| 33 | + height:70px; | ||
| 34 | + font-size:50px; | ||
| 35 | + font-weight:400; | ||
| 36 | + color:rgba(255,114,92,1); | ||
| 37 | + line-height:70px; | ||
| 38 | + } | ||
| 39 | + .original{ | ||
| 40 | + height:37px; | ||
| 41 | + font-size:26px; | ||
| 42 | + font-weight:400; | ||
| 43 | + color:rgba(172,172,172,1); | ||
| 44 | + line-height:70px; | ||
| 45 | + margin-left: 14px; | ||
| 46 | + } | ||
| 47 | + } | ||
| 48 | + .btn{ | ||
| 49 | + width:153px; | ||
| 50 | + height:53px; | ||
| 51 | + line-height: 53px; | ||
| 52 | + background:rgba(255,114,92,1); | ||
| 53 | + border-radius:100px; | ||
| 54 | + color: #fff; | ||
| 55 | + font-size: 26px; | ||
| 56 | + text-align: center; | ||
| 57 | + } | ||
| 58 | + } | ||
| 59 | +} |
src/components/videoArea/videoArea.vue
0 → 100644
| 1 | +<template> | ||
| 2 | + <div> | ||
| 3 | + <titleBox :titles="titles"></titleBox> | ||
| 4 | + <div class="item_box"> | ||
| 5 | + <img src="/static/img/pic_1.jpg" alt="网家家"/> | ||
| 6 | + <div class="title"> | ||
| 7 | + 美猴王系列绘本(套装共32册) | ||
| 8 | + </div> | ||
| 9 | + <div class="desc"> | ||
| 10 | + 规格:32册/套 | ||
| 11 | + </div> | ||
| 12 | + <div class="pic_box"> | ||
| 13 | + <div class="pice"> | ||
| 14 | + <div class="now">¥ 361.9</div> | ||
| 15 | + <div class="original">¥ 399.9</div> | ||
| 16 | + </div> | ||
| 17 | + <div class="btn"> | ||
| 18 | + 立即购买 | ||
| 19 | + </div> | ||
| 20 | + </div> | ||
| 21 | + </div> | ||
| 22 | + </div> | ||
| 23 | +</template> | ||
| 24 | + | ||
| 25 | +<script> | ||
| 26 | + import titleBox from "@/components/titleBox/titleBox"; | ||
| 27 | + export default { | ||
| 28 | + name: 'videoArea', | ||
| 29 | + data () { | ||
| 30 | + return { | ||
| 31 | + titles:null | ||
| 32 | + } | ||
| 33 | + }, | ||
| 34 | + components:{ | ||
| 35 | + titleBox | ||
| 36 | + }, | ||
| 37 | + created(){ | ||
| 38 | + | ||
| 39 | + }, | ||
| 40 | + methods: { | ||
| 41 | + } | ||
| 42 | + } | ||
| 43 | +</script> | ||
| 44 | + | ||
| 45 | +<!-- Add "scoped" attribute to limit CSS to this component only --> | ||
| 46 | +<style rel="stylesheet/less" lang="less" scoped> | ||
| 47 | + @import 'videoArea'; | ||
| 48 | +</style> |