half-screen-dialog.js 769 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. Page({
  2. data: {
  3. typeF: false,
  4. typeS: false,
  5. typeT: false,
  6. buttons: [
  7. {
  8. type: 'default',
  9. className: '',
  10. text: '辅助操作',
  11. value: 0
  12. },
  13. {
  14. type: 'primary',
  15. className: '',
  16. text: '主操作',
  17. value: 1
  18. }
  19. ]
  20. },
  21. openTypeF: function () {
  22. this.setData({
  23. typeF: true
  24. })
  25. },
  26. openTypeS: function () {
  27. this.setData({
  28. typeS: true
  29. })
  30. },
  31. openTypeT: function() {
  32. this.setData({
  33. typeT: true
  34. })
  35. },
  36. buttontap(e) {
  37. console.log(e.detail)
  38. }
  39. });