This commit is contained in:
parent
2576d53a14
commit
21901de43a
|
|
@ -232,11 +232,11 @@ Page({
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'isAdmin': function () {
|
'isAdmin': function (isAdmin) {
|
||||||
const query = wx.createSelectorQuery()
|
const query = wx.createSelectorQuery()
|
||||||
query.select('#meeting-content-smallvideo').fields({ size: true, scrollOffset: true }, (res) => {
|
query.select('#meeting-content-smallvideo').fields({ size: true, scrollOffset: true }, (res) => {
|
||||||
this.setData({
|
this.setData({
|
||||||
showScroll: Math.ceil(res.scrollHeight) > Math.ceil(res.height)
|
showScroll: Math.ceil(isAdmin * 94) > Math.ceil(res.height)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
query.exec()
|
query.exec()
|
||||||
|
|
|
||||||
|
|
@ -59,12 +59,10 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="meeting-content-smallvideo-box"><view class="meeting-content-smallvideo-box-view"></view></view>
|
<view class="meeting-content-smallvideo-up" bind:touchstart="scrollUp" wx:if="{{!isFullscreen && showScroll && isAdmin >0}}">
|
||||||
<view class="meeting-content-smallvideo-box"><view class="meeting-content-smallvideo-box-view"></view></view> -->
|
|
||||||
<view class="meeting-content-smallvideo-up" bind:tap="scrollUp" wx:if="{{!isFullscreen && showScroll && isAdmin >0}}">
|
|
||||||
<t-icon name="chevron-up" size="24rpx" data-name="chevron-up" />
|
<t-icon name="chevron-up" size="24rpx" data-name="chevron-up" />
|
||||||
</view>
|
</view>
|
||||||
<view class="meeting-content-smallvideo-down" bind:tap="scrollDown" wx:if="{{!isFullscreen && showScroll && isAdmin >0}}">
|
<view class="meeting-content-smallvideo-down" bind:touchstart="scrollDown" wx:if="{{!isFullscreen && showScroll && isAdmin >0}}">
|
||||||
<t-icon name="chevron-down" size="24rpx" data-name="chevron-down" />
|
<t-icon name="chevron-down" size="24rpx" data-name="chevron-down" />
|
||||||
</view>
|
</view>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue