// 天美贷需求：
// http://confluence.quantgroup.cn/pages/viewpage.action?pageId=90740738&preview=/90740738/90741868/%E5%95%86%E5%9F%8E%E6%94%B9%E5%8A%A8%E6%A8%A1%E5%9D%97%E2%80%94%E2%80%94%E6%96%B9%E6%A1%88%E4%B8%80.png

import Config from './config';
import faviconPath from '../../public/logo.png';
export default class TMDConfig extends Config {
  constructor() {
    super();
    this.yxm = true;
    this.faviconPath = faviconPath;
    this.talosHost = 'https://talos.xyqb.com';
    this.kdspHost = 'https://kdsp-api.q-gp.com';
    this.userCardTop = '-25px';
    this.customerServiceName = '在线客服';
    this.registerRreaty = {
      url: 'https://page.q-gp.com/he-tong-yu-lan/?contractTemplateId=280',
      label: '用户注册协议'
    };
    this.privacyRreaty = {
      url: 'https://page.q-gp.com/he-tong-yu-lan/?contractTemplateId=8',
      label: '隐私政策'
    };
    this.quotaInfo = {
      title: '我的享花卡',
      leftText: '可用额度(元)',
      rightText: '待还款(元)'
    };
    this.payTip = '请选择现金券支付！';
    // 天美贷 首页访问 url query参数 vccChannel=161175&thirdToken=1567
    this.channelId = {
      id: 161175,
      lable: 'vccChannel'
    };
    this.channelPhone = {
      lable: 'thirdToken'
    };
    // 天美贷
    this.tianmeidaiRreaty = {
      url: 'https://tmd.ndmicro.com/protocol/yxm',
      label: '授权协议'
    };
  }
  signOutFn() {
    location.href = `/login?backUrl=${location.href}`;
  }
}
