index.js 829 B

1234567891011121314151617181920212223242526272829303132
  1. define([
  2. 'require',
  3. 'helper',
  4. 'text!./index.html',
  5. 'css!./index.css',
  6. ], function(require, $h, html) {
  7. return {
  8. props: ['show', 'status', 'fail'],
  9. data: function () {
  10. return {
  11. images: [
  12. require.toUrl('./images/1.png'),
  13. require.toUrl('./images/2.png'),
  14. require.toUrl('./images/3.png')
  15. ],
  16. page: window.location.href
  17. };
  18. },
  19. methods: {
  20. goApply: function () {
  21. window.location.assign($h.U({
  22. c: 'merchant',
  23. a: 'index'
  24. }));
  25. },
  26. goBack: function () {
  27. window.history.back();
  28. }
  29. },
  30. template: html
  31. };
  32. });