wetools/wept

官方api wx.showLoading 和 wx.hideLoading 报错!

idanke opened this issue · 3 comments

  • wept --version: 0.9.1 140900
  • node --version: v8.2.1
  • 操作系统: macOS Sierra 10.12.5
  • 浏览器及浏览器版本: Chrome 59.0.3071.115
  • 官方api wx.showLoading 和 wx.hideLoading 报错!

错误日志

thirdScriptError
wx.showLoading is not a function;at "pages/index/index" page lifeCycleMethod onLoad function
TypeError: wx.showLoading is not a function
at e.onLoad (http://localhost:3000/pages/index/index.js:16:8)
at e. (http://localhost:3000/script/service.js?v=0.9.1:3769:23)
at w (http://localhost:3000/script/service.js?v=0.9.1:3440:25)
at T (http://localhost:3000/script/service.js?v=0.9.1:3478:155)
at Function. (http://localhost:3000/script/service.js?v=0.9.1:3509:7)
at http://localhost:3000/script/service.js?v=0.9.1:3656:22
at http://localhost:3000/script/service.js?v=0.9.1:1266:9
at Array.forEach ()
at Function. (http://localhost:3000/script/service.js?v=0.9.1:1265:207)
at http://localhost:3000/script/service.js?v=0.9.1:1599:20

界面截图(可选)

属于后加的 API , wept 还没有实现 🤕

期待更新...

@chemzqm 可不可以先不报错,console打印一个警告,这样至少可以不中断程序流程