export const useWxApi = (Vue, vm) => {
	return {
		// 登录
		loginAjax: (json) => vm.$u.post('/client/userCenter/login', json),
		// 用户信息
		getUserBaseInfoAjax: () => vm.$u.post('/client/userCenter/baseInfo'),
		// 设置用户信息
		setUserBaseInfoAjax: (json) => vm.$u.post('/client/userCenter/setBaseInfo',json),
		// 获取用户优惠券列表
		getUserCouponListAjax: (page) => vm.$u.post('/client/userCenter/getUserCouponList',{page:page}),
		
		// 获取地区列表
		// getRegionListAjax: () => vm.$u.post('/client/shop_address/getRegionList'),
		// 获取默认收货地址
		getDefaultAddressAjax: () => vm.$u.post('/client/shop_address/getDefaultAddress'),
		// 删除收货地址
		delAddressAjax: (id) => vm.$u.post('/client/shop_address/delAddress',{id:id}),
		// 获取地址详情
		getAddressDetailAjax: (id) => vm.$u.post('/client/shop_address/getAddressById',{id:id}),		
		// 获取收货地址列表
		getAddressListAjax: () => vm.$u.post('/client/shop_address/getAddressList'),
		// 新增/编辑用户地址
		updateAddressAjax: (json) => vm.$u.post('/client/shop_address/editAddress',json),
		// 设置默认收货地址
		setDefaultAddressAjax: (id) => vm.$u.post('/client/shop_address/setDefaultAddress',{id:id}),
		
		
		// 设置默认收货地址
		addFeedbackAjax: (model) => vm.$u.post('/client/userCenter/addFeedback',model),
		
	}
}
