| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078 |
- // 引用网络请求中间件
- import request from '../js/request.js';
- export default {
- //查询未读的亲情卡消费记录
- getRecommendActivity(data) {
- return request({
- url: '/business/wechat/activity/getRecommendActivity',
- method: 'GET',
- data: data
- })
- },
- //查询未读的亲情卡消费记录
- notReadRecordList(data) {
- return request({
- url: '/member/loveCard/notReadRecordList',
- method: 'GET',
- data: data
- })
- },
- //我的活动详情
- 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
- })
- },
- // 查询过期权益卡
- getExpireEquityCard(data) {
- return request({
- url: '/member/wechat/getExpireEquityCard',
- method: 'get',
- data:data
- })
- },
- // 订单支付页面选择优惠券或者权益卡列表
- availableEquityCards(data) {
- return request({
- url: '/business/wechat/order/availableEquityCards',
- method: 'get',
- data: data
- })
- },
- // 订单支付页面选择优惠券或者权益卡列表
- availableCoupons(data) {
- return request({
- url: '/business/wechat/order/availableCoupons',
- method: 'get',
- data: data
- })
- },
- // 订单支付页面选择优惠券或者权益卡列表
- oneClickPayV2(data) {
- return request({
- url: '/business/wechat/order/oneClickPay/v2',
- method: 'post',
- data: data
- })
- },
- // 获取亲情卡优惠券
- getCouponByLoveCard(data) {
- return request({
- url: '/business/wechat/order/getCouponByLoveCard',
- method: 'get',
- data: data
- })
- },
- // 获取修改头像授权
- getServiceObjectPhotoRecord(data) {
- return request({
- url: '/member/wechat/getServiceObjectPhotoRecord',
- method: 'get',
- data: data
- })
- },
- }
|