Browse Source

修改了样式

feature/feature-compatible
wangkesi 7 years ago
parent
commit
f247da098e
2 changed files with 44 additions and 13 deletions
  1. 10
      src/view/goods-classify.vue
  2. 47
      src/view/home.vue

10
src/view/goods-classify.vue

@ -383,17 +383,21 @@ export default {
}
}
.price {
min-width: 1.1rem;
font-size: 0;
min-width: 1.5rem;
span {
display: inline-block;
font-size: 0.34rem;
}
.money {
font-size: 0.22rem;
}
color: #249e6c;
font-size: 0.34rem;
}
.cost {
color: #bbbbbb;
font-size: 0.24rem;
margin-left: 0.18rem;
margin-left: 0.1rem;
text-decoration: line-through;
}
}

47
src/view/home.vue

@ -79,8 +79,10 @@
</div>
<div class="btn-box">
<!--originalPrice原价price优惠价 -->
<span class="price"> <em>{{item1.price ? item1.price/100:item1.originalPrice/100}}</em></span>
<span class="original-price" v-if="item1.price&&item1.price!=item1.originalPrice"><em>{{ item1.originalPrice/100}}</em></span>
<div class="btn-box-left">
<span class="price"> <em>{{item1.price ? item1.price/100:item1.originalPrice/100}}</em></span>
<span class="original-price" v-if="item1.price&&item1.price!=item1.originalPrice"><em>{{ item1.originalPrice/100}}</em></span>
</div>
<a :href="'/mall/web/vgoods/detail/' + item1.goodsNo">立即购买</a>
</div>
</div>
@ -334,6 +336,19 @@ export default {
}
</style>
<style lang="scss" scoped>
.btn-box {
display: flex;
position: absolute;
bottom: 0;
align-items: center;
justify-content: space-between;
width: 100%;
.btn-box-left {
display: flex;
align-items: flex-end;
// justify-content: space-around;
}
}
.home {
width: 100%;
height: 100%;
@ -443,11 +458,12 @@ export default {
.home .page-content .new-card .card-list li a {
display: flex;
align-items: center;
justify-content: space-between;
// justify-content: space-between;
}
.home .page-content .new-card .card-list li .left {
width: 2rem;
height: 2rem;
margin-right: 0.18rem;
}
.home .page-content .new-card .card-list li .left img {
width: 2rem;
@ -455,7 +471,10 @@ export default {
display: block;
}
.home .page-content .new-card .card-list li .right {
width: 4.3rem;
// width: 4.3rem;
flex-grow: 1;
display: flex;
flex-direction: column;
height: 2rem;
position: relative;
}
@ -489,19 +508,27 @@ export default {
justify-content: space-around;
}
.home .page-content .new-card .card-list li .right .btn-box {
width: 4.3rem;
display: flex;
align-items: center;
position: absolute;
bottom: 0;
// width: 4.3rem;
// display: flex;
// flex-grow: 0;
// align-items: center;
// position: absolute;
// width: 100%;
// bottom: 0;
// justify-content: space-around;
// align-items: flex-end;
}
.home .page-content .new-card .card-list li .right .btn-box .price {
color: #249e6c;
min-width: 1.3rem;
min-width: 1.4rem;
display: flex;
align-items: flex-end;
}
.home .page-content .new-card .card-list li .right .btn-box span em {
font-size: 0.38rem;
font-weight: 600;
line-height: 0.9;
display: inline-block;
font-style: normal;
}
.home .page-content .new-card .card-list li .right .btn-box .original-price em {

Loading…
Cancel
Save