index.js 453B

123456789101112131415161718192021222324252627282930
  1. //index.js
  2. //获取应用实例
  3. const app = getApp()
  4. Component({
  5. behaviors: [],
  6. properties: {
  7. Params: {
  8. type: Array,
  9. value: []
  10. },
  11. Value: {
  12. type: String,
  13. value: null
  14. }
  15. },
  16. data: {},
  17. lifetimes: {},
  18. ready: function() {},
  19. pageLifetimes: {
  20. show: function() {},
  21. },
  22. methods: {
  23. SelectItem(e) {
  24. this.triggerEvent('radiochange', {
  25. id: e.currentTarget.dataset.id
  26. })
  27. }
  28. }
  29. })