1***@qq.com
1***@qq.com
  • 发布:2022-08-10 12:02
  • 更新:2022-08-10 12:02
  • 阅读:160

点击按钮,使用uni-popup实现向上的弹层效果,2~3s后才能弹出来(真机调试才会出现,预览没问题)PS:安卓和IOS都是

分类:uni-app

点击按钮,使用uni-popup实现向上的弹层效果,2~3s后才能弹出来(真机调试才会出现,预览没问题)PS:安卓和IOS都是

<view class="typePop">
<uni-popup ref="typePop" background-color="#fff">
<view class="popup-content">
<view class="popTit">
<text>*</text><text>失控类型</text>
</view>
<view class="collapseCon">
<block v-for="(item,index) in measureTypeList" :key='index'>
<view class="ellipse item" :class='{"itemBg":index==typeIndex}' @tap="changeType(index)">{{item.label}}</view>
</block>
</view>
</view>
</uni-popup>
</view>


toggle(refName,itemIndex){
this.randomFlag=!this.randomFlag
this.$refs[refName].open('bottom')
this.itemIndex=itemIndex
},

2022-08-10 12:02 负责人:无 分享
已邀请:

要回复问题请先登录注册