|
|
@ -6,19 +6,20 @@ import { |
|
|
|
} from "./bRequest.js"; |
|
|
|
} from "./bRequest.js"; |
|
|
|
let app = getApp(); |
|
|
|
let app = getApp(); |
|
|
|
let base = app.globalData.url; |
|
|
|
let base = app.globalData.url; |
|
|
|
|
|
|
|
let orderbase = app.globalData.orderurl; |
|
|
|
let v1base = app.globalData.v1url; |
|
|
|
let v1base = app.globalData.v1url; |
|
|
|
let brestBase = app.globalData.brestUrl; |
|
|
|
let brestBase = app.globalData.brestUrl; |
|
|
|
//公众号获取跳小程序参数
|
|
|
|
//公众号获取跳小程序参数
|
|
|
|
export const verifyWx = params => { |
|
|
|
export const verifyWx = params => { |
|
|
|
return POST('GET', `${v1base}/wxMsg/verifyWx`, params).then(res => res.data); |
|
|
|
return POST('GET', `${v1base}/wxMsg/verifyWx`, params).then(res => res.data); |
|
|
|
} |
|
|
|
} |
|
|
|
//公众号获取跳转小程序地址
|
|
|
|
//公众号获取跳转小程序地址
|
|
|
|
export const getScheme = params => { |
|
|
|
export const getScheme = params => { |
|
|
|
return POST('GET', `${v1base}/wxMsg/getScheme`, params).then(res => res.data); |
|
|
|
return POST('GET', `${v1base}/wxMsg/getScheme`, params).then(res => res.data); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//根据code获取openId
|
|
|
|
//根据code获取openId
|
|
|
|
export const HandleCode = params => { |
|
|
|
export const HandleCode = params => { |
|
|
|
return POST('GET', `${base}/wechat/handleCode`, params).then(res => res.data); |
|
|
|
return POST('GET', `${base}/wechat/handleCode`, params).then(res => res.data); |
|
|
@ -119,11 +120,11 @@ export const orderToGoldPay = params => { |
|
|
|
//查询用户积分使用情况
|
|
|
|
//查询用户积分使用情况
|
|
|
|
export const getUserGoldRecList = params => { |
|
|
|
export const getUserGoldRecList = params => { |
|
|
|
return POST('GET', `${base}/highGoldRec/getUserGoldRecList`, params).then(res => res.data); |
|
|
|
return POST('GET', `${base}/highGoldRec/getUserGoldRecList`, params).then(res => res.data); |
|
|
|
} |
|
|
|
} |
|
|
|
//查询积分7天过期
|
|
|
|
//查询积分7天过期
|
|
|
|
export const selectByExpiringSoon = params => { |
|
|
|
export const selectByExpiringSoon = params => { |
|
|
|
return POST('GET', `${base}/highGoldRec/selectByExpiringSoon`, params).then(res => res.data); |
|
|
|
return POST('GET', `${base}/highGoldRec/selectByExpiringSoon`, params).then(res => res.data); |
|
|
|
} |
|
|
|
} |
|
|
|
//获取用户卡券
|
|
|
|
//获取用户卡券
|
|
|
|
export const getUserCouponList = params => { |
|
|
|
export const getUserCouponList = params => { |
|
|
|
return POST('GET', `${base}/coupon/getUserCouponList`, params).then(res => res.data); |
|
|
|
return POST('GET', `${base}/coupon/getUserCouponList`, params).then(res => res.data); |
|
|
@ -137,9 +138,9 @@ export const getUserNewCouponDetail = params => { |
|
|
|
return POST('GET', `${base}/coupon/getUserNewCouponDetail`, params).then(res => res.data); |
|
|
|
return POST('GET', `${base}/coupon/getUserNewCouponDetail`, params).then(res => res.data); |
|
|
|
} |
|
|
|
} |
|
|
|
//获取订单信息
|
|
|
|
//获取订单信息
|
|
|
|
export const getUserOrderList = params => { |
|
|
|
// export const getUserOrderList = params => {
|
|
|
|
return POST('GET', `${base}/highOrder/getUserOrderList`, params).then(res => res.data); |
|
|
|
// return POST('GET', `${base}/highOrder/getUserOrderList`, params).then(res => res.data);
|
|
|
|
} |
|
|
|
// }
|
|
|
|
//取消订单
|
|
|
|
//取消订单
|
|
|
|
export const cancelOrder = params => { |
|
|
|
export const cancelOrder = params => { |
|
|
|
return POST('GET', `${base}/highOrder/cancelOrder`, params).then(res => res.data); |
|
|
|
return POST('GET', `${base}/highOrder/cancelOrder`, params).then(res => res.data); |
|
|
@ -147,11 +148,11 @@ export const cancelOrder = params => { |
|
|
|
//订单查询详情
|
|
|
|
//订单查询详情
|
|
|
|
export const getOrderById = params => { |
|
|
|
export const getOrderById = params => { |
|
|
|
return POST('GET', `${base}/highOrder/getOrderById`, params).then(res => res.data); |
|
|
|
return POST('GET', `${base}/highOrder/getOrderById`, params).then(res => res.data); |
|
|
|
} |
|
|
|
} |
|
|
|
//已完成未查看
|
|
|
|
//已完成未查看
|
|
|
|
export const orderCheck = params => { |
|
|
|
export const orderCheck = params => { |
|
|
|
return POST('GET', `${base}/highOrder/orderCheck`, params).then(res => res.data); |
|
|
|
return POST('GET', `${base}/highOrder/orderCheck`, params).then(res => res.data); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//获取商户列表
|
|
|
|
//获取商户列表
|
|
|
|
export const getMerchantList = params => { |
|
|
|
export const getMerchantList = params => { |
|
|
@ -173,18 +174,18 @@ export const getUserOrderPreList = params => { |
|
|
|
//领取优惠券
|
|
|
|
//领取优惠券
|
|
|
|
export const receiveDiscount = params => { |
|
|
|
export const receiveDiscount = params => { |
|
|
|
return POST('POST', `${base}/userDiscount/receiveDiscount`, params).then(res => res.data); |
|
|
|
return POST('POST', `${base}/userDiscount/receiveDiscount`, params).then(res => res.data); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//领取优惠券
|
|
|
|
//领取优惠券
|
|
|
|
export const receive = params => { |
|
|
|
export const receive = params => { |
|
|
|
return POST('POST', `${base}/userDiscount/receive`, params).then(res => res.data); |
|
|
|
return POST('POST', `${base}/userDiscount/receive`, params).then(res => res.data); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//根据code查询优惠券
|
|
|
|
//根据code查询优惠券
|
|
|
|
export const getDiscountByCode = params => { |
|
|
|
export const getDiscountByCode = params => { |
|
|
|
return POST('GET', `${base}/discount/getDiscountByCode`, params).then(res => res.data); |
|
|
|
return POST('GET', `${base}/discount/getDiscountByCode`, params).then(res => res.data); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 根据优惠券查卡券
|
|
|
|
// 根据优惠券查卡券
|
|
|
|
export const getCouponByDiscount = params => { |
|
|
|
export const getCouponByDiscount = params => { |
|
|
@ -233,11 +234,11 @@ export const oilPriceCompute = params => { |
|
|
|
//团油计算新价格
|
|
|
|
//团油计算新价格
|
|
|
|
export const oilPriceDiscountCompute = params => { |
|
|
|
export const oilPriceDiscountCompute = params => { |
|
|
|
return POST('GET', `${base}/highGas/oilPriceDiscountCompute`, params).then(res => res.data); |
|
|
|
return POST('GET', `${base}/highGas/oilPriceDiscountCompute`, params).then(res => res.data); |
|
|
|
} |
|
|
|
} |
|
|
|
//在线加油优惠券
|
|
|
|
//在线加油优惠券
|
|
|
|
export const canUseDiscount = params => { |
|
|
|
export const canUseDiscount = params => { |
|
|
|
return POST('POST', `${base}/userDiscount/canUseDiscount`, params).then(res => res.data); |
|
|
|
return POST('POST', `${base}/userDiscount/canUseDiscount`, params).then(res => res.data); |
|
|
|
} |
|
|
|
} |
|
|
|
//查询卡数据字典
|
|
|
|
//查询卡数据字典
|
|
|
|
export const getDictionaryByCodeType = params => { |
|
|
|
export const getDictionaryByCodeType = params => { |
|
|
|
return POST('GET', `${base}/common/getDictionaryByCodeType`, params).then(res => res.data); |
|
|
|
return POST('GET', `${base}/common/getDictionaryByCodeType`, params).then(res => res.data); |
|
|
@ -351,11 +352,11 @@ export const getWinLotteryList = params => { |
|
|
|
//跳转是否赠券
|
|
|
|
//跳转是否赠券
|
|
|
|
export const getMembershipLevel = params => { |
|
|
|
export const getMembershipLevel = params => { |
|
|
|
return POST('GET', `${base}/highUser/GetMembershipLevel`, params).then(res => res.data); |
|
|
|
return POST('GET', `${base}/highUser/GetMembershipLevel`, params).then(res => res.data); |
|
|
|
} |
|
|
|
} |
|
|
|
//查询配置方式
|
|
|
|
//查询配置方式
|
|
|
|
export const getThirdPartyByDetail = params => { |
|
|
|
export const getThirdPartyByDetail = params => { |
|
|
|
return POST('GET', `${base}/highThirdParty/getThirdPartyByDetail`, params).then(res => res.data); |
|
|
|
return POST('GET', `${base}/highThirdParty/getThirdPartyByDetail`, params).then(res => res.data); |
|
|
|
} |
|
|
|
} |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 肯德基地址 |
|
|
|
* 肯德基地址 |
|
|
|
*/ |
|
|
|
*/ |
|
|
@ -365,29 +366,29 @@ export const getTPigKFCToken = params => { |
|
|
|
//查询城市列表
|
|
|
|
//查询城市列表
|
|
|
|
export const getAllCity = params => { |
|
|
|
export const getAllCity = params => { |
|
|
|
return POST('GET', `${base}/highThirdParty/getAllCity`, params).then(res => res.data); |
|
|
|
return POST('GET', `${base}/highThirdParty/getAllCity`, params).then(res => res.data); |
|
|
|
} |
|
|
|
} |
|
|
|
//首页城市选择
|
|
|
|
//首页城市选择
|
|
|
|
export const findCompanyByCityName = params => { |
|
|
|
export const findCompanyByCityName = params => { |
|
|
|
return POST('GET', `${base}/common/findCompanyByCityName`, params).then(res => res.data); |
|
|
|
return POST('GET', `${base}/common/findCompanyByCityName`, params).then(res => res.data); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//查询肯德基门店列表
|
|
|
|
//查询肯德基门店列表
|
|
|
|
export const getKfcStoresList = params => { |
|
|
|
export const getKfcStoresList = params => { |
|
|
|
return POST('GET', `${base}/highThirdParty/getKfcStoresList`, params).then(res => res.data); |
|
|
|
return POST('GET', `${base}/highThirdParty/getKfcStoresList`, params).then(res => res.data); |
|
|
|
} |
|
|
|
} |
|
|
|
//肯德基商品详情
|
|
|
|
//肯德基商品详情
|
|
|
|
export const listByStoreCode = params => { |
|
|
|
export const listByStoreCode = params => { |
|
|
|
return POST('GET', `${base}/highThirdParty/listByStoreCode`, params).then(res => res.data); |
|
|
|
return POST('GET', `${base}/highThirdParty/listByStoreCode`, params).then(res => res.data); |
|
|
|
} |
|
|
|
} |
|
|
|
//肯德基订单详情
|
|
|
|
//肯德基订单详情
|
|
|
|
export const getThirdOrderByOrderId = params => { |
|
|
|
export const getThirdOrderByOrderId = params => { |
|
|
|
return POST('GET', `${base}/highThirdParty/getThirdOrderByOrderId`, params).then(res => res.data); |
|
|
|
return POST('GET', `${base}/highThirdParty/getThirdOrderByOrderId`, params).then(res => res.data); |
|
|
|
} |
|
|
|
} |
|
|
|
//肯德基,星巴克取消订单
|
|
|
|
//肯德基,星巴克取消订单
|
|
|
|
export const thirdCancelOrder = params => { |
|
|
|
export const thirdCancelOrder = params => { |
|
|
|
return POST('GET', `${base}/highThirdParty/thirdCancelOrder`, params).then(res => res.data); |
|
|
|
return POST('GET', `${base}/highThirdParty/thirdCancelOrder`, params).then(res => res.data); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//电影票
|
|
|
|
//电影票
|
|
|
@ -403,40 +404,40 @@ export const getStarbucksStore = params => { |
|
|
|
export const getStarbucksProducts = params => { |
|
|
|
export const getStarbucksProducts = params => { |
|
|
|
return POST('GET', `${base}/highThirdParty/getStarbucksProducts`, params).then(res => res.data); |
|
|
|
return POST('GET', `${base}/highThirdParty/getStarbucksProducts`, params).then(res => res.data); |
|
|
|
} |
|
|
|
} |
|
|
|
//微信支付千猪
|
|
|
|
//微信支付千猪
|
|
|
|
export const qianzhuorderToPayByWx = params => { |
|
|
|
export const qianzhuorderToPayByWx = params => { |
|
|
|
return POST('POST', `${base}/thirdOrder/orderToPayByWx`, params).then(res => res.data); |
|
|
|
return POST('POST', `${base}/thirdOrder/orderToPayByWx`, params).then(res => res.data); |
|
|
|
} |
|
|
|
} |
|
|
|
//星巴克下单
|
|
|
|
//星巴克下单
|
|
|
|
export const xbkaddOrder = params => { |
|
|
|
export const xbkaddOrder = params => { |
|
|
|
return POST('POST', `${base}/highThirdParty/addOrder`, params).then(res => res.data); |
|
|
|
return POST('POST', `${base}/highThirdParty/addOrder`, params).then(res => res.data); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//会员充值产品
|
|
|
|
//会员充值产品
|
|
|
|
export const getMemberProducts = params => { |
|
|
|
export const getMemberProducts = params => { |
|
|
|
return POST('GET', `${base}/highThirdParty/getMemberProducts`, params).then(res => res.data); |
|
|
|
return POST('GET', `${base}/highThirdParty/getMemberProducts`, params).then(res => res.data); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//分销统计数据
|
|
|
|
//分销统计数据
|
|
|
|
export const userDistributionStatistics = params => { |
|
|
|
export const userDistributionStatistics = params => { |
|
|
|
return POST('GET', `${base}/highUser/userDistributionStatistics`, params).then(res => res.data); |
|
|
|
return POST('GET', `${base}/highUser/userDistributionStatistics`, params).then(res => res.data); |
|
|
|
} |
|
|
|
} |
|
|
|
//邀请列表
|
|
|
|
//邀请列表
|
|
|
|
export const distributionInviteList = params => { |
|
|
|
export const distributionInviteList = params => { |
|
|
|
return POST('GET', `${base}/highUser/distributionInviteList`, params).then(res => res.data); |
|
|
|
return POST('GET', `${base}/highUser/distributionInviteList`, params).then(res => res.data); |
|
|
|
} |
|
|
|
} |
|
|
|
//分销用户积分列表
|
|
|
|
//分销用户积分列表
|
|
|
|
export const distributionOrderList = params => { |
|
|
|
export const distributionOrderList = params => { |
|
|
|
return POST('GET', `${base}/highUser/distributionOrderList`, params).then(res => res.data); |
|
|
|
return POST('GET', `${base}/highUser/distributionOrderList`, params).then(res => res.data); |
|
|
|
} |
|
|
|
} |
|
|
|
//分销用户积分列表
|
|
|
|
//分销用户积分列表
|
|
|
|
export const promoteOrderList = params => { |
|
|
|
export const promoteOrderList = params => { |
|
|
|
return POST('GET', `${base}/highUser/promoteOrderList`, params).then(res => res.data); |
|
|
|
return POST('GET', `${base}/highUser/promoteOrderList`, params).then(res => res.data); |
|
|
|
} |
|
|
|
} |
|
|
|
//生成海报
|
|
|
|
//生成海报
|
|
|
|
export const promotionalPosters = params => { |
|
|
|
export const promotionalPosters = params => { |
|
|
|
return POST('GET', `${base}/highUser/promotionalPosters`, params).then(res => res.data); |
|
|
|
return POST('GET', `${base}/highUser/promotionalPosters`, params).then(res => res.data); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
export const qzOrderToPay = params => { |
|
|
|
export const qzOrderToPay = params => { |
|
|
|
return POST('POST', `${base}/order/qzOrderToPay`, params).then(res => res.data); |
|
|
|
return POST('POST', `${base}/order/qzOrderToPay`, params).then(res => res.data); |
|
|
@ -449,25 +450,25 @@ export const getGatewayToken = params => { |
|
|
|
export const cancelOrderByOrderNo = params => { |
|
|
|
export const cancelOrderByOrderNo = params => { |
|
|
|
return POST('GET', `${base}/highOrder/cancelOrderByOrderNo`, params).then(res => res.data); |
|
|
|
return POST('GET', `${base}/highOrder/cancelOrderByOrderNo`, params).then(res => res.data); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//中石油生成二维码
|
|
|
|
//中石油生成二维码
|
|
|
|
export const getVerifyQRCode = params => { |
|
|
|
export const getVerifyQRCode = params => { |
|
|
|
return POST('GET', `${base}/coupon/getVerifyQRCode`, params).then(res => res.data); |
|
|
|
return POST('GET', `${base}/coupon/getVerifyQRCode`, params).then(res => res.data); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* H5 获取用户信息 |
|
|
|
* H5 获取用户信息 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
//判断是否有手机号
|
|
|
|
//判断是否有手机号
|
|
|
|
export const getH5AccessByOpenId = params => { |
|
|
|
export const getH5AccessByOpenId = params => { |
|
|
|
return POST('GET', `${base}/wechat/getH5AccessByOpenId`, params).then(res => res.data); |
|
|
|
return POST('GET', `${base}/wechat/getH5AccessByOpenId`, params).then(res => res.data); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//h5静默登陆
|
|
|
|
//h5静默登陆
|
|
|
|
export const loginBySilence = params => { |
|
|
|
export const loginBySilence = params => { |
|
|
|
return POST('GET', `${base}/wechat/loginBySilence`, params).then(res => res.data); |
|
|
|
return POST('GET', `${base}/wechat/loginBySilence`, params).then(res => res.data); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
export const getH5UserInfo = params => { |
|
|
|
export const getH5UserInfo = params => { |
|
|
|
return POST('GET', `${base}/wechat/getH5UserInfo`, params).then(res => res.data); |
|
|
|
return POST('GET', `${base}/wechat/getH5UserInfo`, params).then(res => res.data); |
|
|
@ -515,8 +516,8 @@ export const getCodeListByAgentCoupon = params => { |
|
|
|
// 生成二维码
|
|
|
|
// 生成二维码
|
|
|
|
export const generateCode = params => { |
|
|
|
export const generateCode = params => { |
|
|
|
return POSTBREST('POST', `${brestBase}/highCouponAgent/generateCode`, params).then(res => res.data); |
|
|
|
return POSTBREST('POST', `${brestBase}/highCouponAgent/generateCode`, params).then(res => res.data); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 兑换码填写备注
|
|
|
|
// 兑换码填写备注
|
|
|
|
export const highremark = params => { |
|
|
|
export const highremark = params => { |
|
|
@ -604,17 +605,36 @@ export const orderToPayByWx = params => { |
|
|
|
//工会卡支付
|
|
|
|
//工会卡支付
|
|
|
|
export const hltUnionCardPayghk = params => { |
|
|
|
export const hltUnionCardPayghk = params => { |
|
|
|
return POST('POST', `${base}/czOrder/hltUnionCardPay`, params).then(res => res.data); |
|
|
|
return POST('POST', `${base}/czOrder/hltUnionCardPay`, params).then(res => res.data); |
|
|
|
} |
|
|
|
} |
|
|
|
export const czhltUnionCardPay = params => { |
|
|
|
export const czhltUnionCardPay = params => { |
|
|
|
return POST('POST', `${base}/thirdOrder/hltUnionCardPay`, params).then(res => res.data); |
|
|
|
return POST('POST', `${base}/thirdOrder/hltUnionCardPay`, params).then(res => res.data); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//话费列表
|
|
|
|
//话费列表
|
|
|
|
export const getUserOrderListhuafei = params => { |
|
|
|
export const getUserOrderListhuafei = params => { |
|
|
|
return POST('GET', `${base}/outRechargeOrder/getUserOrderList`, params).then(res => res.data); |
|
|
|
return POST('GET', `${base}/outRechargeOrder/getUserOrderList`, params).then(res => res.data); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//肯德基返利
|
|
|
|
//肯德基返利
|
|
|
|
export const getRebateIntegral = params => { |
|
|
|
export const getRebateIntegral = params => { |
|
|
|
return POST('POST', `${base}/common/getRebateIntegral`, params).then(res => res.data); |
|
|
|
return POST('POST', `${base}/common/getRebateIntegral`, params).then(res => res.data); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// -----------订单新接口------------
|
|
|
|
|
|
|
|
//新建订单
|
|
|
|
|
|
|
|
export const create = params => { |
|
|
|
|
|
|
|
return POST('POST', `${orderbase}/create`, params).then(res => res.data); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
//获取订单列表
|
|
|
|
|
|
|
|
export const getUserOrderList = params => { |
|
|
|
|
|
|
|
return POST('GET', `${orderbase}/getUserOrderList`, params).then(res => res.data); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
//订单详情
|
|
|
|
|
|
|
|
export const getDetailByOrderNo = params => { |
|
|
|
|
|
|
|
return POST('GET', `${orderbase}/getDetailByOrderNo`, params).then(res => res.data); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
//取消订单
|
|
|
|
|
|
|
|
export const cancel = params => { |
|
|
|
|
|
|
|
return POST('POST', `${orderbase}/cancel`, params).then(res => res.data); |
|
|
|
} |
|
|
|
} |
|
|
|