half-screen-dialog.js 772 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. import CustomPage from '../../../base/CustomPage'
  2. CustomPage({
  3. onShareAppMessage() {
  4. return {
  5. title: 'half-screen-dialog',
  6. path: 'page/weui/example/half-screen-dialog/half-screen-dialog'
  7. }
  8. },
  9. data: {
  10. typeF: false,
  11. typeS: false,
  12. typeT: false,
  13. buttons: [
  14. {
  15. type: 'default',
  16. className: '',
  17. text: '辅助操作',
  18. value: 0
  19. },
  20. {
  21. type: 'primary',
  22. className: '',
  23. text: '主操作',
  24. value: 1
  25. }
  26. ]
  27. },
  28. openTypeF() {
  29. this.setData({
  30. typeF: true
  31. })
  32. },
  33. openTypeS() {
  34. this.setData({
  35. typeS: true
  36. })
  37. },
  38. openTypeT() {
  39. this.setData({
  40. typeT: true
  41. })
  42. },
  43. buttontap(e) {
  44. console.log(e.detail)
  45. }
  46. })