点击按钮,使用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
},
0 个回复