top.js 388 B

1234567891011121314151617181920212223242526
  1. // commpents/mobile-frame/top.js
  2. const app = getApp()
  3. Component({
  4. /**
  5. * 组件的属性列表
  6. */
  7. properties: {
  8. frameStyle: { type: Object }
  9. },
  10. /**
  11. * 组件的初始数据
  12. */
  13. data: {
  14. client: app.globalData.client
  15. },
  16. /**
  17. * 组件的方法列表
  18. */
  19. methods: {
  20. // 返回上一页面
  21. _navback() {
  22. this.triggerEvent('back')
  23. }
  24. }
  25. })