import { listClass } from '@/constant/global'

const arrToMap = arr =>
  arr.reduce((res, cur) => {
    res[cur.value] = cur.label
    return res
  }, {})

export const userTypeList = [
  { value: 'sys_user', label: '后台管理',listClass: listClass.primary},
  { value: 'app_user', label: 'APP用户',listClass: listClass.info},
]

export const authList = [
  { value: 0, label: '未认证', listClass: listClass.danger },
  { value: 1, label: '已认证', listClass: listClass.primary }
]

// 链接类型  1 网页    2 app内页   3 JSON数据
export const bannerLinkTypeList = [
  { value: 1, label: '网页' },
  { value: 2, label: 'app内页' },
  { value: 3, label: 'JSON数据' },
]

export const bannerStatusList = [
  { value: 0, label: '可用' },
  { value: 1, label: '不可用' }
]

// 1 申请  2 审核通过  3 审核不通过  4 提现取消
export const cashStatusList = [
  { value: 1, label: '申请中',listClass: listClass.warning },
  { value: 2, label: '审核通过',listClass: listClass.primary },
  { value: 3, label: '审核不通过',listClass: listClass.danger },
  { value: 4, label: '提现取消',listClass: listClass.info }
]

export const forbidTimeList = [
  { value: 1, label: '封6小时' },
  { value: 2, label: '封1天'},
  { value: 3, label: '封3天' },
  { value: 4, label: '封7天' },
  { value: 5, label: '封一个月' },
  { value: 6, label: '封10年' },
]

// 1 封用户uid  2.封设备uuid  3.imei 4.mac
export const forbidTypeList = [
  { value: 1, label: '用户' },
  { value: 2, label: '设备'},
  { value: 3, label: 'imei' },
  { value: 4, label: 'mac' },
  { value: 5, label: 'ip' },
]

export const memberTypeList = [
  { value: 0, label: '普通会员' ,listClass: listClass.info},
  { value: 1, label: '超级会员' ,listClass: listClass.danger},
]

export const memberStatusList = [
  { value: 0, label: '可用' ,listClass: listClass.info},
  { value: 1, label: '过期' ,listClass: listClass.warning},
  { value: 2, label: '不可用' ,listClass: listClass.danger},
]

export const isAnchorList = [
  { value: 1, label: '是',listClass: listClass.primary},
  { value: 0, label: '否',listClass: listClass.info},
]

export const userRiskLowList = [
  { value: 1, label: '低风险',listClass: listClass.info},
  { value: 2, label: '高风险',listClass: listClass.danger},
]

export const videoStatusList = [
  { value: 0, label: '休息中',listClass: listClass.info},
  { value: 1, label: '视频中',listClass: listClass.danger},
]

export const onlineStatusList = [
  { value: 0, label: '离线',listClass: listClass.info},
  { value: 1, label: '在线',listClass: listClass.danger},
]

/**
 * 开启视频接听
 */
export const openVideoStatusList = [
  { value: 0, label: '未开启',listClass: listClass.danger},
  { value: 1, label: '已开启',listClass: listClass.info},
]

export const orderSwitchList = [
  { value: 1, label: '隐藏',listClass: listClass.warning},
  { value: 2, label: '不隐藏',listClass: listClass.info},
]

export const indexDisplayList = [
  { value: 0, label: '不展示',listClass: listClass.warning},
  { value: 1, label: '展示',listClass: listClass.info},
]

// 类型  1 个人详情页    2.IM页面  3 视频页
export const userGiftTypeList = [
  { value: 1, label: '个人详情页'},
  { value: 2, label: 'IM页面'},
  { value: 3, label: '视频页'},
]


// 1 个人详情页   2 视频结束 3 动态   4.IM页面
export const reportTypeList = [
  { value: 1, label: '个人详情页'},
  { value: 2, label: '视频结束'},
  { value: 3, label: '动态'},
  { value: 4, label: 'IM页面'},
]

export const ipMicList = [
  { value: 1, label: 'IP'},
  { value: 2, label: 'MIC'},
]

export const accountTypeList = [
  { value: 1, label: '余额',listClass: listClass.info},
  { value: 2, label: '收益',listClass: listClass.primary},
]
// 0=文本消息,1=图片消息,2=语音消息,3=视频消息,4=发送地理位置消息,6=发送文件消息,10=发送提示消息,100=发送第三方自定义消息

export const deleteFlagList = [
  { value: 0, label: '正常',listClass: listClass.primary},
  { value: 1, label: '删除',listClass: listClass.danger},
]

export const imTypeList = [
  { value: 0, label: '文本消息'},
  { value: 1, label: '图片消息'},
  { value: 2, label: '语音消息'},
  { value: 3, label: '视频消息'},
  { value: 4, label: '发送地理位置消息'},
  { value: 6, label: '发送文件消息'},
  { value: 10, label: '发送提示消息'},
  { value: 100, label: '发送第三方自定义消息'},
]

export const userCallStatusList = [
  { value: 0, label: '创建通话', listClass: listClass.info},
  { value: 1, label: '呼叫方连接上', listClass: listClass.info},
  { value: 2, label: '呼叫方取消通话', listClass: listClass.warning},
  { value: 3, label: '接收方连接上', listClass: listClass.info},
  { value: 4, label: '收到通话未接听', listClass: listClass.warning},
  { value: 5, label: '超时未接听', listClass: listClass.warning},
  { value: 6, label: '接收方已拒绝', listClass: listClass.danger},
  { value: 7, label: '已接听', listClass: listClass.primary},
  { value: 8, label: '通话结束', listClass: listClass.primary},
]

export const forbidStatusList = [
  { value: 1, label: '封禁中',listClass: listClass.danger},
  { value: 2, label: '已解封',listClass: listClass.primary},
]

export const rankTypeList = [
  { value: 1, label: '魅力榜',listClass: listClass.danger},
  { value: 2, label: '邀请榜',listClass: listClass.primary},
]

export const rankDataTypeList = [
  { value: 1, label: '日榜',listClass: listClass.primary},
  { value: 2, label: '周榜',listClass: listClass.primary},
  { value: 3, label: '月榜',listClass: listClass.primary},
]

export const rankDrawList = [
  { value: true, label: '已领奖',listClass: listClass.primary},
  { value: false, label: '未领奖',listClass: listClass.warning},
]

export const payConfigTypeList = [
  { value: 1, label: '支付宝',listClass: listClass.primary},
  { value: 2, label: '微信',listClass: listClass.success},
]

export const smsTypeList = [
  { value: 'REGISTER', label: '注册短信'},
  { value: 'RESET_PASSWORD', label: '充值密码'},
]

export const userErrorLogTypeList = [
  { value: 1, label: '截屏',listClass: listClass.warning},
  { value: 2, label: '录屏',listClass: listClass.danger},
]

export const userErrorLogHomeIndexList = [
  { value: 'video', label: '直播期间',listClass: listClass.danger},
  { value: 'other', label: '其他',listClass: listClass.success},
]

export const versionPlatformList = [
  { value: 1, label: '安卓'},
  { value: 2, label: 'IOS'},
]

export const sensitiveTypeList = [
  { value: 1, label: '白名单', listClass: listClass.success},
  { value: 2, label: '黑名单', listClass: listClass.danger},
]



// xq平台的字典

export const yesOrNoList = [
  { value: 1, label: '是',listClass: listClass.danger},
  { value: 0, label: '否',listClass: listClass.info},
]

export const userStatusList = [
  { value: 0, label: '可用', listClass: listClass.primary },
  { value: 1, label: '不可用', listClass: listClass.danger }
]

export const genderList = [
  { value: 0, label: '未知', listClass: listClass.warning },
  { value: 1, label: '女', listClass: listClass.danger },
  { value: 2, label: '男', listClass: listClass.primary }
]

/**  用户 - 体型 */
export const userSomatotypeList = [
  { value: 1, label: '瘦'},
  { value: 2, label: '较瘦' },
  { value: 3, label: '匀称' },
  { value: 4, label: '苗条' },
  { value: 5, label: '高挑' },
  { value: 6, label: '丰满' },
  { value: 7, label: '健壮' },
  { value: 8, label: '魁梧' },
  { value: 9, label: '胖' },
  { value: 10, label: '较胖' },
]
/**  用户 - 生肖 */
export const userZodiacList = [
  { value: 1, label: '鼠'},
  { value: 2, label: '牛' },
  { value: 3, label: '虎' },
  { value: 4, label: '兔' },
  { value: 5, label: '龙' },
  { value: 6, label: '蛇' },
  { value: 7, label: '马' },
  { value: 8, label: '羊' },
  { value: 9, label: '猴' },
  { value: 10, label: '鸡' },
  { value: 11, label: '狗' },
  { value: 12, label: '猪' },
]

/**  用户 - 学历 */
export const userEducationList = [
  { value: 1, label: '中专以下'},
  { value: 2, label: '中专' },
  { value: 3, label: '大专' },
  { value: 4, label: '本科' },
  { value: 5, label: '硕士' },
  { value: 6, label: '博士' },
  { value: 7, label: '博士后' },
]

/**  用户 - 婚况 */
export const userMarriageList = [
  { value: 1, label: '未婚'},
  { value: 2, label: '离异' },
  { value: 3, label: '丧偶' }
]

/**  用户 - 年收入 */
export const userAnnualIncomeList = [
  { value: 1, label: '5万以下'},
  { value: 2, label: '5-10万' },
  { value: 3, label: '10-20万' },
  { value: 4, label: '20-30万' },
  { value: 5, label: '30-50万' },
  { value: 6, label: '50-100万' },
  { value: 7, label: '100万以上' },
]

/**  用户 - 公司性质 */
export const userCompanyNatureList = [
  { value: 1, label: '政府机关'},
  { value: 2, label: '事业单位' },
  { value: 3, label: '外企企业' },
  { value: 4, label: '世界500强' },
  { value: 5, label: '上市公司' },
  { value: 6, label: '国有企业' },
  { value: 7, label: '私营企业' },
  { value: 8, label: '自有公司' },
]


export const systemPushGroupIdList = [
  { value: 0, label: '单个用户'},
  { value: 1, label: '全部用户'},
  { value: 2, label: '男用户'},
  { value: 3, label: '女用户'},
]

export const systemPushLogStatus = [
  { value: 0, label: '未推送',listClass: listClass.info},
  { value: 1, label: '推送中',listClass: listClass.primary},
  { value: 2, label: '推送失败',listClass: listClass.danger},
  { value: 3, label: '推送成功',listClass: listClass.success},
]

export const systemPushSendTimeTypeList = [
  { value: 0, label: '手动发送',listClass: listClass.primary},
  { value: 1, label: '定时发送',listClass: listClass.danger},
]
export const systemPushStatusList = [
  { value: 0, label: '未执行',listClass: listClass.info},
  { value: 1, label: '执行中',listClass: listClass.warning},
  { value: 2, label: '队列执行中',listClass: listClass.primary},
  { value: 3, label: '已完成',listClass: listClass.success},
  { value: 4, label: '已取消',listClass: listClass.info},
  { value: 10, label: '执行失败',listClass: listClass.danger}
]
export const systemPushTypeList = [
  { value: 0, label: '纯文字消息',listClass: listClass.info},
  { value: 1, label: '文本消息',listClass: listClass.primary},
  { value: 2, label: '单图文消息',listClass: listClass.success},
  { value: 3, label: '多图文消息',listClass: listClass.warning},
  { value: 4, label: '纯图文消息',listClass: listClass.warning},
]

/**  用户 - 为谁征婚 */
export const userForPersonalsList = [
  { value: 1, label: '为自己征婚'},
  { value: 2, label: '为子女征婚' },
  { value: 3, label: '为亲友征婚' }
]

/**  用户 - 住房情况 */
export const userHousingStatusList = [
  { value: 1, label: '暂未购房'},
  { value: 2, label: '已购房（有贷款）' },
  { value: 3, label: '已购房（无贷款）' },
  { value: 4, label: '与父母同住' },
  { value: 5, label: '无房希望对方解决' },
  { value: 6, label: '无房希望双方解决' },
]

/**  用户 - 购车情况 */
export const userCarStatusList = [
  { value: 1, label: '未购车'},
  { value: 2, label: '已购车（经济型）' },
  { value: 3, label: '已购车（中档型）' },
  { value: 4, label: '已购车（豪华型）' },
  { value: 5, label: '需要时可配置' },
]


/**  用户 - 是否吸烟 */
export const userSmokeStatusList = [
  { value: 1, label: '不吸，很反感'},
  { value: 2, label: '不吸烟，但不反感' },
  { value: 3, label: '社交偶尔吸烟' },
  { value: 4, label: '烟不离手' },
]

/**  用户 - 是否喝酒 */
export const userDrinkStatusList = [
  { value: 1, label: '不喝酒'},
  { value: 2, label: '社交需要喝' },
  { value: 3, label: '兴致时小酌' },
  { value: 4, label: '酒不离口' },
]


/**  用户 - 有没有小孩 */
export const userChildStatusList = [
  { value: 1, label: '没有'},
  { value: 2, label: '有，和我住一起' },
  { value: 3, label: '有，有时和我住一起' },
  { value: 4, label: '有，不和我住一起' },
]

/**  用户 - 家庭背景 */
export const userFamilyBackgroundList = [
  { value: 1, label: '高知'},
  { value: 2, label: '高干' },
  { value: 3, label: '经商' },
  { value: 4, label: '中产阶级' },
  { value: 5, label: '小康' },
  { value: 6, label: '工薪阶层' },
  { value: 7, label: '其他' },
]

/**  用户 - 家中排行 */
export const userFamilyRankingList = [
  { value: 1, label: '独生子女'},
  { value: 2, label: '老大' },
  { value: 3, label: '老二' },
  { value: 4, label: '老三' },
  { value: 5, label: '老四' },
  { value: 6, label: '老五' },
  { value: 7, label: '其他' },
]

/**  用户 - 是否接受异地恋 */
export const userLoveAtDistanceList = [
  { value: 1, label: '接受'},
  { value: 2, label: '不接受' },
  { value: 3, label: '看情况' }
]

/**  用户 - 何时结婚 */
export const userWhenMarriageList = [
  { value: 1, label: '及时闪婚'},
  { value: 2, label: '一年以内' },
  { value: 3, label: '两年以内' },
  { value: 4, label: '三年以内' },
  { value: 5, label: '时机成熟就结婚' },
]

/**  用户 - 是否要小孩 */
export const userWantChildList = [
  { value: 1, label: '愿意'},
  { value: 2, label: '不愿意' },
  { value: 3, label: '视情况而定' }
]

/**  用户 - 愿与对方父母同住 */
export const userLiveAtParentList = [
  { value: 1, label: '愿意'},
  { value: 2, label: '不愿意' },
  { value: 3, label: '视情况而定' }
]

/**  用户 - 交友目的 */
export const userFindTagList = [
  { value: 1, label: '交朋友' },
  { value: 2, label: '找知己' },
  { value: 3, label: '谈恋爱' },
  { value: 4, label: '结婚' },
]


export const userAuthStatusList = [
  { value: 0, label: '待提交',listClass: listClass.info},
  { value: 1, label: '审核中',listClass: listClass.warning},
  { value: 2, label: '已认证',listClass: listClass.primary},
  { value: 3, label: '审核不通过',listClass: listClass.danger},
]


// 1-正常 2-已过期 3-已取消
export const userVipStatusList = [
  { value: 1, label: '正常',listClass: listClass.primary},
  { value: 2, label: '已过期',listClass: listClass.danger},
  { value: 3, label: '已取消',listClass: listClass.info},
]

// 1-普通会员 2-黄金会员 3-钻石会员
export const vipTypeList = [
  { value: 1, label: '普通会员',listClass: listClass.primary},
  { value: 2, label: '黄金会员',listClass: listClass.warning},
  { value: 3, label: '钻石会员',listClass: listClass.danger},
]

// 1-月卡 2-季卡 3-年卡
export const vipTimeList = [
  { value: 1, label: '月卡',listClass: listClass.primary},
  { value: 2, label: '季卡',listClass: listClass.primary},
  { value: 3, label: '年卡',listClass: listClass.primary},
]

export const payStatusList = [
  { value: 0, label: '待支付',listClass: listClass.info},
  { value: 1, label: '已支付',listClass: listClass.primary},
  { value: 5, label: '已退款',listClass: listClass.info},
  { value: 10, label: '无需支付',listClass: listClass.info},
]

export const platformTypeList = [
  { value: "ADMIN", label: '后台管理操作',listClass: listClass.danger},
  { value: "WX", label: '微信',listClass: listClass.success},
  { value: "ALI", label: '支付宝',listClass: listClass.primary},
  { value: "SYS", label: '系统操作',listClass: listClass.info},
]

export const booleanList = [
  { value: true, label: '是',listClass: listClass.danger},
  { value: false, label: '否',listClass: listClass.info},
]

export const auditStatusList = [
  { value: 0, label: '待提交',listClass: listClass.info},
  { value: 1, label: '审核中',listClass: listClass.warning},
  { value: 2, label: '审核通过',listClass: listClass.primary},
  { value: 3, label: '审核不通过',listClass: listClass.danger},
]

export const enableStatusList = [
  { value: 1, label: '正常',listClass: listClass.primary},
  { value: 0, label: '禁用',listClass: listClass.danger},
]

// 1-头像 1-自我描述
export const userInfoAuditTypeList = [
  { value: 1, label: '头像',listClass: listClass.primary},
  { value: 2, label: '自我描述',listClass: listClass.primary},
]

// single-单身认证 education-学历认证 job-工作认证 car-车辆认证 house-房子认证 marriage-婚况认证
export const userAuthAuditTypeList = [
  { value: 'single', label: '单身认证',listClass: listClass.primary},
  { value: 'education', label: '学历认证',listClass: listClass.primary},
  { value: 'job', label: '工作认证',listClass: listClass.primary},
  { value: 'car', label: '车辆认证',listClass: listClass.primary},
  { value: 'house', label: '房子认证',listClass: listClass.primary},
  { value: 'marriage', label: '婚况认证',listClass: listClass.primary},
]


export const areaCodeLevelList = [
  { value: 'country', label: '国家',listClass: listClass.primary},
  { value: 'province', label: '省',listClass: listClass.primary},
  { value: 'city', label: '市',listClass: listClass.danger},
  { value: 'district', label: '区',listClass: listClass.info},
]

export const reportStatusList = [
  { value: 0, label: '未处理',listClass: listClass.danger},
  { value: 1, label: '已处理',listClass: listClass.primary},
]

export const wxTransOrderSourceList = [
  { value: 1, label: '订单',listClass: listClass.primary},
  { value: 2, label: 'VIP赠送',listClass: listClass.warning},
  { value: 3, label: '后台管理新增',listClass: listClass.danger},
]

export const consumeLogTypeList = [
  { value: 1, label: 'VIP'},
]

export const consumeLogStatusList = [
  { value: -1, label: '无须分销',listClass: listClass.info},
  { value: 0, label: '待分销',listClass: listClass.warning},
  { value: 1, label: '已分销',listClass: listClass.primary},
]

export const consumeLogCalculateStatusList = [
  { value: false, label: '待计算',listClass: listClass.warning},
  { value: true, label: '已计算',listClass: listClass.primary},
]

// 0-待接收 1-接受交换 2-拒绝交换
export const wxTransDataStatusList = [
  { value: 0, label: '待接收',listClass: listClass.warning},
  { value: 1, label: '接受交换',listClass: listClass.primary},
  { value: 2, label: '拒绝交换',listClass: listClass.danger},
]

// 征婚状态 1-寻找中 2-已脱单 3-隐藏资料
export const userStatusPersonalsStatusList = [
  { value: 1, label: '寻找中',listClass: listClass.primary},
  { value: 2, label: '已脱单',listClass: listClass.danger},
  { value: 3, label: '隐藏资料',listClass: listClass.warning},
]


// 1-所有用户 2-VIP用户 3-实名用户 4-实名认证且VIP用户 5-不公开
export const userStatusShowAvatarList = [
  { value: 1, label: '所有用户',listClass: listClass.primary},
  { value: 2, label: 'VIP用户',listClass: listClass.warning},
  { value: 3, label: '实名用户',listClass: listClass.warning},
  { value: 4, label: '实名认证且VIP用户',listClass: listClass.danger},
  { value: 5, label: '不公开',listClass: listClass.info},
]

export const userSignList = [
  { value: 1, label: '白羊座'},
  { value: 2, label: '金牛座'},
  { value: 3, label: '双子座'},
  { value: 4, label: '巨蟹座'},
  { value: 5, label: '狮子座'},
  { value: 6, label: '处女座'},
  { value: 7, label: '天秤座'},
  { value: 8, label: '天蝎座'},
  { value: 9, label: '射手座'},
  { value: 10, label: '摩羯座'},
  { value: 11, label: '水瓶座'},
  { value: 12, label: '双鱼座'},
]

export const finishStatusList = [
  { value: 1, label: '已完成',listClass: listClass.primary},
  { value: 0, label: '未完成',listClass: listClass.warning},
]

export const appUserTypeList = [
  { value: 0, label: '正常用户',listClass: listClass.primary},
  { value: 1, label: '内部用户',listClass: listClass.warning},
]


export const professionList = [
  { value: '运动员', label: '运动员'},
  { value: '教师', label: '教师'},
  { value: '教授', label: '教授'},
  { value: '学生', label: '学生'},
  { value: '董事长', label: '董事长'},
  { value: '总经理', label: '总经理'},
  { value: '副总/总监', label: '副总/总监'},
  { value: '部门经理', label: '部门经理'},
  { value: '中层管理', label: '中层管理'},
  { value: '企业家', label: '企业家'},
  { value: '个体老板', label: '个体老板'},
  { value: '干部', label: '干部'},
  { value: '公务员', label: '公务员'},
  { value: '律师', label: '律师'},
  { value: '医生', label: '医生'},
  { value: '护士', label: '护士'},
  { value: '专家学者', label: '专家学者'},
  { value: '工程师', label: '工程师'},
  { value: '设计师', label: '设计师'},
  { value: '艺术家', label: '艺术家'},
  { value: '文员', label: '文员'},
  { value: '主播', label: '主播'},
  { value: '会计', label: '会计'},
  { value: '技术员', label: '技术员'},
  { value: '服务员', label: '服务员'},
  { value: '普通工人', label: '普通工人'},
  { value: '自由职业', label: '自由职业'},
  { value: '美容业', label: '美容业'},
  { value: '培训师', label: '培训师'},
  { value: '媒体工作者', label: '媒体工作者'},
  { value: '摄影师', label: '摄影师'},
  { value: '咨询师', label: '咨询师'},
  { value: '银行', label: '银行'},
  { value: '保险', label: '保险'},
  { value: '房产销售', label: '房产销售'},
  { value: '军人', label: '军人'},
  { value: '消防员', label: '消防员'},
  { value: '警察', label: '警察'},
  { value: '国企职员', label: '国企职员'},
  { value: '司机', label: '司机'},
  { value: '种养殖', label: '种养殖'},
  { value: '销售', label: '销售'},
  { value: '教培老师', label: '教培老师'},
  { value: '建筑施工', label: '建筑施工'},
  { value: '辅警安保', label: '辅警安保'},
  { value: '程序员', label: '程序员'},
  { value: '婚庆主持', label: '婚庆主持'},
  { value: '机构负责人', label: '机构负责人'},
  { value: '医技', label: '医技'},
  { value: '项目管理', label: '项目管理'},
  { value: '电子商务', label: '电子商务'},
  { value: '带货主播', label: '带货主播'},
  { value: '鉴定员', label: '鉴定员'},
  { value: '编辑', label: '编辑'},
  { value: '记者', label: '记者'},
  { value: '物流', label: '物流'},
  { value: '装修工', label: '装修工'},
  { value: '工程主管', label: '工程主管'},
  { value: '金融投资', label: '金融投资'},
  { value: '客服', label: '客服'},
  { value: '空乘', label: '空乘'},
  { value: '财务', label: '财务'},
  { value: '翻译', label: '翻译'},
  { value: '事业单位', label: '事业单位'},
  { value: '招商', label: '招商'},
  { value: '厨师', label: '厨师'},
  { value: '幼教', label: '幼教'},
]
