let global = {}


global.baseUrl = 'https://ldt.guosen-fumao.cn/api/'
global.WebSocketUrl='wss://ldt.guosen-fumao.cn/websocket/'

// global.baseUrl = 'http://192.168.1.48:2366/'
// global.WebSocketUrl = 'ws://192.168.1.48:2366/websocket/'

global.tokenUrl = global.baseUrl +
	'blade-auth/oauth/token?tenantId=000000&password=21232f297a57a5a743894a0e4a801fc3&username=admin'

global.socket_prefix = 'USER:'

global.socket_prefix_SHOP = 'SHOP:'

global.cart_prefix = 'cart:'

global.platform = {
	SHOP: "SHOP",
	MALL: "MALL"
}

global.userType = {
	USER: "普通用户",
	CHANNEL: "渠道代理",
	CITY: "城市代理",
	SHOP: "商户",
	MALL: "商场",
}

// global.agenterTypeId='1423464045809364994'
global.agenterTypeId = 'agent_channel_setting'

global.paymentScene = {
	SCAN_CODE: 'SCAN_CODE',
	TRANSFER: 'TRANSFER',
	PAY_CODE: 'PAY_CODE',
	MINI_PROGRAM: 'MINI_PROGRAM'
}

global.paymentType = {
	YEE_PAY: "YEE_PAY"
}
global.orderType = {
	USER_PAY: 'USER_PAY',
	AGENT_CHARGE: 'AGENT_CHARGE',
	MALL_CHARGE: 'MALL_CHARGE'
}

global.takeType = {
	dine_in: '店内堂食',
	package: '到店自取',
	delivery: '商家配送'
}
global.takeTypeList = ['店内堂食', '到店自取', '商家配送']

global.payStatus = {
	IS_WAIT: '0',
	IS_PAY: '1',
	IS_CANCEL: '2'
}

global.wxParams = {
	APPID: 'wx9ad53e8c83ae1a51'
}

global.APPID = {
	nanyue: 'wxd78a776416719686', //南粤药业
	didi: 'wxaf35009675aa0b2a', //滴滴出行
}

//webSocket 收到服务端的信息
global.socketMessage = {
	payForPaymentCode: '用户通过付款码付款', //商家扫描用户的付款码支付
}


// 用户积分足够够有三种情况，分别是CHANNEL_ENOUGN、CHANNEL_ZERO_RARE_ENOUGH、CHANNEL_NOENOUGH_RARE_ENOUGH
global.pointPayType = {
	//渠道积分足够支付
	CHANNEL_ENOUGN: 'CHANNEL_ENOUGN',
	//渠道积分为0,用户余额为0
	CHANNEL_ZERO_RARE_ZERO: 'CHANNEL_ZERO_RARE_ZERO',
	//渠道积分为0，用户余额够扣
	CHANNEL_ZERO_RARE_ENOUGH: 'CHANNEL_ZERO_RARE_ENOUGH',
	//渠道积分为0，用户余额不够扣
	CHANNEL_ZERO_RARE_NOENOUGH: 'CHANNEL_ZERO_RARE_NOENOUGH',
	//渠道积分不为0,用户余额为0
	CHANNEL_NOENOUGH_RARE_ZERO: 'CHANNEL_NOENOUGH_RARE_ZERO',
	//渠道积分不为0，用户余额足够扣
	CHANNEL_NOENOUGH_RARE_ENOUGH: 'CHANNEL_NOENOUGH_RARE_ENOUGH',
	//渠道积分不为0，用户余额不够扣
	CHANNEL_NOENOUGH_RARE_NOENOUGH: 'CHANNEL_NOENOUGH_RARE_NOENOUGH'
}


global.TRANSFORM_PARAMS = '95963'


export default global
