12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- Component({
- lifetimes: {
- attached: function () {
-
- },
- detached: function () {
-
- },
- },
-
- properties: {
- list: {
- type: Array,
- value: []
- },
- showBtn: {
- type: Boolean,
- value: true,
- },
- showDate: {
- type: Boolean,
- value: true,
- },
- action: {
- type: String,
- value: '0'
- }
- },
-
- data: {
- },
-
- methods: {
- toPages: function (e) {
- let item = this.properties.list.filter(o => o.id == e.currentTarget.dataset.id)[0]
- let action = e.currentTarget.dataset.action
- if (action == 1) {
- item.curDate = item.beginTime.substring(0, 10)
- }
- wx.navigateTo({
- url: e.currentTarget.dataset.url + '?data=' + JSON.stringify({ source: item, action: (action ? action : 0), dayScope: 14 }),
- })
- },
- }
- })
|