| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028 |
- // 引用网络请求中间件
- 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
- })
- },
- // 查询过期权益卡
- getExpireEquityCard() {
- return request({
- url: '/member/wechat/getExpireEquityCard',
- method: 'get'
- })
- },
- // 订单支付页面选择优惠券或者权益卡列表
- 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
- })
- },
- }
|