design.js 1005 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. const app = getApp();
  2. Page({
  3. data: {
  4. StatusBar: app.globalData.StatusBar,
  5. CustomBar: app.globalData.CustomBar,
  6. ColorList: app.globalData.ColorList,
  7. },
  8. showModal(e) {
  9. this.setData({
  10. modalName: e.currentTarget.dataset.target
  11. })
  12. },
  13. hideModal(e) {
  14. this.setData({
  15. modalName: null
  16. })
  17. },
  18. SetRound (e) {
  19. this.setData({
  20. round: e.detail.value
  21. })
  22. },
  23. SetSize(e) {
  24. this.setData({
  25. size: e.detail.value
  26. })
  27. },
  28. SetColor(e) {
  29. this.setData({
  30. color: e.currentTarget.dataset.color,
  31. modalName: null
  32. })
  33. },
  34. SetShadow(e) {
  35. this.setData({
  36. shadow: e.detail.value
  37. })
  38. },
  39. SetBorder(e){
  40. this.setData({
  41. border: e.detail.value
  42. })
  43. if (!e.detail.value){
  44. this.setData({
  45. bordersize: false
  46. })
  47. }
  48. },
  49. SetBorderSize(e) {
  50. this.setData({
  51. bordersize: e.detail.value
  52. })
  53. },
  54. SetBlock(e) {
  55. this.setData({
  56. block: e.detail.value
  57. })
  58. },
  59. });