// const DOMAIN_PREFIX = 'http://127.0.0.1:9007' const DOMAIN_PREFIX = 'http://8.130.38.56:8027/api' const DOMAIN_PREFIXPING = 'http://8.130.38.56:8027/admin-server' // const DOMAIN_PREFIXPING = 'http://172.16.61.48/admin-server' // const DOMAIN_PREFIX = 'http://172.16.61.48/api' //const DOMAIN_PREFIX = 'http://192.168.2.61:9007' // #ifndef H5 const WX_API_BASE = DOMAIN_PREFIX // app const WX_API_BASEPING = DOMAIN_PREFIXPING // app // const '/apihttp://3j073r3905.qicp.vip:29544' // #endif // #ifdef H5 // const '/api/api' // h5 const WX_API_BASE = DOMAIN_PREFIX// app const WX_API_BASEPING = DOMAIN_PREFIXPING const TERMINAL = 2 // #endif // #ifdef APP-PLUS || APP-NVUE const TERMINAL = 3 // #endif // #ifdef MP const TERMINAL = 1 // #endif module.exports = { terminal: TERMINAL, // 画布设备 1 小程序,2 H5,3 App 4 电脑 SettledMerchantPrefix: 'http://172.16.61.48/settled-merchant', //商家入驻链接 // shareLink: DOMAIN_PREFIX + '/h5', // 分享地址 shareLink: 'http://172.16.61.48/h5', // 分享地址 //登录注册 Verify: '/api/app/getCode', // 获取短信验证码 Login: '/api/app/login', // 手机号验证码登录、注册 WxLogin: '/api/app/wxLogin', // 微信登录 AlipayLogin: '/api/app/alipayLogin', // 支付宝登录 GetSessionKey: '/api/app/getSessionKey', // 获取微信手机号绑定 SetWxPhone: '/api/app/setWxPhone', // 获取微信手机号绑定 UpdateWxPhone: '/api/app/updateWxPhone', // 获取微信手机号绑定 UpdateAliPhone: '/api/app/updateAliPhone', // 获取支付宝小程序手机号绑定 WxAppLogin: '/api/app/wxAppLogin', // APP微信登录 delUser: '/api/user/delUser/', //账户注销 // 查询直播间列表 LiveRoomes: '/api/canvas/selectLiveList', SubScribeLive: '/api/live/subscribeLive', // 小程序客服查询 CustomerService: '/api/kf/getAppletKf', //分类 FindCategoryListByDepth: '/api/classify/getFirstClassify', // 查询N级类目和查询子级类目 // 查询热搜词 SelectHotSearch: '/api/app/selectHotSearch', //获取搜索栏的热门搜索 //商品相关接口 GetClaasifyProducts: '/api/classify/getClaasifyProducts', // 商品分类到商品列表 SearchHistory: '/api/app/getHistory', // 查询最近的N条历史记录 GgetSearchProducts: '/api/app/getSearchProducts', // 商品搜索查询 DeleteSearch: '/api/app/deleteSearch', // 删除搜索记录 Getindexdata: '/api/app/index', // 首页数据查询 GetremenList: '/api/product/getRandomSortProduct', // 获取热门推荐 QueryProductDetail: '/api/product/getById', // 查询商品详情 QueryProductSku: '/api/product/getProducts', // 查询商品sku详情 getCouponProducts: '/api/coupon/getCouponProducts', // 优惠券商品列表查询 QueryMemberAddres: '/api/receive/getAll', // 查询用户所有收货地址 AddresAdd: '/api/receive/save', // 保存收货地址 AddresDelete: '/api/receive/delete', // 删除收货地址 AddresUpdate: '/api/receive/update', // 更新收货地址 receiveGetInfo: '/api/receive/getById', // 修改收货地址查询 // 评价 Comment: '/api/order/addComment', // 评价 AdditionalComment: '/api/order/addToComment', // 追评接口 MyCommentList: '/api/comment/getAll', // 查看我的评论列表 LikeOrUnLikeComment: '/api/comment/like', // 点赞或取消点赞某个评论 //我的 GetDistributor: '/api/distributor/getDistributor', // 我的账户信息查询 FindCouponList: '/api/coupon/getCoupons', // 我的卡券列表查询 MemberAccountWithdraw: '/api/distributor/save', // 提现申请 GetUser: '/api/user/getUser', // 个人系信息查询 UpdateUser: '/api/user/update', // 个人系信息查询 // 店铺服务 GetStore: '/api/shop/getShopProducts', // 根据id查询店铺 GetStoreShopClassify: '/api/shop/getShopClassify', // 查询店铺分类 GetShopBanner: '/api/shop/getShopBanner', // 查询店铺banner getShopIndex: '/api/shop/getIndex', // 查询店铺首页 AddBusinessBuyerUser: '/api/shop/addBusinessBuyerUser', // 成为商家的客户 getShopSeckillIndex: '/api/seckill/getIndex', // 查询店铺秒杀 // http://127.0.0.1:9007/seckill/getIndex?shopSeckillId=78&page=1&pageSize=10 //用户银行卡相关接口 QueryBankcardList: '/api/bank/getAll', // 查询用户所有银行卡 SaveBankcard: '/api/bank/save', // 添加银行卡 UpdateBankcard: '/api/bank/update', // 修改银行卡 DelMemberBankcard: '/api/bank/delete', // 删除用户银行卡 GetByIdBankcard: '/api/bank/getById', // 根据银行卡ID查询信息 // 订单相关接口 FindOrderList: '/api/order/getAll', // 查询订单列表 Settlement: '/api/order/getSettlement', // 结算查询 PlaceOrder: '/api/order/submit', // 提交订单 GetOrderDetail: '/api/order/getById', // 订单详情查询 CancelOrder: '/api/order/cancel', // 取消订单 DelOrder: '/api/order/delete', // 删除订单 ShippingTrace: '/api/order/getDilevery', // 物流信息查询 payOrder: '/api/order/pay', // 支付成功业务处理接口 gotoPay: '/api/order/gotoPay', // 小程序支付 paySuccess: '/api/order/paySuccess', // 小程序支付成功 gotoAppPay: '/api/order/gotoAppPay', // APP立即支付 gotoH5Pay: '/api/order/gotoH5Pay', // H5支付 ConfirmReceive: '/api/order/confirm', // 确认收货 Orderrefund: '/api/order/refund', // 申请退款 ReasonEnums: '/api/after/getReasonSelect', // 选择退款原因查询 ApplyReturnMoney: '/api/after/submit', // 申请售后 GetHuabeiConfig: '/api/order/getHuabeiConfig', //查询花呗手续费配置 GetRefundMoney: '/api/after/getReturnPrice', // 获取退款金额 Gethu: '/api/order/handleWxLog', //测试支付 //购物车 ShoppingaddCart: '/api/cart/addCart', // 加入购物车 ShoppingCart: '/api/cart/getCart', // 购物车列表 UpdateNumberCart: '/api/cart/updateNumber', // 修改购物车商品数量 DeleteCart: '/api/cart/delete', // 删除购物车商品 SelectedCart: '/api/cart/selected', // 选中商品 UpdateSkuCart: '/api/cart/updateSku', // 购物车更换商品规格 //优惠券 getCoupons: '/api/canvas/getCoupons', // 优惠券查询 ReceiveCoupon: '/api/coupon/takeCoupon', // 领取优惠券 buildParam4Plug: '/api/coupon/buildParam4Plug', // 领取优惠券 //分销中心 FindSaleStoreList: '/api/distributor/getDistributorAll', // 分销中心列表查询 QuerySalesMainInfo: '/api/distributor/getShopDistributor', // 店铺分销数据查询 FindSalesOrderPage: '/api/distributor/getReward', // 累计奖励查询 GetNotReward: '/api/distributor/getNotReward', // 累计未结算奖励查询 FindSalesCustomerList: '/api/distributor/getBuyers', // 累计客户查询 FindSubordinateSalesList: '/api/distributor/getDistributors', // 累计分销员查询 FindSalesPromConfig: '/api/distributor/getShopExtension', // 店铺推广数据查询 StoreProductList: '/api/distributor/getExtensionProduct', // 推广商品查询 FindMySalesPage: '/api/distributor/getDistributorOrder', // 分销订单查询 HasApply: '/api/distributor/check', // 验证当前客户是否为分销员 BindSalesCustomer: '/api/distributor/bind', // 绑定关系 getSharePic: '/api/product/getSharePic', // 分享 getShareProductParam: '/api/product/getShareProductParam', // 查询分享所需的参数 shopGetSharePic: '/api/shop/getSharePic', // 推广店铺 //售后 FindReturnList: '/api/after/getAll', // 售后列表查询 CancelRefund: '/api/after/returnRefund', // 撤销退款 ReturnDetail: '/api/after/getById', // 售后详情查询 CancelReturnGoods: '/api/after/returnGoods', // 撤销退货 ShippingCompany: '/api/order/getExpressSelect', // 选择快递公司查询 SendReturnGoods: '/api/order/returnExpress', // 填写退货物流单 deleteAfter: '/api/after/deleteAfter', // 删除售后记录 //申请分销员 Apply: '/api/distributor/addDistributor', // 申请分销员 // 画布模块 getProducts: '/api/canvas/getProducts', // 选择商品查询 //服务协议 Query: '/api/dict/getByName', // 查询分类层级 DeleteAllSearch: '/api/product/deleteAllSearch', // 清空历史搜索记录 //消息 getMessage: '/api/notice/getAll', //消息列表查询 getMessageDateils: '/api/notice/getById', //消息详情 readNotice: '/api/notice/readNotice', // 消息已读 getNotice: '/api/notice/getGongGaoAll', //公告 delMessage: '/api/notice/removeById', //删除消息 allMessage: '/api/notice/readAll', //全部已读 //我的收藏 getProductCollect: '/api/collect/getAllProduct', //收藏商品查询 getStoreCollect: '/api/collect/getAllShop', //收藏店铺查询 cancelCollect: '/api/collect/cancel', //取消收藏 collect: '/api/collect/collect', //收藏商品、店铺 deleteCollect: '/api/collect/delete', //批量删除收藏商品、店铺 //秒杀专区 addAnswer: '/api/seckill/addAnswer', //回答 addProblem: '/api/seckill/addProblem', //提问 getSeckillList: '/api/seckill/getIndex', //秒杀专区首页数据查询 getProblems: '/api/seckill/getProblems', //商品问答数据查询 getProblemDetail: '/api/seckill/getProblemDetail', //问答详情查询 getQueryPlatformSeckillList: '/api/platform-seckill/queryPlatformSeckillList', //平台秒杀列表 getPlatformSeckills: '/api/canvas/getPlatformSeckills', //根据seckillId查询对应的秒杀商品列表 //拼团专区 getGroupSettlement: '/api/work/getSettlement', //拼团单结算查询 getGroupBuyList: '/api/work/getIndex', //拼团专区首页数据查询 getInviteSpell: '/api/work/getInvite', //邀请好友拼单查询 //限时折扣 getDiscountList: '/api/discount/getIndex', //专区首页数据查询 //浏览足迹 getFootprintList: '/api/footprint/getAll', //我的足迹查询 deleteFootprint: '/api/footprint/delete', //删除足迹 //我的问答 getProblemList: '/api/seckill/getProblem', //我的提问 getAnswerList: '/api/seckill/getAnswer', //我的回答 deleteProblem: '/api/seckill/deleteProblem', //批量删除提问 deleteAnswer: '/api/seckill/deleteAnswer', //批量删除回答 //分享 getShare: '/api/work/getShare', //获取二维码和小程序码 platform: '/api/after/platform', // 申请平台介入 UploadUrl: '/api/file/upload', // 申请平台介入 // 会员信息 // getMemberShipList: '/api/member/getMemberShipList', //会员权益查询 // 会员专区 getMemberProducts: '/api/canvas/getMemberProducts', //查询会员商品数据 memberList: '/api/member/getAllMemberLevelInfo', //查询会员所有等级 // 会员中心 getMemberShipList: '/api/member/getMemberShipList', //会员权益查询 selectSigninHistory: '/api/member/selectSigninHistory', // 查询签到明细 selectSigninRecordList: '/api/member/selectSigninRecordList', // 查询签到列表 signIn: '/api/member/signIn', // 签到 welfareProductList: '/api/member/welfareProductList', // 会员专区 getMemberByMemberLevel: '/api/member/getMemberByMemberLevelId', // 会员图标 // 组合套餐 selectCompose: '/api/product/selectCompose', // 查询组合套餐 // 平台折扣 queryPlatformDiscount: '/api/platform-discount/queryPlatformDiscount', queryPlatformDiscountProductList: '/api/platform-discount/queryPlatformDiscountProductList', // 平台秒杀 queryProductListBySession: '/api/platform-seckill/queryProductListBySession', // 根据场次时间查询商品列表 querySession: '/api/platform-seckill/querySession', // 平台秒杀查询今日场次 // 定价捆绑 selectByPriceId: '/api/price/selectByPriceId', // 定价捆绑规则查询 selectProductListByPriceId: '/api/product/selectProductListByPriceId', // 捆绑商品查询 // queryProductListBySession: '/api/platform-seckill/queryProductListBySession' // 根据场次时间查询商品列表 /order/getOrderPolite // 支付有礼 getOrderPolite: '/api/order/getOrderPolite', // 支付有礼 // 积分签到 creditSignIn: '/api/credit/signIn', // 积分签到 exchangeCoupon: '/api/credit/exchangeCoupon', // 积分兑换优惠券 selectByMonth: '/api/credit/selectByMonth', // 根据月份查询签到记录 selectCreditCouponList: '/api/credit/selectCreditCouponList', // 查询可以积分兑换的优惠券 selectCreditRecord: '/api/credit/selectCreditRecord', // 查询积分记录 // 首页广告 GetAd: '/api/advert/selectByCondition', // 获取首页广告 adClose: '/api/advert/closeAdvert', // 关闭首页广告 takeBatchCoupon: '/api/coupon/takeBatchCoupon', // 批量领取优惠券 // 渠道优惠券 getChannelCoupon: '/api/coupon/getChannelCouponDetail', // 获取渠道优惠券 getChannelProduct: '/api/credit/signIn', // 获取渠道优惠券推荐产品 getRandomProduct: '/api/product/getRandomSortProduct', // 查询随机排序的商品 // 埋点 doPointer: '/api/user/trackReport', //通知公告 cereAnnouncement:'/apis/cereAnnouncement/queryByPage', //轮播图 cereCarouselImage: '/apis/cereCarouselImage/queryByPage', //热门商品 popularProductSearch: '/api/canvas/popularProductSearch', }