|
|
@@ -3,6 +3,9 @@
|
|
|
<view class="card-header">
|
|
|
<view class="header-dot"></view>
|
|
|
<text class="header-title">收费标准</text>
|
|
|
+ <view class="header-close" @click="emit('close')">
|
|
|
+ <text class="close-icon">✕</text>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
|
|
|
<view class="price-grid">
|
|
|
@@ -46,6 +49,8 @@ const props = defineProps({
|
|
|
},
|
|
|
});
|
|
|
|
|
|
+const emit = defineEmits(["close"]);
|
|
|
+
|
|
|
const amountMinLimit = computed(() => props.price?.amountMinLimit);
|
|
|
const prepayMoney = computed(() => props.price?.prepayMoney);
|
|
|
|
|
|
@@ -70,40 +75,57 @@ const fmtYuanPerMin = (fen: number) => {
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
.price-card {
|
|
|
- margin: 0 30rpx 24rpx;
|
|
|
- @include card-interactive(24rpx);
|
|
|
+ width: 580rpx;
|
|
|
+ max-height: 80vh;
|
|
|
+ background: $uni-bg-color-card;
|
|
|
+ border-radius: 24rpx;
|
|
|
overflow: hidden;
|
|
|
- cursor: default;
|
|
|
-
|
|
|
- &:active {
|
|
|
- transform: none;
|
|
|
- box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.06);
|
|
|
- }
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
|
|
|
.card-header {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
gap: 12rpx;
|
|
|
- padding: 28rpx 28rpx 0;
|
|
|
+ padding: 32rpx 32rpx 0;
|
|
|
|
|
|
.header-dot {
|
|
|
width: 10rpx;
|
|
|
height: 10rpx;
|
|
|
background: $uni-color-primary;
|
|
|
border-radius: 50%;
|
|
|
+ flex-shrink: 0;
|
|
|
}
|
|
|
|
|
|
.header-title {
|
|
|
font-size: 30rpx;
|
|
|
font-weight: $uni-font-weight-semibold;
|
|
|
color: $uni-text-color-dark;
|
|
|
+ flex: 1;
|
|
|
+ }
|
|
|
+
|
|
|
+ .header-close {
|
|
|
+ width: 48rpx;
|
|
|
+ height: 48rpx;
|
|
|
+ border-radius: 50%;
|
|
|
+ background: $uni-bg-color-page;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ flex-shrink: 0;
|
|
|
+
|
|
|
+ .close-icon {
|
|
|
+ font-size: 24rpx;
|
|
|
+ color: $uni-text-color-tertiary;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.price-grid {
|
|
|
display: flex;
|
|
|
flex-wrap: wrap;
|
|
|
- padding: 24rpx 28rpx 12rpx;
|
|
|
+ padding: 24rpx 32rpx 12rpx;
|
|
|
+ overflow-y: auto;
|
|
|
|
|
|
.price-item {
|
|
|
width: 50%;
|
|
|
@@ -137,7 +159,7 @@ const fmtYuanPerMin = (fen: number) => {
|
|
|
.price-footer {
|
|
|
display: flex;
|
|
|
gap: 32rpx;
|
|
|
- padding: 16rpx 28rpx 28rpx;
|
|
|
+ padding: 16rpx 32rpx 32rpx;
|
|
|
border-top: 1rpx solid $uni-border-color-light;
|
|
|
|
|
|
.footer-item {
|