contentItem.js 735 Bytes
// packageEquity/pages/aiInspection/components/contentItem/contentItem.js
Component({

  /**
   * 组件的属性列表
   */
  properties: {
    item: Object,
    type: Number
  },

  /**
   * 组件的初始数据
   */
  data: {
    contentObject: [{
      label: '接待时间',
      key: 'time'
    },
    {
      label: '录音时长',
      key: '_duration'
    },
    {
      label: '预计营销结果',
      key: 'estimatedResult',
      colorEnum: {
        0: '#F24724',
        1: '#35C376',
        '-1': '#EF971E'
      }
    }
    ]
  },

  /**
   * 组件的方法列表
   */
  methods: {
    jumpDetail() {
      const {
        item
      } = this.data
      wx.$router.go('aiInspectionDetail', item)
    }
  }
})