<page-container class="reserve-model" show="{{showReserve||showBanner}}" z-index="{{1000}}" customStyle="z-index:299" bindafterleave="setModelData">
<view class="reserve-content" wx:if="{{showReserve}}">
<dj-reserve bindreserve = "reserve" userTel="{{userTel}}"> </dj-reserve>
</view>
<view class="banner-details" wx:if="{{showBanner}}">
<swiper bindchange="bannerChange" current="{{bannerIndex-1}}" circular="true">
<swiper-item wx:for="{{bannerList}}" wx:key="index">
<image wx:if="{{item.type=='img'}}" src="{{item.url}}" mode="widthFix"></image>
<video wx:else src="{{item.url}}" loop="{{true}}" object-fit="cover" enable-play-gesture="true"></video>
</swiper-item>
</swiper>
<view class="banner-top">{{bannerIndex}}/{{bannerList.length}}</view>
<view class="banner-bottom">{{bannerText}}</view>
</view>
</page-container>
this.setData({
showReserve: true
})
iphonex 执行时无效
根据官方 基础库版本分布:https://developers.weixin.qq.com/miniprogram/dev/framework/client-lib/version.html,微信版本 7.0.12 的基础库版本是 2.11.2,而 page-container 组件是在 2.16.0 才开始支持,低版本请自行兼容