{"size": 452, "ext": "js", "max_stars_repo_path": "src/common/js/red-packet.js", "max_stars_repo_name": "Rotaryz/jike-h5", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/common/js/red-packet.js", "max_issues_repo_name": "Rotaryz/jike-h5", "max_issues_repo_issues_event_min_datetime": "2020-07-18T19:31:56.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-13T00:41:14.000Z", "max_forks_repo_path": "src/common/js/red-packet.js", "max_forks_repo_name": "Rotaryz/jike-h5", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 4, "max_forks_count": null, "avg_line_length": 19.652173913, "max_line_length": 61, "alphanum_fraction": 0.610619469}
/**
 * Created by user on 2017/12/14.
 */
/**
 * 红包数据修改
 */
import img1 from '@/base/reg_map/image/icon_yeschecked.png'
import img2 from '@/base/reg_map/image/icon-r_money32@2x.png'
export default class redPacket {
  constructor(item) {
    if (item.ispacket === 0) {
      this.image = img1
      this.showTitle = 0
      this.title = item.title
    } else {
      this.image = img2
      this.showTitle = 2
      this.title = item.title
    }
  }
}

