@@ -1,11 +1,11 @@
.footer-but {
- position: fixed;
- width: 100vw;
- height: 130rpx;
- bottom: 0;
+ position: fixed !important;
+ width: 100vw !important;
+ height: 130rpx !important;
+ bottom: 0 !important;
text-align: center;
background-color: #FFFFFF;
-
+
.button {
width: 500rpx !important;
height: 90rpx !important;
@@ -5,6 +5,7 @@
</van-cell>
</van-cell-group>
</van-radio-group>
<view style="height: 140rpx;" />
<view class="footer-but">
<van-button custom-class='button' disabled='{{!radio}}' bindtap="submit" loading='{{loading}}' loading-text="保存中...">确定</van-button>
@@ -21,4 +21,4 @@
<van-button custom-class='button' disabled='{{disabled}}' bindtap="submit" loading='{{loading}}' loading-text="保存中...">确定</van-button>
-</view>
+</view>
@@ -12,7 +12,7 @@ Component({
const that = this;
wx.getSystemInfo({
success: (res => that.setData({
- scrollHeight: res.windowHeight - 90
+ scrollHeight: res.windowHeight - 45
}))
});
}
@@ -1,13 +1,24 @@
/* 弹窗 */
.popup {
.header {
+ position: relative;
width: 100%;
- height: 90rpx;
- line-height: 90rpx;
+ height: 100rpx;
+ line-height: 100rpx;
border-bottom: 1px solid #EEEEEE;
font-size: 28rpx;
font-family: PingFang SC-Regular, PingFang SC;
color: #333333;
+ .close {
+ position: absolute;
+ width: 100rpx;
+ text-align: center;
+ top: 0;
+ right: 0;
+ }
@@ -1,5 +1,10 @@
-<van-popup class="popup" show="{{ sheetTitle }}" custom-style="height: 100vh;" position="bottom" round closeable bind:close='sheetClose'>
- <view class="header">{{sheetTitle}}</view>
+<van-popup class="popup" show="{{ sheetTitle }}" custom-style="height: 100vh;" position="bottom" round safe-area-inset-bottom='{{false}}'>
+ <view class="header">
+ {{sheetTitle}}
+ <view class="close" bindtap="sheetClose">
+ <van-icon size='35rpx' name="cross" />
+ </view>
<scroll-view scroll-y style="height:{{scrollHeight}}px;">
<slot />
</scroll-view>