22 lines
577 B
TypeScript
22 lines
577 B
TypeScript
import { logger } from '../../utils/logger'
|
|
|
|
// 日志模块名
|
|
const LOG = 'clothes-card'
|
|
|
|
Component({
|
|
properties: {
|
|
item: { type: Object, value: {} },
|
|
selectable: { type: Boolean, value: false },
|
|
selected: { type: Boolean, value: false },
|
|
statusText: { type: String, value: '' },
|
|
statusType: { type: String, value: 'gray' },
|
|
},
|
|
methods: {
|
|
onTap() {
|
|
const item = this.data.item as any
|
|
logger.debug(LOG, '点击衣物卡片, uuid=', item && item.clothes_uuid)
|
|
this.triggerEvent('select', { item: this.data.item })
|
|
},
|
|
},
|
|
})
|