api.js 26 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111
  1. // 引用网络请求中间件
  2. import request from '../js/request.js';
  3. export default {
  4. //根据拓客规则id查询规则
  5. getRuleById(data) {
  6. return request({
  7. url: '/member/wechat/getRuleById',
  8. method: 'POST',
  9. data: data
  10. })
  11. },
  12. //查询未读的亲情卡消费记录
  13. getRecommendActivity(data) {
  14. return request({
  15. url: '/business/wechat/activity/getRecommendActivity',
  16. method: 'GET',
  17. data: data
  18. })
  19. },
  20. //查询未读的亲情卡消费记录
  21. notReadRecordList(data) {
  22. return request({
  23. url: '/member/loveCard/notReadRecordList',
  24. method: 'GET',
  25. data: data
  26. })
  27. },
  28. //我的活动详情
  29. myActivityDetail(data) {
  30. return request({
  31. url: '/business/wechat/activity/detail',
  32. method: 'GET',
  33. data: data
  34. })
  35. },
  36. //我的活动
  37. myActivity(data) {
  38. return request({
  39. url: '/business/wechat/myActivity',
  40. method: 'GET',
  41. data: data
  42. })
  43. },
  44. myActivityIsShow(data) {
  45. return request({
  46. url: '/business/wechat/myActivityIsShow',
  47. method: 'GET',
  48. data: data
  49. })
  50. },
  51. //活动详情
  52. activityCheck(data) {
  53. return request({
  54. url: '/business/wechat/activity/check?activityId='+ data.activityId,
  55. method: 'GET'
  56. })
  57. },
  58. //活动详情
  59. activityDetail(data) {
  60. return request({
  61. url: '/business/wechat/activity/getInfo',
  62. method: 'GET',
  63. data
  64. })
  65. },
  66. //活动列表
  67. activityList(data) {
  68. return request({
  69. url: '/business/wechat/activity/list',
  70. method: 'GET',
  71. data: data
  72. })
  73. },
  74. //权益卡可升级活动列表
  75. upgradeList(equityCardId) {
  76. return request({
  77. url: '/business/wechat/activity/upgradeList/' + equityCardId,
  78. method: 'GET'
  79. })
  80. },
  81. //根据key获取系统配置
  82. getConfigKey(data) {
  83. return request({
  84. url: '/system/config/configKey/'+ data.key,
  85. method: 'GET',
  86. })
  87. },
  88. //拓客专员二维码被扫记录
  89. addRecordForAttach(data) {
  90. return request({
  91. url: '/expand/userScanRecord/addRecordForAttach',
  92. method: 'POST',
  93. data: data,
  94. })
  95. },
  96. //用户绑定推广专员
  97. userBindMember(data) {
  98. return request({
  99. url: '/member/wechat/userBindMember',
  100. method: 'POST',
  101. data: data,
  102. })
  103. },
  104. //更新订阅消息可发送状态
  105. updateSubscribe(data) {
  106. return request({
  107. url: '/order/subscribe/updateSubscribe',
  108. method: 'POST',
  109. data: data,
  110. })
  111. },
  112. //查询订阅消息列表
  113. getTemplateList(data) {
  114. return request({
  115. url: '/order/subscribe/getTemplateList?type=' + data.type,
  116. method: 'POST'
  117. })
  118. },
  119. //结束订单
  120. orderFinish(orderId) {
  121. return request({
  122. url: '/order/wechat/order/finish/' + orderId,
  123. method: 'PUT'
  124. })
  125. },
  126. //查看排队信息
  127. viewNumber(data) {
  128. return request({
  129. url: '/order/wechat/order/viewNumber/' + data,
  130. method: 'GET'
  131. })
  132. },
  133. //查看店内排队数量
  134. queueInfo(data) {
  135. return request({
  136. url: '/order/wechat/order/queueInfo/' + data,
  137. method: 'GET'
  138. })
  139. },
  140. //我的权益卡列表
  141. myEquityCardList() {
  142. return request({
  143. url: '/member/wechat/getMyEquityCard',
  144. method: 'GET'
  145. })
  146. },
  147. //post请求 权益卡列表
  148. equityCardList() {
  149. return request({
  150. url: '/business/wechat/equity-card/list',
  151. method: 'GET'
  152. })
  153. },
  154. // 绑定用户
  155. scanCode(data) {
  156. return request({
  157. url: '/member/wechat/scanCode',
  158. method: 'GET',
  159. data: data
  160. })
  161. },
  162. //post请求 一键付款余额支付
  163. trade(data) {
  164. return request({
  165. url: '/business/balancePay/pay/trade',
  166. method: 'POST',
  167. data: data
  168. })
  169. },
  170. //post请求 订单详情付款
  171. qenPayInfo(data) {
  172. return request({
  173. url: '/business/wechat/order/genPayInfo',
  174. method: 'POST',
  175. data: data
  176. })
  177. },
  178. //post请求 一键付款获取微信支付信息
  179. wechatPayTradeNo(data) {
  180. return request({
  181. url: '/business/wxPay/jsapiPay/tradeNo?tradeNo=' + data.tradeNo,
  182. method: 'POST',
  183. data: data
  184. })
  185. },
  186. //post请求 一键付款
  187. oneClickPay(data) {
  188. return request({
  189. url: '/business/wechat/order/oneClickPay?orderId=' + data.orderId,
  190. method: 'POST',
  191. data: data
  192. })
  193. },
  194. //post请求 申诉
  195. appeal(data) {
  196. return request({
  197. url: '/business/wechat/order/appeal',
  198. method: 'POST',
  199. data: data
  200. })
  201. },
  202. //post请求 添加子订单
  203. addChildProject(data) {
  204. return request({
  205. url: '/business/wechat/order/submit/child',
  206. method: 'POST',
  207. data: data
  208. })
  209. },
  210. // get请求 根据id获取工位信息
  211. getByPersonId(data) {
  212. return request({
  213. url: '/business/wechat/sp/getByPersonId/' + data.personId,
  214. method: 'GET'
  215. })
  216. },
  217. // get请求 根据id获取工位信息
  218. getStationById(data) {
  219. return request({
  220. url: '/store/uniapp/getStationById/' + data.stationId,
  221. method: 'GET'
  222. })
  223. },
  224. // get请求 查询门店的服务项目
  225. category(data) {
  226. return request({
  227. url: '/business/wechat/sp/category/' + data.storeId,
  228. method: 'GET',
  229. data: data
  230. })
  231. },
  232. // get请求 通过电话及名称获取老系统会员信息
  233. getOldMember(data) {
  234. return request({
  235. url: '/member/wechat/getOldMember',
  236. method: 'GET',
  237. data: data
  238. })
  239. },
  240. // get请求 通过会员编号获取老系统充值记录
  241. getOrderRechargeOldList(data) {
  242. return request({
  243. url: '/member/wechat/getOrderRechargeOldList',
  244. method: 'GET',
  245. data: data
  246. })
  247. },
  248. // get请求,通过会员编号获取老系统消费记录
  249. getOrderConsumeLogOld(data) {
  250. return request({
  251. url: '/member/wechat/getOrderConsumeLogOld',
  252. method: 'GET',
  253. data: data
  254. })
  255. },
  256. // post请求 通过会员编号提交迁移申请,默认迁移到当前迁移账户上
  257. submitOldData(memberNo) {
  258. return request({
  259. url: '/member/wechat/submitOldData',
  260. method: 'POST',
  261. header: {
  262. 'content-type': 'application/x-www-form-urlencoded'
  263. },
  264. data: memberNo
  265. })
  266. },
  267. // get请求,获取订单列表
  268. getOrderList(data) {
  269. return request({
  270. url: '/business/wechat/order/list',
  271. method: 'GET',
  272. data: data
  273. })
  274. },
  275. // get请求,获取订单详情
  276. getOrderDetailByOrderId(data) {
  277. return request({
  278. url: '/business/wechat/order/detail',
  279. method: 'GET',
  280. data: data
  281. })
  282. },
  283. // get请求,保存订单评价
  284. saveOrderComment(data) {
  285. return request({
  286. url: '/business/wechat/order/comment' + data.orderId,
  287. method: 'GET',
  288. data: data
  289. })
  290. },
  291. // post请求,再来一单
  292. comeOrder(data) {
  293. return request({
  294. url: '/business/wechat/order/copy/' + data.orderId,
  295. method: 'POST',
  296. data: data
  297. })
  298. },
  299. // post请求 删除订单
  300. deleteOrder(data) {
  301. return request({
  302. url: '/business/wechat/order/' + data.orderId,
  303. method: 'POST',
  304. data: data
  305. })
  306. },
  307. // put请求 取消订单
  308. cancelOrder(data) {
  309. return request({
  310. url: '/business/wechat/order/cancel/' + data.orderId,
  311. method: 'PUT',
  312. data: data
  313. })
  314. },
  315. // post请求,通用下单接口
  316. commonGeneralOrder(data) {
  317. return request({
  318. url: '/business/wechat/order/common',
  319. method: 'POST',
  320. data: data
  321. })
  322. },
  323. // get请求,查询充值订单列表
  324. orderRechargeList(data) {
  325. return request({
  326. url: '/business/wechat/orderRecharge/list',
  327. method: 'GET',
  328. data: data
  329. })
  330. },
  331. // post请求,充值订单退款
  332. orderRechargeRefund(data) {
  333. return request({
  334. url: '/business/wechat/orderRecharge/refund',
  335. method: 'POST',
  336. data: data
  337. })
  338. },
  339. // post请求,获取用户余额
  340. getUserBalance(data) {
  341. return request({
  342. url: '/business/wechat/orderRecharge/getBalance',
  343. method: 'POST',
  344. data: data
  345. })
  346. },
  347. // get请求,订单签到
  348. orderSign(data) {
  349. return request({
  350. url: '/business/wechat/scheduling/orderSign',
  351. method: 'GET',
  352. data: data
  353. })
  354. },
  355. // get请求,查看订单排号情况
  356. getOrderSign(data) {
  357. return request({
  358. url: '/business/wechat/scheduling/getOrderSign',
  359. method: 'GET',
  360. data: data
  361. })
  362. },
  363. // post请求,微信支付(根据订单ID)
  364. wechatPay(data) {
  365. return request({
  366. url: '/business/wxPay/jsapiPay?orderNo=' + data.orderNo,
  367. method: 'POST',
  368. data: data
  369. })
  370. },
  371. // post请求,余额支付(根据订单ID)
  372. balancePay(data) {
  373. return request({
  374. url: '/business/balancePay/pay?orderNo=' + data.orderNo + '&password=' + data.password,
  375. method: 'POST',
  376. data: data
  377. })
  378. },
  379. // get请求,查询交易记录列表
  380. transactionRecordsList(data) {
  381. return request({
  382. url: '/business/wechat/transactionFlow/list',
  383. method: 'GET',
  384. data: data
  385. })
  386. },
  387. // get请求,查询充值优惠列表
  388. getRechargeList() {
  389. return request({
  390. url: '/business/wechat/getRechargeList',
  391. method: 'GET'
  392. })
  393. },
  394. // get请求,查询交易流水统计
  395. transactionFlowstatistic(data) {
  396. return request({
  397. url: '/business/wechat/transactionFlow/statistic',
  398. method: 'GET',
  399. data: data
  400. })
  401. },
  402. // get请求 获取预约价格
  403. getAppointmentPrice(data) {
  404. return request({
  405. url: '/business/wechat/sp/subPrice',
  406. method: 'GET',
  407. data: data
  408. })
  409. },
  410. // post请求,识别人脸
  411. verifyFace(data) {
  412. return request({
  413. url: '/member/wechat/verifyFace',
  414. method: 'POST',
  415. data: data
  416. })
  417. },
  418. // post请 查询服务对象列表
  419. listServiceObject(data) {
  420. return request({
  421. url: '/member/wechat/listServiceObject',
  422. method: 'POST',
  423. data: data
  424. })
  425. },
  426. // post请 获取服务对象协议
  427. getServiceDealFile(data) {
  428. return request({
  429. url: '/member/wechat/getServiceDealFile',
  430. method: 'POST',
  431. data: data
  432. })
  433. },
  434. // post请求 服务对象签名
  435. serviceObjectSignPdf(data) {
  436. return request({
  437. url: '/member/wechat/signPdf',
  438. method: 'POST',
  439. data: data
  440. })
  441. },
  442. // post请求 保存服务对象
  443. saveServiceObject(data) {
  444. return request({
  445. url: '/member/wechat/saveServiceObject',
  446. method: 'POST',
  447. data: data
  448. })
  449. },
  450. // post请求 绑定服务对象
  451. bindServiceObject(data) {
  452. return request({
  453. url: '/member/wechat/bindServiceObject',
  454. method: 'POST',
  455. data: data
  456. })
  457. },
  458. // post请求 修改服务对象
  459. updateServiceObject(data) {
  460. return request({
  461. url: '/member/wechat/updateServiceObject',
  462. method: 'POST',
  463. data: data
  464. })
  465. },
  466. // post请求,用户实名认证
  467. userRealNameAuth(data) {
  468. return request({
  469. url: '/member/wechat/idCardAuthentication',
  470. method: 'POST',
  471. data: data
  472. })
  473. },
  474. // post请求,用户信息保存
  475. saveUserInfo(data) {
  476. return request({
  477. url: '/member/wechat/saveUserInfo',
  478. method: 'POST',
  479. data: data
  480. })
  481. },
  482. // post请求,修改用户账号密码
  483. updateUserAccountPassword(data) {
  484. return request({
  485. url: '/member/wechat/setPassword',
  486. method: 'POST',
  487. data: data
  488. })
  489. },
  490. // post请求,修改用户交易密码
  491. updateUserTransactionPassword(data) {
  492. return request({
  493. url: '/member/wechat/setTransactionPassword',
  494. method: 'POST',
  495. data: data
  496. })
  497. },
  498. // post请求,绑定微信
  499. bindWechat(data) {
  500. return request({
  501. url: '/member/wechat/setOpenId',
  502. method: 'POST',
  503. data: data
  504. })
  505. },
  506. // get请求,获取服务条款协议
  507. getTermOfServiceByType(data) {
  508. return request({
  509. url: '/system/openapi/getAboutByType',
  510. method: 'GET',
  511. data: data
  512. })
  513. },
  514. // get请求,获取公共文件路径
  515. getCommonFile(data) {
  516. return request({
  517. url: '/resource/oss/listByIds/' + data.ossId,
  518. method: 'GET',
  519. data: data
  520. })
  521. },
  522. // post请求,重新设置手机号
  523. setPhone(data) {
  524. return request({
  525. url: '/member/wechat/setPhone',
  526. method: 'POST',
  527. data: data
  528. })
  529. },
  530. // get请求,获取用户信息
  531. getUserInfo(data) {
  532. return request({
  533. url: '/member/wechat/getUserInfo',
  534. method: 'GET',
  535. data: data
  536. })
  537. },
  538. // post请求,保存用户信息
  539. saveWechatUser(data) {
  540. return request({
  541. url: '/auth/wechat/saveWeChatUserInfo',
  542. method: 'POST',
  543. data: data
  544. })
  545. },
  546. // post请求,获取微信电话号码
  547. getWechatUserPhoneNumber(data) {
  548. return request({
  549. url: '/auth/wechat/getWechatUserPhoneNumber',
  550. method: 'POST',
  551. data: data
  552. })
  553. },
  554. // post请求,验证手机号码是否被注册
  555. phoneIsExist(data) {
  556. return request({
  557. url: '/member/wechat/phoneIsExist',
  558. method: 'POST',
  559. data: data
  560. })
  561. },
  562. // post请求,新微新手机绑定
  563. wechatRegister(data) {
  564. return request({
  565. url: '/auth/xcxRegister',
  566. method: 'POST',
  567. data: data
  568. })
  569. },
  570. // get请求,获取手机验证码
  571. getSmsCode(data) {
  572. return request({
  573. url: '/resource/sms/codeByType',
  574. method: 'GET',
  575. data: data
  576. })
  577. },
  578. //get请求,获取手机验证码 新模板
  579. getSmsCodeByType(data) {
  580. return request({
  581. url: '/resource/sms/codeByType',
  582. method: 'GET',
  583. data: data
  584. })
  585. },
  586. // post请求,验证手机验证码
  587. validateSmsCode(data) {
  588. return request({
  589. url: '/member/wechat/validateSmsCode',
  590. method: 'POST',
  591. data: data
  592. })
  593. },
  594. // post请求,找回账号密码登录
  595. wechatRetrieveAccountPwdLogin(data) {
  596. return request({
  597. url: '/auth/xcxRetrieveMemberByPwd',
  598. method: 'POST',
  599. data: data
  600. })
  601. },
  602. // post请求,实名认证登录(新微信老手机)
  603. realNameAuthLogin(data) {
  604. return request({
  605. url: '/auth/xcxRetrieveMember',
  606. method: 'POST',
  607. data: data
  608. })
  609. },
  610. // post请求,验证身份证是滞存在
  611. idCardIsExist(data) {
  612. return request({
  613. url: '/member/wechat/idCardIsExist',
  614. method: 'POST',
  615. data: data
  616. })
  617. },
  618. // post请求验证手机找回密码
  619. passwordByPhone(data) {
  620. return request({
  621. url: '/member/wechat/passwordByPhone',
  622. method: 'POST',
  623. data: data
  624. })
  625. },
  626. // post请求,获取积分列表信息
  627. getIntegralRecordList(data) {
  628. return request({
  629. url: '/member/wechat/getIntegralRecordVo',
  630. method: 'POST',
  631. data: data
  632. })
  633. },
  634. // post请求,用户绑定门店
  635. userBindStore(data) {
  636. return request({
  637. url: '/member/wechat/bindStore',
  638. method: 'POST',
  639. data: data
  640. })
  641. },
  642. // get请求 获取门店列表
  643. // storeList(data) {
  644. // return request({
  645. // url: '/store/uniapp/store-list',
  646. // method: 'GET',
  647. // data: data
  648. // })
  649. // },
  650. // get请求 获取公告列表
  651. noticeList(data) {
  652. return request({
  653. url: '/system/openapi/notice/list',
  654. method: 'GET',
  655. data: data
  656. })
  657. },
  658. // get请求 获取公告详情
  659. getNoticeDetail(data) {
  660. return request({
  661. url: '/system/openapi/notice/' + data.noticeId,
  662. method: 'GET'
  663. })
  664. },
  665. // get请求 获取banner图列表
  666. getSlideshowList(data) {
  667. return request({
  668. url: '/system/openapi/getSlideshowList',
  669. method: 'GET',
  670. data: data
  671. })
  672. },
  673. // get请求 获取门店所有服务列表
  674. storeAllServiceList(data) {
  675. return request({
  676. url: '/business/wechat/sp/all/' + data.storeId,
  677. method: 'GET',
  678. data: data
  679. })
  680. },
  681. // get请求 获取门店列表
  682. storeList(data) {
  683. return request({
  684. url: '/store/uniapp/store-list/distance',
  685. method: 'GET',
  686. data: data
  687. })
  688. },
  689. // get请求 获取门店工作人员列表 关联岗位、工作时段、服务项目
  690. workPersonList(data) {
  691. return request({
  692. url: '/store/uniapp/work-person-ist/' + data.storeId,
  693. method: 'GET',
  694. data: data
  695. })
  696. },
  697. // get请求 根据服务日期及服务时段查询排班人员
  698. serviceWorkPersonList(data) {
  699. return request({
  700. url: '/business/wechat/scheduling/crewPageList',
  701. method: 'GET',
  702. data: data
  703. })
  704. },
  705. // get请求 根据门店查询排班日期
  706. selectDate(data) {
  707. return request({
  708. url: '/business/wechat/scheduling/selectDate',
  709. method: 'POST',
  710. data: data
  711. })
  712. },
  713. // get请求 根据门店、排班日期查询可用时段
  714. selectPeriodByDate(data) {
  715. return request({
  716. url: '/business/wechat/scheduling/selectPeriodByDate',
  717. method: 'POST',
  718. data: data
  719. })
  720. },
  721. // get请求 根据门店、排班日期查询可用时段
  722. getServiceTime(data) {
  723. return request({
  724. url: '/business/wechat/scheduling/time',
  725. method: 'GET',
  726. data: data
  727. })
  728. },
  729. // get请求 根据门店、排班日期查询可用时段
  730. getServicePerson(data) {
  731. return request({
  732. url: '/business/wechat/scheduling/person',
  733. method: 'GET',
  734. data: data
  735. })
  736. },
  737. // get请求 根据门店、排班日期查询可用时段
  738. getServicePersonTime(data) {
  739. return request({
  740. url: '/business/wechat/scheduling/person/time',
  741. method: 'GET',
  742. data: data
  743. })
  744. },
  745. // get请求 查询可领取的优惠劵列表
  746. getUserDiscountsList(data) {
  747. return request({
  748. url: '/business/wechat/getUserDiscountsList',
  749. method: 'GET',
  750. data: data
  751. })
  752. },
  753. // get请求 我的优惠卷列表(0未使用, 1已使用, 2已过期 null查询全部)
  754. getMyCouponList(data) {
  755. return request({
  756. url: '/member/wechat/getCoupon',
  757. method: 'GET',
  758. data: data
  759. })
  760. },
  761. // get请求 查询可使用的优惠券
  762. getCanUseCouponList(data) {
  763. return request({
  764. url: '/member/wechat/getMemberCouponn',
  765. method: 'POST',
  766. data: data
  767. })
  768. },
  769. // post请求 领取优惠券
  770. claimCoupon(data) {
  771. return request({
  772. url: '/member/wechat/claimCoupon',
  773. method: 'POST',
  774. data: data
  775. })
  776. },
  777. getImgUrlByOssId(data) {
  778. return request({
  779. url: '/resource/oss/listByIds/' + data.ossId,
  780. method: 'GET'
  781. })
  782. },
  783. getImage(id) {
  784. return request({
  785. url: '/resource/oss/listByIds/' + id,
  786. method: 'GET'
  787. })
  788. },
  789. /**
  790. * 微信静默登录
  791. */
  792. wxLogin(data) {
  793. return request({
  794. url: '/auth/wxLogin',
  795. method: 'POST',
  796. data: data
  797. })
  798. },
  799. /**
  800. * 微信静默登录 原来的
  801. */
  802. wxAuthLogin(data) {
  803. return request({
  804. url: '/auth/xcxLogin',
  805. method: 'POST',
  806. data: data
  807. })
  808. },
  809. // 推广统计
  810. spreadCount() {
  811. return request({
  812. url: '/member/memberEarnings/appSpreadCount',
  813. method: 'GET'
  814. })
  815. },
  816. //获取取号规则
  817. getSelectionRules(data) {
  818. return request({
  819. url: '/system/dict/data/list',
  820. method: 'GET',
  821. data: data
  822. })
  823. },
  824. // 关于我们
  825. AboutByType(data) {
  826. return request({
  827. url: '/system/openapi/getAboutByType',
  828. method: 'GET',
  829. data: data
  830. })
  831. },
  832. //赠送亲情卡
  833. giveFamilyCard(data) {
  834. return request({
  835. url: '/member/loveCard/createLoveCard',
  836. method: 'POST',
  837. data: data,
  838. header: {
  839. 'content-type': 'application/x-www-form-urlencoded'
  840. },
  841. })
  842. },
  843. //获取我赠送的亲情卡列表
  844. getMyPresentList(data) {
  845. return request({
  846. url: '/member/loveCard/myPresentList',
  847. method: 'GET',
  848. data: data
  849. })
  850. },
  851. //查询我收到的情亲卡列表
  852. getMyReceiveList(data) {
  853. return request({
  854. url: '/member/loveCard/myReceiveList',
  855. method: 'GET',
  856. data: data
  857. })
  858. },
  859. //.查询情亲卡的消费记录
  860. getMycardRecordList(data) {
  861. return request({
  862. url: '/member/loveCard/cardRecordList',
  863. method: 'GET',
  864. data: data
  865. })
  866. },
  867. //.解绑亲情卡
  868. untieCard(data) {
  869. return request({
  870. url: '/member/loveCard/untieCard',
  871. method: 'GET',
  872. data: data
  873. })
  874. },
  875. //查询剩余可赠送次数
  876. presentCount() {
  877. return request({
  878. url: '/member/loveCard/presentCount',
  879. method: 'GET'
  880. })
  881. },
  882. //亲情卡支付预约费用
  883. familyCardPay(data) {
  884. return request({
  885. url: '/order/familyCardPay/pay?orderNo=' + data.orderNo + '&loveCardId=' + data.loveCardId + '&storeId=' + data.storeId,
  886. method: 'POST',
  887. data: data
  888. })
  889. },
  890. //亲情卡支付订单费用
  891. familyCardTradePay(data) {
  892. return request({
  893. url: '/order/familyCardPay/pay/trade?tradeNo=' + data.tradeNo + '&loveCardId=' + data.loveCardId + '&storeId=' + data.storeId,
  894. method: 'POST',
  895. data: data
  896. })
  897. },
  898. //查询亲友关系
  899. loveCardRelation() {
  900. return request({
  901. url: '/system/dict/data/list?dictType=love_card_relation',
  902. method: 'GET'
  903. })
  904. },
  905. //根据手机号查询用户
  906. getByPhone(data) {
  907. return request({
  908. url: '/member/wechat/getByPhone',
  909. method: 'GET',
  910. data: data
  911. })
  912. },
  913. //根据手机号查询用户
  914. checkStore(data) {
  915. return request({
  916. url: '/member/loveCard/checkStore',
  917. method: 'GET',
  918. data: data
  919. })
  920. },
  921. serviceProjectList(param) {
  922. return request({
  923. url: '/business/storeManager/minMain/service',
  924. method: 'get',
  925. data: param
  926. })
  927. },
  928. //技师二维码 扫码日志
  929. scanLogs(param) {
  930. return request({
  931. url: '/system/operlog/add',
  932. method: 'post',
  933. data: param
  934. })
  935. },
  936. // 查询过期权益卡
  937. getExpireEquityCard(data) {
  938. return request({
  939. url: '/member/wechat/getExpireEquityCard',
  940. method: 'get',
  941. data:data
  942. })
  943. },
  944. // 订单支付页面选择优惠券或者权益卡列表
  945. availableEquityCards(data) {
  946. return request({
  947. url: '/business/wechat/order/availableEquityCards',
  948. method: 'get',
  949. data: data
  950. })
  951. },
  952. // 订单支付页面选择优惠券或者权益卡列表
  953. availableCoupons(data) {
  954. return request({
  955. url: '/business/wechat/order/availableCoupons',
  956. method: 'get',
  957. data: data
  958. })
  959. },
  960. // 订单支付页面选择优惠券或者权益卡列表
  961. oneClickPayV2(data) {
  962. return request({
  963. url: '/business/wechat/order/oneClickPay/v2',
  964. method: 'post',
  965. data: data
  966. })
  967. },
  968. // 获取亲情卡优惠券
  969. getCouponByLoveCard(data) {
  970. return request({
  971. url: '/business/wechat/order/getCouponByLoveCard',
  972. method: 'get',
  973. data: data
  974. })
  975. },
  976. // 获取修改头像授权
  977. getServiceObjectPhotoRecord(data) {
  978. return request({
  979. url: '/member/wechat/getServiceObjectPhotoRecord',
  980. method: 'get',
  981. data: data
  982. })
  983. },
  984. // 解绑服务对象
  985. unbindServiceObject(data) {
  986. return request({
  987. url: '/member/wechat/unbindServiceObject',
  988. method: 'post',
  989. data: data
  990. })
  991. },
  992. }