recordItem.js 876 Bytes
Component({

  /**
   * 组件的属性列表
   */
  properties: {
    record: {
      type: Object,
		},
		detailInfo: {
			type: Object
		},
		hideBtn: Boolean
  },

  /**
   * 组件的初始数据
   */
  data: {
    statusMap: {
			'成交': { color: '#35C376', background: '#35c37614' },
			'战败': { color: '#F24724', background: '#f2472414' }
		},
		itemOptions: [{
			label: '服务门店',
			key: 'merchantName'
		}, {
			label: '质检评分',
			key: 'score'
		}, {
			label: '攻防评分',
			key: 'gfScroe'
		}]
  },

  /**
   * 组件的方法列表
   */
  methods: {
		onViewItem(e) {
			let { record, detailInfo } = this.data
			record.storeManagerName = detailInfo.storeManagerName || record.salesName
			wx.navigateTo({
				url: `/packageCrew/pages/recordingDetail/recordingDetail?record=${JSON.stringify(record)}`,
			})
		}
	},
  attached() {
  }
})