cu-custom.js 703 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. const app = getApp();
  2. Component({
  3. options: {
  4. addGlobalClass: true,
  5. multipleSlots: true
  6. },
  7. properties: {
  8. bgColor: {
  9. type: String,
  10. default: ''
  11. },
  12. isCustom: {
  13. type: [Boolean, String],
  14. default: false
  15. },
  16. isBack: {
  17. type: [Boolean, String],
  18. default: false
  19. },
  20. bgImage: {
  21. type: String,
  22. default: ''
  23. },
  24. },
  25. data: {
  26. StatusBar: app.globalData.StatusBar,
  27. CustomBar: app.globalData.CustomBar,
  28. Custom: app.globalData.Custom
  29. },
  30. methods: {
  31. BackPage () {
  32. wx.navigateBack({
  33. delta: 1
  34. });
  35. },
  36. toHome () {
  37. wx.reLaunch({
  38. url: '/pages/index/index',
  39. })
  40. }
  41. }
  42. })