GameFriendRank.js 666 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. cc.Class({
  2. extends: cc.Component,
  3. properties: {
  4. },
  5. // LIFE-CYCLE CALLBACKS:
  6. onLoad () {
  7. },
  8. start () {
  9. },
  10. onEnable() {
  11. if (window.wx != undefined) {
  12. window.wx.postMessage({
  13. messageType: 0
  14. });
  15. }
  16. },
  17. init() {
  18. },
  19. previousPage() {
  20. if (window.wx != undefined) {
  21. window.wx.postMessage({
  22. messageType: 1
  23. });
  24. }
  25. },
  26. nextPage() {
  27. if (window.wx != undefined) {
  28. window.wx.postMessage({
  29. messageType: 2
  30. });
  31. }
  32. }
  33. // update (dt) {},
  34. });