<template>
<view class="content">
<image class="logo" src="/static/logo.png"></image>
<view class="text-area">
<text class="title" @tap='showHandler'>消息提示框</text>
<text class="title" @tap='LoadHandler'>加载框</text>
<text class="title" @tap='modalHandler'>模态弹窗</text>
</view>
</view>
</template>
<script>
export default {
data() {
return {
title: 'Hello'
}
},
onLoad() {
},
methods: {
showHandler(){
uni.showToast({
title:'消息提示框'
})
},
LoadHandler(){
uni.showLoading({
title:'加载框'
})
setTimeout(()=>{
uni.hideLoading()
},3000)
},
modalHandler(){
uni.showModal({
title:'模态弹窗'
})
}
}
}
</script>
<style>
.content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.logo {
height: 200rpx;
width: 200rpx;
margin-top: 200rpx;
margin-left: auto;
margin-right: auto;
margin-bottom: 50rpx;
}
.text-area {
display: flex;
flex-direction: column;
}
.title {
border: 1rpx solid red;
padding: 10rpx;
font-size: 36rpx;
color: #8f8f94;
}
</style>
- 发布:2021-04-26 16:20
- 更新:2021-06-07 08:36
- 阅读:1366
产品分类: uniapp/App
PC开发环境操作系统: Mac
PC开发环境操作系统版本号: 10.15.5
HBuilderX类型: 正式
HBuilderX版本号: 3.1.12
手机系统: iOS
手机系统版本号: iOS 14
手机厂商: 苹果
手机机型: ipad air 2
页面类型: vue
打包方式: 云端
项目创建方式: HBuilderX
示例代码:
操作步骤:
uni.showToast({
title:'消息提示框'
})
uni.showToast({
title:'消息提示框'
})
预期结果:
uni.showToast({
title:'消息提示框'
})
uni.showToast({
title:'消息提示框'
})
实际结果:
uni.showToast({
title:'消息提示框'
})
uni.showToast({
title:'消息提示框'
})
bug描述:
真机运行在iPad上(iPad Air 2 13.6.1)消息提示框以及load加载框样式错乱