| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140 |
- import request from "../../../../../../utils/request.js";
- import handle from "../../../../../../config/handle.js";
- import apiRootUrl from "../../../../../../config/api.js";
- import icon from "../../../../../../utils/icon.js";
- const app = getApp()
- const api = {
- /**
- * 退费列表
- */
- QueryRefundRecord: apiRootUrl.ApiRootUrl + `wsgw/refund/refundRegister/RefundSelect/callApiJSON.do`,
- /**
- * 查可退余额(详情)
- */
- QueryCanOriginalReturnedMoney: apiRootUrl.ApiRootUrl + `wsgw/refund/refundRegister/QueryCanOriginalReturnedMoney/callApiJSON.do`,
- /**
- * 查询用户卡列表和可退余额
- */
- QueryMemberCardListAdnCardBalance: apiRootUrl.ApiRootUrl + "wsgw/accountMember/api/QueryMemberCardListAdnCardBalance/callApiJSON.do",
- /**
- * 申请退费
- */
- RefundRegisterNew: apiRootUrl.ApiRootUrl + `wsgw/refund/refundRegister/RefundRegisterNew/callApiJSON.do`,
- /**
- * 更新已经提交的申请
- */
- RefundUpdate: apiRootUrl.ApiRootUrl + `wsgw/refund/refundRegister/RefundUpdate/callApiJSON.do`,
- /**
- * 获取验证码
- */
- SendVerificationCode_V3: apiRootUrl.ApiRootUrl + `wsgw/accountMember/api/SendVerificationCode_V3/callApiJSON.do`,
- /**
- * 验证验证码
- */
- CheckVerificationCode_V3: apiRootUrl.ApiRootUrl + `wsgw/accountMember/api/CheckVerificationCode_V3/callApiJSON.do`,
- /**
- * 根据卡号查询医院名称
- */
- GetBankName: apiRootUrl.ApiRootUrl + `wsgw/refund/refundRegister/GetBankName/callApiJSON.do`,
- /**
- * 获取微信零钱退款授权信息及配置
- */
- UserConfirmAuth: apiRootUrl.ApiRootUrl + `wsgw/transfer/auth/UserConfirmAuth/callApiJSON.do`,
- }
- const methods = {
- // face_auth_bg:icon.iconUrl+"icon/face_auth_bg.png",
- // face_auth_icon:icon.iconUrl+"icon/face_auth_icon.png",
- // code_auth_icon:icon.iconUrl+"icon/code_auth_icon.png",
- /**
- * 退费列表
- */
- async queryRefundRecord(queryData, options) {
- let resp = handle.promistHandleNew(await request.doPost(api.QueryRefundRecord, queryData, options))
- return handle.catchPromiseNew(resp, () => resp, options)
- },
- /**
- * 查可退余额(详情)
- */
- async QueryCanOriginalReturnedMoney(queryData, options) {
- let resp = handle.promistHandleNew(await request.doPost(api.QueryCanOriginalReturnedMoney, queryData, options))
- return handle.catchPromiseNew(resp, () => resp, options)
- },
- /**
- * 查询用户卡列表和可退余额
- */
- async queryMemberCardListAdnCardBalance(queryData, options){
- let resp = handle.promistHandleNew(await request.doPost(api.QueryMemberCardListAdnCardBalance, queryData, options))
- return handle.catchPromiseNew(resp, () => resp, options)
- },
- /**
- * 申请退费
- */
- async RefundRegisterNew(queryData, options) {
- let resp = handle.promistHandleNew(await request.doPost(api.RefundRegisterNew, queryData, options))
- return handle.catchPromiseNew(resp, () => resp, options)
- },
- /**
- * 更新已经提交的申请
- */
- async refundUpdate(queryData, options) {
- let resp = handle.promistHandleNew(await request.doPost(api.RefundUpdate, queryData, options))
- return handle.catchPromiseNew(resp, () => resp, options)
- },
- /**
- * 获取验证码
- */
- async sendVerificationCode_V3(queryData, options) {
- let resp = handle.promistHandleNew(await request.doPost(api.SendVerificationCode_V3, queryData, options))
- return handle.catchPromiseNew(resp, () => resp, options)
- },
-
- /**
- * 验证验证码
- */
- async checkVerificationCode_V3(queryData, options) {
- let resp = handle.promistHandleNew(await request.doPost(api.CheckVerificationCode_V3, queryData, options))
- return handle.catchPromiseNew(resp, () => resp, options)
- },
- /**
- * 根据卡号查询医院名称 接口url
- */
- getBankNameApiUrl() {
- return api.GetBankName;
- },
- /**
- * 根据卡号查询医院名称
- */
- async getBankName(queryData, options) {
- let resp = handle.promistHandleNew(await request.doPost(api.GetBankName, queryData, options))
- return handle.catchPromiseNew(resp, () => resp, options)
- },
- /**
- * 获取微信零钱退款授权信息及配置
- */
- async userConfirmAuth(queryData, options) {
- let resp = handle.promistHandleNew(await request.doPost(api.UserConfirmAuth, queryData, options))
- return handle.catchPromiseNew(resp, () => resp, options)
- },
- }
- export default methods
|