uview-plus组件库全面升级更新,订单结算判断支付方式是否可用代码调整,公众号关注二维码修改
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
<template>
|
||||
<view
|
||||
class="u-sticky"
|
||||
:id="elId"
|
||||
:style="[style]"
|
||||
>
|
||||
<view
|
||||
:id="elId"
|
||||
:style="[stickyContent]"
|
||||
class="u-sticky__content"
|
||||
>
|
||||
@@ -90,6 +90,11 @@
|
||||
mounted() {
|
||||
this.init()
|
||||
},
|
||||
watch: {
|
||||
offsetTop(nval) {
|
||||
this.getStickyTop()
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
init() {
|
||||
this.getStickyTop()
|
||||
@@ -114,7 +119,7 @@
|
||||
observeContent() {
|
||||
// 先断掉之前的观察
|
||||
this.disconnectObserver('contentObserver')
|
||||
const contentObserver = uni.createIntersectionObserver({
|
||||
const contentObserver = uni.createIntersectionObserver(this,{
|
||||
// 检测的区间范围
|
||||
thresholds: [0.95, 0.98, 1]
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user