dataBox.js 1.11 KB
// packageEquity/pages/aiInspection/components/dataBox/dataBox.js
Component({

  /**
   * 组件的属性列表
   */
  properties: {
    data: Object
  },

  /**
   * 组件的初始数据
   */
  data: {
    dataObject: [{
        title: '预计接待批次',
        tips: 'AI根据当日提交的营销录音做出的预估接待批次数',
        key: 'batchNum'
      },
      {
        title: '当日到店量',
        tips: '驻店员工在当日驻店日报中填写的到店流量(会员权益/延保),即本人在当天接待的权益延保业务客户数',
        key: 'enterReceptionBatch'
      },
      {
        title: '异常占比',
        tips: '异常占比 =(当日到店量 - 预计接待批次)/ 当日到店量',
        key: 'abnormalProportion',
        unit: '%'
      }
    ]
  },

  /**
   * 组件的方法列表
   */
  methods: {
    showTips(e) {
      console.log(e)
      const {
        title,
        tips
      } = e.currentTarget.dataset.item
      wx.showModal({
        title,
        content: tips,
        showCancel: false,
        confirmColor: '#347BFF'
      })
    }
  }
})