12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- // pages/tabbar/smartStore/modules/flies.js
- Component({
- /**
- * 组件的属性列表
- */
- properties: {
- list: {
- type: Array,
- value: []
- }
- },
- options: {
- addGlobalClass: true
- },
- /**
- * 组件的初始数据
- */
- data: {
- checked: false
- },
- /**
- * 组件的方法列表
- */
- methods: {
- /* 打开文件夹 */
- openFolder(e) {
- const {
- item
- } = e.currentTarget.dataset;
- if (item.postfix == 'folder') return wx.navigateTo({
- url: '/pages/tabbar/smartStore/folder?item=' + JSON.stringify(item),
- })
- },
- changeChecked() {
- this.setData({
- checked: !this.data.checked
- })
- }
- }
- })
|