// dev
// window.injectConfig={
//     BASE_URL: 'https://dev-crm-kpl.kerryprops.com.cn/xcrm-api/',
//     BASE_URL_H5: 'https://dev-crm-kpl.kerryprops.com.cn/aifengleh5/',
//     PIC_URL: 'https://dev-crm-kpl.kerryprops.com.cn/upload',
//     KIP_APPID: 'wx92c3e55fbef6b2af',
//     TRACKING_API_URL: "https://prod-tracking-cip.kerryplus.com/sa?project=kerry_tracking",
//     profileApi: 'https://dev-apim.kerryplus.com/c/api',
//     qaPayment: 'https://dev-payment.kerryonvip.com',
//     stage: 'dev',
// }
// qa
// window.injectConfig={
//     BASE_URL: 'https://qa-crm-kpl.kerryprops.com.cn/xcrm-api/',
//     BASE_URL_H5: 'https://qa-crm-kpl.kerryprops.com.cn/aifengleh5/',
//     PIC_URL: 'https://cnsh-kerry-crm-le.oss-cn-shanghai.aliyuncs.com/',
//     KIP_APPID: 'wx92c3e55fbef6b2af',
//     TRACKING_API_URL: "https://qa-tracking-cip.kerryplus.com/sa?project=kerry_tracking",
//     profileApi: 'https://qa-apim.kerryplus.com/c/api',
//     qaPayment: 'https://qa-payment.kerryonvip.com',
//     stage: 'qa',
// }
// prod
// window.injectConfig={
//     BASE_URL: 'https://crm.kerryplus.com/xcrm-api/',
//     BASE_URL_H5: 'https://crm.kerryplus.com/aifengleh5/',
//     PIC_URL: 'https://cnsh-kerry-crm-prod.oss-cn-shanghai.aliyuncs.com/',
//     KIP_APPID: 'wx92c3e55fbef6b2af',
//     TRACKING_API_URL: "https://prod-tracking-cip.kerryplus.com/sa?project=kerry_tracking",
//     profileApi: 'https://apim.kerryplus.com/c/api',
//     qaPayment: 'https://payment.kerryonvip.com',
//     stage: 'prod',
// }



// console.log(8989, curEnvConst.KIP_PAYMENT_URL)
// Vue.prototype.$baseURL = curEnvConst.BASE_URL;
// Vue.prototype.$baseURLH5 = curEnvConst.BASE_URL_H5;
// Vue.prototype.$wsBaseURL = curEnvConst.WS_BASE_URL;
// Vue.prototype.$picUrl = curEnvConst.PIC_URL;
// Vue.prototype.$kipPaymentUrl = curEnvConst.KIP_PAYMENT_URL;
// Vue.prototype.$kipAppId = curEnvConst.KIP_APPID;
// Vue.prototype.$kipAppPath = KIP_APP_PATH;
// Vue.prototype.$etcpAppId = curEnvConst.ETCP_APPID;
// Vue.prototype.$etcpAppPath = ETCP_APP_PATH;
// Vue.prototype.$etcpAppInvoicePath = ETCP_APP_INVOICE_PATH;


// export const
// this.groupId = '8a8485497c9cafbc017c9cb90b9d0000';
// this.mallId = '8a84854a7cfd947d017d02861a9d0002';

export const KIP_API_CODE = {
    TOKEN_EXPIRED: '300000',
    REFRESH_TOKEN_EXPIRED: '300001',
    OK: '000000'
  }

export const isMini = () => {
    // by: https://blog.csdn.net/txz_gray/article/details/103975818
    //3.通过判断navigator.userAgent中包含miniProgram字样
    var userAgent = navigator.userAgent;
    // var isMini = /miniProgram/i.test(userAgent);
    return /miniProgram/i.test(userAgent);
}
