You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

45 lines
1.5 KiB

  1. (function () {
  2. var page = {
  3. init: function ($page) {
  4. $page.find('#actionsheet1').on('tap', function () {
  5. learun.actionsheet({
  6. id: 'test',
  7. data: [
  8. {
  9. text: '测试1',
  10. event: function () {
  11. learun.layer.toast('点击了测试1');
  12. }
  13. },
  14. {
  15. text: '测试2',
  16. mark: true,
  17. event: function () {
  18. learun.layer.toast('点击了测试2');
  19. }
  20. },
  21. {
  22. text: '测试3',
  23. group: '123',
  24. event: function () {
  25. learun.layer.toast('点击了测试3');
  26. }
  27. },
  28. {
  29. text: '测试4',
  30. group: '123',
  31. event: function () {
  32. learun.layer.toast('点击了测试4');
  33. }
  34. }
  35. ],
  36. cancel: function () {
  37. learun.layer.toast('点击了取消按钮');
  38. }
  39. });
  40. });
  41. }
  42. };
  43. return page;
  44. })();