/* 抽奖类型 */
export const LOTTERY_TYPE = {
  instant: 1,
  timing: 2,
  message: 3
}
export const LOTTERY_TYPE_TXT = {
  [LOTTERY_TYPE.instant]: '即时抽奖',
  [LOTTERY_TYPE.timing]: '定时抽奖',
  [LOTTERY_TYPE.message]: '留言抽奖'
}

/* 抽奖活动状态 */
export const LOTTERY_STATUS = {
  teaser: 0,
  start: 1,
  end: 2
}
export const LOTTERY_STATUS_TXT = {
  [LOTTERY_STATUS.teaser]: { label: '未开始', actionLabel: '开始', className: 'teaser' },
  [LOTTERY_STATUS.start]: { label: '进行中', actionLabel: '结束', className: 'start' },
  [LOTTERY_STATUS.end]: { label: '已结束', actionLabel: '', className: 'end' }
}

/* 抽奖场次状态 */
export const SESSION_STATUS = {
  teaser: 0,
  start: 1,
  end: 2,
  drawing: 3
}
export const SESSION_STATUS_TXT = {
  [LOTTERY_STATUS.teaser]: { label: '未开始', actionLabel: '开始', className: 'teaser' },
  [LOTTERY_STATUS.start]: { label: '进行中', actionLabel: '结束', className: 'start' },
  [LOTTERY_STATUS.end]: { label: '已结束', actionLabel: '', className: 'end' },
  [LOTTERY_STATUS.drawing]: { label: '正在开奖', actionLabel: '', className: 'drawing' }
}

/* 抽奖样式 */
export const LOTTERY_STYLE = {
  grid: 1,
  wheel: 2,
  scratch: 3,
  gashapon: 4,
  guess: 5
}
export const LOTTERY_STYLE_TXT = {
  [LOTTERY_STYLE.grid]: '九宫格',
  [LOTTERY_STYLE.wheel]: '大转盘',
  [LOTTERY_STYLE.scratch]: '刮刮乐',
  [LOTTERY_STYLE.gashapon]: '扭蛋机',
  [LOTTERY_STYLE.guess]: '猜盲盒'
}

/* 定时抽奖 场次开奖条件 */
export const LOTTERY_INSTANT_RULES = {
  time: 1,
  people: 2
}
export const LOTTERY_INSTANT_RULES_TXT = {
  [LOTTERY_INSTANT_RULES.time]: '倒计时',
  [LOTTERY_INSTANT_RULES.people]: '参与人数'
}

/* 留言抽奖兑换方式 */
export const LOTTERY_EXCHANGE_TYPE = {
  offline: 1,
  mailing: 2
}
export const LOTTERY_EXCHANGE_TYPE_TXT = {
  [LOTTERY_EXCHANGE_TYPE.offline]: '线下自提',
  [LOTTERY_EXCHANGE_TYPE.mailing]: '邮寄'
}

/* 留言抽奖参与条件 */
export const LOTTERY_MESSAGE_RULES = {
  time: 1,
  people: 2
}
export const LOTTERY_MESSAGE_RULES_TXT = {
  [LOTTERY_MESSAGE_RULES.time]: '场次时间内留言',
  [LOTTERY_MESSAGE_RULES.people]: '名留言人数'
}

/* 是否参与抽奖 */
export const JOIN_STATUS = {
  no: 0,
  yes: 1
}
export const JOIN_STATUS_TXT = {
  [JOIN_STATUS.no]: '未参与',
  [JOIN_STATUS.yes]: '已参与'
}

/* 留言抽奖奖品类型 */
export const LOTTERY_MESSAGE_PRIZE_TYPE = {
  Offline: 1,
  online: 2
}
export const LOTTERY_MESSAGE_PRIZE_TYPE_TXT = {
  [LOTTERY_MESSAGE_PRIZE_TYPE.Offline]: '实物',
  [LOTTERY_MESSAGE_PRIZE_TYPE.online]: '虚拟物品'
}

/* 抽奖核销状态 */
export const WRITEOFF_STATUS = {
  notWrittenOff: 0,
  writtenOff: 1
}
export const WRITEOFF_STATUS_TXT = {
  [WRITEOFF_STATUS.notWrittenOff]: '未领奖',
  [WRITEOFF_STATUS.writtenOff]: '已领奖'
}

/* 数字大写 */
export const NUMBER_LIST = ['零', '一', '二', '三', '四', '五', '六', '七', '八', '九', '十']

export const CUSTOM_SOURCE_TYPE = {
  live: 0,
  tv: 1,
  radio: 2,
  picText: 3,
  gather: 4,
  cms: 5,
  shortVideo: 6,
  vote: 7,
  lottery: 8,
  my: 9,
  questionnaire: 10,
}
export const CUSTOM_SOURCE_TYPE_TXT = {
  [CUSTOM_SOURCE_TYPE.live]: '现场直播',
  [CUSTOM_SOURCE_TYPE.tv]: '电视直播',
  [CUSTOM_SOURCE_TYPE.radio]: '电台直播',
  [CUSTOM_SOURCE_TYPE.picText]: '图文直播',
  [CUSTOM_SOURCE_TYPE.gather]: '聚合页',
  [CUSTOM_SOURCE_TYPE.cms]: '新闻中心',
  [CUSTOM_SOURCE_TYPE.shortVideo]: '短视频',
  [CUSTOM_SOURCE_TYPE.vote]: '投票',
  [CUSTOM_SOURCE_TYPE.lottery]: '抽奖',
  [CUSTOM_SOURCE_TYPE.my]: '个人中心',
  [CUSTOM_SOURCE_TYPE.questionnaire]: '调查问卷'
}
