- 使用scroll-view下拉刷新后在iOS端触底时scroll height会变大,安卓模拟机均不
[图片] 正常情况下 [图片] 触底之后 <scroll-view scroll-y class='page-container' refresher-enabled="{{scroll_refresher_enabled}}" refresher-threshold="45" refresher-default-style="none" refresher-background="#fff" refresher-triggered="{{showLoading}}" bindrefresherrefresh="scrollRefresh" style=" height: {{scrollviewHeight}}px;" bindscroll="inscrollMOve" scroll-top="{{scrollTop}}" enhanced="{{false}}" >
2022-09-13 - 小程序scroll-view下拉刷新在数据结束时再返回刷新ios底部会有一段空白
[图片] 这是正常表现形态 [图片] 这是iOS到数据底部再下拉刷新返回到底部
2022-09-07 - scroll-view里嵌套一个横向滚动scroll-view
嵌套之后,外层设置的下拉刷新在内层嵌套区域无法下拉 <scroll-view class='page-container' style=" height: {{scrollviewHeight}}rpx; overflow-y: scroll;" refresher-enabled="{{scroll_refresher_enabled}}" refresher-threshold="50" bindrefresherrefresh="onRefresh" refresher-triggered="{{triggered}}" bindtouchstart='changeNavbar' scroll-y="{{true}}" scroll-top='{{topNum}}' bindscroll="scrollMOve" bindscrolltolower="onReachBottom" >//外层区域 <scroll-view scroll-x="true" class="special-area {{ slideShow && 'no-center' }}" enable-flex="true" scroll-with-animation="{true}" scroll-left='0' bindscroll="getleft">
2022-09-02 - scroll-view实现一个上拉加载,触底时信息加载卡顿,需要下滑再上拉实现事件?
[图片] [图片] //加载商品 getProducts: function (category_id, orderType, refresh) { let _data = {}; let _url; canLoadMore = false; if (category_id == 'all') { _url = `api/special_areas/${this.data.currentStore.id}/products` } else { _url = `api/special_areas/${this.data.currentStore.id}/category_products` _data = { category_id: category_id, } } let key = `id_${category_id}` let length = 0 if (this.data.products[key] != null) { length = this.data.products[key].length } var page = Math.floor(length / getApp().globalData.perPage) + 1 if (refresh) { //if要刷新清空数据时 _data.page = 1 } else { _data.page = page } if (orderType != null) { _data.order = orderType } http.get({ url: _url, data: _data, success: res => { if (res.data != null && res.data.constructor.name == 'Array') { canLoadMore = true; this.appendProduct(res.data, category_id) } } }) },
2022-09-01 - 错误日志null is not an object (evaluating\'t.indexOf?
[图片] 错误日志告警null is not an object (evaluating \'t.indexOf\') u@https://lib/WAServiceMainContext.js:1:557713 as@https://lib/WAServiceMainContext.js:1:1150215 set@https://lib/WAServiceMainContext.js:1:1150638 src@https://lib/WAServiceMainContext.js:1:1284850 @https://usr//app-service.js:5672:11302 $@https://lib/WASubContext.js:1:49489 code@https://usr//app-service.js:5672:11253 @https://lib/WASubContext.js:1:48255 n@https://lib/WASubContext.js:1:24590 @https://lib/WASubContext.js:1:35041 E@https://lib/WASubContext.js:1:34773 @https://lib/WASubContext.js:1:34811 d@https://lib/WASubContext.js:1:120835 @https://lib/WASubContext.js:1:89507 @https://lib/WASubContext.js:1:116556 d@https://lib/WAServiceMainContext.js:1:118845 @https://lib/WAServiceMainContext.js:1:107372 找不到定位,求大佬们帮忙
2022-09-01 - 找不出来,也没思路,求助?
[图片] [图片] Cannot read properties of undefined (reading \'lineItems\') TypeError: Cannot read properties of undefined (reading \'lineItems\') at Object.alterQuantityCartCache (https://utils/cart.js:180:13) at Uo.plusQuantity (https://pages/orders/cart/index.js:283:29) at Object.i.safeCallback (https://lib/WASubContext.js:1:475372) at https://lib/WASubContext.js:1:672792 at mn (https://lib/WASubContext.js:1:612215) at https://lib/WASubContext.js:1:672713 at Y (https://lib/WASubContext.js:1:562051) at https://lib/WASubContext.js:1:562509
2022-08-31 - scroll-view下拉刷新没有设置到顶部,安卓端小程序却从顶部下拉?
[图片]顶部写了内容,scroll-view实现下拉刷新,下拉时从顶部下拉[图片]
2022-08-29