// // 线上测试
// export const preEnv = "https://95721.activity-18.m.duiba.com.cn/projectx/p03805f35/index.html?appID=95721"

// export const prodEnv = "https://95721.activity-18.m.duiba.com.cn/projectx/pf892b6a1/index.html?appID=95721"

export const globalData = {
    loginToken: "",
    indexInfo: {},
    wid: ""
}
//正式项目 pc98b8da4
//线上测试 pb4c53264

export const awardUrl = "https://duiba.ioutu.cn/projectx/pc98b8da4/myPrize.html?appID=96109"

export const rankUrl = "https://duiba.ioutu.cn/projectx/pc98b8da4/rank.html?appID=96109"

export const chanllageUrl = "https://duiba.ioutu.cn/projectx/pc98b8da4/index.html?appID=96109"

export const shopUrl = "/cms_design/index?productInstanceId=13068633342&vid=0&pageid=57840295342"

export const exchangeUrl = "/cms_design/design?productInstanceId=13068633342&vid=0&pageid=58011845342"




export function getUrlParam(name, search) {
    let matched = search.split('?')[1]
        .match(new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i'));
    return search.length ? matched && matched[2] : null;
}