Commit 74a12b6a authored by Xuguangxing's avatar Xuguangxing

fix: 处理地址行高问题

parent 8d87f9a9
Pipeline #1136 failed with stages
<template>
<div class="goods-bottom">
<cr-button shape="circle" :disabled="disabled" type="primary" block @click="buy">
{{ shopBtnName }}
</cr-button>
<cr-button shape="circle" :disabled="disabled" type="primary" block @click="buy">
{{ shopBtnName }}
</cr-button>
</div>
</template>
<script>
export default {
name: 'BottomNav',
props: {
type: {
type: String,
default: 'shopCar' // shoppingCar 购物车;settlement 结算;submitOrder 确认订单
},
shopBtnName: {
type: String,
default: '立即购买' // shoppingCar 购物车;settlement 结算;submitOrder 确认订单
},
info: {
type: Object,
default() {
return {};
}
},
disabled: {
type: Boolean,
default: false
},
goodsId: {
type: String,
default: ''
}
},
methods: {
buy() {
this.$emit('buy');
},
goHome() {
setTimeout(() => {
this.$router.push({ name: 'home' });
}, 500);
}
}
};
</script>
<style lang="less" scoped>
.goods-bottom {
position: fixed;
left: 0;
bottom: 0;
display: flex;
justify-content: space-evenly;
align-items: center;
width: 100%;
background: @white;
border-top: 2px solid #f7f7f7;
padding: 10px 12px;
box-sizing: border-box;
button {
margin: 0 10px;
}
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment