index.js 613 B

1234567891011121314151617181920212223242526272829
  1. define([
  2. 'require',
  3. 'helper',
  4. 'text!./index.html',
  5. 'css!./index.css'
  6. ], function(require, $h, html) {
  7. return {
  8. props: {
  9. lecturer: Object
  10. },
  11. data: function () {
  12. return {
  13. };
  14. },
  15. methods: {
  16. goLecture: function () {
  17. window.location.assign($h.U({
  18. c: 'merchant',
  19. a: 'teacher_detail',
  20. q: {
  21. id: this.lecturer.id
  22. }
  23. }));
  24. }
  25. },
  26. template: html
  27. };
  28. });