flies.js 842 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // pages/tabbar/smartStore/modules/flies.js
  2. Component({
  3. /**
  4. * 组件的属性列表
  5. */
  6. properties: {
  7. list: {
  8. type: Array,
  9. value: []
  10. }
  11. },
  12. options: {
  13. addGlobalClass: true
  14. },
  15. /**
  16. * 组件的初始数据
  17. */
  18. data: {
  19. checked: false
  20. },
  21. /**
  22. * 组件的方法列表
  23. */
  24. methods: {
  25. /* 打开文件夹 */
  26. openFolder(e) {
  27. const {
  28. item
  29. } = e.currentTarget.dataset;
  30. if (item.postfix == 'folder') return wx.navigateTo({
  31. url: '/pages/tabbar/smartStore/folder?item=' + JSON.stringify(item),
  32. })
  33. },
  34. changeChecked() {
  35. this.setData({
  36. checked: !this.data.checked
  37. })
  38. }
  39. }
  40. })