index.js 365 B

12345678910111213141516171819202122232425
  1. Component({
  2. properties: {
  3. cutBar: {
  4. type: Function
  5. }
  6. },
  7. options: {
  8. addGlobalClass: true,
  9. },
  10. data: {
  11. appid: "wxc1b6ae925ac1d06a"
  12. },
  13. methods: {
  14. openRecord(e) {
  15. const {
  16. it,
  17. item
  18. } = e.currentTarget.dataset;
  19. if (it.PageCur) this.triggerEvent("cutBar", it.PageCur)
  20. },
  21. toMsg() {
  22. this.triggerEvent("cutBar", 'Message')
  23. }
  24. }
  25. })