app.js 593 B

12345678910111213141516171819202122
  1. App({
  2. globalData: {
  3. showAnimation: true
  4. },
  5. // onLaunch: function () {
  6. // wx.onNetworkStatusChange((res) => {
  7. // console.log(res, "0000000000000")
  8. // if (this.data.networkType == "wifi" && res.networkType != "wifi") {
  9. // this.data.videoContext.pause()
  10. // wx.showModal({
  11. // showCancel: false,
  12. // content: "非wifi网络,是否继续播放",
  13. // success: (res) => {
  14. // if (res.confirm) {
  15. // this.data.videoContext.play()
  16. // }
  17. // }
  18. // })
  19. // }
  20. // })
  21. // }
  22. })