12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- import { TimeUtil } from '../../utils/TimeUtil'
- Component({
-
- properties: {
- itemData: null
- },
-
- data: {
- myItemData: null,
- itemTime: ''
- },
- lifetimes: {
- attached: function () {
-
-
- console.log("this.properties.itemData:", this.properties.itemData)
- this.setData({
- myItemData: this.properties.itemData,
- itemTime: TimeUtil.dateFormat(parseInt(this.properties.itemData.created), "yyyy-MM-dd HH:mm"),
- })
- },
- detached: function () {
-
- },
- },
-
- methods: {
- }
- })
|