分享者:kingrome2017,來自原文地址
滑動tab選項卡 高度不能自適應問題
wxml
-
<swiper id="swiper1" bindchange="intervalChange" current="{{mycurrent}}" style="height: {{clientHeight?clientHeight+'px':'auto'}}">
-
-
<!--軟件著作權-->
-
<swiper-item class="slide-swiper">
-
<scroll-view scroll-y="{{true}}" style="height: {{clientHeight?clientHeight+'px':'auto'}}">
-
-
<!--撐出top高度-->
-
<view class="kong"></view>
-
<view class="classname" wx:for="{{arr}}" wx:key="" catchtap="oncopydels" data-jc="{{item.FRJ_RJQC}}">
-
<view class="title">{{item.FRJ_RJQC}}</view>
-
<view class="smalltitle" hidden="{{show}}">
-
<view class="jc">軟件簡稱:</view>
-
<view class="jc">{{item.FRJ_RJJC}}</view>
-
</view>
-
<view class="smalltitle" hidden="{{shows}}">
-
<view class="jc">軟件簡稱:</view>
-
<view class="jc">暫無信息</view>
-
</view>
-
<view class="smalltitle">
-
<view class="jc">登記號:</view>
-
<view class="jc">{{item.FRJ_DJH}}</view>
-
</view>
-
<view class="smalltitle">
-
<view class="jc">登記批準日期:</view>
-
<view class="jc">{{item.FRJ_IDT}}</view>
-
</view>
-
</view>
-
</scroll-view>
-
</swiper-item>
-
-
<!--./軟件著作權-->
-
-
<!--作品著作權-->
-
<swiper-item class="slide-swiper">
-
<scroll-view scroll-y="{{true}}" style="height: {{clientHeight?clientHeight+'px':'auto'}}">
-
-
<!--撐出top高度-->
-
<view class="kong"></view>
-
<view class="classname" wx:for="{{proCopyRight}}" wx:key="proItem.FZD_ZPMC" wx:for-item="proItem" data-name="{{proItem.FZD_ZPMC}}" catchtap="proCopyRightTap">
-
<view class="title">{{proItem.FZD_ZPMC}}</view>
-
<view class="smalltitle">
-
<view class="jc">類型:</view>
-
<view class="jc">{{proItem.FZD_ZPLB}}</view>
-
</view>
-
<view class="smalltitle">
-
<view class="jc">登記號:</view>
-
<view class="jc">{{proItem.FZD_DJH}}</view>
-
</view>
-
<view class="smalltitle">
-
<view class="jc">登記日期:</view>
-
<view class="jc">{{proItem.FZD_DJDATE}}</view>
-
</view>
-
<view class="smalltitle">
-
<view class="jc">完成日期:</view>
-
<view class="jc">{{proItem.FZD_CZWCDATE}}</view>
-
</view>
-
<view class="smalltitle">
-
<view class="jc">首次發表日期:</view>
-
<view class="jc">{{proItem.FZD_FBDATE}}</view>
-
</view>
-
</view>
-
</scroll-view>
-
</swiper-item>
-
-
<!--./作品著作權-->
-
</swiper>
js
-
wx.getSystemInfo({
-
success: function (res) {
-
that.setData({
-
clientHeight: res.windowHeight
-
});
-
}
-
});
說明: swiper組件包含scroll-view 是這次的糾結點
|