Browse Source

修复布局问题

master
Naomi 8 months ago
parent
commit
73b732c6f7
3 changed files with 5 additions and 3 deletions
  1. +2
    -0
      pages/album/album.js
  2. +1
    -1
      pages/album/album.wxml
  3. +2
    -2
      pages/album/album.wxss

+ 2
- 0
pages/album/album.js View File

@ -115,6 +115,7 @@ Page({
onLoad() {
var self = this;
console.log(wx.getSystemInfoSync())
const {
statusBarHeight,
platform,
@ -125,6 +126,7 @@ Page({
height
} = wx.getMenuButtonBoundingClientRect()
wx.enableAlertBeforeUnload({message:"要返回首页吗?"})
// 状态栏高度
wx.setStorageSync('statusBarHeight', statusBarHeight)
// 胶囊按钮高度 一般是32 如果获取不到就使用32


+ 1
- 1
pages/album/album.wxml View File

@ -87,7 +87,7 @@
<loading hidden="{{!showLoading}}" bindchange="hideLoading">{{loadingMessage}}</loading>
<toast hidden="{{!showToast}}" duration="1000" bindchange="hideToast">{{toastMessage}}</toast>
<mp-dialog title="返回首页" show="{{back}}" bindbuttontap="confirmBack" buttons="{{[{text: '取消'}, {text: '确认'}]}}">
<mp-dialog title="返回首页" show="{{back}}" bindbuttontap="confirmBack()" buttons="{{[{text: '取消'}, {text: '确认'}]}}">
<image src="/images/done.png" style="width:50px;height:50px;" />
<view>真的要回去吗?</view>
</mp-dialog>

+ 2
- 2
pages/album/album.wxss View File

@ -78,7 +78,7 @@
left: 0;
width: 240rpx;
height: 2.6rem;
top: 1.5rem;
top: 1.8rem;
}
.upload-add text {
@ -94,7 +94,7 @@
position: absolute;
width: 240rpx;
left: 0;
top: -2.4rem;
top: -2.6rem;
font-size: 24rpx;
color: #888;
}


Loading…
Cancel
Save