/**
 * 配置通用 
 */
const node_dev = process.env.H_NODE_ENV;
// //运行到浏览器用的
let baseUrl = null // 后端服务接口
let linkUrl = null // 链接
let upFileUrl= null // 后端上传接口
let staticUrl= null // 静态文件地址
let redirectUri = null
// 本地
// #ifdef MP
	baseUrl='https://greath5.dev.dazesoft.cn/serviceapi';
	linkUrl='';
	upFileUrl='';
	staticUrl='';
	redirectUri= 'https://h5.wdzzgs.com/distribution/pages/login/index'
// #endif
// #ifdef H5
	baseUrl='/api';
	linkUrl='https://greath5.dev.dazesoft.cn/distributionlink/link.html';
	upFileUrl='';
	staticUrl='https://greath5.dev.dazesoft.cn/distribution/static/';
	redirectUri= 'https://greath5.dev.dazesoft.cn/distribution/pages/login/index'
// #endif

// 打包用的
if (node_dev =='development') { // 分销测试
 // #ifdef MP
 	baseUrl='';
	linkUrl='';
 	upFileUrl='';
 	staticUrl='';
 // #endif
 // #ifdef H5
 	baseUrl='https://greath5.dev.dazesoft.cn/serviceapi';
	linkUrl='https://greath5.dev.dazesoft.cn/distributionlink/link.html';
 	upFileUrl='h';
 	staticUrl='https://greath5.dev.dazesoft.cn/distribution/static/';
	redirectUri= 'https://greath5.dev.dazesoft.cn/distribution/pages/login/index'
 // #endif
}
if (node_dev =='production') { // 分销正式
 // #ifdef MP
 	baseUrl='';
	linkUrl='';
 	upFileUrl='';
 	staticUrl='';
	redirectUri= 'https://h5.wdzzgs.com/distribution/pages/login/index'
 // #endif
 // #ifdef H5
 	baseUrl='https://h5.wdzzgs.com/serviceapi';
	linkUrl='https://h5.wdzzgs.com/distributionlink/link.html'
 	upFileUrl='';
 	staticUrl='https://h5.wdzzgs.com/distribution/static/';
	redirectUri= 'https://h5.wdzzgs.com/distribution/pages/login/index'
 // #endif
}


const commonConfig = {
	wxAppid: '', // 测试wxAppid
	appid: 'wx6490eaa0d20d2be2', // 公众号
	redirectUri: encodeURIComponent(redirectUri), //
	baseUrl: baseUrl, // 服务器地址
	linkUrl: linkUrl,
	uploadFileUrl: upFileUrl, // 上传文件路径
	staticUrl:staticUrl,
	paginationConfig:{
		  pageNum: 1,
		  pageSize: 10
	},//分页参数
	successCode:200,//接口返回状态
}
export {
	commonConfig
}