api.js 26 KB

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