Ang丶HX
Ang丶HX
  • 发布:2022-03-01 16:46
  • 更新:2022-03-02 09:12
  • 阅读:422

#插件讨论# 【 【wxs renderjs实现】高性能的下拉刷新上拉加载组件 - wenju 】占位图问题

分类:uni-app

empty: {
icon:'../static/ic_not_wares.png',
warpId :'warpId',
tip: '暂无商品', // 提示
},
在HBuildX内置浏览器中可以显示占位图 但运行在手机上就不显示了

let that = this;
that.$Network.get(that.$Api.url.ware.goodsList, data).then((res) => {
if (res.data.data.pages > that.upOption.page.num) {
that.upOption.page.num++
that.mescroll.endSuccess(index, true)
}else{
that.mescroll.endSuccess(index, false)
}
}).catch((err) => {
console.log('request fail', err);
})

且报错 request fail , TypeError: Cannot read property 'endSuccess' of null

2022-03-01 16:46 负责人:无 分享
已邀请:
wenju

wenju - https://www.mescroll.com -- 精致的下拉刷新和上拉加载组件

  1. 图片的问题 把/static/前面的点点去掉, 改成"/static/ic_not_wares.png" 或者改成网络地址
  2. mescroll是自己维护页码的, 无需page.num++
  3. 没有warpId这个配置的
  4. 下载demo看看哈, 有个极简示例, 您用复杂了

该问题目前已经被锁定, 无法添加新回复