|
|
|
@ -1,8 +1,8 @@ |
|
|
|
<template> |
|
|
|
<view class="key-container" v-show="showMask"> |
|
|
|
<uni-transition :modeClass="['slide-bottom']" :show="show" |
|
|
|
<view class="key-container"> |
|
|
|
<!-- <uni-transition :modeClass="['slide-bottom']" :show="show" |
|
|
|
:styles="{height:'100vh'}" |
|
|
|
:duration="duration"> |
|
|
|
:duration="duration"> --> |
|
|
|
<view class="key-content" @click.stop> |
|
|
|
<slot></slot> |
|
|
|
<view class="key-box block flex"> |
|
|
|
@ -34,9 +34,10 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="end-box" :style="'height:'+safeHeight+'px'"></view> |
|
|
|
</view> |
|
|
|
</uni-transition> |
|
|
|
</view> |
|
|
|
<!-- </uni-transition>--> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
@ -62,6 +63,10 @@ export default{ |
|
|
|
type:String, |
|
|
|
default:'付款' |
|
|
|
}, |
|
|
|
safeHeight:{ |
|
|
|
type:Number, |
|
|
|
default:0 |
|
|
|
}, |
|
|
|
confirmStyle:{ |
|
|
|
type:Object, |
|
|
|
default:()=>{ |
|
|
|
@ -209,8 +214,8 @@ export default{ |
|
|
|
} |
|
|
|
.key-container{ |
|
|
|
position: fixed; |
|
|
|
bottom: 0; |
|
|
|
top:0; |
|
|
|
bottom: 0; |
|
|
|
//top:0; |
|
|
|
left:0; |
|
|
|
right:0; |
|
|
|
.key-content{ |
|
|
|
@ -279,5 +284,15 @@ export default{ |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.end-box{ |
|
|
|
// position: fixed; |
|
|
|
// left: 0; |
|
|
|
// right: 0; |
|
|
|
// bottom: 0; |
|
|
|
// padding-bottom: constant(safe-area-inset-bottom); |
|
|
|
// padding-bottom: env(safe-area-inset-bottom); |
|
|
|
// margin-bottom: constant(safe-area-inset-bottom); |
|
|
|
// margin-bottom: env(safe-area-inset-bottom); |
|
|
|
//height: 40rpx; |
|
|
|
} |
|
|
|
</style> |