api.js 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. import request from "../../../../../../utils/request.js";
  2. import handle from "../../../../../../config/handle.js";
  3. import apiRootUrl from "../../../../../../config/api.js";
  4. import icon from "../../../../../../utils/icon.js";
  5. const app = getApp()
  6. const api = {
  7. /**
  8. * 退费列表
  9. */
  10. QueryRefundRecord: apiRootUrl.ApiRootUrl + `wsgw/refund/refundRegister/RefundSelect/callApiJSON.do`,
  11. /**
  12. * 查可退余额(详情)
  13. */
  14. QueryCanOriginalReturnedMoney: apiRootUrl.ApiRootUrl + `wsgw/refund/refundRegister/QueryCanOriginalReturnedMoney/callApiJSON.do`,
  15. /**
  16. * 查询用户卡列表和可退余额
  17. */
  18. QueryMemberCardListAdnCardBalance: apiRootUrl.ApiRootUrl + "wsgw/accountMember/api/QueryMemberCardListAdnCardBalance/callApiJSON.do",
  19. /**
  20. * 申请退费
  21. */
  22. RefundRegisterNew: apiRootUrl.ApiRootUrl + `wsgw/refund/refundRegister/RefundRegisterNew/callApiJSON.do`,
  23. /**
  24. * 更新已经提交的申请
  25. */
  26. RefundUpdate: apiRootUrl.ApiRootUrl + `wsgw/refund/refundRegister/RefundUpdate/callApiJSON.do`,
  27. /**
  28. * 获取验证码
  29. */
  30. SendVerificationCode_V3: apiRootUrl.ApiRootUrl + `wsgw/accountMember/api/SendVerificationCode_V3/callApiJSON.do`,
  31. /**
  32. * 验证验证码
  33. */
  34. CheckVerificationCode_V3: apiRootUrl.ApiRootUrl + `wsgw/accountMember/api/CheckVerificationCode_V3/callApiJSON.do`,
  35. /**
  36. * 根据卡号查询医院名称
  37. */
  38. GetBankName: apiRootUrl.ApiRootUrl + `wsgw/refund/refundRegister/GetBankName/callApiJSON.do`,
  39. /**
  40. * 获取微信零钱退款授权信息及配置
  41. */
  42. UserConfirmAuth: apiRootUrl.ApiRootUrl + `wsgw/transfer/auth/UserConfirmAuth/callApiJSON.do`,
  43. }
  44. const methods = {
  45. // face_auth_bg:icon.iconUrl+"icon/face_auth_bg.png",
  46. // face_auth_icon:icon.iconUrl+"icon/face_auth_icon.png",
  47. // code_auth_icon:icon.iconUrl+"icon/code_auth_icon.png",
  48. /**
  49. * 退费列表
  50. */
  51. async queryRefundRecord(queryData, options) {
  52. let resp = handle.promistHandleNew(await request.doPost(api.QueryRefundRecord, queryData, options))
  53. return handle.catchPromiseNew(resp, () => resp, options)
  54. },
  55. /**
  56. * 查可退余额(详情)
  57. */
  58. async QueryCanOriginalReturnedMoney(queryData, options) {
  59. let resp = handle.promistHandleNew(await request.doPost(api.QueryCanOriginalReturnedMoney, queryData, options))
  60. return handle.catchPromiseNew(resp, () => resp, options)
  61. },
  62. /**
  63. * 查询用户卡列表和可退余额
  64. */
  65. async queryMemberCardListAdnCardBalance(queryData, options){
  66. let resp = handle.promistHandleNew(await request.doPost(api.QueryMemberCardListAdnCardBalance, queryData, options))
  67. return handle.catchPromiseNew(resp, () => resp, options)
  68. },
  69. /**
  70. * 申请退费
  71. */
  72. async RefundRegisterNew(queryData, options) {
  73. let resp = handle.promistHandleNew(await request.doPost(api.RefundRegisterNew, queryData, options))
  74. return handle.catchPromiseNew(resp, () => resp, options)
  75. },
  76. /**
  77. * 更新已经提交的申请
  78. */
  79. async refundUpdate(queryData, options) {
  80. let resp = handle.promistHandleNew(await request.doPost(api.RefundUpdate, queryData, options))
  81. return handle.catchPromiseNew(resp, () => resp, options)
  82. },
  83. /**
  84. * 获取验证码
  85. */
  86. async sendVerificationCode_V3(queryData, options) {
  87. let resp = handle.promistHandleNew(await request.doPost(api.SendVerificationCode_V3, queryData, options))
  88. return handle.catchPromiseNew(resp, () => resp, options)
  89. },
  90. /**
  91. * 验证验证码
  92. */
  93. async checkVerificationCode_V3(queryData, options) {
  94. let resp = handle.promistHandleNew(await request.doPost(api.CheckVerificationCode_V3, queryData, options))
  95. return handle.catchPromiseNew(resp, () => resp, options)
  96. },
  97. /**
  98. * 根据卡号查询医院名称 接口url
  99. */
  100. getBankNameApiUrl() {
  101. return api.GetBankName;
  102. },
  103. /**
  104. * 根据卡号查询医院名称
  105. */
  106. async getBankName(queryData, options) {
  107. let resp = handle.promistHandleNew(await request.doPost(api.GetBankName, queryData, options))
  108. return handle.catchPromiseNew(resp, () => resp, options)
  109. },
  110. /**
  111. * 获取微信零钱退款授权信息及配置
  112. */
  113. async userConfirmAuth(queryData, options) {
  114. let resp = handle.promistHandleNew(await request.doPost(api.UserConfirmAuth, queryData, options))
  115. return handle.catchPromiseNew(resp, () => resp, options)
  116. },
  117. }
  118. export default methods