import request from '@/utils/requester.js'

export default {
	login: (params = {}) => request.post("/wxmpapi/sysuser/login", params),
	wxBindMobile: (params = {}) => request.post("/lpkcustomer/wxBindMobile", params),
	// 不显示loading  true
	// 提货卡列表
	cardList: (params = {}) => request.post("/lpkgiftcard/gifCardByCustomerSid", params, {}, {}, true),
	// 提货卡详情
	cardDetail: (params = {}) => request.get("/lpkgiftcard/getGifCardBySid/" + params, params, {}, {}, true),
	// 提货卡预约初始化
	cardBooking: (params = {}) => request.get("/lpkgiftcard/getReservationBySid/" + params, params, {}, {}, true),
	// 提货卡预约保存
	cardBookingSave: (params = {}) => request.post("/lpksreservoorder/submission", params),
	// 绑定提货卡
	cardBind: (params = {}) => request.post("/lpkgiftcard/bindCard", params),
	// 单一提货卡预约记录
	orderByCardSid: (params = {}) => request.get("/lpksreservoorder/orderByCardSid/" + params, params, {}, {}, true),
	// 预约记录
	orderListByUserSid: (params = {}) => request.post("/lpksreservoorder/orderListByUserSid/", params, {}, {}, true),
	// 预约记录详情
	orderDetails: (params = {}) => request.get("/lpksreservoorder/orderDetails/" + params, params, {}, {}, true),
	// 商品详情
	goodsDetail: (params = {}) => request.get("/lpkgoods/goodsDetails/" + params, params, {}, {}, true),
	// 提货点
	address: (params = {}) => request.post("/lpkstore/getAllStoreByQuery", params, {}, {}, true),
}