perry-mall/components/payment-subgroup/payment.vue

39 lines
1020 B
Vue
Raw Permalink Normal View History

2022-02-18 13:20:26 +00:00
<template>
<!-- 底部导航 -->
<view class="display-between-center payment-foot-box">
<!-- 合计 -->
2022-02-23 11:08:25 +00:00
<view class="payment-price">合计{{totalPrice}}</view>
2022-02-18 13:20:26 +00:00
<!-- 立即结算 -->
2022-02-23 11:08:25 +00:00
<view @tap="immediatePaymentEv" class="payment-settlement">立即支付</view>
2022-02-18 13:20:26 +00:00
</view>
</template>
<script>
export default {
name:"payment",
2022-02-23 11:08:25 +00:00
props:{
totalPrice:{
type:String,
2022-02-24 03:21:51 +00:00
default: "0.00"
2022-02-23 11:08:25 +00:00
}
},
2022-02-18 13:20:26 +00:00
data() {
return {
};
2022-02-23 11:08:25 +00:00
},
methods:{
immediatePaymentEv(){
this.$emit('immediatePayment');
}
2022-02-18 13:20:26 +00:00
}
}
</script>
<style>
2022-02-24 03:21:51 +00:00
.display-between-center {display: flex;justify-content: space-between;align-items: center;}
2022-02-18 13:20:26 +00:00
.payment-foot-box{position: fixed;bottom: 0;left: 0;right: 0;height: 130rpx;background-color: #efefef;font-size: 30rpx;}
.payment-price{font-size: 36rpx;color: #f81c1c;font-weight: bold;margin-left: 60rpx;}
.payment-settlement{width: 242rpx;height: 130rpx;background-color: #f81c1c;color: #FFFFFF;font-size: 36rpx;text-align: center;line-height: 130rpx;}
</style>