Browse Source

修改了样式

feature/feature-compatible
wangkesi 7 years ago
parent
commit
0d1bd4f4d0
1 changed files with 33 additions and 13 deletions
  1. 46
      src/view/goods-classify.vue

46
src/view/goods-classify.vue

@ -26,7 +26,7 @@
<img :src=" imghost + goods.bannerImgs" class="thumb" /> <img :src=" imghost + goods.bannerImgs" class="thumb" />
</a> </a>
<div class="info f-flex"> <div class="info f-flex">
<div>
<div class="info-box">
<p class="title f-ellipsis-1 ellipsis">{{goods.name}}</p> <p class="title f-ellipsis-1 ellipsis">{{goods.name}}</p>
<p class="rule f-ellipsis-1">{{goods.shortDesc}}</p> <p class="rule f-ellipsis-1">{{goods.shortDesc}}</p>
<div class="card-name"> <div class="card-name">
@ -262,7 +262,7 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.card-name { .card-name {
height: 0.3rem;
height: 0.2rem;
font-size: 0.2rem; font-size: 0.2rem;
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
@ -364,42 +364,62 @@ export default {
} }
.list-img-box { .list-img-box {
display: flex; display: flex;
align-items: center;
// align-items: center;
} }
.item { .item {
position: relative;
padding: 0.16rem;
align-items: flex-start;
height: 1.87rem;
// position: relative;
a{
display: block;
}
padding: 0.16rem;
width: 5.32rem;
z-index: 1; z-index: 1;
// height: 1.87rem; // height: 1.87rem;
box-sizing: border-box; box-sizing: border-box;
margin-bottom: 0.2rem;
margin-bottom: 0.2rem;
.list-img-box{
margin-right: 0.15rem;
}
.thumb { .thumb {
width: 1.54rem; width: 1.54rem;
height: 1.54rem; height: 1.54rem;
} }
.info { .info {
margin-left: 0.15rem;
flex: 1;
padding-top:0.05rem;
display: flex;
width: 3.33rem;
flex-grow:1;
height: 100%; height: 100%;
font-size: 0; font-size: 0;
flex-direction: column;
flex-direction: column;
height: 100%;
align-items: flex-start; align-items: flex-start;
justify-content: space-between;
justify-content: space-between;
.info-box{
width: 100%;
display: flex;
flex-direction: column;
}
.title { .title {
font-size: 0.3rem; font-size: 0.3rem;
color: #333;
color: #333;
width: 100%;
padding: 0; padding: 0;
line-height: 1; line-height: 1;
} }
.rule { .rule {
font-size: 0.22rem; font-size: 0.22rem;
color: #999;
color: #999;
width: 100%;
padding: 0.1rem 0 0; padding: 0.1rem 0 0;
// line-height: 1; // line-height: 1;
} }
.full { .full {
height: 0.2rem; height: 0.2rem;
font-size: 0.2rem;
font-size: 0.2rem;
width: 100%;
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
color: rgba(244, 163, 83, 1); color: rgba(244, 163, 83, 1);

Loading…
Cancel
Save