import localStorage from './localStorage.service';
export const basicOptions = {
  // 职业选项
  jobs: [
    {
      value: 'WORKER',
      name: '工人'
    },
    {
      value: 'TEACHER',
      name: '教师'
    },
    {
      value: 'WHITE_COLLAR',
      name: '白领'
    },
    {
      value: 'CAREER_BUILDER',
      name: '创业者'
    },
    {
      value: 'SELF_EMPLOYER',
      name: '个体户'
    },
    {
      value: 'EMPLOYEE',
      name: '公司职员'
    },
    {
      value: 'BISUNESS_ENTITY',
      name: '企业法人'
    },
    {
      value: 'ONLINE_STORE_OWNER',
      name: '网店店主'
    },
    {
      value: 'UNEMPLOYED',
      name: '暂无职业'
    },
    {
      value: 'OTHER',
      name: '其他'
    }
  ],

  // 学历选项
  educationList: [
    {
      value: 'MASTER',
      name: '硕士及以上'
    },
    {
      value: 'UNDER_GRADUATE',
      name: '本科'
    },
    {
      value: 'JUNIOR_COLLEGE',
      name: '大专'
    },
    {
      value: 'TECHNICAL_SECONDARY_SCHOOL',
      name: '中专'
    },
    {
      value: 'TECHNICAL_SCHOOL',
      name: '技校'
    },
    {
      value: 'HIGH_SCHOOL',
      name: '高中'
    },
    {
      value: 'MIDDLE_SCHOOL',
      name: '初中'
    },
    {
      value: 'PRIMARY_SCHOOL',
      name: '小学'
    },
    {
      value: 'OTHER',
      name: '其他'
    }
  ],
  // 月收入选项
  incomeRangeList: [
    {
      value: 'BELOW_1000',
      name: '小于1000元'
    },
    {
      value: 'BELOW_3000',
      name: '1000至3000元'
    },
    {
      value: 'BELOW_5000',
      name: '3000至5000元'
    },
    {
      value: 'BELOW_8000',
      name: '5000至8000元'
    },
    {
      value: 'BELOW_10000',
      name: '8000至10000元'
    },
    {
      value: 'BELOW_15000',
      name: '10000至15000元'
    },
    {
      value: 'BELOW_20000',
      name: '15000至20000元'
    },
    {
      value: 'ABOVE_20000',
      name: '大于20000元'
    }
  ],
  emailList: [
    {
      value: 1,
      name: 'qq.com'
    },
    {
      value: 2,
      name: '163.com'
    },
    {
      value: 3,
      name: '126.com'
    },
    {
      value: 4,
      name: 'icloud.com'
    },
    {
      value: 5,
      name: '139.com'
    },
    {
      value: 6,
      name: '189.com'
    },
    {
      value: 7,
      name: 'gmail.com'
    }
  ]
};
export const relation = [
  {
    value: 'PARENT',
    name: '父母'
  },
  {
    value: 'CHILDREN',
    name: '子女'
  },
  {
    value: 'BROTHER',
    name: '兄弟姐妹'
  },
  {
    value: 'COLLEAGUE',
    name: '同事'
  },
  {
    value: 'CLASSMATE',
    name: '同学'
  },
  {
    value: 'FRIEND',
    name: '朋友'
  },
  {
    value: 'SPOUSE',
    name: '夫妻'
  },
  {
    value: 'SELF',
    name: '本人'
  },
  {
    value: 'OTHER',
    name: '其他'
  }
];

// 消费额度申请合同列表
export const authList = [
  {
    id: 328,
    contractTemplateName: '客户非学生承诺函'
  },
  {
    id: 9,
    contractTemplateName: '个人信息查询及使用综合授权书'
  }
];
export const qoutaList = [
  {
    id: 281,
    contractTemplateName: '上海银行直销银行电子账户服务协议'
  },
  {
    id: 414,
    contractTemplateName: '享花卡消费贷款服务协议'
  },
  {
    id: 413,
    contractTemplateName: '享花卡服务协议'
  },
  {
    id: 412,
    contractTemplateName: '委托扣款授权书'
  }
];

export const xyqbDownLink =
  'https://activity.q-gp.com/activity/59a4d7f7f70cff7a37fed830?from=singlemessage&isappinstalled=0';

export const toUseUrl = 'xyqb://mall/goodsList?title=品牌尖货&labelId=58&categoryId=';
export function wxsdk() {
  if (+localStorage.get('vccChannel') !== 159913) return; // 是否是小程序
  var oHead = document.getElementsByTagName('head').item(0);
  var oScript = document.createElement('script');
  oScript.type = 'text/javascript';
  oScript.src = 'https://res.wx.qq.com/open/js/jweixin-1.4.0.js';
  oHead.appendChild(oScript);
}
