// 引用网络请求中间件 import request from '../js/request.js'; export default { //我的活动详情 myActivityDetail(data) { return request({ url: '/business/wechat/activity/detail', method: 'GET', data: data }) }, //我的活动 myActivity(data) { return request({ url: '/business/wechat/myActivity', method: 'GET', data: data }) }, //活动详情 activityCheck(data) { return request({ url: '/business/wechat/activity/check?activityId='+ data.activityId, method: 'GET' }) }, //活动详情 activityDetail(data) { return request({ url: '/business/wechat/activity/getInfo', method: 'GET', data }) }, //活动列表 activityList(data) { return request({ url: '/business/wechat/activity/list', method: 'GET', data: data }) }, //根据key获取系统配置 getConfigKey(data) { return request({ url: '/system/config/configKey/'+ data.key, method: 'GET', }) }, //拓客专员二维码被扫记录 addRecordForAttach(data) { return request({ url: '/expand/userScanRecord/addRecordForAttach', method: 'POST', data: data, }) }, //用户绑定推广专员 userBindMember(data) { return request({ url: '/member/wechat/userBindMember', method: 'POST', data: data, }) }, //更新订阅消息可发送状态 updateSubscribe(data) { return request({ url: '/order/subscribe/updateSubscribe', method: 'POST', data: data, }) }, //查询订阅消息列表 getTemplateList(data) { return request({ url: '/order/subscribe/getTemplateList?type=' + data.type, method: 'POST' }) }, //结束订单 orderFinish(orderId) { return request({ url: '/order/wechat/order/finish/' + orderId, method: 'PUT' }) }, //查看排队信息 viewNumber(data) { return request({ url: '/order/wechat/order/viewNumber/' + data, method: 'GET' }) }, //查看店内排队数量 queueInfo(data) { return request({ url: '/order/wechat/order/queueInfo/' + data, method: 'GET' }) }, //我的权益卡列表 myEquityCardList() { return request({ url: '/member/wechat/getMyEquityCard', method: 'GET' }) }, //post请求 权益卡列表 equityCardList() { return request({ url: '/business/wechat/equity-card/list', method: 'GET' }) }, // 绑定用户 scanCode(data) { return request({ url: '/member/wechat/scanCode', method: 'GET', data: data }) }, //post请求 一键付款余额支付 trade(data) { return request({ url: '/business/balancePay/pay/trade', method: 'POST', data: data }) }, //post请求 订单详情付款 qenPayInfo(data) { return request({ url: '/business/wechat/order/genPayInfo', method: 'POST', data: data }) }, //post请求 一键付款获取微信支付信息 wechatPayTradeNo(data) { return request({ url: '/business/wxPay/jsapiPay/tradeNo?tradeNo=' + data.tradeNo, method: 'POST', data: data }) }, //post请求 一键付款 oneClickPay(data) { return request({ url: '/business/wechat/order/oneClickPay?orderId=' + data.orderId, method: 'POST', data: data }) }, //post请求 申诉 appeal(data) { return request({ url: '/business/wechat/order/appeal', method: 'POST', data: data }) }, //post请求 添加子订单 addChildProject(data) { return request({ url: '/business/wechat/order/submit/child', method: 'POST', data: data }) }, // get请求 根据id获取工位信息 getByPersonId(data) { return request({ url: '/business/wechat/sp/getByPersonId/' + data.personId, method: 'GET' }) }, // get请求 根据id获取工位信息 getStationById(data) { return request({ url: '/store/uniapp/getStationById/' + data.stationId, method: 'GET' }) }, // get请求 查询门店的服务项目 category(data) { return request({ url: '/business/wechat/sp/category/' + data.storeId, method: 'GET', data: data }) }, // get请求 通过电话及名称获取老系统会员信息 getOldMember(data) { return request({ url: '/member/wechat/getOldMember', method: 'GET', data: data }) }, // get请求 通过会员编号获取老系统充值记录 getOrderRechargeOldList(data) { return request({ url: '/member/wechat/getOrderRechargeOldList', method: 'GET', data: data }) }, // get请求,通过会员编号获取老系统消费记录 getOrderConsumeLogOld(data) { return request({ url: '/member/wechat/getOrderConsumeLogOld', method: 'GET', data: data }) }, // post请求 通过会员编号提交迁移申请,默认迁移到当前迁移账户上 submitOldData(memberNo) { return request({ url: '/member/wechat/submitOldData', method: 'POST', header: { 'content-type': 'application/x-www-form-urlencoded' }, data: memberNo }) }, // get请求,获取订单列表 getOrderList(data) { return request({ url: '/business/wechat/order/list', method: 'GET', data: data }) }, // get请求,获取订单详情 getOrderDetailByOrderId(data) { return request({ url: '/business/wechat/order/detail', method: 'GET', data: data }) }, // get请求,保存订单评价 saveOrderComment(data) { return request({ url: '/business/wechat/order/comment' + data.orderId, method: 'GET', data: data }) }, // post请求,再来一单 comeOrder(data) { return request({ url: '/business/wechat/order/copy/' + data.orderId, method: 'POST', data: data }) }, // post请求 删除订单 deleteOrder(data) { return request({ url: '/business/wechat/order/' + data.orderId, method: 'POST', data: data }) }, // put请求 取消订单 cancelOrder(data) { return request({ url: '/business/wechat/order/cancel/' + data.orderId, method: 'PUT', data: data }) }, // post请求,通用下单接口 commonGeneralOrder(data) { return request({ url: '/business/wechat/order/common', method: 'POST', data: data }) }, // get请求,查询充值订单列表 orderRechargeList(data) { return request({ url: '/business/wechat/orderRecharge/list', method: 'GET', data: data }) }, // post请求,充值订单退款 orderRechargeRefund(data) { return request({ url: '/business/wechat/orderRecharge/refund', method: 'POST', data: data }) }, // post请求,获取用户余额 getUserBalance(data) { return request({ url: '/business/wechat/orderRecharge/getBalance', method: 'POST', data: data }) }, // get请求,订单签到 orderSign(data) { return request({ url: '/business/wechat/scheduling/orderSign', method: 'GET', data: data }) }, // get请求,查看订单排号情况 getOrderSign(data) { return request({ url: '/business/wechat/scheduling/getOrderSign', method: 'GET', data: data }) }, // post请求,微信支付(根据订单ID) wechatPay(data) { return request({ url: '/business/wxPay/jsapiPay?orderNo=' + data.orderNo, method: 'POST', data: data }) }, // post请求,余额支付(根据订单ID) balancePay(data) { return request({ url: '/business/balancePay/pay?orderNo=' + data.orderNo + '&password=' + data.password, method: 'POST', data: data }) }, // get请求,查询交易记录列表 transactionRecordsList(data) { return request({ url: '/business/wechat/transactionFlow/list', method: 'GET', data: data }) }, // get请求,查询充值优惠列表 getRechargeList() { return request({ url: '/business/wechat/getRechargeList', method: 'GET' }) }, // get请求,查询交易流水统计 transactionFlowstatistic(data) { return request({ url: '/business/wechat/transactionFlow/statistic', method: 'GET', data: data }) }, // get请求 获取预约价格 getAppointmentPrice(data) { return request({ url: '/business/wechat/sp/subPrice', method: 'GET', data: data }) }, // post请求,识别人脸 verifyFace(data) { return request({ url: '/member/wechat/verifyFace', method: 'POST', data: data }) }, // post请 查询服务对象列表 listServiceObject(data) { return request({ url: '/member/wechat/listServiceObject', method: 'POST', data: data }) }, // post请 获取服务对象协议 getServiceDealFile(data) { return request({ url: '/member/wechat/getServiceDealFile', method: 'POST', data: data }) }, // post请求 服务对象签名 serviceObjectSignPdf(data) { return request({ url: '/member/wechat/signPdf', method: 'POST', data: data }) }, // post请求 保存服务对象 saveServiceObject(data) { return request({ url: '/member/wechat/saveServiceObject', method: 'POST', data: data }) }, // post请求 绑定服务对象 bindServiceObject(data) { return request({ url: '/member/wechat/bindServiceObject', method: 'POST', data: data }) }, // post请求 修改服务对象 updateServiceObject(data) { return request({ url: '/member/wechat/updateServiceObject', method: 'POST', data: data }) }, // post请求,用户实名认证 userRealNameAuth(data) { return request({ url: '/member/wechat/idCardAuthentication', method: 'POST', data: data }) }, // post请求,用户信息保存 saveUserInfo(data) { return request({ url: '/member/wechat/saveUserInfo', method: 'POST', data: data }) }, // post请求,修改用户账号密码 updateUserAccountPassword(data) { return request({ url: '/member/wechat/setPassword', method: 'POST', data: data }) }, // post请求,修改用户交易密码 updateUserTransactionPassword(data) { return request({ url: '/member/wechat/setTransactionPassword', method: 'POST', data: data }) }, // post请求,绑定微信 bindWechat(data) { return request({ url: '/member/wechat/setOpenId', method: 'POST', data: data }) }, // get请求,获取服务条款协议 getTermOfServiceByType(data) { return request({ url: '/system/openapi/getAboutByType', method: 'GET', data: data }) }, // get请求,获取公共文件路径 getCommonFile(data) { return request({ url: '/resource/oss/listByIds/' + data.ossId, method: 'GET', data: data }) }, // post请求,重新设置手机号 setPhone(data) { return request({ url: '/member/wechat/setPhone', method: 'POST', data: data }) }, // get请求,获取用户信息 getUserInfo(data) { return request({ url: '/member/wechat/getUserInfo', method: 'GET', data: data }) }, // post请求,保存用户信息 saveWechatUser(data) { return request({ url: '/auth/wechat/saveWeChatUserInfo', method: 'POST', data: data }) }, // post请求,获取微信电话号码 getWechatUserPhoneNumber(data) { return request({ url: '/auth/wechat/getWechatUserPhoneNumber', method: 'POST', data: data }) }, // post请求,验证手机号码是否被注册 phoneIsExist(data) { return request({ url: '/member/wechat/phoneIsExist', method: 'POST', data: data }) }, // post请求,新微新手机绑定 wechatRegister(data) { return request({ url: '/auth/xcxRegister', method: 'POST', data: data }) }, // get请求,获取手机验证码 getSmsCode(data) { return request({ url: '/resource/sms/codeByType', method: 'GET', data: data }) }, //get请求,获取手机验证码 新模板 getSmsCodeByType(data) { return request({ url: '/resource/sms/codeByType', method: 'GET', data: data }) }, // post请求,验证手机验证码 validateSmsCode(data) { return request({ url: '/member/wechat/validateSmsCode', method: 'POST', data: data }) }, // post请求,找回账号密码登录 wechatRetrieveAccountPwdLogin(data) { return request({ url: '/auth/xcxRetrieveMemberByPwd', method: 'POST', data: data }) }, // post请求,实名认证登录(新微信老手机) realNameAuthLogin(data) { return request({ url: '/auth/xcxRetrieveMember', method: 'POST', data: data }) }, // post请求,验证身份证是滞存在 idCardIsExist(data) { return request({ url: '/member/wechat/idCardIsExist', method: 'POST', data: data }) }, // post请求验证手机找回密码 passwordByPhone(data) { return request({ url: '/member/wechat/passwordByPhone', method: 'POST', data: data }) }, // post请求,获取积分列表信息 getIntegralRecordList(data) { return request({ url: '/member/wechat/getIntegralRecordVo', method: 'POST', data: data }) }, // post请求,用户绑定门店 userBindStore(data) { return request({ url: '/member/wechat/bindStore', method: 'POST', data: data }) }, // get请求 获取门店列表 // storeList(data) { // return request({ // url: '/store/uniapp/store-list', // method: 'GET', // data: data // }) // }, // get请求 获取公告列表 noticeList(data) { return request({ url: '/system/openapi/notice/list', method: 'GET', data: data }) }, // get请求 获取公告详情 getNoticeDetail(data) { return request({ url: '/system/openapi/notice/' + data.noticeId, method: 'GET' }) }, // get请求 获取banner图列表 getSlideshowList(data) { return request({ url: '/system/openapi/getSlideshowList', method: 'GET', data: data }) }, // get请求 获取门店所有服务列表 storeAllServiceList(data) { return request({ url: '/business/wechat/sp/all/' + data.storeId, method: 'GET', data: data }) }, // get请求 获取门店列表 storeList(data) { return request({ url: '/store/uniapp/store-list/distance', method: 'GET', data: data }) }, // get请求 获取门店工作人员列表 关联岗位、工作时段、服务项目 workPersonList(data) { return request({ url: '/store/uniapp/work-person-ist/' + data.storeId, method: 'GET', data: data }) }, // get请求 根据服务日期及服务时段查询排班人员 serviceWorkPersonList(data) { return request({ url: '/business/wechat/scheduling/crewPageList', method: 'GET', data: data }) }, // get请求 根据门店查询排班日期 selectDate(data) { return request({ url: '/business/wechat/scheduling/selectDate', method: 'POST', data: data }) }, // get请求 根据门店、排班日期查询可用时段 selectPeriodByDate(data) { return request({ url: '/business/wechat/scheduling/selectPeriodByDate', method: 'POST', data: data }) }, // get请求 根据门店、排班日期查询可用时段 getServiceTime(data) { return request({ url: '/business/wechat/scheduling/time', method: 'GET', data: data }) }, // get请求 根据门店、排班日期查询可用时段 getServicePerson(data) { return request({ url: '/business/wechat/scheduling/person', method: 'GET', data: data }) }, // get请求 根据门店、排班日期查询可用时段 getServicePersonTime(data) { return request({ url: '/business/wechat/scheduling/person/time', method: 'GET', data: data }) }, // get请求 查询可领取的优惠劵列表 getUserDiscountsList(data) { return request({ url: '/business/wechat/getUserDiscountsList', method: 'GET', data: data }) }, // get请求 我的优惠卷列表(0未使用, 1已使用, 2已过期 null查询全部) getMyCouponList(data) { return request({ url: '/member/wechat/getCoupon', method: 'GET', data: data }) }, // get请求 查询可使用的优惠券 getCanUseCouponList(data) { return request({ url: '/member/wechat/getMemberCouponn', method: 'POST', data: data }) }, // post请求 领取优惠券 claimCoupon(data) { return request({ url: '/member/wechat/claimCoupon', method: 'POST', data: data }) }, getImgUrlByOssId(data) { return request({ url: '/resource/oss/listByIds/' + data.ossId, method: 'GET' }) }, getImage(id) { return request({ url: '/resource/oss/listByIds/' + id, method: 'GET' }) }, /** * 微信静默登录 */ wxLogin(data) { return request({ url: '/auth/wxLogin', method: 'POST', data: data }) }, /** * 微信静默登录 原来的 */ wxAuthLogin(data) { return request({ url: '/auth/xcxLogin', method: 'POST', data: data }) }, // 推广统计 spreadCount() { return request({ url: '/member/memberEarnings/appSpreadCount', method: 'GET' }) }, //获取取号规则 getSelectionRules(data) { return request({ url: '/system/dict/data/list', method: 'GET', data: data }) }, // 关于我们 AboutByType(data) { return request({ url: '/system/openapi/getAboutByType', method: 'GET', data: data }) }, //赠送亲情卡 giveFamilyCard(data) { return request({ url: '/member/loveCard/createLoveCard', method: 'POST', data: data, header: { 'content-type': 'application/x-www-form-urlencoded' }, }) }, //获取我赠送的亲情卡列表 getMyPresentList(data) { return request({ url: '/member/loveCard/myPresentList', method: 'GET', data: data }) }, //查询我收到的情亲卡列表 getMyReceiveList(data) { return request({ url: '/member/loveCard/myReceiveList', method: 'GET', data: data }) }, //.查询情亲卡的消费记录 getMycardRecordList(data) { return request({ url: '/member/loveCard/cardRecordList', method: 'GET', data: data }) }, //.解绑亲情卡 untieCard(data) { return request({ url: '/member/loveCard/untieCard', method: 'GET', data: data }) }, //查询剩余可赠送次数 presentCount() { return request({ url: '/member/loveCard/presentCount', method: 'GET' }) }, //亲情卡支付预约费用 familyCardPay(data) { return request({ url: '/order/familyCardPay/pay?orderNo=' + data.orderNo + '&loveCardId=' + data.loveCardId + '&storeId=' + data.storeId, method: 'POST', data: data }) }, //亲情卡支付订单费用 familyCardTradePay(data) { return request({ url: '/order/familyCardPay/pay/trade?tradeNo=' + data.tradeNo + '&loveCardId=' + data.loveCardId + '&storeId=' + data.storeId, method: 'POST', data: data }) }, //查询亲友关系 loveCardRelation() { return request({ url: '/system/dict/data/list?dictType=love_card_relation', method: 'GET' }) }, //根据手机号查询用户 getByPhone(data) { return request({ url: '/member/wechat/getByPhone', method: 'GET', data: data }) }, //根据手机号查询用户 checkStore(data) { return request({ url: '/member/loveCard/checkStore', method: 'GET', data: data }) }, serviceProjectList(param) { return request({ url: '/business/storeManager/minMain/service', method: 'get', data: param }) }, //技师二维码 扫码日志 scanLogs(param) { return request({ url: '/system/operlog/add', method: 'post', data: param }) }, }